You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
1.0 KiB

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Thu, 18 May 2017 14:25:45 -0400
Subject: [PATCH] Revert "trim arp packets with abnormal size"
This reverts commit d11b2eb425d2125f67dd8d8e9b11d9be7d6f3f11.
---
grub-core/net/arp.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/grub-core/net/arp.c b/grub-core/net/arp.c
index 77581f4b29a..d62d0cc1e01 100644
--- a/grub-core/net/arp.c
+++ b/grub-core/net/arp.c
@@ -162,12 +162,6 @@ grub_net_arp_receive (struct grub_net_buff *nb,
if (grub_net_addr_cmp (&inf->address, &target_addr) == 0
&& grub_be_to_cpu16 (arp_header->op) == ARP_REQUEST)
{
- if ((nb->tail - nb->data) > 50)
- {
- grub_dprintf ("net", "arp packet with abnormal size (%ld bytes).\n",
- nb->tail - nb->data);
- nb->tail = nb->data + 50;
- }
grub_net_link_level_address_t target;
/* We've already checked that pln is either 4 or 16. */
char tmp[16];