Lines Matching refs:eth
1882 const struct ether_header *eth; in hostapd_data_test_rx() local
1888 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) { in hostapd_data_test_rx()
1895 eth = (const struct ether_header *) buf; in hostapd_data_test_rx()
1896 os_memcpy(&ip, eth + 1, sizeof(ip)); in hostapd_data_test_rx()
1897 pos = &buf[sizeof(*eth) + sizeof(ip)]; in hostapd_data_test_rx()
1919 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost), extra); in hostapd_data_test_rx()
1974 struct ether_header *eth; in hostapd_ctrl_iface_data_test_tx() local
2010 eth = (struct ether_header *) &buf[2]; in hostapd_ctrl_iface_data_test_tx()
2011 os_memcpy(eth->ether_dhost, dst, ETH_ALEN); in hostapd_ctrl_iface_data_test_tx()
2012 os_memcpy(eth->ether_shost, src, ETH_ALEN); in hostapd_ctrl_iface_data_test_tx()
2013 eth->ether_type = htons(ETHERTYPE_IP); in hostapd_ctrl_iface_data_test_tx()
2014 ip = (struct ip *) (eth + 1); in hostapd_ctrl_iface_data_test_tx()
2044 struct ether_header *eth; in hostapd_ctrl_iface_data_test_frame() local
2072 eth = (struct ether_header *) buf; in hostapd_ctrl_iface_data_test_frame()
2073 ethertype = ntohs(eth->ether_type); in hostapd_ctrl_iface_data_test_frame()
2080 res = l2_packet_send(l2, eth->ether_dhost, ethertype, buf, len); in hostapd_ctrl_iface_data_test_frame()