Home
last modified time | relevance | path

Searched refs:tot_len (Results 1 – 21 of 21) 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.c121 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() local
312 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()
Dtest_lwt_ip_encap.c39 hdr.iph.tot_len = bpf_htons(skb->len + sizeof(struct encap_hdr)); in bpf_lwt_encap_gre()
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()
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()
Dxdping_kern.c78 if (bpf_ntohs(iph->tot_len) - sizeof(*iph) != ICMP_ECHO_LEN) in icmp_check()
Dtest_cls_redirect.c517 encap_gre->ip.tot_len = in forward_with_gre()
518 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.c379 pkt_bytes = bpf_ntohs(iph->tot_len); in process_packet()
Dtest_l4lb_noinline.c376 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 =
Dxdp_bonding.c244 iph->tot_len = htons(sizeof(buf) - ETH_HLEN); in send_udp_packets()
/tools/testing/selftests/net/
Dtxring_overwrite.c61 iph->tot_len = htons(blen - off); in build_packet()
Dgro.c243 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()
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()
Dxdpxceiver.c212 ip_hdr->tot_len = htons(IP_PKT_SIZE); in gen_ip_hdr()
/tools/include/uapi/linux/
Dbpf.h6088 __u16 tot_len; /* L3 length from network hdr (iph->tot_len) */ member