Home
last modified time | relevance | path

Searched defs:iph (Results 1 – 25 of 51) sorted by relevance

123

/tools/testing/selftests/bpf/progs/
A Dtest_tc_change_tail.c17 struct iphdr *iph; in parse_ip_header() local
41 static __always_inline struct udphdr *parse_udp_header(struct __sk_buff *skb, struct iphdr *iph) in parse_udp_header()
63 struct iphdr *iph; in change_tail() local
A Dxdping_kern.c66 struct iphdr *iph; in icmp_check() local
97 struct iphdr *iph; in xdping_client() local
159 struct iphdr *iph; in xdping_server() local
A Dtest_tunnel_kern.c438 struct iphdr *iph; in veth_set_outer_dst() local
716 struct iphdr *iph = data; in ipip_set_tunnel() local
762 struct iphdr *iph = data; in ipip_gue_set_tunnel() local
801 struct iphdr *iph = data; in ipip_fou_set_tunnel() local
866 struct iphdr *iph = data; in ipip6_set_tunnel() local
915 struct ipv6hdr *iph = data; in ip6ip6_set_tunnel() local
990 struct iphdr *iph; in xfrm_get_state_xdp() local
A Dip_check_defrag.c22 static bool is_frag_v4(struct iphdr *iph) in is_frag_v4()
49 struct iphdr *iph; in handle_v4() local
A Dxdp_flowtable.c29 static bool xdp_flowtable_offload_check_iphdr(struct iphdr *iph) in xdp_flowtable_offload_check_iphdr()
84 struct iphdr *iph = data + sizeof(*eth); in xdp_flowtable_do_lookup() local
A Dtest_tc_bpf.c20 struct iphdr *iph = (void *)(long)skb->data + sizeof(struct ethhdr); in pkt_ptr() local
A Dtest_lwt_reroute.c15 struct iphdr *iph = NULL; in test_lwt_reroute() local
A Dload_bytes_relative.c24 struct iphdr iph; in load_bytes_relative() local
A Dtest_queue_stack_map.h39 struct iphdr *iph = (struct iphdr *)(eth + 1); in _test() local
A Dxdp_hw_metadata.c33 struct iphdr *iph = NULL; in rx() local
A Dxdp_metadata.c44 struct iphdr *iph = NULL; in rx() local
A Dtest_cls_redirect.c260 static INLINING void pkt_ipv4_checksum(struct iphdr *iph) in pkt_ipv4_checksum()
621 static INLINING uint64_t fill_tuple(struct bpf_sock_tuple *tuple, void *iph, in fill_tuple()
652 void *iph, struct tcphdr *tcp) in classify_tcp()
817 static INLINING verdict_t process_tcp(buf_t *pkt, void *iph, uint64_t iphlen, in process_tcp()
839 static INLINING verdict_t process_udp(buf_t *pkt, void *iph, uint64_t iphlen, in process_udp()
A Dtest_lwt_redirect.c29 struct iphdr *iph = NULL; in get_redirect_target() local
A Dvrf_socket_lookup.c23 struct iphdr *iph; in socket_lookup() local
A Dverifier_netfilter_ctx.c95 const struct iphdr *iph; in with_valid_ctx_access_test6() local
A Dtest_lwt_ip_encap.c19 struct iphdr iph; in bpf_lwt_encap_gre() member
A Dtest_tc_edt.c83 struct iphdr *iph; in handle_ipv4() local
A Dtest_assign_reuse.c118 struct iphdr *iph = (struct iphdr *)(data + sizeof(*eth)); in tc_main() local
/tools/testing/selftests/bpf/
A Dnetwork_helpers.h48 struct iphdr iph; member
56 struct ipv6hdr iph; member
137 static inline __sum16 build_ip_csum(struct iphdr *iph) in build_ip_csum()
224 static inline __sum16 build_udp_v4_csum(const struct iphdr *iph, in build_udp_v4_csum()
/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector.c20 struct iphdr iph; member
26 struct iphdr iph; member
35 struct iphdr iph; member
41 struct ipv6hdr iph; member
47 struct ipv6hdr iph; member
63 struct ipv6hdr iph; member
74 struct iphdr iph; member
A Dxdp.c15 struct iphdr iph; in test_xdp() local
A Dqueue_stack_map.c17 struct iphdr iph = {}; in test_queue_stack_map_by_type() local
/tools/testing/selftests/net/
A Dgro.c250 struct iphdr *iph = buf; in fill_networklayer() local
406 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in recompute_packet() local
584 struct iphdr *iph; in add_ipv4_ts_option() local
608 struct ipv6hdr *iph = (struct ipv6hdr *)(optpkt + ETH_HLEN); in add_ipv6_exthdr() local
624 static void fix_ip4_checksum(struct iphdr *iph) in fix_ip4_checksum()
768 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_fragment4() local
794 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_ttl() local
811 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_tos() local
833 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_ECN() local
912 struct iphdr *iph = (struct iphdr *)(buffer + ETH_HLEN); in check_recv_pkts() local
/tools/testing/selftests/net/tcp_ao/
A Dicmps-discard.c165 static void set_ip4hdr(struct iphdr *iph, size_t packet_len, int proto, in set_ip4hdr()
184 struct iphdr iph; in icmp_interfere4() member
229 static void set_ip6hdr(struct ipv6hdr *iph, size_t packet_len, int proto, in set_ip6hdr()
299 struct ipv6hdr iph; in icmp6_interfere() member
/tools/testing/selftests/net/lib/
A Dxdp_native.bpf.c80 struct iphdr *iph = data + sizeof(*eth); in filter_udphdr() local
157 struct iphdr *iph = data + sizeof(*eth); in xdp_mode_tx_handler() local
224 struct iphdr *iph = data + sizeof(*eth); in update_pkt() local

Completed in 55 milliseconds

123