Restructurisations, cleanups and few bugfixes
This commit is contained in:
parent
c4d038f632
commit
7e0c2d162a
6 changed files with 251 additions and 178 deletions
|
@ -144,7 +144,8 @@ grub_net_arp_receive (struct grub_net_buff *nb)
|
|||
FOR_NET_NETWORK_LEVEL_INTERFACES (inf)
|
||||
{
|
||||
/* Am I the protocol address target? */
|
||||
if (grub_memcmp (target_protocol_address, &inf->address.ipv4, 6) == 0
|
||||
if (inf->address.type == GRUB_NET_NETWORK_LEVEL_PROTOCOL_IPV4
|
||||
&& grub_memcmp (target_protocol_address, &inf->address.ipv4, 4) == 0
|
||||
&& grub_be_to_cpu16 (arp_header->op) == ARP_REQUEST)
|
||||
{
|
||||
grub_net_link_level_address_t aux;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue