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