Searched refs:old_eth (Results 1 – 5 of 5) sorted by relevance
/Linux-v6.6/samples/bpf/ |
D | xdp_tx_iptunnel_kern.c | 68 const struct ethhdr *old_eth, in set_ethhdr() argument 72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr() 83 struct ethhdr *old_eth; in handle_ipv4() local 120 old_eth = data + sizeof(*iph); in handle_ipv4() 123 old_eth + 1 > data_end || in handle_ipv4() 127 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IP)); in handle_ipv4() 158 struct ethhdr *old_eth; in handle_ipv6() local 192 old_eth = data + sizeof(*ip6h); in handle_ipv6() 195 old_eth + 1 > data_end || in handle_ipv6() 199 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IPV6)); in handle_ipv6()
|
/Linux-v6.6/tools/testing/selftests/bpf/progs/ |
D | test_xdp.c | 69 const struct ethhdr *old_eth, in set_ethhdr() argument 73 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr() 84 struct ethhdr *old_eth; in handle_ipv4() local 119 old_eth = data + sizeof(*iph); in handle_ipv4() 122 old_eth + 1 > data_end || in handle_ipv4() 126 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4() 157 struct ethhdr *old_eth; in handle_ipv6() local 189 old_eth = data + sizeof(*ip6h); in handle_ipv6() 191 if (new_eth + 1 > data_end || old_eth + 1 > data_end || in handle_ipv6() 195 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); in handle_ipv6()
|
D | test_xdp_loop.c | 65 const struct ethhdr *old_eth, in set_ethhdr() argument 69 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr() 80 struct ethhdr *old_eth; in handle_ipv4() local 115 old_eth = data + sizeof(*iph); in handle_ipv4() 118 old_eth + 1 > data_end || in handle_ipv4() 122 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4() 153 struct ethhdr *old_eth; in handle_ipv6() local 185 old_eth = data + sizeof(*ip6h); in handle_ipv6() 187 if (new_eth + 1 > data_end || old_eth + 1 > data_end || in handle_ipv6() 191 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); in handle_ipv6()
|
D | test_xdp_dynptr.c | 68 const struct ethhdr *old_eth, in set_ethhdr() argument 72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr() 85 struct ethhdr *old_eth; in handle_ipv4() local 130 old_eth = (struct ethhdr *)(iph + 1); in handle_ipv4() 132 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4() 167 struct ethhdr *old_eth; in handle_ipv6() local 209 old_eth = (struct ethhdr *)(ip6h + 1); in handle_ipv6() 211 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); in handle_ipv6()
|
D | test_xdp_noinline.c | 283 struct eth_hdr *old_eth; in encap_v6() local 295 old_eth = data + sizeof(struct ipv6hdr); in encap_v6() 297 old_eth + 1 > data_end || ip6h + 1 > data_end) in encap_v6() 300 memcpy(new_eth->eth_source, old_eth->eth_dest, 6); in encap_v6() 328 struct eth_hdr *old_eth; in encap_v4() local 343 old_eth = data + sizeof(struct iphdr); in encap_v4() 345 old_eth + 1 > data_end || iph + 1 > data_end) in encap_v4() 348 memcpy(new_eth->eth_source, old_eth->eth_dest, 6); in encap_v4()
|