Home
last modified time | relevance | path

Searched refs:tot_len (Results 1 – 18 of 18) sorted by relevance

/tools/testing/selftests/bpf/progs/
Dtest_tc_neigh_fib.c43 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()
Dtest_tc_tunnel.c105 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() local
269 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()
Dtest_lwt_ip_encap.c39 hdr.iph.tot_len = bpf_htons(skb->len + sizeof(struct encap_hdr)); in bpf_lwt_encap_gre()
Dtest_xdp_loop.c102 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4()
132 iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); in handle_ipv4()
Dtest_xdp.c106 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4()
136 iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); in handle_ipv4()
Dxdping_kern.c78 if (bpf_ntohs(iph->tot_len) - sizeof(*iph) != ICMP_ECHO_LEN) in icmp_check()
Dtest_cls_redirect.c510 encap_gre->ip.tot_len = in forward_with_gre()
511 bpf_htons(bpf_ntohs(encap_gre->ip.tot_len) + delta); in forward_with_gre()
Dtest_xdp_noinline.c356 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()
Dtest_l4lb_noinline.c376 pkt_bytes = bpf_ntohs(iph->tot_len); in process_packet()
Dtest_l4lb.c379 pkt_bytes = bpf_ntohs(iph->tot_len); in process_packet()
/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c114 .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 =
/tools/testing/selftests/net/
Dtxring_overwrite.c61 iph->tot_len = htons(blen - off); in build_packet()
Dpsock_snd.c124 iph->tot_len = htons(sizeof(*iph) + sizeof(struct udphdr) + payload_len); in build_ipv4_header()
Dpsock_tpacket.c164 ip->tot_len = htons((uint16_t) *len - sizeof(*eth)); in create_payload()
Dmsg_zerocopy.c270 iph->tot_len = htons(sizeof(*iph) + payload_len); in setup_iph()
/tools/testing/selftests/bpf/
Dnetwork_helpers.c30 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
Dtest_flow_dissector.c175 iph->tot_len = htons(sizeof(*iph) + payload_len); in build_ipv4_header()
/tools/include/uapi/linux/
Dbpf.h4882 __u16 tot_len; member