Skip to content

Commit

Permalink
fixed IP fragment issue which caused the MTU used by IP is less than …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
qianouyang committed Mar 28, 2010
1 parent 0cf8c20 commit 619561d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;

Expand Down

0 comments on commit 619561d

Please sign in to comment.