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
This commit is contained in:
@@ -81,6 +81,17 @@ EfiPxeBcStart (
|
|||||||
|
|
||||||
if (Mode->UsingIpv6) {
|
if (Mode->UsingIpv6) {
|
||||||
AsciiPrint ("\n>>Start PXE over IPv6");
|
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.
|
// Configure block size for TFTP as a default value to handle all link layers.
|
||||||
//
|
//
|
||||||
@@ -115,6 +126,17 @@ EfiPxeBcStart (
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
AsciiPrint ("\n>>Start PXE over IPv4");
|
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.
|
// Configure block size for TFTP as a default value to handle all link layers.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user