Lines Matching refs:eth
159 struct net_eth_hdr *eth; in prepare_arp_reply() local
167 eth = NET_ETH_HDR(pkt); in prepare_arp_reply()
172 (void)memset(ð->dst.addr, 0xff, sizeof(struct net_eth_addr)); in prepare_arp_reply()
173 memcpy(ð->src.addr, net_if_get_link_addr(iface)->addr, in prepare_arp_reply()
175 eth->type = htons(NET_ETH_PTYPE_ARP); in prepare_arp_reply()
177 *eth_rep = eth; in prepare_arp_reply()
190 memcpy(&hdr->dst_hwaddr.addr, ð->src.addr, in prepare_arp_reply()
212 struct net_eth_hdr *eth, *eth_req; in prepare_arp_request() local
220 eth = NET_ETH_HDR(pkt); in prepare_arp_request()
227 (void)memset(ð->dst.addr, 0xff, sizeof(struct net_eth_addr)); in prepare_arp_request()
228 memcpy(ð->src.addr, addr, sizeof(struct net_eth_addr)); in prepare_arp_request()
230 eth->type = htons(NET_ETH_PTYPE_ARP); in prepare_arp_request()
231 *eth_hdr = eth; in prepare_arp_request()
300 memcmp(&entry->eth, expected_hwaddr, in arp_cb()