/tools/testing/selftests/net/ |
D | nat6to4.c | 51 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/ |
D | test_xdp.c | 68 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()
|
D | test_xdp_loop.c | 64 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()
|
D | test_tc_neigh.c | 46 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()
|
D | test_tc_neigh_fib.c | 31 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()
|
D | test_xdp_dynptr.c | 23 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()
|
D | test_tcp_check_syncookie_kern.c | 50 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()
|
D | test_queue_stack_map.h | 32 struct ethhdr *eth = (struct ethhdr *)(data); in _test()
|
D | test_cls_redirect.h | 52 struct ethhdr eth; 58 struct ethhdr eth;
|
D | test_pkt_access.c | 91 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()
|
D | dynptr_fail.c | 256 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 …]
|
D | test_xdp_do_redirect.c | 6 #define HDR_SZ (sizeof(struct ethhdr) + sizeof(struct ipv6hdr) + sizeof(struct udphdr)) 69 struct ipv6hdr *iph = data + sizeof(struct ethhdr); in check_pkt()
|
D | xdp_redirect_multi_kern.c | 43 struct ethhdr *eth = data; in xdp_redirect_map_multi_prog() 79 struct ethhdr *eth = data; in xdp_devmap_prog()
|
D | xdp_features.c | 69 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()
|
D | test_tc_bpf.c | 20 struct iphdr *iph = (void *)(long)skb->data + sizeof(struct ethhdr); in pkt_ptr()
|
D | test_tc_edt.c | 87 if (data + sizeof(struct ethhdr) > data_end) in handle_ipv4() 89 iph = (struct iphdr *)(data + sizeof(struct ethhdr)); in handle_ipv4()
|
D | xdpwall.c | 106 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()
|
D | xdping_kern.c | 63 struct ethhdr *eth = data; in icmp_check() 94 struct ethhdr *eth = data; in xdping_client() 156 struct ethhdr *eth = data; in xdping_server()
|
D | load_bytes_relative.c | 23 struct ethhdr eth; in load_bytes_relative()
|
D | test_btf_skc_cls_ingress.c | 152 struct ethhdr *eth; in cls_ingress() 157 eth = (struct ethhdr *)(long)(skb->data); in cls_ingress()
|
D | test_assign_reuse.c | 111 struct ethhdr *eth; in tc_main() 113 eth = (struct ethhdr *)(data); in tc_main()
|
D | skb_pkt_end.c | 16 struct ethhdr *eth; in get_iphdr()
|
D | test_xdp_vlan.c | 57 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/ |
D | network_helpers.h | 31 struct ethhdr eth; 39 struct ethhdr eth;
|
/tools/testing/selftests/bpf/prog_tests/ |
D | xdp.c | 36 memcpy(&iph, buf + sizeof(struct ethhdr), sizeof(iph)); in test_xdp() 47 memcpy(&iph6, buf + sizeof(struct ethhdr), sizeof(iph6)); in test_xdp()
|