diff options
author | tye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-25 03:07:49 +0000 |
---|---|---|
committer | tye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-25 03:07:49 +0000 |
commit | 9899d8b6ba65b4a0a1ae30acdb34fa24be55f2d2 (patch) | |
tree | 86431481102821a2f6a657c8b9f43191c5eb3782 /MdeModulePkg | |
parent | a7a523e07b1f804efed99fcf57cf0421904c75a9 (diff) | |
download | edk2-platforms-9899d8b6ba65b4a0a1ae30acdb34fa24be55f2d2.tar.xz |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c | 6 |
1 files changed, 3 insertions, 3 deletions
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.<BR>
+Copyright (c) 2005 - 2010, Intel Corporation.<BR>
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) {
|