Lines Matching refs:olen
101 int olen, l2_len; in __encap_ipv4() local
155 olen = sizeof(h_outer.ip); in __encap_ipv4()
179 olen += sizeof(h_outer.l4hdr.gre); in __encap_ipv4()
185 olen += sizeof(h_outer.l4hdr.udp); in __encap_ipv4()
201 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv4()
223 olen += l2_len; in __encap_ipv4()
226 if (bpf_skb_adjust_room(skb, olen, BPF_ADJ_ROOM_MAC, flags)) in __encap_ipv4()
231 h_outer.ip.tot_len = bpf_htons(olen + in __encap_ipv4()
238 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in __encap_ipv4()
269 int olen, l2_len; in __encap_ipv6() local
286 olen = sizeof(h_outer.ip); in __encap_ipv6()
310 olen += sizeof(h_outer.l4hdr.gre); in __encap_ipv6()
316 olen += sizeof(h_outer.l4hdr.udp); in __encap_ipv6()
331 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv6()
352 olen += l2_len; in __encap_ipv6()
355 if (bpf_skb_adjust_room(skb, olen, BPF_ADJ_ROOM_MAC, flags)) in __encap_ipv6()
360 h_outer.ip.payload_len = bpf_htons(olen + in __encap_ipv6()
366 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in __encap_ipv6()
380 int olen; in encap_ipv6_ipip6() local
394 olen = sizeof(h_outer.ip); in encap_ipv6_ipip6()
399 if (bpf_skb_adjust_room(skb, olen, BPF_ADJ_ROOM_MAC, flags)) in encap_ipv6_ipip6()
414 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in encap_ipv6_ipip6()
606 int olen = len; in decap_internal() local
631 olen += sizeof(struct gre_hdr); in decap_internal()
636 olen += sizeof(mpls_label); in decap_internal()
639 olen += ETH_HLEN; in decap_internal()
644 olen += sizeof(struct udphdr); in decap_internal()
649 olen += sizeof(mpls_label); in decap_internal()
652 olen += ETH_HLEN; in decap_internal()
655 olen += ETH_HLEN + sizeof(struct vxlanhdr); in decap_internal()
663 if (bpf_skb_adjust_room(skb, -olen, BPF_ADJ_ROOM_MAC, flags)) in decap_internal()