Home
last modified time | relevance | path

Searched refs:h_proto (Results 1 – 25 of 31) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_xdp.c73 __be16 h_proto) in set_ethhdr() argument
77 new_eth->h_proto = h_proto; in set_ethhdr()
219 __u16 h_proto; in _xdp_tx_iptunnel() local
224 h_proto = eth->h_proto; in _xdp_tx_iptunnel()
226 if (h_proto == bpf_htons(ETH_P_IP)) in _xdp_tx_iptunnel()
228 else if (h_proto == bpf_htons(ETH_P_IPV6)) in _xdp_tx_iptunnel()
Dtest_pkt_access.c36 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in process()
44 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in process()
Dtest_xdp_vlan.c67 eth_type = eth->h_proto; in parse_eth_frame()
Dtest_sk_lookup_kern.c70 tuple = get_tuple(data, sizeof(*eth), data_end, eth->h_proto, &ipv4); in bpf_sk_lookup_test0()
Dbpf_flow.c179 return parse_eth_proto(skb, eth->h_proto); in parse_ip_proto()
/external/tensorflow/tensorflow/core/lib/histogram/
Dhistogram_test.cc130 HistogramProto h_proto; in TEST() local
131 h.EncodeToProto(&h_proto, preserve_zero_buckets); in TEST()
139 EXPECT_TRUE(tsh2.DecodeFromProto(h_proto)); in TEST()
/external/ppp/pppd/plugins/rp-pppoe/
Dcommon.c112 packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery); in sendPADT()
176 switch (ntohs(packet->ethHdr.h_proto)) { in pppoe_printpkt()
209 ntohs(packet->ethHdr.h_proto)); in pppoe_printpkt()
214 if (ntohs(packet->ethHdr.h_proto) != ETH_PPPOE_DISCOVERY) in pppoe_printpkt()
Dif.c77 UINT16_t type = (UINT16_t) ntohs(packet->ethHdr.h_proto); in etherType()
Dpppoe-discovery.c82 UINT16_t type = (UINT16_t) ntohs(packet->ethHdr.h_proto); in etherType()
461 packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery); in sendPADI()
Ddiscovery.c283 packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery); in sendPADI()
468 packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery); in sendPADR()
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmp_redirector.c328 sndeth.hdr.h_proto = htons(ETH_P_ARP); in return_arp_reply()
402 sndeth.hdr.h_proto = htons(ETH_P_IP); in return_icmp4_redirect()
524 sndeth.hdr.h_proto = htons(ETH_P_IPV6); in return_neigh_adv()
626 sndeth.hdr.h_proto = htons(ETH_P_IPV6); in return_icmp6_redirect()
768 switch (ntohs(frame.hdr.h_proto)) { in capture_frames()
/external/libnl/include/linux-private/linux/
Dif_ether.h122 __be16 h_proto; /* packet type ID field */ member
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet.h35 be16 h_proto; member
Dl2_packet_freebsd.c65 eth->h_proto = htons(proto); in l2_packet_send()
Dl2_packet_winpcap.c91 eth->h_proto = htons(proto); in l2_packet_send()
Dl2_packet_pcap.c101 eth->h_proto = htons(proto); in l2_packet_send()
Dl2_packet_ndis.c123 eth->h_proto = htons(proto); in l2_packet_send()
/external/iproute2/include/uapi/linux/
Dif_ether.h155 __be16 h_proto; /* packet type ID field */ member
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_snd.c108 eth->h_proto = htons(ETH_P_8021Q); in build_eth_header()
113 eth->h_proto = htons(ETH_P_IP); in build_eth_header()
Dpsock_tpacket.c151 if (eth->h_proto != htons(ETH_P_IP)) { in test_payload()
153 "type: 0x%x!\n", ntohs(eth->h_proto)); in test_payload()
171 eth->h_proto = htons(ETH_P_IP); in create_payload()
Dmsg_zerocopy.c504 eth.h_proto = htons(proto); in do_tx()
/external/kernel-headers/original/uapi/linux/
Dif_ether.h164 __be16 h_proto; /* packet type ID field */ member
/external/wpa_supplicant_8/src/ap/
Deth_p_oui.c179 ethhdr->h_proto = host_to_be16(ETH_P_OUI); in eth_p_oui_send()
Dpreauth_auth.c256 ethhdr->h_proto = host_to_be16(ETH_P_PREAUTH); in rsn_preauth_send()
/external/iptables/iptables/
Dnft-bridge.c200 add_payload(r, offsetof(struct ethhdr, h_proto), 2, in nft_bridge_add()
302 case offsetof(struct ethhdr, h_proto): in nft_bridge_parse_payload()

12