Home
last modified time | relevance | path

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

/samples/bpf/
Dtc_l2_redirect_kern.c50 if (eth_proto == htons(ETH_P_IP)) in is_vip_addr()
76 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_forward()
127 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_redirect()
166 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_ip6tun_ingress_redirect()
216 if (eth->h_proto == htons(ETH_P_IP)) { in _drop_non_tun_vip()
Dparse_simple.c39 if (eth->h_proto != htons(ETH_P_IP)) in handle_ingress()
Dparse_ldabs.c32 if (load_half(skb, offsetof(struct ethhdr, h_proto)) != ETH_P_IP) in handle_ingress()
Dxdp_fwd_kern.c62 if (h_proto == htons(ETH_P_IP)) { in xdp_fwd_flags()
133 if (h_proto == htons(ETH_P_IP)) in xdp_fwd_flags()
Dsockex3_kern.c53 case ETH_P_IP: in parse_eth_proto()
175 parse_eth_proto(skb, ETH_P_IP); in parse_ip_proto()
272 parse_eth_proto(skb, ETH_P_IP); in PROG()
Dsockex2_kern.c120 if (likely(proto == ETH_P_IP)) in flow_dissector()
158 if (proto == ETH_P_IP) in flow_dissector()
Dxdp1_kern.c81 if (h_proto == htons(ETH_P_IP)) in xdp_prog1()
Dxdp2_kern.c97 if (h_proto == htons(ETH_P_IP)) in xdp_prog1()
Dxdp_tx_iptunnel_kern.c127 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IP)); in handle_ipv4()
228 if (h_proto == htons(ETH_P_IP)) in _xdp_tx_iptunnel()
Dxdp_sample.bpf.h16 #define ETH_P_IP 0x0800 macro
Dxdp_redirect_cpu.bpf.c281 case ETH_P_IP: in xdp_prognum3_proto_separate()
348 case ETH_P_IP: in xdp_prognum4_ddos_filter_pktgen()
470 case ETH_P_IP: in xdp_prognum5_lb_hash_ip_pairs()
Dparse_varlen.c144 if (h_proto == htons(ETH_P_IP)) in handle_ingress()
Dxdp_adjust_tail_kern.c149 if (h_proto == htons(ETH_P_IP)) in _xdp_icmp()
Dxdp_router_ipv4_kern.c140 } else if (h_proto == htons(ETH_P_IP)) { in xdp_router_ipv4_prog()
Dtest_lwt_bpf.c179 ehdr.h_proto = __constant_htons(ETH_P_IP); in __do_push_ll_and_redirect()
Dxdpsock_user.c762 eth_hdr->h_proto = htons(ETH_P_IP); in gen_eth_hdr_data()