Searched refs:eth (Results 1 – 7 of 7) sorted by relevance
| /samples/bpf/ |
| A D | tc_l2_redirect_kern.c | 62 struct eth_hdr *eth = data; in _l2_to_iptun_ingress_forward() local 66 if (data + sizeof(*eth) > data_end) in _l2_to_iptun_ingress_forward() 73 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_forward() 111 struct eth_hdr *eth = data; in _l2_to_iptun_ingress_redirect() local 115 if (data + sizeof(*eth) > data_end) in _l2_to_iptun_ingress_redirect() 122 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_redirect() 150 struct eth_hdr *eth = data; in _l2_to_ip6tun_ingress_redirect() local 154 if (data + sizeof(*eth) > data_end) in _l2_to_ip6tun_ingress_redirect() 161 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_ip6tun_ingress_redirect() 204 struct eth_hdr *eth = data; in _drop_non_tun_vip() local [all …]
|
| A D | parse_simple.c | 30 struct eth_hdr *eth = data; in handle_ingress() local 31 struct iphdr *iph = data + sizeof(*eth); in handle_ingress() 32 struct udphdr *udp = data + sizeof(*eth) + sizeof(*iph); in handle_ingress() 36 if (data + sizeof(*eth) + sizeof(*iph) + sizeof(*udp) > data_end) in handle_ingress() 39 if (eth->h_proto != htons(ETH_P_IP)) in handle_ingress()
|
| A D | xdp_adjust_tail_kern.c | 50 struct ethhdr *eth; in swap_mac() local 52 eth = data; in swap_mac() 53 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() 55 eth->h_proto = orig_eth->h_proto; in swap_mac() 142 struct ethhdr *eth = data; in _xdp_icmp() local 145 if (eth + 1 > data_end) in _xdp_icmp() 148 h_proto = eth->h_proto; in _xdp_icmp()
|
| A D | xdp_fwd_kern.c | 48 struct ethhdr *eth = data; in xdp_fwd_flags() local 55 nh_off = sizeof(*eth); in xdp_fwd_flags() 61 h_proto = eth->h_proto; in xdp_fwd_flags() 138 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 D | xdp_router_ipv4.bpf.c | 78 struct ethhdr *eth = data; in xdp_router_ipv4_prog() local 79 u64 nh_off = sizeof(*eth); in xdp_router_ipv4_prog() 91 h_proto = eth->h_proto; in xdp_router_ipv4_prog() 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 D | parse_varlen.c | 116 struct ethhdr *eth = data; in handle_ingress() local 120 nh_off = sizeof(*eth); in handle_ingress() 124 h_proto = eth->h_proto; in handle_ingress()
|
| A D | xdp_tx_iptunnel_kern.c | 220 struct ethhdr *eth = data; in _xdp_tx_iptunnel() local 223 if (eth + 1 > data_end) in _xdp_tx_iptunnel() 226 h_proto = eth->h_proto; in _xdp_tx_iptunnel()
|
Completed in 11 milliseconds