]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c
fixed IP fragment issue which caused the MTU used by IP is less than the one IP expos...
[mirror_edk2.git] / 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