Lines Matching refs:eth
2024 const struct ether_header *eth;
2030 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) {
2037 eth = (const struct ether_header *) buf;
2038 os_memcpy(&ip, eth + 1, sizeof(ip));
2039 pos = &buf[sizeof(*eth) + sizeof(ip)];
2061 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost), extra);
2111 struct ether_header *eth;
2147 eth = (struct ether_header *) &buf[2];
2148 os_memcpy(eth->ether_dhost, dst, ETH_ALEN);
2149 os_memcpy(eth->ether_shost, src, ETH_ALEN);
2150 eth->ether_type = htons(ETHERTYPE_IP);
2151 ip = (struct ip *) (eth + 1);
2181 struct ether_header *eth;
2209 eth = (struct ether_header *) buf;
2210 ethertype = ntohs(eth->ether_type);
2217 res = l2_packet_send(l2, eth->ether_dhost, ethertype, buf, len);