Home
last modified time | relevance | path

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

/Linux-v4.19/samples/bpf/
Dxdp_adjust_tail_kern.c45 static __always_inline void swap_mac(void *data, struct ethhdr *orig_eth) in swap_mac() argument
50 memcpy(eth->h_source, orig_eth->h_dest, ETH_ALEN); in swap_mac()
51 memcpy(eth->h_dest, orig_eth->h_source, ETH_ALEN); in swap_mac()
52 eth->h_proto = orig_eth->h_proto; in swap_mac()
81 struct ethhdr *orig_eth; in send_icmp4_too_big() local
85 orig_eth = data + headroom; in send_icmp4_too_big()
86 swap_mac(data, orig_eth); in send_icmp4_too_big()