From 9899d8b6ba65b4a0a1ae30acdb34fa24be55f2d2 Mon Sep 17 00:00:00 2001 From: tye1 Date: Mon, 25 Jan 2010 03:07:49 +0000 Subject: Fixed a bug in Ip4HandleIcmpError, it should pass over the whole ICMP error message if user wants. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9800 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg/Universal/Network') diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c index 03297aa26c..1eaed05264 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c @@ -1,7 +1,7 @@ /** @file IP4 input process. -Copyright (c) 2005 - 2009, Intel Corporation.
+Copyright (c) 2005 - 2010, Intel Corporation.
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -881,11 +881,11 @@ Ip4InstanceFrameAcceptable ( // // Use protocol from the IP header embedded in the ICMP error // message to filter, instead of ICMP itself. ICMP handle will - // can Ip4Demultiplex to deliver ICMP errors. + // call Ip4Demultiplex to deliver ICMP errors. // Proto = Head->Protocol; - if (Proto == EFI_IP_PROTO_ICMP) { + if ((Proto == EFI_IP_PROTO_ICMP) && (!Config->AcceptAnyProtocol) && (Proto != Config->DefaultProtocol)) { NetbufCopy (Packet, 0, sizeof (Icmp.Head), (UINT8 *) &Icmp.Head); if (mIcmpClass[Icmp.Head.Type].IcmpClass == ICMP_ERROR_MESSAGE) { -- cgit v1.2.3