15a2072
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
15a2072
From: Peter Jones <pjones@redhat.com>
15a2072
Date: Thu, 18 May 2017 14:25:45 -0400
15a2072
Subject: [PATCH] Revert "trim arp packets with abnormal size"
15a2072
15a2072
This reverts commit d11b2eb425d2125f67dd8d8e9b11d9be7d6f3f11.
15a2072
---
15a2072
 grub-core/net/arp.c | 6 ------
15a2072
 1 file changed, 6 deletions(-)
15a2072
15a2072
diff --git a/grub-core/net/arp.c b/grub-core/net/arp.c
15a2072
index d1c69ed2b55..54306e3b16d 100644
15a2072
--- a/grub-core/net/arp.c
15a2072
+++ b/grub-core/net/arp.c
15a2072
@@ -150,12 +150,6 @@ grub_net_arp_receive (struct grub_net_buff *nb, struct grub_net_card *card,
15a2072
     if (grub_net_addr_cmp (&inf->address, &target_addr) == 0
15a2072
 	&& arp_packet->op == grub_cpu_to_be16_compile_time (ARP_REQUEST))
15a2072
       {
15a2072
-        if ((nb->tail - nb->data) > 50)
15a2072
-          {
15a2072
-            grub_dprintf ("net", "arp packet with abnormal size (%ld bytes).\n",
15a2072
-                         nb->tail - nb->data);
15a2072
-            nb->tail = nb->data + 50;
15a2072
-          }
15a2072
 	grub_net_link_level_address_t target;
15a2072
 	struct grub_net_buff nb_reply;
15a2072
 	struct arppkt *arp_reply;