Home
last modified time | relevance | path

Searched refs:eth (Results 1 – 25 of 39) 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()
62 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet()
66 eth_close(l2->eth); in l2_packet_init_libdnet()
67 l2->eth = NULL; in l2_packet_init_libdnet()
81 struct l2_ethhdr *eth; in l2_packet_send() local
90 ret = eth_send(l2->eth, buf, len); in l2_packet_send()
93 size_t mlen = sizeof(*eth) + len; in l2_packet_send()
94 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/tcpdump/
Dprint-calm-fast.c43 calm_fast_print(netdissect_options *ndo, const u_char *eth, const u_char *bp, u_int length) in calm_fast_print() argument
50 printf("CALM FAST src:%s; ", etheraddr_string(eth+6)); in calm_fast_print()
Dprint-geonet.c110 geonet_print(netdissect_options *ndo, const u_char *eth, const u_char *bp, u_int length) in geonet_print() argument
112 printf("GeoNet src:%s; ", etheraddr_string(eth+6)); in geonet_print()
/external/wpa_supplicant_8/src/drivers/
Ddriver_test.c163 struct l2_ethhdr eth; in test_driver_send_eapol() local
181 memcpy(eth.h_dest, addr, ETH_ALEN); in test_driver_send_eapol()
182 memcpy(eth.h_source, own_addr, ETH_ALEN); in test_driver_send_eapol()
183 eth.h_proto = host_to_be16(ETH_P_EAPOL); in test_driver_send_eapol()
187 io[1].iov_base = &eth; in test_driver_send_eapol()
188 io[1].iov_len = sizeof(eth); in test_driver_send_eapol()
208 struct l2_ethhdr eth; in test_driver_send_ether() local
225 memcpy(eth.h_dest, dst, ETH_ALEN); in test_driver_send_ether()
226 memcpy(eth.h_source, src, ETH_ALEN); in test_driver_send_ether()
227 eth.h_proto = host_to_be16(proto); in test_driver_send_ether()
[all …]
Ddriver_madwifi.c1083 struct l2_ethhdr *eth; in madwifi_send_eapol() local
1102 eth = (struct l2_ethhdr *) bp; in madwifi_send_eapol()
1103 memcpy(eth->h_dest, addr, ETH_ALEN); in madwifi_send_eapol()
1104 memcpy(eth->h_source, own_addr, ETH_ALEN); in madwifi_send_eapol()
1105 eth->h_proto = host_to_be16(ETH_P_EAPOL); in madwifi_send_eapol()
1106 memcpy(eth+1, data, data_len); in madwifi_send_eapol()
/external/kernel-headers/original/uapi/linux/
Dif_arcnet.h84 struct ethhdr eth; /* standard ethernet header (yuck!) */ member
/external/qemu/pc-bios/keymaps/
Dfo53 eth 0x1b addupper
Des62 eth 0x20 altgr
Dfr-ch72 eth 0x20 altgr
Dde-ch139 eth 0x20 altgr inhibit
Dsl72 eth 0x20 altgr
Dit70 eth 0x20 altgr
Dpt70 eth 0x20 altgr
Dde72 eth 0x20 altgr
Dtr73 eth 0x20 altgr
Dhr74 eth 0x20 altgr
Dpl72 eth 0x20 altgr
Dfi73 eth 0x20 altgr
Dda72 eth 0x20 altgr
/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);

12