Lines Matching refs:eth
3329 struct ether_header *eth;
3354 eth = (struct ether_header *) buf;
3355 os_memcpy(eth->ether_dhost, addr, ETH_ALEN);
3356 os_memcpy(eth->ether_shost, wpa_s->own_addr, ETH_ALEN);
3357 eth->ether_type = htons(ETH_P_802_3);
9581 const struct ether_header *eth;
9587 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) {
9594 eth = (const struct ether_header *) buf;
9595 os_memcpy(&ip, eth + 1, sizeof(ip));
9596 pos = &buf[sizeof(*eth) + sizeof(ip)];
9616 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost), extra);
9665 struct ether_header *eth;
9701 eth = (struct ether_header *) &buf[2];
9702 os_memcpy(eth->ether_dhost, dst, ETH_ALEN);
9703 os_memcpy(eth->ether_shost, src, ETH_ALEN);
9704 eth->ether_type = htons(ETHERTYPE_IP);
9705 ip = (struct ip *) (eth + 1);
9735 struct ether_header *eth;
9753 eth = (struct ether_header *) buf;
9754 ethertype = ntohs(eth->ether_type);
9761 res = l2_packet_send(l2, eth->ether_dhost, ethertype, buf, len);