diff options
author | sfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-25 01:22:47 +0000 |
---|---|---|
committer | sfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-25 01:22:47 +0000 |
commit | ce280355b2505c3a0b5d167e963448aedcb905dc (patch) | |
tree | 57a072f68bc31cdaa3f24269e4a1521e35dd49cc /NetworkPkg | |
parent | e7fd76d180744440db7b5a91a7787ca39713da05 (diff) | |
download | edk2-ce280355b2505c3a0b5d167e963448aedcb905dc.zip edk2-ce280355b2505c3a0b5d167e963448aedcb905dc.tar.gz edk2-ce280355b2505c3a0b5d167e963448aedcb905dc.tar.bz2 |
1. Fix a bug to initialize the UdpRead instance in EfiPxeBcStart function.
Signed-off-by: sfu5
Reviewed-by: qianouyang
Reviewed-by: xdu2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12775 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg')
-rw-r--r-- | NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c b/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c index 0e17731..00f1e4d 100644 --- a/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c +++ b/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c @@ -82,6 +82,17 @@ EfiPxeBcStart ( if (Mode->UsingIpv6) {
AsciiPrint ("\n>>Start PXE over IPv6");
//
+ // Configure udp6 instance to receive data.
+ //
+ Status = Private->Udp6Read->Configure (
+ Private->Udp6Read,
+ &Private->Udp6CfgData
+ );
+ if (EFI_ERROR (Status)) {
+ goto ON_ERROR;
+ }
+
+ //
// Configure block size for TFTP as a default value to handle all link layers.
//
Private->BlockSize = (UINTN) (Private->Ip6MaxPacketSize -
@@ -116,6 +127,17 @@ EfiPxeBcStart ( } else {
AsciiPrint ("\n>>Start PXE over IPv4");
//
+ // Configure udp4 instance to receive data.
+ //
+ Status = Private->Udp4Read->Configure (
+ Private->Udp4Read,
+ &Private->Udp4CfgData
+ );
+ if (EFI_ERROR (Status)) {
+ goto ON_ERROR;
+ }
+
+ //
// Configure block size for TFTP as a default value to handle all link layers.
//
Private->BlockSize = (UINTN) (Private->Ip4MaxPacketSize -
|