summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authortye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-25 03:11:14 +0000
committertye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-25 03:11:14 +0000
commit323c8a9a68e3f04a5cc4cf6cf444479272bf3803 (patch)
tree96dd51513f1ba873840b0e13ee82532ce51ffb5d /MdeModulePkg
parent9899d8b6ba65b4a0a1ae30acdb34fa24be55f2d2 (diff)
downloadedk2-323c8a9a68e3f04a5cc4cf6cf444479272bf3803.zip
edk2-323c8a9a68e3f04a5cc4cf6cf444479272bf3803.tar.gz
edk2-323c8a9a68e3f04a5cc4cf6cf444479272bf3803.tar.bz2
Fix a bug in Udp4IcmpHandler, it should not add special checking for Icmp message.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9801 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c
index a038e3e..ff3b43e 100644
--- a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c
+++ b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c
@@ -1,7 +1,7 @@
/** @file
The implementation of the Udp4 protocol.
-Copyright (c) 2006 - 2009, Intel Corporation.<BR>
+Copyright (c) 2006 - 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
@@ -1804,16 +1804,7 @@ Udp4IcmpHandler (
//
Instance = NET_LIST_USER_STRUCT (Entry, UDP4_INSTANCE_DATA, Link);
- if (!Instance->Configured ||
- Instance->ConfigData.AcceptPromiscuous ||
- Instance->ConfigData.AcceptAnyPort ||
- EFI_IP4_EQUAL (&Instance->ConfigData.StationAddress, &mZeroIp4Addr)
- ) {
- //
- // Don't try to deliver the ICMP error to this instance if it is not configured,
- // or it's configured to be promiscuous or accept any port or accept all the
- // datagrams.
- //
+ if (!Instance->Configured) {
continue;
}