1 Star 0 Fork 50

Meredith/grub2

forked from src-anolis-os/grub2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0163-Revert-trim-arp-packets-with-abnormal-size.patch 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
geliwei 提交于 2022-04-13 15:15 . update to grub2-2.02-120.el8.src.rpm
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 d1c69ed2b..54306e3b1 100644
--- a/grub-core/net/arp.c
+++ b/grub-core/net/arp.c
@@ -150,12 +150,6 @@ grub_net_arp_receive (struct grub_net_buff *nb, struct grub_net_card *card,
if (grub_net_addr_cmp (&inf->address, &target_addr) == 0
&& arp_packet->op == grub_cpu_to_be16_compile_time (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;
struct grub_net_buff nb_reply;
struct arppkt *arp_reply;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yueeranna/grub2.git
git@gitee.com:yueeranna/grub2.git
yueeranna
grub2
grub2
a8

搜索帮助

0d507c66 1850385 C8b1a773 1850385