Home | History | Annotate | Download | only in hostapd

Lines Matching defs:eth

1704 	const struct ether_header *eth;
1712 eth = (const struct ether_header *) buf;
1713 os_memcpy(&ip, eth + 1, sizeof(ip));
1714 pos = &buf[sizeof(*eth) + sizeof(ip)];
1727 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost));
1777 struct ether_header *eth;
1804 eth = (struct ether_header *) &buf[2];
1805 os_memcpy(eth->ether_dhost, dst, ETH_ALEN);
1806 os_memcpy(eth->ether_shost, src, ETH_ALEN);
1807 eth->ether_type = htons(ETHERTYPE_IP);
1808 ip = (struct iphdr *) (eth + 1);
1838 struct ether_header *eth;
1866 eth = (struct ether_header *) buf;
1867 ethertype = ntohs(eth->ether_type);
1874 res = l2_packet_send(l2, eth->ether_dhost, ethertype, buf, len);