summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library
diff options
context:
space:
mode:
authorqouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-17 07:57:02 +0000
committerqouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-17 07:57:02 +0000
commita09ee46d9a258ef08a931c0d412c62c98dbdb8aa (patch)
tree8b9959d9660777df1906095eb59591bc5ab7b9ac /MdeModulePkg/Library
parent169fa210310f7d518c1c432fe7acdc4e47c207ec (diff)
downloadedk2-platforms-a09ee46d9a258ef08a931c0d412c62c98dbdb8aa.tar.xz
Updated the IpIoLiband and the change includes:
1) Add one structure member – IpHdrLen in the EFI_NET_SESSION_DATA data structure. 2) Pass IP header length to upper-layer through this new member. The length of IP header will be used for ICMP6 packet generation in upper-layer. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9437 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library')
-rw-r--r--MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c b/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c
index c94a79c4dc..4df49a5e7b 100644
--- a/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c
+++ b/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c
@@ -1057,6 +1057,7 @@ IpIoListenHandlerDpc (
Session.Source.Addr[0] = EFI_IP4 (RxData->Ip4RxData.Header->SourceAddress);
Session.Dest.Addr[0] = EFI_IP4 (RxData->Ip4RxData.Header->DestinationAddress);
Session.IpHdr.Ip4Hdr = RxData->Ip4RxData.Header;
+ Session.IpHdrLen = RxData->Ip4RxData.HeaderLength;
Session.IpVersion = IP_VERSION_4;
} else {
@@ -1093,6 +1094,7 @@ IpIoListenHandlerDpc (
sizeof(EFI_IPv6_ADDRESS)
);
Session.IpHdr.Ip6Hdr = RxData->Ip6RxData.Header;
+ Session.IpHdrLen = RxData->Ip6RxData.HeaderLength;
Session.IpVersion = IP_VERSION_6;
}