Lines Matching refs:eth
1564 const struct ether_header *eth;
1572 eth = (const struct ether_header *) buf;
1573 os_memcpy(&ip, eth + 1, sizeof(ip));
1574 pos = &buf[sizeof(*eth) + sizeof(ip)];
1587 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost));
1637 struct ether_header *eth;
1664 eth = (struct ether_header *) &buf[2];
1665 os_memcpy(eth->ether_dhost, dst, ETH_ALEN);
1666 os_memcpy(eth->ether_shost, src, ETH_ALEN);
1667 eth->ether_type = htons(ETHERTYPE_IP);
1668 ip = (struct iphdr *) (eth + 1);
1698 struct ether_header *eth;
1726 eth = (struct ether_header *) buf;
1727 ethertype = ntohs(eth->ether_type);
1734 res = l2_packet_send(l2, eth->ether_dhost, ethertype, buf, len);