Home
last modified time | relevance | path

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

/titanic_44/usr/src/grub/grub-0.97/netboot/
H A Dnic.c281 struct arprequest *arpreply; in await_arp() local
286 arpreply = (struct arprequest *)&nic.packet[ETH_HLEN]; in await_arp()
288 if (arpreply->opcode != htons(ARP_REPLY)) in await_arp()
290 if (memcmp(arpreply->sipaddr, ptr, sizeof(in_addr)) != 0) in await_arp()
292 memcpy(arptable[ival].node, arpreply->shwaddr, ETH_ALEN); in await_arp()
458 struct arprequest *arpreply; in await_rarp() local
463 arpreply = (struct arprequest *)&nic.packet[ETH_HLEN]; in await_rarp()
464 if (arpreply->opcode != htons(RARP_REPLY)) in await_rarp()
466 if (memcmp(arpreply->thwaddr, ptr, ETH_ALEN) == 0){ in await_rarp()
467 memcpy(arptable[ARP_SERVER].node, arpreply->shwaddr, ETH_ALEN); in await_rarp()
[all …]