Searched refs:tot_len (Results 1 – 21 of 21) sorted by relevance
43 fib_params->tot_len = bpf_ntohs(ip4h->tot_len); in fill_fib_params_v4()71 fib_params->tot_len = bpf_ntohs(ip6h->payload_len); in fill_fib_params_v6()
121 iph_inner.tot_len = bpf_htons(sizeof(iph6_inner) + in __encap_ipv4()182 h_outer.l4hdr.udp.len = bpf_htons(bpf_ntohs(iph_inner.tot_len) + in __encap_ipv4()224 h_outer.ip.tot_len = bpf_htons(olen + in __encap_ipv4()225 bpf_ntohs(h_outer.ip.tot_len)); in __encap_ipv4()264 __u16 tot_len; in __encap_ipv6() local312 tot_len = bpf_ntohs(iph_inner.payload_len) + sizeof(iph_inner) + in __encap_ipv6()315 h_outer.l4hdr.udp.len = bpf_htons(tot_len); in __encap_ipv6()
39 hdr.iph.tot_len = bpf_htons(skb->len + sizeof(struct encap_hdr)); in bpf_lwt_encap_gre()
106 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4()136 iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); in handle_ipv4()
102 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4()132 iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); in handle_ipv4()
78 if (bpf_ntohs(iph->tot_len) - sizeof(*iph) != ICMP_ECHO_LEN) in icmp_check()
517 encap_gre->ip.tot_len = in forward_with_gre()518 bpf_htons(bpf_ntohs(encap_gre->ip.tot_len) + delta); in forward_with_gre()
356 iph->tot_len = bpf_htons(pkt_bytes + sizeof(struct iphdr)); in encap_v4()675 *pkt_bytes = bpf_ntohs(iph->tot_len); in process_l3_headers_v4()
379 pkt_bytes = bpf_ntohs(iph->tot_len); in process_packet()
376 pkt_bytes = bpf_ntohs(iph->tot_len); in process_packet()
114 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),156 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),200 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),226 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),340 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),343 .iph_inner.tot_len =368 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),371 .iph_inner.tot_len =
244 iph->tot_len = htons(sizeof(buf) - ETH_HLEN); in send_udp_packets()
61 iph->tot_len = htons(blen - off); in build_packet()
243 iph->tot_len = htons(sizeof(struct tcphdr) + in fill_networklayer()389 iph->tot_len = htons(ntohs(iph->tot_len) + extlen); in recompute_packet()573 iph->tot_len = htons(ntohs(iph->tot_len) + optlen); in add_ipv4_ts_option()783 data_len = ntohs(iph->tot_len) in check_recv_pkts()
124 iph->tot_len = htons(sizeof(*iph) + sizeof(struct udphdr) + payload_len); in build_ipv4_header()
164 ip->tot_len = htons((uint16_t) *len - sizeof(*eth)); in create_payload()
270 iph->tot_len = htons(sizeof(*iph) + payload_len); in setup_iph()
30 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
175 iph->tot_len = htons(sizeof(*iph) + payload_len); in build_ipv4_header()
212 ip_hdr->tot_len = htons(IP_PKT_SIZE); in gen_ip_hdr()
6088 __u16 tot_len; /* L3 length from network hdr (iph->tot_len) */ member