Home
last modified time | relevance | path

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

123

/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c107 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
118 .addr_proto = ETH_P_IP,
120 .n_proto = __bpf_constant_htons(ETH_P_IP),
149 .vlan_proto = __bpf_constant_htons(ETH_P_IP),
160 .addr_proto = ETH_P_IP,
162 .n_proto = __bpf_constant_htons(ETH_P_IP),
193 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
206 .addr_proto = ETH_P_IP,
208 .n_proto = __bpf_constant_htons(ETH_P_IP),
219 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_tc_tunnel.c209 eth.h_proto = bpf_htons(ETH_P_IP); in encap_ipv4()
315 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none()
316 return encap_ipv4(skb, IPPROTO_IPIP, ETH_P_IP); in __encap_ipip_none()
324 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none()
325 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_IP); in __encap_gre_none()
333 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls()
342 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth()
351 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_none()
352 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP); in __encap_udp_none()
360 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_mpls()
[all …]
Dbpf_flow.c120 case bpf_htons(ETH_P_IP): in parse_eth_proto()
172 return parse_eth_proto(skb, bpf_htons(ETH_P_IP)); in parse_ip_proto()
277 keys->addr_proto = ETH_P_IP; in PROG()
Dtest_xdp_loop.c124 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
222 if (h_proto == bpf_htons(ETH_P_IP)) in _xdp_tx_iptunnel()
Dtest_xdp.c128 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
226 if (h_proto == bpf_htons(ETH_P_IP)) in _xdp_tx_iptunnel()
Dtest_pkt_access.c63 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in test_pkt_access()
Dtest_tc_edt.c104 if (skb->protocol == bpf_htons(ETH_P_IP)) in tc_prog()
/external/bcc/examples/networking/neighbor_sharing/
Dtc_neighbor_sharing.c26 case ETH_P_IP: goto ip; in classify_wan()
51 case ETH_P_IP: goto ip; in classify_neighbor()
/external/linux-kselftest/tools/testing/selftests/net/
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()
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()
/external/bcc/tests/python/
Dtest_xlate1.c26 case ETH_P_IP: goto ip; in on_packet()
36 case ETH_P_IP: goto ip; in on_packet()
Dtest_clang_complex.c76 case ETH_P_IP: goto ip; in handle_packet()
85 case ETH_P_IP: goto ip; in handle_packet()
Dtest_brb.c153 case ETH_P_IP: goto ip; in br_common()
163 case ETH_P_IP: goto ip; in br_common()
Dtest_stat1.c22 case ETH_P_IP: goto ip; in on_packet()
/external/iproute2/tc/
Df_flower.c205 if (eth_type != htons(ETH_P_IP) && eth_type != htons(ETH_P_IPV6)) in flower_parse_ip_proto()
215 if (eth_type != htons(ETH_P_IP)) in flower_parse_ip_proto()
285 if (eth_type == htons(ETH_P_IP)) { in flower_parse_ip_addr()
401 if (eth_type == htons(ETH_P_IP) && ip_proto == IPPROTO_ICMP) in flower_icmp_attr_type()
416 if (eth_type == htons(ETH_P_IP) && ip_proto == IPPROTO_ICMP) in flower_icmp_attr_mask_type()
984 if (eth_type == htons(ETH_P_IP)) in flower_print_eth_type()
1080 if (eth_type == htons(ETH_P_IP)) { in flower_print_ip_addr()
1108 return flower_print_ip_addr(f, name, htons(ETH_P_IP), in flower_print_ip4_addr()
1278 htons(ETH_P_IP) : htons(ETH_P_IPV6), in flower_print_opt()
1286 htons(ETH_P_IP) : htons(ETH_P_IPV6), in flower_print_opt()
/external/strace/xlat/
Dethernet_protocols.h216 #if defined(ETH_P_IP) || (defined(HAVE_DECL_ETH_P_IP) && HAVE_DECL_ETH_P_IP)
218 static_assert((ETH_P_IP) == (0x0800), "ETH_P_IP != 0x0800");
221 # define ETH_P_IP 0x0800
680 XLAT(ETH_P_IP),
/external/libnl/tests/
Dtest-u32-filter-with-actions.c128 rtnl_cls_set_protocol(cls, ETH_P_IP); in u32_add_filter_on_ht_with_hashmask()
179 rtnl_cls_set_protocol(cls, ETH_P_IP); in u32_add_ht()
Dtest-complex-HTB-with-hash-filters.c166 rtnl_cls_set_protocol(cls, ETH_P_IP); in u32_add_filter_on_ht()
218 rtnl_cls_set_protocol(cls, ETH_P_IP); in u32_add_filter_on_ht_with_hashmask()
264 rtnl_cls_set_protocol(cls, ETH_P_IP); in u32_add_ht()
/external/bcc/examples/networking/dns_matching/
Ddns_matching.c62 if(ethernet->type == ETH_P_IP) { in dns_matching()
/external/iproute2/include/uapi/linux/
Dif_ether.h50 #define ETH_P_IP 0x0800 /* Internet Protocol packet */ macro
/external/libnl/include/linux-private/linux/
Dif_ether.h52 #define ETH_P_IP 0x0800 /* Internet Protocol packet */ macro
/external/kernel-headers/original/uapi/linux/
Dif_ether.h52 #define ETH_P_IP 0x0800 /* Internet Protocol packet */ macro
/external/iproute2/lib/
Dll_proto.c85 { ETH_P_IP, "ipv4" },
/external/toybox/toys/pending/
Darping.c105 arp_h->ar_pro = htons(ETH_P_IP); in send_packet()
143 if (arp_hdr->ar_pro != htons(ETH_P_IP) || (arp_hdr->ar_pln != 4) in recv_from()
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmp_redirector.c332 sndarp_p->hdr.ar_pro = htons(ETH_P_IP); in return_arp_reply()
402 sndeth.hdr.h_proto = htons(ETH_P_IP); in return_icmp4_redirect()
775 case ETH_P_IP: in capture_frames()

123