2 The head file of iSCSI DHCP4 related configuration routines.
4 Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #define _ISCSI_DHCP_H_
12 #define ISCSI_ROOT_PATH_ID "iscsi:"
13 #define ISCSI_ROOT_PATH_FIELD_DELIMITER ':'
15 #define RP_FIELD_IDX_SERVERNAME 0
16 #define RP_FIELD_IDX_PROTOCOL 1
17 #define RP_FIELD_IDX_PORT 2
18 #define RP_FIELD_IDX_LUN 3
19 #define RP_FIELD_IDX_TARGETNAME 4
20 #define RP_FIELD_IDX_MAX 5
22 typedef struct _ISCSI_ATTEMPT_CONFIG_NVDATA ISCSI_ATTEMPT_CONFIG_NVDATA
;
24 typedef struct _ISCSI_ROOT_PATH_FIELD
{
27 } ISCSI_ROOT_PATH_FIELD
;
30 Parse the DHCP ACK to get the address configuration and DNS information.
32 @param[in] Image The handle of the driver image.
33 @param[in] Controller The handle of the controller.
34 @param[in, out] ConfigData The attempt configuration data.
36 @retval EFI_SUCCESS The DNS information is got from the DHCP ACK.
37 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
38 @retval EFI_NO_MEDIA There was a media error.
39 @retval Others Other errors as indicated.
45 IN EFI_HANDLE Controller
,
46 IN OUT ISCSI_ATTEMPT_CONFIG_NVDATA
*ConfigData