Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ocs_iscsi_api.h File Reference
#include "ocs_os.h"

Go to the source code of this file.

Detailed Description

Defines the iSCSI interface functions to higher level iSCSI software

Definition in file ocs_iscsi_api.h.

Data Structures

struct  ocs_ip_address_t
 structure wrapping an IP address together with it's type. More...
 
struct  ocs_ip_address_subnet_t
 structure wrapping an IP address and subnet together with their type. More...
 
struct  ocs_chap_user_t
 structure for storing CHAP usernames and passwords. More...
 
struct  ocs_vlan_portal_info_t
 structure for storing VLAN id and interface handle together More...
 
struct  iscsi_api_tgt_t
 Stores information needed to manage targets. More...
 
struct  iscsi_api_t
 

Typedefs

typedef int32_t(* ocs_iscsi_pdu_cb_t )(ocs_io_t *io, uint32_t exp_cmdsn, uint32_t max_cmdsn, uint8_t response)
 

Enumerations

enum  ocs_ip_type_e { OCS_IP_TYPE_V4 = 1, OCS_IP_TYPE_DHCP_V4, OCS_IP_TYPE_V6, OCS_IP_TYPE_AUTO_V6 }
 enum identifying the types of IP addresses. More...
 
enum  ocs_session_type_e { OCS_SESSION_TYPE_DISCOVERY = 1, OCS_SESSION_TYPE_NORMAL }
 enum identifying the types of IP addresses. More...
 
enum  ocs_link_state_e { OCS_LINK_STATE_UP = 1, OCS_LINK_STATE_DOWN }
 enum identifying the link state. More...
 

Functions

char * ocs_iscsi_tgt_get_names (ocs_t *ocs, uint32_t index)
 Returns the target name based on the index. More...
 
char * ocs_iscsi_tgt_get_alias (ocs_t *ocs, uint32_t index)
 Returns the target alias based on the index. More...
 
ocs_ip_address_t * ocs_iscsi_tgt_get_ip_address (ocs_t *ocs, char *tgt_name, uint32_t index)
 Returns the IP address of the target name based on the index. More...
 
uint32_t ocs_iscsi_tgt_get_portal_group (ocs_t *ocs, char *tgt_name, ocs_ip_address_t *ip_address)
 Returns the portal group of an IP address of the target name. More...
 
uint8_t ocs_iscsi_tgt_require_chap (ocs_t *ocs, char *tgt_name, ocs_session_type_e type)
 Returns TRUE if CHAP is required for the session type. More...
 
uint32_t ocs_iscsi_tgt_is_access_allowed (ocs_t *ocs, char *tgt_name, char *ini_name)
 Checks if this initiator is allowed access to a target. More...
 
char * ocs_iscsi_ini_get_name (ocs_t *ocs)
 Return this initiator's name. More...
 
char * ocs_iscsi_ini_get_alias (ocs_t *ocs)
 Returns the initiator alias. More...
 
int32_t ocs_iscsi_api_initialize (ocs_t *ocs)
 Initialize the higher level iSCSI software. More...
 
int32_t ocs_iscsi_api_shutdown (ocs_t *ocs)
 Initialize the higher level iSCSI software. More...
 
void ocs_iscsi_api_link_state (ocs_t *ocs, ocs_link_state_e link_state)
 Notifies the higher level iSCSI software of the link state. More...
 
char * ocs_iscsi_get_chap_name (ocs_t *ocs, uint8_t sess_type, uint32_t mode, uint32_t type)
 Returns the CHAP user name of corresponding type. More...
 
char * ocs_iscsi_get_chap_secret (ocs_t *ocs, char *name, uint32_t mode, uint32_t type, uint32_t *secret_len)
 Returns the unenctypted CHAP secret for a specific user name. Note: Passwords should be at least 16 characters. More...
 
uint32_t ocs_iscsi_get_max_cxns (ocs_t *ocs, char *tgt_name, char *ini_name)
 Returns the maximum number of connections allowed per session. More...
 
void ocs_iscsi_tgt_del_sport (ocs_t *ocs, uint32_t sport_index)
 Delete sport from iscsi target. More...
 
int32_t ocs_iscsi_tgt_add_sport (ocs_t *ocs, ocs_sport_t *sport)
 Add sport to iscsi target. More...
 
ocs_sport_t * ocs_iscsi_tgt_get_free_sport (ocs_t *ocs)
 Get a next free sport object index. More...
 
int32_t ocs_iscsi_tgt_add (ocs_t *ocs, char *name, char *alias)
 Adds a target. More...
 
int32_t ocs_iscsi_mac_set (ocs_t *ocs, uint8_t *mac_address)
 Sets the MAC address of the iSCSI device. More...
 
uint8_t * ocs_iscsi_mac_get (ocs_t *ocs)
 Gets the MAC address of the iSCSI device. More...
 
int32_t ocs_iscsi_ip_address_add (ocs_t *ocs, ocs_hal_portal_t portal, ocs_ip_address_subnet_t *ipsub)
 Adds the IP address to the specified interface. More...
 
int32_t ocs_iscsi_ip_address_remove (ocs_t *ocs, ocs_hal_portal_t portal, ocs_ip_address_subnet_t *ipsub)
 Remove the IP address to the specified interface. More...
 
int32_t ocs_iscsi_ip_address_query (ocs_t *ocs, ocs_hal_portal_t portal, ocs_ip_type_e ip_type, uint32_t max_entries, uint32_t *num_ips, ocs_ip_address_subnet_t *ipsub)
 Queries the IP addresses on the default interface. More...
 
int32_t ocs_iscsi_find_portal_from_vlan (ocs_t *ocs, uint32_t vlan_id, ocs_hal_portal_t *iface_handle)
 Helper function to find respective interface handle of VLAN id. More...
 
int32_t ocs_iscsi_portal_remove_ip_addresses (ocs_t *ocs, ocs_hal_portal_t iface_handle)
 Check and remove IP addresses of the corresponding interface. More...
 
ocs_hal_portal_t ocs_iscsi_portal_get_default (ocs_t *ocs)
 Retrieves the default portal. More...
 
int32_t ocs_iscsi_portal_create (ocs_t *ocs, unsigned int vlan_tag, ocs_hal_portal_t *portal)
 Creates a portal for a VLAN. More...
 
int32_t ocs_iscsi_portal_delete (ocs_t *ocs, ocs_hal_portal_t portal)
 Removes a previously-created portal. More...
 
int32_t ocs_iscsi_listen_start (ocs_t *ocs, ocs_ip_address_t *ip, uint16_t tcp_port)
 Starts a TCP listen socket. More...
 
int32_t ocs_iscsi_listen_stop (ocs_t *ocs, ocs_ip_address_t *ip, uint16_t tcp_port)
 Stops a TCP listen socket. More...
 
int32_t ocs_iscsi_gateway_set (ocs_t *ocs, ocs_ip_address_t *gateway)
 Sets the IP gateway address. More...
 
int32_t ocs_iscsi_mtu_set (ocs_t *ocs, uint8_t is_jumbo)
 Sets the TCP MTU size of the iSCSI device. More...
 
int32_t ocs_iscsi_isns_discover (ocs_t *ocs, ocs_hal_portal_t portal, uint32_t max_entries, uint32_t *num_ips, ocs_ip_address_t *ip)
 Discovers the iSNS through the DHCP service. More...
 
int32_t ocs_iscsi_isns_esi_listen_start (ocs_t *ocs, ocs_ip_address_t *ip, uint16_t tcp_port)
 Starts an iSNS ESI TCP listen socket. More...
 
int32_t ocs_iscsi_isns_esi_listen_stop (ocs_t *ocs, ocs_ip_address_t *ip, uint16_t tcp_port)
 Stops an iSNS ESI TCP listen socket. More...
 
int32_t ocs_iscsi_isns_send (ocs_t *ocs, ocs_ip_address_t *isns_server, uint32_t tcp_port, void *pkt, uint32_t *pkt_len, uint32_t buff_len)
 Sends an iSNS packet to a server to test the interface. More...
 
int32_t ocs_iscsi_chap_user_add (ocs_t *ocs, char *username, char *secret, uint32_t type, uint32_t mode)
 Add CHAP user. If CHAP user of same type is already exists, return error. More...
 
int32_t ocs_iscsi_chap_user_del (ocs_t *ocs, char *username, uint32_t type, uint32_t mode)
 Delete CHAP user. More...
 
int32_t ocs_iscsi_chap_list_get (ocs_t *ocs, char *userbuf, int32_t buflen)
 Return CHAP list items. More...
 
int32_t ocs_iscsi_unassisted_pdu_send (ocs_t *ocs, ocs_io_t *io, ocs_cxn_t *cxn, void *bhs, void *data, uint32_t data_size, bool is_login, bool set_dm, ocs_iscsi_pdu_cb_t cb)
 
int32_t ocs_iscsi_send_context_udpate (ocs_cxn_t *cxn)
 Sends the login parameters to the FW. More...
 

Type Details

typedef int32_t(* ocs_iscsi_pdu_cb_t)(ocs_io_t *io, uint32_t exp_cmdsn, uint32_t max_cmdsn, uint8_t response)

Definition at line 243 of file ocs_iscsi_api.h.

Enumeration Details

enum identifying the types of IP addresses.

Enumerator
OCS_IP_TYPE_V4 
OCS_IP_TYPE_DHCP_V4 
OCS_IP_TYPE_V6 
OCS_IP_TYPE_AUTO_V6 

Definition at line 46 of file ocs_iscsi_api.h.

enum identifying the link state.

Enumerator
OCS_LINK_STATE_UP 
OCS_LINK_STATE_DOWN 

Definition at line 66 of file ocs_iscsi_api.h.

enum identifying the types of IP addresses.

Enumerator
OCS_SESSION_TYPE_DISCOVERY 
OCS_SESSION_TYPE_NORMAL 

Definition at line 57 of file ocs_iscsi_api.h.

Function Details

int32_t ocs_iscsi_api_initialize ( ocs_t *  ocs)

Initialize the higher level iSCSI software.

Parameters
ocsPointer to the ocs structure
Returns
0 for success

Definition at line 364 of file ocs_iscsi_api.c.

void ocs_iscsi_api_link_state ( ocs_t *  ocs,
ocs_link_state_e  link_state 
)

Notifies the higher level iSCSI software of the link state.

Parameters
ocsPointer to the ocs structure
link_stateProvides the status of the link

Definition at line 953 of file ocs_iscsi_api.c.

int32_t ocs_iscsi_api_shutdown ( ocs_t *  ocs)

Initialize the higher level iSCSI software.

Parameters
ocsPointer to the ocs structure
Returns
0 for success

Definition at line 469 of file ocs_iscsi_api.c.

int32_t ocs_iscsi_chap_list_get ( ocs_t *  ocs,
char *  userbuf,
int32_t  buflen 
)

Return CHAP list items.

Parameters
ocsOCS context
userbufUser buffer to which chap_list items are copied
buflenUser buffer length

zero on success, otherwise a negative value

Definition at line 1180 of file ocs_iscsi_api.c.

int32_t ocs_iscsi_chap_user_add ( ocs_t *  ocs,
char *  username,
char *  secret,
uint32_t  type,
uint32_t  mode 
)

Add CHAP user. If CHAP user of same type is already exists, return error.

Parameters
ocsPointer to the ocs structure
usernameUsername to add
secretSecret to add
typeCHAP type is incoming or outgoing
modeTarget or Initiator mode

Return zero on success, otherwise a negative value

Definition at line 1043 of file ocs_iscsi_api.c.

int32_t ocs_iscsi_chap_user_del ( ocs_t *  ocs,
char *  username,
uint32_t  type,
uint32_t  mode 
)

Delete CHAP user.

Parameters
ocsPointer to the ocs structure
usernameUsername to delete
typeCHAP type is incoming or outgoing
modeTarget or Initiator mode

Return zero on success, otherwise a negative value

Definition at line 1095 of file ocs_iscsi_api.c.

int32_t ocs_iscsi_find_portal_from_vlan ( ocs_t *  ocs,
uint32_t  vlan_id,
ocs_hal_portal_t *  iface_handle 
)

Helper function to find respective interface handle of VLAN id.

Parameters
ocsPointer to the ocs structure that represents this device.
vlan_tagThe vlan id
iface_handle
Returns
Returns 0 if interface handle is found, otherwise a negative value.

Definition at line 2921 of file ocs_iscsi.c.

int32_t ocs_iscsi_gateway_set ( ocs_t *  ocs,
ocs_ip_address_t *  gateway 
)

Sets the IP gateway address.

Parameters
ocsPointer to the ocs structure that represents this device.
gatewayIP address of the gateway.
Returns
Returns 0 on success.

Definition at line 2771 of file ocs_iscsi.c.

char* ocs_iscsi_get_chap_name ( ocs_t *  ocs,
uint8_t  sess_type,
uint32_t  mode,
uint32_t  type 
)

Returns the CHAP user name of corresponding type.

Parameters
ocsPointer to the ocs structure
sess_typeEither discovery or nomal session
modeUsername for Target mode or Initaitor mode
typeCHAP incoming or outgoing

Definition at line 983 of file ocs_iscsi_api.c.

char* ocs_iscsi_get_chap_secret ( ocs_t *  ocs,
char *  name,
uint32_t  mode,
uint32_t  type,
uint32_t *  secret_len 
)

Returns the unenctypted CHAP secret for a specific user name. Note: Passwords should be at least 16 characters.

Parameters
ocsPointer to the ocs structure
nameUsername to which the secret to be identified
secret_lenLength of the secret code

Definition at line 1009 of file ocs_iscsi_api.c.

uint32_t ocs_iscsi_get_max_cxns ( ocs_t *  ocs,
char *  tgt_name,
char *  ini_name 
)

Returns the maximum number of connections allowed per session.

Parameters
ocsPointer to the ocs structure
tgt_nameThe iSCSI target name
ini_nameThe iSCSI initiator name

Definition at line 970 of file ocs_iscsi_api.c.

char* ocs_iscsi_ini_get_alias ( ocs_t *  ocs)

Returns the initiator alias.

Parameters
ocsPointer to the ocs structure
Returns
Pointer to the initiator alias or NULL

Definition at line 350 of file ocs_iscsi_api.c.

char* ocs_iscsi_ini_get_name ( ocs_t *  ocs)

Return this initiator's name.

Parameters
ocsPointer to the ocs structure.
Returns
Pointer to the initiator name.

Definition at line 325 of file ocs_iscsi_api.c.

int32_t ocs_iscsi_ip_address_add ( ocs_t *  ocs,
ocs_hal_portal_t  portal,
ocs_ip_address_subnet_t *  ipsub 
)

Adds the IP address to the specified interface.

Parameters
ocsPointer to the ocs structure that represents this device.
portalPortal to use.
ipsubIP Address and subnet to add.
Returns
Returns 0 on success.

Definition at line 2417 of file ocs_iscsi.c.

int32_t ocs_iscsi_ip_address_query ( ocs_t *  ocs,
ocs_hal_portal_t  portal,
ocs_ip_type_e  ip_type,
uint32_t  max_entries,
uint32_t *  num_ips,
ocs_ip_address_subnet_t *  ipsub 
)

Queries the IP addresses on the default interface.

Parameters
ocsPointer to the ocs structure that represents this device.
portalPortal to use.
ip_typeEnumerated type indicating the type of IP address (IPV4, IPV6, etc).
max_entriesMaximum number of entries to be returned.
num_ipsActual number of entries returned.
ipsubUsed to return queried IP addresses.
Returns
Returns 0 on success.

Definition at line 2567 of file ocs_iscsi.c.

int32_t ocs_iscsi_ip_address_remove ( ocs_t *  ocs,
ocs_hal_portal_t  portal,
ocs_ip_address_subnet_t *  ipsub 
)

Remove the IP address to the specified interface.

Parameters
ocsPointer to the ocs structure that represents this device.
portalPortal to use.
ipsubIP Address and subnet to remove.
Returns
Returns 0 on success.

Definition at line 2510 of file ocs_iscsi.c.

int32_t ocs_iscsi_isns_discover ( ocs_t *  ocs,
ocs_hal_portal_t  portal,
uint32_t  max_entries,
uint32_t *  num_ips,
ocs_ip_address_t *  ip 
)

Discovers the iSNS through the DHCP service.

Parameters
ocsPointer to the ocs structure that represents this device.
portalPortal to use.
max_entriesMaximum number of entries to be returned.
num_ipsActual number of entries returned.
ipIP address to listen on.
Returns
Returns 0 on success.

Definition at line 1138 of file ocs_iscsi.c.

int32_t ocs_iscsi_isns_esi_listen_start ( ocs_t *  ocs,
ocs_ip_address_t *  ip,
uint16_t  tcp_port 
)

Starts an iSNS ESI TCP listen socket.

Parameters
ocsPointer to the ocs structure that represents this device.
ipIP address to listen on.
tcp_portTCP port number to listen on.
Returns
Returns 0 on success.

Definition at line 1037 of file ocs_iscsi.c.

int32_t ocs_iscsi_isns_esi_listen_stop ( ocs_t *  ocs,
ocs_ip_address_t *  ip,
uint16_t  tcp_port 
)

Stops an iSNS ESI TCP listen socket.

Parameters
ocsPointer to the ocs structure that represents this device.
ipIP address to listen on.
tcp_portTCP port number to listen on.
Returns
Returns 0 on success.

Definition at line 1087 of file ocs_iscsi.c.

int32_t ocs_iscsi_isns_send ( ocs_t *  ocs,
ocs_ip_address_t *  isns_server,
uint32_t  tcp_port,
void *  buffer,
uint32_t *  pkt_len,
uint32_t  buff_len 
)

Sends an iSNS packet to a server to test the interface.

Parameters
ocsPointer to the ocs structure that represents this device.
isns_serverIP address of the iSNS server.
tcp_portTCP port number.
bufferPointer to the virtual address of the iSNS buffer. This buffer is used for both the request and response.
pkt_lenLength of the packet and returns the length of the response.
buff_lenLength of the buffer. Used to truncate the response if required.
Returns
Returns 0 on success.

Definition at line 1196 of file ocs_iscsi.c.

int32_t ocs_iscsi_listen_start ( ocs_t *  ocs,
ocs_ip_address_t *  ip,
uint16_t  tcp_port 
)

Starts a TCP listen socket.

Parameters
ocsPointer to the ocs structure that represents this device.
ipIP address to listen on.
tcp_portTCP port number to listen on.
Returns
Returns 0 on success.

Definition at line 3227 of file ocs_iscsi.c.

int32_t ocs_iscsi_listen_stop ( ocs_t *  ocs,
ocs_ip_address_t *  ip,
uint16_t  tcp_port 
)

Stops a TCP listen socket.

Parameters
ocsPointer to the ocs structure that represents this device.
ipIP address to listen on.
tcp_portTCP port number to listen on.
Returns
Returns 0 on success.

Definition at line 3275 of file ocs_iscsi.c.

uint8_t* ocs_iscsi_mac_get ( ocs_t *  ocs)

Gets the MAC address of the iSCSI device.

Parameters
ocsPointer to the ocs structure that represents this device.
Returns
Returns a pointer to an array of 6 bytes containing the MAC address of the interface.

Definition at line 1323 of file ocs_iscsi.c.

int32_t ocs_iscsi_mac_set ( ocs_t *  ocs,
uint8_t *  mac_address 
)

Sets the MAC address of the iSCSI device.

Parameters
ocsPointer to the ocs structure that represents this device.
mac_addressPointer to the MAC address value.
Returns
Returns 0 on success.

Definition at line 1281 of file ocs_iscsi.c.

int32_t ocs_iscsi_mtu_set ( ocs_t *  ocs,
uint8_t  is_jumbo 
)

Sets the TCP MTU size of the iSCSI device.

Parameters
ocsPointer to the ocs structure that represents this device
is_jumboIf TRUE, then the portal will be set for jumbo, otherwise set for the standard 1500 bytes.
Returns
Returns 0 on success.

Definition at line 2173 of file ocs_iscsi.c.

int32_t ocs_iscsi_portal_create ( ocs_t *  ocs,
unsigned int  vlan_id,
ocs_hal_portal_t *  portal 
)

Creates a portal for a VLAN.

Parameters
ocsPointer to the ocs structure that represents this device.
vlan_tagThe vlan to create.
portalPortal to create.
Returns
Returns 0 on success.

Definition at line 3125 of file ocs_iscsi.c.

int32_t ocs_iscsi_portal_delete ( ocs_t *  ocs,
ocs_hal_portal_t  portal 
)

Removes a previously-created portal.

Parameters
ocsPointer to the ocs structure that represents this device.
portalPortal to remove.
Returns
Returns 0 on success.

Definition at line 3183 of file ocs_iscsi.c.

ocs_hal_portal_t ocs_iscsi_portal_get_default ( ocs_t *  ocs)

Retrieves the default portal.

Parameters
ocsPointer to the ocs structure that represents this device.
Returns
Returns the default portal.

Definition at line 2816 of file ocs_iscsi.c.

int32_t ocs_iscsi_portal_remove_ip_addresses ( ocs_t *  ocs,
ocs_hal_portal_t  iface_handle 
)

Check and remove IP addresses of the corresponding interface.

Parameters
ocsPointer to the OCS context
iface_handleInterface handle to check for IP addresses
Returns
Returns 0 on success, otherwise a negative value

Definition at line 2862 of file ocs_iscsi.c.

int32_t ocs_iscsi_tgt_add ( ocs_t *  ocs,
char *  name,
char *  alias 
)

Adds a target.

Parameters
ocsPointer to the ocs structure.
nameTarget name.
aliasTarget alias.
Returns
Returns 0 on success.

Definition at line 155 of file ocs_iscsi_api.c.

int32_t ocs_iscsi_tgt_add_sport ( ocs_t *  ocs,
ocs_sport_t *  sport 
)

Add sport to iscsi target.

Parameters
ocsPointer to the ocs structure.
scst_tgtPointer to SCST target
sportSPORT that associates SCST target
Returns
Returns 0 on success.

Definition at line 85 of file ocs_iscsi_api.c.

void ocs_iscsi_tgt_del_sport ( ocs_t *  ocs,
uint32_t  sport_index 
)

Delete sport from iscsi target.

Parameters
ocsPointer to the ocs structure
sport_indexSPORT index to be deleted

Definition at line 127 of file ocs_iscsi_api.c.

char* ocs_iscsi_tgt_get_alias ( ocs_t *  ocs,
uint32_t  index 
)

Returns the target alias based on the index.

Parameters
ocsPointer to the ocs structure.
indexIndex into the target name list.
Returns
Returns pointer to the target name, or NULL if the index exceeds the list.

Definition at line 215 of file ocs_iscsi_api.c.

ocs_sport_t* ocs_iscsi_tgt_get_free_sport ( ocs_t *  ocs)

Get a next free sport object index.

Parameters
ocsPointer to the ocs structure.
Returns
Returns sport inx on success.

Definition at line 57 of file ocs_iscsi_api.c.

ocs_ip_address_t* ocs_iscsi_tgt_get_ip_address ( ocs_t *  ocs,
char *  tgt_name,
uint32_t  index 
)

Returns the IP address of the target name based on the index.

Parameters
ocsPointer to the ocs structure.
tgt_nameThe iSCSI target name.
indexIndex into the IP Address list.
Returns
Pointer to the IP address, or NULL if the index exceeds the list.

Definition at line 244 of file ocs_iscsi_api.c.

char* ocs_iscsi_tgt_get_names ( ocs_t *  ocs,
uint32_t  index 
)

Returns the target name based on the index.

Parameters
ocsPointer to the ocs structure.
indexIndex into the target name list.
Returns
Returns pointer to the target name, or NULL if the index exceeds the list.

Definition at line 186 of file ocs_iscsi_api.c.

uint32_t ocs_iscsi_tgt_get_portal_group ( ocs_t *  ocs,
char *  tgt_name,
ocs_ip_address_t *  ip_address 
)

Returns the portal group of an IP address of the target name.

Parameters
ocsPointer to the ocs structure.
tgt_nameThe iSCSI target name.
ip_addressIP address.
Returns
Returns the target portal group tag.

Definition at line 276 of file ocs_iscsi_api.c.

uint32_t ocs_iscsi_tgt_is_access_allowed ( ocs_t *  ocs,
char *  tgt_name,
char *  ini_name 
)

Checks if this initiator is allowed access to a target.

Parameters
ocsPointer to the ocs structure.
tgt_nameThe iSCSI target name.
ini_nameThe iSCSI initiator name.
Returns
Returns TRUE if access is allowed.

Definition at line 310 of file ocs_iscsi_api.c.

uint8_t ocs_iscsi_tgt_require_chap ( ocs_t *  ocs,
char *  tgt_name,
ocs_session_type_e  type 
)

Returns TRUE if CHAP is required for the session type.

Parameters
ocsPointer to the ocs structure.
tgt_nameThe iSCSI target name.
typeEither discovery or normal sessions.
Returns
Returns TRUE if CHAP is required.

Definition at line 293 of file ocs_iscsi_api.c.

int32_t ocs_iscsi_unassisted_pdu_send ( ocs_t *  ocs,
ocs_io_t *  io,
ocs_cxn_t *  cxn,
void *  bhs,
void *  data,
uint32_t  data_size,
bool  is_login,
bool  set_dm,
ocs_iscsi_pdu_cb_t  cb 
)

Definition at line 1258 of file ocs_iscsi_api.c.