summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-25 01:22:47 +0000
committersfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-25 01:22:47 +0000
commit95020e9f85a02237ed6d44b5d4652997004f5772 (patch)
tree49a25428a1e8d5e2c73df730258a05dcbfb9aef8
parent0422bcf4a966527107b7e5a29b7c5fc4fdca1a34 (diff)
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@12775 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--edk2/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c b/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c
index 0e1773115..00f1e4d39 100644
--- a/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c
+++ b/edk2/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 -