Searched refs:eth (Results 1 - 25 of 30) sorted by relevance

12

/external/tcpdump/
H A Dprint-calm-fast.c43 calm_fast_print(netdissect_options *ndo, const u_char *eth, const u_char *bp, u_int length) argument
50 printf("CALM FAST src:%s; ", etheraddr_string(eth+6));
H A Dprint-geonet.c110 geonet_print(netdissect_options *ndo, const u_char *eth, const u_char *bp, u_int length) argument
112 printf("GeoNet src:%s; ", etheraddr_string(eth+6));
/external/wpa_supplicant_8/hostapd/src/l2_packet/
H A Dl2_packet_pcap.c31 eth_t *eth; member in struct:l2_packet_data
55 l2->eth = eth_open(l2->ifname);
56 if (!l2->eth) {
63 if (eth_get(l2->eth, &own_addr) < 0) {
67 eth_close(l2->eth);
68 l2->eth = NULL;
82 struct l2_ethhdr *eth; local
91 ret = eth_send(l2->eth, buf, len);
94 size_t mlen = sizeof(*eth) + len;
95 eth
[all...]
H A Dl2_packet_freebsd.c60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); local
61 if (eth == NULL)
63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
65 eth->h_proto = htons(proto);
66 os_memcpy(eth + 1, buf, len);
67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth));
68 os_free(eth);
[all...]
H A Dl2_packet_winpcap.c76 struct l2_ethhdr *eth; local
84 size_t mlen = sizeof(*eth) + len;
85 eth = os_malloc(mlen);
86 if (eth == NULL)
89 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
91 eth->h_proto = htons(proto);
92 os_memcpy(eth + 1, buf, len);
93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen);
94 os_free(eth);
[all...]
H A Dl2_packet_ndis.c96 struct l2_ethhdr *eth; local
116 size_t mlen = sizeof(*eth) + len;
117 eth = os_malloc(mlen);
118 if (eth == NULL)
121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
123 eth->h_proto = htons(proto);
124 os_memcpy(eth + 1, buf, len);
125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen,
127 os_free(eth);
[all...]
/external/wpa_supplicant_8/src/l2_packet/
H A Dl2_packet_pcap.c31 eth_t *eth; member in struct:l2_packet_data
55 l2->eth = eth_open(l2->ifname);
56 if (!l2->eth) {
63 if (eth_get(l2->eth, &own_addr) < 0) {
67 eth_close(l2->eth);
68 l2->eth = NULL;
82 struct l2_ethhdr *eth; local
91 ret = eth_send(l2->eth, buf, len);
94 size_t mlen = sizeof(*eth) + len;
95 eth
[all...]
H A Dl2_packet_freebsd.c60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); local
61 if (eth == NULL)
63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
65 eth->h_proto = htons(proto);
66 os_memcpy(eth + 1, buf, len);
67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth));
68 os_free(eth);
[all...]
H A Dl2_packet_winpcap.c76 struct l2_ethhdr *eth; local
84 size_t mlen = sizeof(*eth) + len;
85 eth = os_malloc(mlen);
86 if (eth == NULL)
89 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
91 eth->h_proto = htons(proto);
92 os_memcpy(eth + 1, buf, len);
93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen);
94 os_free(eth);
[all...]
H A Dl2_packet_ndis.c96 struct l2_ethhdr *eth; local
116 size_t mlen = sizeof(*eth) + len;
117 eth = os_malloc(mlen);
118 if (eth == NULL)
121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
123 eth->h_proto = htons(proto);
124 os_memcpy(eth + 1, buf, len);
125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen,
127 os_free(eth);
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/l2_packet/
H A Dl2_packet_pcap.c31 eth_t *eth; member in struct:l2_packet_data
55 l2->eth = eth_open(l2->ifname);
56 if (!l2->eth) {
63 if (eth_get(l2->eth, &own_addr) < 0) {
67 eth_close(l2->eth);
68 l2->eth = NULL;
82 struct l2_ethhdr *eth; local
91 ret = eth_send(l2->eth, buf, len);
94 size_t mlen = sizeof(*eth) + len;
95 eth
[all...]
H A Dl2_packet_freebsd.c60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); local
61 if (eth == NULL)
63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
65 eth->h_proto = htons(proto);
66 os_memcpy(eth + 1, buf, len);
67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth));
68 os_free(eth);
[all...]
H A Dl2_packet_winpcap.c76 struct l2_ethhdr *eth; local
84 size_t mlen = sizeof(*eth) + len;
85 eth = os_malloc(mlen);
86 if (eth == NULL)
89 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
91 eth->h_proto = htons(proto);
92 os_memcpy(eth + 1, buf, len);
93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen);
94 os_free(eth);
[all...]
H A Dl2_packet_ndis.c96 struct l2_ethhdr *eth; local
116 size_t mlen = sizeof(*eth) + len;
117 eth = os_malloc(mlen);
118 if (eth == NULL)
121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
123 eth->h_proto = htons(proto);
124 os_memcpy(eth + 1, buf, len);
125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen,
127 os_free(eth);
[all...]
/external/kernel-headers/original/uapi/linux/
H A Dif_arcnet.h84 struct ethhdr eth; /* standard ethernet header (yuck!) */ member in struct:arc_eth_encap
/external/libpcap/msdos/
H A Dpktdrvr.h131 extern BOOL PktTransmit (const void *eth, int len);
H A Dpktdrvr.c444 PUBLIC BOOL PktTransmit (const void *eth, int len) argument
453 dosmemput (eth, len, realBase+pktTxBuf);
458 memcpy ((void*)(realBase+pktTxBuf), eth, len);
463 memcpy (&pktTxBuf, eth, len);
468 reg.r_ds = FP_SEG (eth);
469 reg.r_si = FP_OFF (eth);
/external/apache-xml/src/main/java/org/apache/xml/serializer/
H A DHTMLEntities.properties113 eth=240
/external/wpa_supplicant_8/hostapd/
H A Dctrl_iface.c1530 const struct ether_header *eth; local
1538 eth = (const struct ether_header *) buf;
1539 ip = (const struct iphdr *) (eth + 1);
1553 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost));
1603 struct ether_header *eth; local
1630 eth = (struct ether_header *) buf;
1631 os_memcpy(eth->ether_dhost, dst, ETH_ALEN);
1632 os_memcpy(eth->ether_shost, src, ETH_ALEN);
1633 eth
1664 struct ether_header *eth; local
[all...]
/external/iputils/Modules/
H A Dpg3.c242 __u8 *eth; local
256 eth = (__u8 *) skb_push(skb, 14);
261 memcpy(eth, hh, 14);
/external/wpa_supplicant_8/hostapd/src/drivers/
H A Ddriver_atheros.c1551 struct l2_ethhdr *eth; local
1571 eth = (struct l2_ethhdr *) bp;
1572 memcpy(eth->h_dest, addr, ETH_ALEN);
1573 memcpy(eth->h_source, own_addr, ETH_ALEN);
1574 eth->h_proto = host_to_be16(ETH_P_EAPOL);
1575 memcpy(eth+1, data, data_len);
/external/wpa_supplicant_8/src/drivers/
H A Ddriver_atheros.c1551 struct l2_ethhdr *eth; local
1571 eth = (struct l2_ethhdr *) bp;
1572 memcpy(eth->h_dest, addr, ETH_ALEN);
1573 memcpy(eth->h_source, own_addr, ETH_ALEN);
1574 eth->h_proto = host_to_be16(ETH_P_EAPOL);
1575 memcpy(eth+1, data, data_len);
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/
H A Ddriver_atheros.c1551 struct l2_ethhdr *eth; local
1571 eth = (struct l2_ethhdr *) bp;
1572 memcpy(eth->h_dest, addr, ETH_ALEN);
1573 memcpy(eth->h_source, own_addr, ETH_ALEN);
1574 eth->h_proto = host_to_be16(ETH_P_EAPOL);
1575 memcpy(eth+1, data, data_len);
/external/wpa_supplicant_8/wpa_supplicant/
H A Dctrl_iface.c7366 const struct ether_header *eth; local
7374 eth = (const struct ether_header *) buf;
7375 ip = (const struct iphdr *) (eth + 1);
7389 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost));
7430 struct ether_header *eth; local
7457 eth = (struct ether_header *) buf;
7458 os_memcpy(eth->ether_dhost, dst, ETH_ALEN);
7459 os_memcpy(eth->ether_shost, src, ETH_ALEN);
7460 eth
7491 struct ether_header *eth; local
[all...]
H A Dwpa_supplicant.c3222 const struct l2_ethhdr *eth; local
3224 if (len < sizeof(*eth))
3226 eth = (const struct l2_ethhdr *) buf;
3228 if (os_memcmp(eth->h_dest, wpa_s->own_addr, ETH_ALEN) != 0 &&
3229 !(eth->h_dest[0] & 0x01)) {
3232 MAC2STR(src_addr), MAC2STR(eth->h_dest));
3237 " (bridge)", MAC2STR(src_addr), MAC2STR(eth->h_dest));
3238 wpa_supplicant_rx_eapol(wpa_s, src_addr, buf + sizeof(*eth),
3239 len - sizeof(*eth));

Completed in 419 milliseconds

12