TianoCore EDK2 master
Loading...
Searching...
No Matches
IScsiDhcp.h File Reference

Go to the source code of this file.

Data Structures

struct  _ISCSI_ROOT_PATH_FIELD
 

Macros

#define ISCSI_ROOT_PATH_ID   "iscsi:"
 
#define ISCSI_ROOT_PATH_FIELD_DELIMITER   ':'
 
#define RP_FIELD_IDX_SERVERNAME   0
 
#define RP_FIELD_IDX_PROTOCOL   1
 
#define RP_FIELD_IDX_PORT   2
 
#define RP_FIELD_IDX_LUN   3
 
#define RP_FIELD_IDX_TARGETNAME   4
 
#define RP_FIELD_IDX_MAX   5
 

Typedefs

typedef struct _ISCSI_ATTEMPT_CONFIG_NVDATA ISCSI_ATTEMPT_CONFIG_NVDATA
 
typedef struct _ISCSI_ROOT_PATH_FIELD ISCSI_ROOT_PATH_FIELD
 

Functions

EFI_STATUS IScsiDoDhcp (IN EFI_HANDLE Image, IN EFI_HANDLE Controller, IN OUT ISCSI_ATTEMPT_CONFIG_NVDATA *ConfigData)
 

Detailed Description

The head file of iSCSI DHCP4 related configuration routines.

Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file IScsiDhcp.h.

Macro Definition Documentation

◆ ISCSI_ROOT_PATH_FIELD_DELIMITER

#define ISCSI_ROOT_PATH_FIELD_DELIMITER   ':'

Definition at line 13 of file IScsiDhcp.h.

◆ ISCSI_ROOT_PATH_ID

#define ISCSI_ROOT_PATH_ID   "iscsi:"

Definition at line 12 of file IScsiDhcp.h.

◆ RP_FIELD_IDX_LUN

#define RP_FIELD_IDX_LUN   3

Definition at line 18 of file IScsiDhcp.h.

◆ RP_FIELD_IDX_MAX

#define RP_FIELD_IDX_MAX   5

Definition at line 20 of file IScsiDhcp.h.

◆ RP_FIELD_IDX_PORT

#define RP_FIELD_IDX_PORT   2

Definition at line 17 of file IScsiDhcp.h.

◆ RP_FIELD_IDX_PROTOCOL

#define RP_FIELD_IDX_PROTOCOL   1

Definition at line 16 of file IScsiDhcp.h.

◆ RP_FIELD_IDX_SERVERNAME

#define RP_FIELD_IDX_SERVERNAME   0

Definition at line 15 of file IScsiDhcp.h.

◆ RP_FIELD_IDX_TARGETNAME

#define RP_FIELD_IDX_TARGETNAME   4

Definition at line 19 of file IScsiDhcp.h.

Typedef Documentation

◆ ISCSI_ATTEMPT_CONFIG_NVDATA

Definition at line 22 of file IScsiDhcp.h.

Function Documentation

◆ IScsiDoDhcp()

EFI_STATUS IScsiDoDhcp ( IN EFI_HANDLE  Image,
IN EFI_HANDLE  Controller,
IN OUT ISCSI_ATTEMPT_CONFIG_NVDATA ConfigData 
)

Parse the DHCP ACK to get the address configuration and DNS information.

Parameters
[in]ImageThe handle of the driver image.
[in]ControllerThe handle of the controller.
[in,out]ConfigDataThe attempt configuration data.
Return values
EFI_SUCCESSThe DNS information is got from the DHCP ACK.
EFI_OUT_OF_RESOURCESFailed to allocate memory.
EFI_NO_MEDIAThere was a media error.
OthersOther errors as indicated.

Definition at line 435 of file IScsiDhcp.c.