Lines Matching full:arpreply
744 struct arprequest *arpreply;
778 arpreply = (struct arprequest *) &nic.packet[ETH_HLEN];
780 if (arpreply->opcode == htons (ARP_REPLY)
781 && ! grub_memcmp (arpreply->sipaddr, ptr, sizeof (in_addr))
785 arpreply->shwaddr,
790 grub_memmove ((char *) &tmp, arpreply->tipaddr,
793 if (arpreply->opcode == htons (ARP_REQUEST)
796 arpreply->opcode = htons (ARP_REPLY);
797 grub_memmove (arpreply->tipaddr, arpreply->sipaddr,
799 grub_memmove (arpreply->thwaddr, (char *) arpreply->shwaddr,
801 grub_memmove (arpreply->sipaddr,
804 grub_memmove (arpreply->shwaddr,
807 eth_transmit (arpreply->thwaddr, ARP,
809 arpreply);
811 grub_memmove (&tmp, arpreply->tipaddr, sizeof (in_addr));
827 arpreply = (struct arprequest *) &nic.packet[ETH_HLEN];
829 if (arpreply->opcode == htons (RARP_REPLY)
830 && ! grub_memcmp (arpreply->thwaddr, ptr, ETH_ALEN))
833 arpreply->shwaddr, ETH_ALEN);
835 arpreply->sipaddr, sizeof (in_addr));
837 arpreply->tipaddr, sizeof (in_addr));