Lines Matching full:hdr

21 	} hdr;  in bpf_lwt_encap_gre()  local
24 memset(&hdr, 0, sizeof(struct encap_hdr)); in bpf_lwt_encap_gre()
26 hdr.iph.ihl = 5; in bpf_lwt_encap_gre()
27 hdr.iph.version = 4; in bpf_lwt_encap_gre()
28 hdr.iph.ttl = 0x40; in bpf_lwt_encap_gre()
29 hdr.iph.protocol = 47; /* IPPROTO_GRE */ in bpf_lwt_encap_gre()
31 hdr.iph.saddr = 0x640110ac; /* 172.16.1.100 */ in bpf_lwt_encap_gre()
32 hdr.iph.daddr = 0x641010ac; /* 172.16.16.100 */ in bpf_lwt_encap_gre()
34 hdr.iph.saddr = 0xac100164; /* 172.16.1.100 */ in bpf_lwt_encap_gre()
35 hdr.iph.daddr = 0xac101064; /* 172.16.16.100 */ in bpf_lwt_encap_gre()
39 hdr.iph.tot_len = bpf_htons(skb->len + sizeof(struct encap_hdr)); in bpf_lwt_encap_gre()
41 hdr.greh.protocol = skb->protocol; in bpf_lwt_encap_gre()
43 err = bpf_lwt_push_encap(skb, BPF_LWT_ENCAP_IP, &hdr, in bpf_lwt_encap_gre()
57 } hdr; in bpf_lwt_encap_gre6() local
60 memset(&hdr, 0, sizeof(struct encap_hdr)); in bpf_lwt_encap_gre6()
62 hdr.ip6hdr.version = 6; in bpf_lwt_encap_gre6()
63 hdr.ip6hdr.payload_len = bpf_htons(skb->len + sizeof(struct grehdr)); in bpf_lwt_encap_gre6()
64 hdr.ip6hdr.nexthdr = 47; /* IPPROTO_GRE */ in bpf_lwt_encap_gre6()
65 hdr.ip6hdr.hop_limit = 0x40; in bpf_lwt_encap_gre6()
67 hdr.ip6hdr.saddr.s6_addr[0] = 0xfb; in bpf_lwt_encap_gre6()
68 hdr.ip6hdr.saddr.s6_addr[1] = 1; in bpf_lwt_encap_gre6()
69 hdr.ip6hdr.saddr.s6_addr[15] = 1; in bpf_lwt_encap_gre6()
71 hdr.ip6hdr.daddr.s6_addr[0] = 0xfb; in bpf_lwt_encap_gre6()
72 hdr.ip6hdr.daddr.s6_addr[1] = 0x10; in bpf_lwt_encap_gre6()
73 hdr.ip6hdr.daddr.s6_addr[15] = 1; in bpf_lwt_encap_gre6()
75 hdr.greh.protocol = skb->protocol; in bpf_lwt_encap_gre6()
77 err = bpf_lwt_push_encap(skb, BPF_LWT_ENCAP_IP, &hdr, in bpf_lwt_encap_gre6()