]> git.proxmox.com Git - mirror_edk2.git/commitdiff
fixed IP fragment issue which caused the MTU used by IP is less than the one IP expos...
authorqianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 28 Mar 2010 09:49:47 +0000 (09:49 +0000)
committerqianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 28 Mar 2010 09:49:47 +0000 (09:49 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10320 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c

index ed8da7813285e34aa263d801b393718d0f2764ed..7d8745d5a5b2208ef410f4c45c5dd28821a9a2ff 100644 (file)
@@ -312,7 +312,7 @@ Ip4Output (
   // OK, selected the source and route, fragment the packet then send\r
   // them. Tag each fragment other than the first one as spawn from it.\r
   //\r
-  Mtu            = IpSb->MaxPacketSize;\r
+  Mtu            = IpSb->MaxPacketSize + sizeof (IP4_HEAD);\r
   HeadLen        = sizeof (IP4_HEAD) + ((OptLen + 3) & (~0x03));\r
   Head->Id       = mIp4Id++;\r
 \r