NetworkPkg: Add dns support for pxe boot based on IPv6.
The BootFileURL option (59) in dhcpv6 is used to deliver the next server address with bootfile name, as an example "tftp://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]/BOOTFILE_NAME; mode=octet", it can also be “tftp://domain_name/BOOTFILE_NAME; mode=octet”, this patch is to support this case. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo <lubo.zhang@intel.com> Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Cc: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include <Protocol/Udp6.h>
|
||||
#include <Protocol/Dhcp4.h>
|
||||
#include <Protocol/Dhcp6.h>
|
||||
#include <Protocol/Dns6.h>
|
||||
#include <Protocol/Mtftp4.h>
|
||||
#include <Protocol/Mtftp6.h>
|
||||
#include <Protocol/PxeBaseCode.h>
|
||||
@@ -136,6 +137,7 @@ struct _PXEBC_PRIVATE_DATA {
|
||||
EFI_MTFTP6_PROTOCOL *Mtftp6;
|
||||
EFI_UDP6_PROTOCOL *Udp6Read;
|
||||
EFI_UDP6_PROTOCOL *Udp6Write;
|
||||
EFI_DNS6_PROTOCOL *Dns6;
|
||||
|
||||
EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL *Nii;
|
||||
EFI_PXE_BASE_CODE_PROTOCOL PxeBc;
|
||||
@@ -169,6 +171,7 @@ struct _PXEBC_PRIVATE_DATA {
|
||||
EFI_IP_ADDRESS SubnetMask;
|
||||
EFI_IP_ADDRESS GatewayIp;
|
||||
EFI_IP_ADDRESS ServerIp;
|
||||
EFI_IPv6_ADDRESS *DnsServer;
|
||||
UINT16 CurSrcPort;
|
||||
UINT32 IaId;
|
||||
|
||||
|
Reference in New Issue
Block a user