Lines Matching refs:pkt_bytes
280 struct real_definition *dst, __u32 pkt_bytes) in encap_v6() argument
309 bpf_htons(pkt_bytes + sizeof(struct ipv6hdr)); in encap_v6()
323 struct real_definition *dst, __u32 pkt_bytes) in encap_v4() argument
356 iph->tot_len = bpf_htons(pkt_bytes + sizeof(struct iphdr)); in encap_v4()
590 __u16 *pkt_bytes, void *data, in process_l3_headers_v6() argument
603 *pkt_bytes = bpf_ntohs(ip6h->payload_len); in process_l3_headers_v6()
621 __u16 *pkt_bytes, void *data, in process_l3_headers_v4() argument
634 *pkt_bytes = bpf_ntohs(iph->tot_len); in process_l3_headers_v4()
664 __u16 pkt_bytes; in process_packet() local
671 &pkt_bytes, data, data_end); in process_packet()
674 &pkt_bytes, data, data_end); in process_packet()
736 if (!encap_v6(xdp, cval, &pckt, dst, pkt_bytes)) in process_packet()
739 if (!encap_v4(xdp, cval, &pckt, dst, pkt_bytes)) in process_packet()
747 data_stats->v2 += pkt_bytes; in process_packet()