Lines Matching refs:l4hdr
62 union l4hdr { union
69 union l4hdr l4hdr; member
75 union l4hdr l4hdr; member
179 olen += sizeof(h_outer.l4hdr.gre); in __encap_ipv4()
180 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv4()
181 h_outer.l4hdr.gre.flags = 0; in __encap_ipv4()
185 olen += sizeof(h_outer.l4hdr.udp); in __encap_ipv4()
186 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in __encap_ipv4()
187 h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); in __encap_ipv4()
188 h_outer.l4hdr.udp.check = 0; in __encap_ipv4()
189 h_outer.l4hdr.udp.len = bpf_htons(bpf_ntohs(iph_inner.tot_len) + in __encap_ipv4()
190 sizeof(h_outer.l4hdr.udp) + in __encap_ipv4()
310 olen += sizeof(h_outer.l4hdr.gre); in __encap_ipv6()
311 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv6()
312 h_outer.l4hdr.gre.flags = 0; in __encap_ipv6()
316 olen += sizeof(h_outer.l4hdr.udp); in __encap_ipv6()
317 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in __encap_ipv6()
318 h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); in __encap_ipv6()
320 sizeof(h_outer.l4hdr.udp) + l2_len; in __encap_ipv6()
321 h_outer.l4hdr.udp.check = 0; in __encap_ipv6()
322 h_outer.l4hdr.udp.len = bpf_htons(tot_len); in __encap_ipv6()