Home
last modified time | relevance | path

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

/samples/bpf/
A Dparse_simple.c21 unsigned char h_dest[ETH_ALEN];
22 unsigned char h_source[ETH_ALEN];
A Dnet_shared.h8 #define ETH_ALEN 6 macro
A Dxdp_router_ipv4.bpf.c12 #define ETH_ALEN 6 macro
168 __builtin_memcpy(eth->h_dest, dest_mac, ETH_ALEN); in xdp_router_ipv4_prog()
169 __builtin_memcpy(eth->h_source, src_mac, ETH_ALEN); in xdp_router_ipv4_prog()
A Dxdp_fwd_kern.c138 memcpy(eth->h_dest, fib_params.dmac, ETH_ALEN); in xdp_fwd_flags()
139 memcpy(eth->h_source, fib_params.smac, ETH_ALEN); in xdp_fwd_flags()
A Dxdp_adjust_tail_kern.c53 memcpy(eth->h_source, orig_eth->h_dest, ETH_ALEN); in swap_mac()
54 memcpy(eth->h_dest, orig_eth->h_source, ETH_ALEN); in swap_mac()
A Dtc_l2_redirect_kern.c35 unsigned char h_dest[ETH_ALEN];
36 unsigned char h_source[ETH_ALEN];
A Dtcbpf1_kern.c18 bpf_skb_store_bytes(skb, 0, mac, ETH_ALEN, 1); in set_dst_mac()

Completed in 6 milliseconds