Home
last modified time | relevance | path

Searched refs:ethhdr (Results 1 – 25 of 56) sorted by relevance

123

/tools/testing/selftests/net/
Dnat6to4.c51 const int l2_header_size = sizeof(struct ethhdr); in sched_cls_ingress6_nat_6_prog()
54 const struct ethhdr * const eth = data; // used iff is_ethernet in sched_cls_ingress6_nat_6_prog()
89 struct ethhdr eth2; // used iff is_ethernet in sched_cls_ingress6_nat_6_prog()
139 struct ethhdr *new_eth = data; in sched_cls_ingress6_nat_6_prog()
152 const int l2_header_size = sizeof(struct ethhdr); in sched_cls_egress4_snat4_prog()
155 const struct ethhdr *const eth = data; // used iff is_ethernet in sched_cls_egress4_snat4_prog()
224 struct ethhdr eth2; // used iff is_ethernet in sched_cls_egress4_snat4_prog()
276 struct ethhdr *new_eth = data; in sched_cls_egress4_snat4_prog()
/tools/testing/selftests/bpf/progs/
Dtest_xdp.c68 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr()
69 const struct ethhdr *old_eth, in set_ethhdr()
83 struct ethhdr *new_eth; in handle_ipv4()
84 struct ethhdr *old_eth; in handle_ipv4()
85 struct iphdr *iph = data + sizeof(struct ethhdr); in handle_ipv4()
156 struct ethhdr *new_eth; in handle_ipv6()
157 struct ethhdr *old_eth; in handle_ipv6()
158 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in handle_ipv6()
216 struct ethhdr *eth = data; in _xdp_tx_iptunnel()
Dtest_xdp_loop.c64 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr()
65 const struct ethhdr *old_eth, in set_ethhdr()
79 struct ethhdr *new_eth; in handle_ipv4()
80 struct ethhdr *old_eth; in handle_ipv4()
81 struct iphdr *iph = data + sizeof(struct ethhdr); in handle_ipv4()
152 struct ethhdr *new_eth; in handle_ipv6()
153 struct ethhdr *old_eth; in handle_ipv6()
154 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in handle_ipv6()
212 struct ethhdr *eth = data; in _xdp_tx_iptunnel()
Dtest_tc_neigh.c46 if (data + sizeof(struct ethhdr) > data_end) in is_remote_ep_v4()
49 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr)); in is_remote_ep_v4()
63 if (data + sizeof(struct ethhdr) > data_end) in is_remote_ep_v6()
66 ip6h = (struct ipv6hdr *)(data + sizeof(struct ethhdr)); in is_remote_ep_v6()
80 if (data + sizeof(struct ethhdr) > data_end) in tc_chk()
Dtest_tc_neigh_fib.c31 if (data + sizeof(struct ethhdr) > data_end) in fill_fib_params_v4()
34 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr)); in fill_fib_params_v4()
59 if (data + sizeof(struct ethhdr) > data_end) in fill_fib_params_v6()
62 ip6h = (struct ipv6hdr *)(data + sizeof(struct ethhdr)); in fill_fib_params_v6()
85 if (data + sizeof(struct ethhdr) > data_end) in tc_chk()
129 struct ethhdr *eth = ctx_ptr(skb->data); in tc_redir()
Dtest_xdp_dynptr.c23 const size_t ethhdr_sz = sizeof(struct ethhdr);
67 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr()
68 const struct ethhdr *old_eth, in set_ethhdr()
84 struct ethhdr *new_eth; in handle_ipv4()
85 struct ethhdr *old_eth; in handle_ipv4()
130 old_eth = (struct ethhdr *)(iph + 1); in handle_ipv4()
166 struct ethhdr *new_eth; in handle_ipv6()
167 struct ethhdr *old_eth; in handle_ipv6()
209 old_eth = (struct ethhdr *)(ip6h + 1); in handle_ipv6()
235 struct ethhdr *eth; in _xdp_tx_iptunnel()
Dtest_tcp_check_syncookie_kern.c50 struct ethhdr *ethh; in check_syncookie()
66 ipv4h = data + sizeof(struct ethhdr); in check_syncookie()
73 tcph = data + sizeof(struct ethhdr) + sizeof(struct iphdr); in check_syncookie()
98 ipv6h = data + sizeof(struct ethhdr); in check_syncookie()
105 tcph = data + sizeof(struct ethhdr) + sizeof(struct ipv6hdr); in check_syncookie()
Dtest_queue_stack_map.h32 struct ethhdr *eth = (struct ethhdr *)(data); in _test()
Dtest_cls_redirect.h52 struct ethhdr eth;
58 struct ethhdr eth;
Dtest_pkt_access.c91 if (off > sizeof(struct ethhdr) + sizeof(struct ipv6hdr)) in test_pkt_write_access_subprog()
107 struct ethhdr *eth = (struct ethhdr *)(data); in test_pkt_access()
Ddynptr_fail.c256 struct ethhdr *hdr; in data_slice_out_of_bounds_skb()
1076 struct ethhdr *hdr; in skb_invalid_slice_write()
1097 struct ethhdr *hdr; in skb_invalid_data_slice1()
1123 struct ethhdr *hdr; in skb_invalid_data_slice2()
1150 struct ethhdr *hdr; in skb_invalid_data_slice3()
1176 struct ethhdr *hdr; in skb_invalid_data_slice4()
1200 struct ethhdr *hdr; in xdp_invalid_data_slice1()
1225 struct ethhdr *hdr; in xdp_invalid_data_slice2()
1287 __u32 hdr_size = sizeof(struct ethhdr);
1294 struct ethhdr *hdr; in dynptr_slice_var_len1()
[all …]
Dtest_xdp_do_redirect.c6 #define HDR_SZ (sizeof(struct ethhdr) + sizeof(struct ipv6hdr) + sizeof(struct udphdr))
69 struct ipv6hdr *iph = data + sizeof(struct ethhdr); in check_pkt()
Dxdp_redirect_multi_kern.c43 struct ethhdr *eth = data; in xdp_redirect_map_multi_prog()
79 struct ethhdr *eth = data; in xdp_devmap_prog()
Dxdp_features.c69 struct ethhdr *eh = data; in xdp_process_echo_packet()
74 if (eh + 1 > (struct ethhdr *)data_end) in xdp_process_echo_packet()
203 struct ethhdr *eh = data; in xdp_do_tx()
255 struct ethhdr *eh = data; in xdp_do_redirect_cpumap()
Dtest_tc_bpf.c20 struct iphdr *iph = (void *)(long)skb->data + sizeof(struct ethhdr); in pkt_ptr()
Dtest_tc_edt.c87 if (data + sizeof(struct ethhdr) > data_end) in handle_ipv4()
89 iph = (struct iphdr *)(data + sizeof(struct ethhdr)); in handle_ipv4()
Dxdpwall.c106 static __always_inline struct ethhdr *parse_ethhdr(void *data, void *data_end) in parse_ethhdr()
108 struct ethhdr *eth = data; in parse_ethhdr()
301 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in parse_ipv6_gue()
309 info->trans_hdr_offset = sizeof(struct ethhdr) + sizeof(struct ipv6hdr); in parse_ipv6_gue()
325 struct ethhdr *eth; in edgewall()
Dxdping_kern.c63 struct ethhdr *eth = data; in icmp_check()
94 struct ethhdr *eth = data; in xdping_client()
156 struct ethhdr *eth = data; in xdping_server()
Dload_bytes_relative.c23 struct ethhdr eth; in load_bytes_relative()
Dtest_btf_skc_cls_ingress.c152 struct ethhdr *eth; in cls_ingress()
157 eth = (struct ethhdr *)(long)(skb->data); in cls_ingress()
Dtest_assign_reuse.c111 struct ethhdr *eth; in tc_main()
113 eth = (struct ethhdr *)(data); in tc_main()
Dskb_pkt_end.c16 struct ethhdr *eth; in get_iphdr()
Dtest_xdp_vlan.c57 bool parse_eth_frame(struct ethhdr *eth, void *data_end, struct parse_pkt *pkt) in parse_eth_frame()
232 struct ethhdr *orig_eth = data; in xdp_prognum3()
/tools/testing/selftests/bpf/
Dnetwork_helpers.h31 struct ethhdr eth;
39 struct ethhdr eth;
/tools/testing/selftests/bpf/prog_tests/
Dxdp.c36 memcpy(&iph, buf + sizeof(struct ethhdr), sizeof(iph)); in test_xdp()
47 memcpy(&iph6, buf + sizeof(struct ethhdr), sizeof(iph6)); in test_xdp()

123