Home
last modified time | relevance | path

Searched refs:set_ethhdr (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/samples/bpf/
Dxdp_tx_iptunnel_kern.c67 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() function
127 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IP)); in handle_ipv4()
199 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IPV6)); in handle_ipv6()
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_xdp.c70 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() function
128 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
197 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); in handle_ipv6()