| /tools/testing/selftests/bpf/prog_tests/ |
| A D | flow_dissector.c | 113 .addr_proto = ETH_P_IP, 115 .n_proto = __bpf_constant_htons(ETH_P_IP), 157 .addr_proto = ETH_P_IP, 159 .n_proto = __bpf_constant_htons(ETH_P_IP), 205 .addr_proto = ETH_P_IP, 207 .n_proto = __bpf_constant_htons(ETH_P_IP), 231 .addr_proto = ETH_P_IP, 379 .addr_proto = ETH_P_IP, 408 .addr_proto = ETH_P_IP, 459 .addr_proto = ETH_P_IP, [all …]
|
| A D | lwt_redirect.c | 111 .sll_protocol = htons(ETH_P_IP), in new_packet_sock() 148 if (eth->h_proto == htons(ETH_P_IP)) in expect_icmp()
|
| /tools/testing/selftests/bpf/ |
| A D | xdp_metadata.h | 4 #ifndef ETH_P_IP 5 #define ETH_P_IP 0x0800 macro
|
| /tools/testing/selftests/bpf/progs/ |
| A D | test_tc_tunnel.c | 248 eth.h_proto = bpf_htons(ETH_P_IP); in __encap_ipv4() 437 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none() 438 return encap_ipv4(skb, IPPROTO_IPIP, ETH_P_IP); in __encap_ipip_none() 446 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none() 447 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_IP); in __encap_gre_none() 455 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls() 464 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth() 473 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_none() 474 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP); in __encap_udp_none() 512 return encap_ipv4(skb, IPPROTO_IPV6, ETH_P_IP); in __encap_sit_none() [all …]
|
| A D | test_tc_link.c | 38 if (skb->protocol != __bpf_constant_htons(ETH_P_IP)) in tc1() 42 seen_eth = eth.h_proto == bpf_htons(ETH_P_IP); in tc1() 96 if (skb->protocol != __bpf_constant_htons(ETH_P_IP)) in tc7()
|
| A D | ip_check_defrag.c | 9 #define ETH_P_IP 0x0800 macro 95 case ETH_P_IP: in defrag()
|
| A D | xdp_redirect_map.c | 51 if (bpf_htons(eth->h_proto) == ETH_P_IP) { in xdp_count() 98 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in store_mac()
|
| A D | test_tc_neigh.c | 93 case __bpf_constant_htons(ETH_P_IP): in tc_dst() 118 case __bpf_constant_htons(ETH_P_IP): in tc_src()
|
| A D | xdp_flowtable.c | 7 #define ETH_P_IP 0x0800 macro 83 case bpf_htons(ETH_P_IP): { in xdp_flowtable_do_lookup()
|
| A D | exceptions.c | 10 #ifndef ETH_P_IP 11 #define ETH_P_IP 0x0800 macro 35 if (i == ETH_P_IP) in global2static()
|
| A D | test_btf_skc_cls_ingress.c | 80 case bpf_htons(ETH_P_IP): in handle_ip_tcp() 189 if (eth->h_proto != bpf_htons(ETH_P_IP) && in cls_ingress()
|
| A D | bpf_flow.c | 121 case bpf_htons(ETH_P_IP): in parse_eth_proto() 148 if (keys->n_proto == bpf_htons(ETH_P_IP)) { in _dissect() 186 return parse_eth_proto(skb, bpf_htons(ETH_P_IP)); in parse_ip_proto() 291 keys->addr_proto = ETH_P_IP; in PROG()
|
| A D | vrf_socket_lookup.c | 29 if (eth->h_proto != bpf_htons(ETH_P_IP)) in socket_lookup()
|
| A D | test_migrate_reuseport.c | 56 case ETH_P_IP: { in drop_ack()
|
| A D | test_tc_edt.c | 104 if (skb->protocol == bpf_htons(ETH_P_IP)) in tc_prog()
|
| A D | test_xdp.c | 127 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4() 225 if (h_proto == bpf_htons(ETH_P_IP)) in _xdp_tx_iptunnel()
|
| A D | test_xdp_loop.c | 123 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4() 221 if (h_proto == bpf_htons(ETH_P_IP)) in _xdp_tx_iptunnel()
|
| A D | xdp_redirect_multi_kern.c | 66 if (h_proto == ETH_P_IP) { in xdp_redirect_map_multi_prog()
|
| A D | test_pkt_access.c | 115 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in test_pkt_access()
|
| A D | xdp_metadata.c | 53 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in rx()
|
| A D | test_xdp_dynptr.c | 132 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4() 247 if (h_proto == bpf_htons(ETH_P_IP)) in _xdp_tx_iptunnel()
|
| A D | xdp_hw_metadata.c | 50 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in rx()
|
| /tools/testing/selftests/net/ |
| A D | nat6to4.bpf.c | 92 eth2.h_proto = bpf_htons(ETH_P_IP); // But replace the ethertype in sched_cls_ingress6_nat_6_prog() 130 if (bpf_skb_change_proto(skb, bpf_htons(ETH_P_IP), 0)) in sched_cls_ingress6_nat_6_prog() 159 if (skb->protocol != bpf_htons(ETH_P_IP)) in sched_cls_egress4_snat4_prog() 167 if (eth->h_proto != bpf_htons(ETH_P_IP)) in sched_cls_egress4_snat4_prog()
|
| A D | psock_snd.c | 109 tag[1] = htons(ETH_P_IP); in build_eth_header() 113 eth->h_proto = htons(ETH_P_IP); in build_eth_header() 175 laddr.sll_protocol = htons(ETH_P_IP); in do_bind() 202 laddr.sll_protocol = htons(ETH_P_IP); in do_send()
|
| A D | txring_overwrite.c | 51 eth->h_proto = htons(ETH_P_IP); in build_packet() 79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); in setup_rx()
|