X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=NetworkPkg%2FIScsiDxe%2FIScsiMisc.h;fp=NetworkPkg%2FIScsiDxe%2FIScsiMisc.h;h=2c0fe07fdb60a54da82d8c3199f6a5db492da1e9;hp=912a8711fab3de1d7077868b91fba97c5686362a;hb=eabc6e59b9a718a44ab292f7e5c447c4c06d21c4;hpb=a409875592d984fdc412675e93884556eb6635d0 diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.h b/NetworkPkg/IScsiDxe/IScsiMisc.h index 912a8711fa..2c0fe07fdb 100644 --- a/NetworkPkg/IScsiDxe/IScsiMisc.h +++ b/NetworkPkg/IScsiDxe/IScsiMisc.h @@ -1,7 +1,7 @@ /** @file Miscellaneous definitions for iSCSI driver. -Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -33,6 +33,7 @@ typedef struct _ISCSI_DRIVER_DATA ISCSI_DRIVER_DATA; /// #define IP6_OLD_IPADDRESS_OFFSET 42 + #pragma pack(1) typedef struct _ISCSI_SESSION_CONFIG_NVDATA { UINT16 TargetPort; @@ -45,6 +46,7 @@ typedef struct _ISCSI_SESSION_CONFIG_NVDATA { BOOLEAN InitiatorInfoFromDhcp; BOOLEAN TargetInfoFromDhcp; + CHAR8 TargetName[ISCSI_NAME_MAX_SIZE]; EFI_IP_ADDRESS TargetIp; UINT8 PrefixLength; @@ -57,6 +59,9 @@ typedef struct _ISCSI_SESSION_CONFIG_NVDATA { BOOLEAN RedirectFlag; UINT16 OriginalTargetPort; // The port of proxy/virtual target. EFI_IP_ADDRESS OriginalTargetIp; // The address of proxy/virtual target. + + BOOLEAN DnsMode; // Flag indicate whether the Target address is expressed as URL format. + CHAR8 TargetUrl[ISCSI_TARGET_URI_MAX_SIZE]; } ISCSI_SESSION_CONFIG_NVDATA; #pragma pack() @@ -338,6 +343,20 @@ IScsiDhcpIsConfigured ( IN UINT8 IpVersion ); +/** + Check wheather the Controller handle is configured to use DNS protocol. + + @param[in] Controller The handle of the controller. + + @retval TRUE The handle of the controller need the DNS protocol. + @retval FALSE The handle of the controller does not need the DNS protocol. + +**/ +BOOLEAN +IScsiDnsIsConfigured ( + IN EFI_HANDLE Controller + ); + /** Get the various configuration data of this iSCSI instance.