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>
// ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv6(...)\r
//\r
// The HTTP device path is like:\r
// ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv6(...)\r
//\r
// The HTTP device path is like:\r
- // ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv4(...)/Uri(...)\r
- // ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv6(...)/Uri(...)\r
+ // ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv4(...)[/Dns(...)]/Uri(...)\r
+ // ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv6(...)[/Dns(...)]/Uri(...)\r
//\r
while (!IsDevicePathEnd (DevicePath) &&\r
((DevicePathType (DevicePath) != MESSAGING_DEVICE_PATH) ||\r
//\r
while (!IsDevicePathEnd (DevicePath) &&\r
((DevicePathType (DevicePath) != MESSAGING_DEVICE_PATH) ||\r
} else {\r
Ip = NULL;\r
}\r
} else {\r
Ip = NULL;\r
}\r
+ \r
+ //\r
+ // Skip the optional DNS node\r
+ //\r
+ if ((DevicePathType (DevicePath) == MESSAGING_DEVICE_PATH) &&\r
+ (DevicePathSubType (DevicePath) == MSG_DNS_DP)\r
+ ) {\r
+ DevicePath = NextDevicePathNode (DevicePath);\r
+ }\r
\r
//\r
// Locate the URI node\r
\r
//\r
// Locate the URI node\r