Searched refs:tot_len (Results 1 – 18 of 18) 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()
105 iph_inner.tot_len = bpf_htons(sizeof(iph6_inner) + in encap_ipv4()162 h_outer.l4hdr.udp.len = bpf_htons(bpf_ntohs(iph_inner.tot_len) + in encap_ipv4()192 h_outer.ip.tot_len = bpf_htons(olen + in encap_ipv4()193 bpf_ntohs(h_outer.ip.tot_len)); in encap_ipv4()225 __u16 tot_len; in encap_ipv6() local269 tot_len = bpf_ntohs(iph_inner.payload_len) + sizeof(iph_inner) + in encap_ipv6()272 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()
102 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4()132 iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); in handle_ipv4()
106 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4()136 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()
510 encap_gre->ip.tot_len = in forward_with_gre()511 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()
376 pkt_bytes = bpf_ntohs(iph->tot_len); in process_packet()
379 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 =
61 iph->tot_len = htons(blen - off); in build_packet()
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()
4882 __u16 tot_len; member