From 619561dc52a036621540b8a51a7379968cba2128 Mon Sep 17 00:00:00 2001 From: qianouyang Date: Sun, 28 Mar 2010 09:49:47 +0000 Subject: [PATCH] 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 --- MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c index ed8da78132..7d8745d5a5 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++; -- 2.39.2