Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:eth

37 	eth_t *eth;
61 l2->eth = eth_open(l2->ifname);
62 if (!l2->eth) {
68 if (eth_get(l2->eth, &own_addr) < 0) {
72 eth_close(l2->eth);
73 l2->eth = NULL;
87 struct l2_ethhdr *eth;
96 ret = eth_send(l2->eth, buf, len);
99 size_t mlen = sizeof(*eth) + len;
100 eth = os_malloc(mlen);
101 if (eth == NULL)
104 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
105 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
106 eth->h_proto = htons(proto);
107 os_memcpy(eth + 1, buf, len);
110 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen);
112 ret = eth_send(l2->eth, (u8 *) eth, mlen);
115 os_free(eth);
310 eth_close(l2->eth);
328 if (l2->eth)
329 eth_close(l2->eth);