Searched refs:old_eth (Results 1 - 5 of 5) sorted by relevance
/linux-master/samples/bpf/ |
H A D | xdp_tx_iptunnel_kern.c | 68 const struct ethhdr *old_eth, 72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); 83 struct ethhdr *old_eth; local 120 old_eth = data + sizeof(*iph); 123 old_eth + 1 > data_end || 127 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IP)); 158 struct ethhdr *old_eth; local 192 old_eth = data + sizeof(*ip6h); 195 old_eth + 1 > data_end || 199 set_ethhdr(new_eth, old_eth, tn 67 set_ethhdr(struct ethhdr *new_eth, const struct ethhdr *old_eth, const struct iptnl_info *tnl, __be16 h_proto) argument [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp.c | 70 const struct ethhdr *old_eth, 74 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); 85 struct ethhdr *old_eth; local 120 old_eth = data + sizeof(*iph); 123 old_eth + 1 > data_end || 127 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); 158 struct ethhdr *old_eth; local 190 old_eth = data + sizeof(*ip6h); 192 if (new_eth + 1 > data_end || old_eth + 1 > data_end || 196 set_ethhdr(new_eth, old_eth, tn 69 set_ethhdr(struct ethhdr *new_eth, const struct ethhdr *old_eth, const struct iptnl_info *tnl, __be16 h_proto) argument [all...] |
H A D | test_xdp_loop.c | 66 const struct ethhdr *old_eth, 70 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); 81 struct ethhdr *old_eth; local 116 old_eth = data + sizeof(*iph); 119 old_eth + 1 > data_end || 123 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); 154 struct ethhdr *old_eth; local 186 old_eth = data + sizeof(*ip6h); 188 if (new_eth + 1 > data_end || old_eth + 1 > data_end || 192 set_ethhdr(new_eth, old_eth, tn 65 set_ethhdr(struct ethhdr *new_eth, const struct ethhdr *old_eth, const struct iptnl_info *tnl, __be16 h_proto) argument [all...] |
H A D | test_xdp_dynptr.c | 68 const struct ethhdr *old_eth, 72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); 85 struct ethhdr *old_eth; local 130 old_eth = (struct ethhdr *)(iph + 1); 132 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); 167 struct ethhdr *old_eth; local 209 old_eth = (struct ethhdr *)(ip6h + 1); 211 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); 67 set_ethhdr(struct ethhdr *new_eth, const struct ethhdr *old_eth, const struct iptnl_info *tnl, __be16 h_proto) argument
|
H A D | test_xdp_noinline.c | 284 struct eth_hdr *old_eth; local 296 old_eth = data + sizeof(struct ipv6hdr); 298 old_eth + 1 > data_end || ip6h + 1 > data_end) 301 memcpy(new_eth->eth_source, old_eth->eth_dest, 6); 329 struct eth_hdr *old_eth; local 344 old_eth = data + sizeof(struct iphdr); 346 old_eth + 1 > data_end || iph + 1 > data_end) 349 memcpy(new_eth->eth_source, old_eth->eth_dest, 6);
|
Completed in 121 milliseconds