mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/UefiBootManagerLib: Support DNS device path description
This patch is to update UEFI Boot manager to support DNS device path for HTTP(S) network boot. Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com>
This commit is contained in:
parent
9b9d0655c1
commit
67e0bbd6c3
|
@ -387,8 +387,8 @@ BmGetNetworkDescription (
|
||||||
// ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv6(...)
|
// ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv6(...)
|
||||||
//
|
//
|
||||||
// The HTTP device path is like:
|
// The HTTP device path is like:
|
||||||
// ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv4(...)/Uri(...)
|
// ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv4(...)[/Dns(...)]/Uri(...)
|
||||||
// ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv6(...)/Uri(...)
|
// ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv6(...)[/Dns(...)]/Uri(...)
|
||||||
//
|
//
|
||||||
while (!IsDevicePathEnd (DevicePath) &&
|
while (!IsDevicePathEnd (DevicePath) &&
|
||||||
((DevicePathType (DevicePath) != MESSAGING_DEVICE_PATH) ||
|
((DevicePathType (DevicePath) != MESSAGING_DEVICE_PATH) ||
|
||||||
|
@ -438,6 +438,15 @@ BmGetNetworkDescription (
|
||||||
Ip = NULL;
|
Ip = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Skip the optional DNS node
|
||||||
|
//
|
||||||
|
if ((DevicePathType (DevicePath) == MESSAGING_DEVICE_PATH) &&
|
||||||
|
(DevicePathSubType (DevicePath) == MSG_DNS_DP)
|
||||||
|
) {
|
||||||
|
DevicePath = NextDevicePathNode (DevicePath);
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Locate the URI node
|
// Locate the URI node
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue