diff options
author | qianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-03-28 09:49:47 +0000 |
---|---|---|
committer | qianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-03-28 09:49:47 +0000 |
commit | 619561dc52a036621540b8a51a7379968cba2128 (patch) | |
tree | 216701680303c23ab20aba0b590eecaee9f4c6ec | |
parent | 0cf8c2096e094580a9a476feb6c4e9706d8885fd (diff) | |
download | edk2-619561dc52a036621540b8a51a7379968cba2128.zip edk2-619561dc52a036621540b8a51a7379968cba2128.tar.gz edk2-619561dc52a036621540b8a51a7379968cba2128.tar.bz2 |
fixed IP fragment issue which caused the MTU used by IP is less than the one IP exposed to upper layers.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10320 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c index ed8da78..7d8745d 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c @@ -312,7 +312,7 @@ 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.
//
- Mtu = IpSb->MaxPacketSize;
+ Mtu = IpSb->MaxPacketSize + sizeof (IP4_HEAD);
HeadLen = sizeof (IP4_HEAD) + ((OptLen + 3) & (~0x03));
Head->Id = mIp4Id++;
|