Home
last modified time | relevance | path

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

123

/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()
/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/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/linux-kselftest/tools/testing/selftests/bpf/
Dbpf_flow.c97 case bpf_htons(ETH_P_IP): in parse_eth_proto()
148 return parse_eth_proto(skb, bpf_htons(ETH_P_IP)); in parse_ip_proto()
249 keys->addr_proto = ETH_P_IP; in PROG()
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.c36 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in process()
Dtest_sk_lookup_kern.c30 if (eth_proto == bpf_htons(ETH_P_IP)) { in get_tuple()
Dtest_select_reuseport_kern.c85 if (data_check.eth_protocol == bpf_htons(ETH_P_IP)) { in _select_by_skb_data()
/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.c124 rtnl_cls_set_protocol(cls, ETH_P_IP); in u32_add_filter_on_ht_with_hashmask()
173 rtnl_cls_set_protocol(cls, ETH_P_IP); in u32_add_ht()
Dtest-complex-HTB-with-hash-filters.c163 rtnl_cls_set_protocol(cls, ETH_P_IP); in u32_add_filter_on_ht()
215 rtnl_cls_set_protocol(cls, ETH_P_IP); in u32_add_filter_on_ht_with_hashmask()
261 rtnl_cls_set_protocol(cls, ETH_P_IP); in u32_add_ht()
/external/libnl/include/linux-private/linux/
Dif_ether.h45 #define ETH_P_IP 0x0800 /* Internet Protocol packet */ macro
/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/kernel-headers/original/uapi/linux/
Dif_ether.h52 #define ETH_P_IP 0x0800 /* Internet Protocol packet */ macro
/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()
Dns-icmpv4_sender.c323 fake_p->saddr_ll.sll_protocol = htons(ETH_P_IP); /* IPv4 */ in complete_eth_addrs()
552 sock_fd = socket(AF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); in send_packets()
/external/iproute2/lib/
Dll_proto.c85 { ETH_P_IP, "ipv4" },
/external/iproute2/bridge/
Dmdb.c141 af = e->addr.proto == htons(ETH_P_IP) ? AF_INET : AF_INET6; in print_mdb_entry()
438 entry.addr.proto = htons(ETH_P_IP); in mdb_modify()
/external/wpa_supplicant_8/src/utils/
Dcommon.h326 #ifndef ETH_P_IP
327 #define ETH_P_IP 0x0800 macro

123