Home
last modified time | relevance | path

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

123

/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector.c113 .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 Dlwt_redirect.c111 .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 Dxdp_metadata.h4 #ifndef ETH_P_IP
5 #define ETH_P_IP 0x0800 macro
/tools/testing/selftests/bpf/progs/
A Dtest_tc_tunnel.c248 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 Dtest_tc_link.c38 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 Dip_check_defrag.c9 #define ETH_P_IP 0x0800 macro
95 case ETH_P_IP: in defrag()
A Dxdp_redirect_map.c51 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 Dtest_tc_neigh.c93 case __bpf_constant_htons(ETH_P_IP): in tc_dst()
118 case __bpf_constant_htons(ETH_P_IP): in tc_src()
A Dxdp_flowtable.c7 #define ETH_P_IP 0x0800 macro
83 case bpf_htons(ETH_P_IP): { in xdp_flowtable_do_lookup()
A Dexceptions.c10 #ifndef ETH_P_IP
11 #define ETH_P_IP 0x0800 macro
35 if (i == ETH_P_IP) in global2static()
A Dtest_btf_skc_cls_ingress.c80 case bpf_htons(ETH_P_IP): in handle_ip_tcp()
189 if (eth->h_proto != bpf_htons(ETH_P_IP) && in cls_ingress()
A Dbpf_flow.c121 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 Dvrf_socket_lookup.c29 if (eth->h_proto != bpf_htons(ETH_P_IP)) in socket_lookup()
A Dtest_migrate_reuseport.c56 case ETH_P_IP: { in drop_ack()
A Dtest_tc_edt.c104 if (skb->protocol == bpf_htons(ETH_P_IP)) in tc_prog()
A Dtest_xdp.c127 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 Dtest_xdp_loop.c123 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 Dxdp_redirect_multi_kern.c66 if (h_proto == ETH_P_IP) { in xdp_redirect_map_multi_prog()
A Dtest_pkt_access.c115 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in test_pkt_access()
A Dxdp_metadata.c53 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in rx()
A Dtest_xdp_dynptr.c132 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 Dxdp_hw_metadata.c50 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in rx()
/tools/testing/selftests/net/
A Dnat6to4.bpf.c92 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 Dpsock_snd.c109 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 Dtxring_overwrite.c51 eth->h_proto = htons(ETH_P_IP); in build_packet()
79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); in setup_rx()

Completed in 34 milliseconds

123