Lines Matching refs:eth
1595 const struct ether_header *eth; in hostapd_data_test_rx() local
1603 eth = (const struct ether_header *) buf; in hostapd_data_test_rx()
1604 os_memcpy(&ip, eth + 1, sizeof(ip)); in hostapd_data_test_rx()
1605 pos = &buf[sizeof(*eth) + sizeof(ip)]; in hostapd_data_test_rx()
1618 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost)); in hostapd_data_test_rx()
1668 struct ether_header *eth; in hostapd_ctrl_iface_data_test_tx() local
1695 eth = (struct ether_header *) &buf[2]; in hostapd_ctrl_iface_data_test_tx()
1696 os_memcpy(eth->ether_dhost, dst, ETH_ALEN); in hostapd_ctrl_iface_data_test_tx()
1697 os_memcpy(eth->ether_shost, src, ETH_ALEN); in hostapd_ctrl_iface_data_test_tx()
1698 eth->ether_type = htons(ETHERTYPE_IP); in hostapd_ctrl_iface_data_test_tx()
1699 ip = (struct iphdr *) (eth + 1); in hostapd_ctrl_iface_data_test_tx()
1729 struct ether_header *eth; in hostapd_ctrl_iface_data_test_frame() local
1757 eth = (struct ether_header *) buf; in hostapd_ctrl_iface_data_test_frame()
1758 ethertype = ntohs(eth->ether_type); in hostapd_ctrl_iface_data_test_frame()
1765 res = l2_packet_send(l2, eth->ether_dhost, ethertype, buf, len); in hostapd_ctrl_iface_data_test_frame()