Home
last modified time | relevance | path

Searched refs:arp_recv (Results 1 – 1 of 1) sorted by relevance

/external/u-boot/drivers/net/
Dsandbox.c85 struct arp_hdr *arp_recv; in sb_eth_send() local
96 arp_recv = (void *)priv->recv_packet_buffer + in sb_eth_send()
98 arp_recv->ar_hrd = htons(ARP_ETHER); in sb_eth_send()
99 arp_recv->ar_pro = htons(PROT_IP); in sb_eth_send()
100 arp_recv->ar_hln = ARP_HLEN; in sb_eth_send()
101 arp_recv->ar_pln = ARP_PLEN; in sb_eth_send()
102 arp_recv->ar_op = htons(ARPOP_REPLY); in sb_eth_send()
103 memcpy(&arp_recv->ar_sha, priv->fake_host_hwaddr, in sb_eth_send()
105 net_write_ip(&arp_recv->ar_spa, priv->fake_host_ipaddr); in sb_eth_send()
106 memcpy(&arp_recv->ar_tha, &arp->ar_sha, ARP_HLEN); in sb_eth_send()
[all …]