Home
last modified time | relevance | path

Searched refs:eth (Results 1 – 25 of 29) sorted by relevance

12

/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_pcap.c31 eth_t *eth; member
55 l2->eth = eth_open(l2->ifname); in l2_packet_init_libdnet()
56 if (!l2->eth) { in l2_packet_init_libdnet()
63 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet()
67 eth_close(l2->eth); in l2_packet_init_libdnet()
68 l2->eth = NULL; in l2_packet_init_libdnet()
82 struct l2_ethhdr *eth; in l2_packet_send() local
91 ret = eth_send(l2->eth, buf, len); in l2_packet_send()
94 size_t mlen = sizeof(*eth) + len; in l2_packet_send()
95 eth = os_malloc(mlen); in l2_packet_send()
[all …]
Dl2_packet_freebsd.c60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); in l2_packet_send() local
61 if (eth == NULL) in l2_packet_send()
63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send()
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
65 eth->h_proto = htons(proto); in l2_packet_send()
66 os_memcpy(eth + 1, buf, len); in l2_packet_send()
67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); in l2_packet_send()
68 os_free(eth); in l2_packet_send()
Dl2_packet_winpcap.c76 struct l2_ethhdr *eth; in l2_packet_send() local
84 size_t mlen = sizeof(*eth) + len; in l2_packet_send()
85 eth = os_malloc(mlen); in l2_packet_send()
86 if (eth == NULL) in l2_packet_send()
89 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send()
90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
91 eth->h_proto = htons(proto); in l2_packet_send()
92 os_memcpy(eth + 1, buf, len); in l2_packet_send()
93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); in l2_packet_send()
94 os_free(eth); in l2_packet_send()
Dl2_packet_ndis.c96 struct l2_ethhdr *eth; in l2_packet_send() local
116 size_t mlen = sizeof(*eth) + len; in l2_packet_send()
117 eth = os_malloc(mlen); in l2_packet_send()
118 if (eth == NULL) in l2_packet_send()
121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send()
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
123 eth->h_proto = htons(proto); in l2_packet_send()
124 os_memcpy(eth + 1, buf, len); in l2_packet_send()
125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen, in l2_packet_send()
127 os_free(eth); in l2_packet_send()
/external/autotest/client/tests/pktgen/
Dpktgen.py9 def execute(self, eth='eth0', count=50000, clone_skb=1, \ argument
20 self.pgset('add_device ' + eth)
26 self.ethdev='/proc/net/pktgen/' + eth
41 output = os.path.join(self.resultsdir, eth)
Dcontrol17 job.run_test('pktgen', eth='eth0', count=50000, clone_skb=0, tag='clone_skb_off')
18 job.run_test('pktgen', eth='eth0', count=50000, clone_skb=1, tag='clone_skb_on')
/external/tcpdump/
Dprint-calm-fast.c39 calm_fast_print(netdissect_options *ndo, const u_char *eth, const u_char *bp, u_int length) in calm_fast_print() argument
46 ND_PRINT((ndo, "CALM FAST src:%s; ", etheraddr_string(ndo, eth+6))); in calm_fast_print()
Dprint-geonet.c105 geonet_print(netdissect_options *ndo, const u_char *eth, const u_char *bp, u_int length) in geonet_print() argument
117 ND_PRINT((ndo, "GeoNet src:%s; ", etheraddr_string(ndo, eth+6))); in geonet_print()
/external/kernel-headers/original/uapi/linux/
Dif_arcnet.h81 struct ethhdr eth; /* standard ethernet header (yuck!) */ member
/external/wpa_supplicant_8/hostapd/
Dctrl_iface.c1595 const struct ether_header *eth; in hostapd_data_test_rx() local
1603 eth = (const struct ether_header *) buf; in hostapd_data_test_rx()
1604 os_memcpy(&ip, eth + 1, sizeof(ip)); in hostapd_data_test_rx()
1605 pos = &buf[sizeof(*eth) + sizeof(ip)]; in hostapd_data_test_rx()
1618 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost)); in hostapd_data_test_rx()
1668 struct ether_header *eth; in hostapd_ctrl_iface_data_test_tx() local
1695 eth = (struct ether_header *) &buf[2]; in hostapd_ctrl_iface_data_test_tx()
1696 os_memcpy(eth->ether_dhost, dst, ETH_ALEN); in hostapd_ctrl_iface_data_test_tx()
1697 os_memcpy(eth->ether_shost, src, ETH_ALEN); in hostapd_ctrl_iface_data_test_tx()
1698 eth->ether_type = htons(ETHERTYPE_IP); in hostapd_ctrl_iface_data_test_tx()
[all …]
/external/iputils/Modules/
Dpg3.c242 __u8 *eth; in fill_packet() local
256 eth = (__u8 *) skb_push(skb, 14); in fill_packet()
261 memcpy(eth, hh, 14); in fill_packet()
/external/libpcap/msdos/
Dpktdrvr.c444 PUBLIC BOOL PktTransmit (const void *eth, int len) in PktTransmit() argument
453 dosmemput (eth, len, realBase+pktTxBuf); in PktTransmit()
458 memcpy ((void*)(realBase+pktTxBuf), eth, len); in PktTransmit()
463 memcpy (&pktTxBuf, eth, len); in PktTransmit()
468 reg.r_ds = FP_SEG (eth); in PktTransmit()
469 reg.r_si = FP_OFF (eth); in PktTransmit()
Dpktdrvr.h131 extern BOOL PktTransmit (const void *eth, int len);
/external/wpa_supplicant_8/src/drivers/
Ddriver_atheros.c1559 struct l2_ethhdr *eth; in atheros_send_eapol() local
1579 eth = (struct l2_ethhdr *) bp; in atheros_send_eapol()
1580 os_memcpy(eth->h_dest, addr, ETH_ALEN); in atheros_send_eapol()
1581 os_memcpy(eth->h_source, own_addr, ETH_ALEN); in atheros_send_eapol()
1582 eth->h_proto = host_to_be16(ETH_P_EAPOL); in atheros_send_eapol()
1583 os_memcpy(eth + 1, data, data_len); in atheros_send_eapol()
/external/apache-xml/src/main/java/org/apache/xml/serializer/
DHTMLEntities.properties113 eth=240 key
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface.c7770 const struct ether_header *eth; in wpas_data_test_rx() local
7778 eth = (const struct ether_header *) buf; in wpas_data_test_rx()
7779 os_memcpy(&ip, eth + 1, sizeof(ip)); in wpas_data_test_rx()
7780 pos = &buf[sizeof(*eth) + sizeof(ip)]; in wpas_data_test_rx()
7793 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost)); in wpas_data_test_rx()
7842 struct ether_header *eth; in wpas_ctrl_iface_data_test_tx() local
7869 eth = (struct ether_header *) &buf[2]; in wpas_ctrl_iface_data_test_tx()
7870 os_memcpy(eth->ether_dhost, dst, ETH_ALEN); in wpas_ctrl_iface_data_test_tx()
7871 os_memcpy(eth->ether_shost, src, ETH_ALEN); in wpas_ctrl_iface_data_test_tx()
7872 eth->ether_type = htons(ETHERTYPE_IP); in wpas_ctrl_iface_data_test_tx()
[all …]
Dwpa_supplicant.c3411 const struct l2_ethhdr *eth; in wpa_supplicant_rx_eapol_bridge() local
3413 if (len < sizeof(*eth)) in wpa_supplicant_rx_eapol_bridge()
3415 eth = (const struct l2_ethhdr *) buf; in wpa_supplicant_rx_eapol_bridge()
3417 if (os_memcmp(eth->h_dest, wpa_s->own_addr, ETH_ALEN) != 0 && in wpa_supplicant_rx_eapol_bridge()
3418 !(eth->h_dest[0] & 0x01)) { in wpa_supplicant_rx_eapol_bridge()
3421 MAC2STR(src_addr), MAC2STR(eth->h_dest)); in wpa_supplicant_rx_eapol_bridge()
3426 " (bridge)", MAC2STR(src_addr), MAC2STR(eth->h_dest)); in wpa_supplicant_rx_eapol_bridge()
3427 wpa_supplicant_rx_eapol(wpa_s, src_addr, buf + sizeof(*eth), in wpa_supplicant_rx_eapol_bridge()
3428 len - sizeof(*eth)); in wpa_supplicant_rx_eapol_bridge()
/external/hyphenation-patterns/sl/
Dhyph-sl.pat.txt324 4eth
/external/mdnsresponder/mDNSCore/
DmDNS.c10480 const EthernetHeader *const eth = (const EthernetHeader *)p; in mDNSCoreReceiveRawPacket() local
10481 const NetworkLayerPacket *const pkt = (const NetworkLayerPacket *)(eth+1); in mDNSCoreReceiveRawPacket()
10486 …if (end >= p+42 && mDNSSameOpaque16(eth->ethertype, Ethertype_ARP) && mDNSSameOpaque16(pkt->arp.hr… in mDNSCoreReceiveRawPacket()
10489 …else if (end >= p+34 && mDNSSameOpaque16(eth->ethertype, Ethertype_IPv4) && (pkt->v4.flagsfrags.b[… in mDNSCoreReceiveRawPacket()
10496 …mDNSCoreReceiveRawTransportPacket(m, &eth->src, &src, &dst, pkt->v4.protocol, p, (TransportLayerPa… in mDNSCoreReceiveRawPacket()
10499 else if (end >= p+54 && mDNSSameOpaque16(eth->ethertype, Ethertype_IPv6)) in mDNSCoreReceiveRawPacket()
10506 …mDNSCoreReceiveRawTransportPacket(m, &eth->src, &src, &dst, pkt->v6.pro, p, (TransportLayerPacket*… in mDNSCoreReceiveRawPacket()
/external/chromium-trace/catapult/third_party/vinn/third_party/parse5/test/data/tokenization/
DnamedEntities.test20677 "input": "&eth",
20678 "description": "Named entity: eth without a semi-colon",
20688 "input": "&eth;",
20689 "description": "Named entity: eth; with a semi-colon",
/external/iproute2/doc/
Dip-cref.tex856 netadm@amber:~ # ip -4 addr flush label "eth*"
/external/hyphenation-patterns/de/
Dhyph-de-1901.pat.txt5288 2eth.
Dhyph-de-1996.pat.txt5232 2eth.
Dhyph-de-ch-1901.pat.txt5221 2eth.
/external/icu/icu4c/source/data/misc/
DsupplementalData.txt4973 "eth",

12