summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/Ip4Dxe
diff options
context:
space:
mode:
authorqianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-18 05:36:52 +0000
committerqianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-18 05:36:52 +0000
commit2db63cd4faecff83eb0c12f0d888a7b9353f99d8 (patch)
treef70a6afcdda8d16a1d51b713e628a9f03bec2911 /MdeModulePkg/Universal/Network/Ip4Dxe
parentabe31ad5798b688cb8185118af3879691b2a1e88 (diff)
downloadedk2-2db63cd4faecff83eb0c12f0d888a7b9353f99d8.zip
edk2-2db63cd4faecff83eb0c12f0d888a7b9353f99d8.tar.gz
edk2-2db63cd4faecff83eb0c12f0d888a7b9353f99d8.tar.bz2
Bug Fix: IPv4 Fragment is not correct when VLAN is enable.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10275 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/Ip4Dxe')
-rw-r--r--MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c
index dcbead5..ed8da78 100644
--- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c
+++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c
@@ -311,11 +311,8 @@ Ip4Output (
//
// OK, selected the source and route, fragment the packet then send
// them. Tag each fragment other than the first one as spawn from it.
-
- //
- // IPsec payload has been appended, so use IpSb->SnpMode.MaxPacketSize here.
//
- Mtu = IpSb->SnpMode.MaxPacketSize;
+ Mtu = IpSb->MaxPacketSize;
HeadLen = sizeof (IP4_HEAD) + ((OptLen + 3) & (~0x03));
Head->Id = mIp4Id++;