/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector.c | 107 .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/ |
D | test_tc_tunnel.c | 209 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 …]
|
D | bpf_flow.c | 120 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()
|
D | test_xdp_loop.c | 124 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()
|
D | test_xdp.c | 128 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()
|
D | test_pkt_access.c | 63 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in test_pkt_access()
|
D | test_tc_edt.c | 104 if (skb->protocol == bpf_htons(ETH_P_IP)) in tc_prog()
|
/external/bcc/examples/networking/neighbor_sharing/ |
D | tc_neighbor_sharing.c | 26 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/ |
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()
|
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()
|
/external/bcc/tests/python/ |
D | test_xlate1.c | 26 case ETH_P_IP: goto ip; in on_packet() 36 case ETH_P_IP: goto ip; in on_packet()
|
D | test_clang_complex.c | 76 case ETH_P_IP: goto ip; in handle_packet() 85 case ETH_P_IP: goto ip; in handle_packet()
|
D | test_brb.c | 153 case ETH_P_IP: goto ip; in br_common() 163 case ETH_P_IP: goto ip; in br_common()
|
D | test_stat1.c | 22 case ETH_P_IP: goto ip; in on_packet()
|
/external/iproute2/tc/ |
D | f_flower.c | 205 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/ |
D | ethernet_protocols.h | 216 #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/ |
D | test-u32-filter-with-actions.c | 128 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()
|
D | test-complex-HTB-with-hash-filters.c | 166 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/ |
D | dns_matching.c | 62 if(ethernet->type == ETH_P_IP) { in dns_matching()
|
/external/iproute2/include/uapi/linux/ |
D | if_ether.h | 50 #define ETH_P_IP 0x0800 /* Internet Protocol packet */ macro
|
/external/libnl/include/linux-private/linux/ |
D | if_ether.h | 52 #define ETH_P_IP 0x0800 /* Internet Protocol packet */ macro
|
/external/kernel-headers/original/uapi/linux/ |
D | if_ether.h | 52 #define ETH_P_IP 0x0800 /* Internet Protocol packet */ macro
|
/external/iproute2/lib/ |
D | ll_proto.c | 85 { ETH_P_IP, "ipv4" },
|
/external/toybox/toys/pending/ |
D | arping.c | 105 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/ |
D | ns-icmp_redirector.c | 332 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()
|