From a09ee46d9a258ef08a931c0d412c62c98dbdb8aa Mon Sep 17 00:00:00 2001 From: qouyang Date: Tue, 17 Nov 2009 07:57:02 +0000 Subject: =?UTF-8?q?Updated=20the=20IpIoLiband=20and=20the=20change=20inclu?= =?UTF-8?q?des:=201)=20Add=20one=20structure=20member=20=E2=80=93=20IpHdrL?= =?UTF-8?q?en=20in=20the=20EFI=5FNET=5FSESSION=5FDATA=20data=20structure.?= =?UTF-8?q?=202)=20Pass=20IP=20header=20length=20to=20upper-layer=20throug?= =?UTF-8?q?h=20this=20new=20member.=20The=20length=20of=20IP=20header=20wi?= =?UTF-8?q?ll=20be=20used=20for=20ICMP6=20packet=20generation=20in=20upper?= =?UTF-8?q?-layer.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9437 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MdeModulePkg/Library/DxeIpIoLib') 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; } -- cgit v1.2.3