#include "ocs_os.h"Go to the source code of this file.
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... | |
| 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.
| enum ocs_ip_type_e |
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 ocs_link_state_e |
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 ocs_session_type_e |
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.
| int32_t ocs_iscsi_api_initialize | ( | ocs_t * | ocs | ) |
Initialize the higher level iSCSI software.
| ocs | Pointer to the ocs structure |
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.
| ocs | Pointer to the ocs structure |
| link_state | Provides 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.
| ocs | Pointer to the ocs structure |
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.
| ocs | OCS context |
| userbuf | User buffer to which chap_list items are copied |
| buflen | User 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.
| ocs | Pointer to the ocs structure |
| username | Username to add |
| secret | Secret to add |
| type | CHAP type is incoming or outgoing |
| mode | Target 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.
| ocs | Pointer to the ocs structure |
| username | Username to delete |
| type | CHAP type is incoming or outgoing |
| mode | Target 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.
| ocs | Pointer to the ocs structure that represents this device. |
| vlan_tag | The vlan id |
| iface_handle |
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.
| ocs | Pointer to the ocs structure that represents this device. |
| gateway | IP address of the gateway. |
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.
| ocs | Pointer to the ocs structure |
| sess_type | Either discovery or nomal session |
| mode | Username for Target mode or Initaitor mode |
| type | CHAP 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.
| ocs | Pointer to the ocs structure |
| name | Username to which the secret to be identified |
| secret_len | Length 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.
| ocs | Pointer to the ocs structure |
| tgt_name | The iSCSI target name |
| ini_name | The 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.
| ocs | Pointer to the ocs structure |
Definition at line 350 of file ocs_iscsi_api.c.
| char* ocs_iscsi_ini_get_name | ( | ocs_t * | ocs | ) |
Return this initiator's name.
| ocs | Pointer to the ocs structure. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
| portal | Portal to use. |
| ipsub | IP Address and subnet to add. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
| portal | Portal to use. |
| ip_type | Enumerated type indicating the type of IP address (IPV4, IPV6, etc). |
| max_entries | Maximum number of entries to be returned. |
| num_ips | Actual number of entries returned. |
| ipsub | Used to return queried IP addresses. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
| portal | Portal to use. |
| ipsub | IP Address and subnet to remove. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
| portal | Portal to use. |
| max_entries | Maximum number of entries to be returned. |
| num_ips | Actual number of entries returned. |
| ip | IP address to listen on. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
| ip | IP address to listen on. |
| tcp_port | TCP port number to listen on. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
| ip | IP address to listen on. |
| tcp_port | TCP port number to listen on. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
| isns_server | IP address of the iSNS server. |
| tcp_port | TCP port number. |
| buffer | Pointer to the virtual address of the iSNS buffer. This buffer is used for both the request and response. |
| pkt_len | Length of the packet and returns the length of the response. |
| buff_len | Length of the buffer. Used to truncate the response if required. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
| ip | IP address to listen on. |
| tcp_port | TCP port number to listen on. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
| ip | IP address to listen on. |
| tcp_port | TCP port number to listen on. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
| mac_address | Pointer to the MAC address value. |
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.
| ocs | Pointer to the ocs structure that represents this device |
| is_jumbo | If TRUE, then the portal will be set for jumbo, otherwise set for the standard 1500 bytes. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
| vlan_tag | The vlan to create. |
| portal | Portal to create. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
| portal | Portal to remove. |
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.
| ocs | Pointer to the ocs structure that represents this device. |
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.
| ocs | Pointer to the OCS context |
| iface_handle | Interface handle to check for IP addresses |
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.
| ocs | Pointer to the ocs structure. |
| name | Target name. |
| alias | Target alias. |
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.
| ocs | Pointer to the ocs structure. |
| scst_tgt | Pointer to SCST target |
| sport | SPORT that associates SCST target |
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.
| ocs | Pointer to the ocs structure |
| sport_index | SPORT 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.
| ocs | Pointer to the ocs structure. |
| index | Index into the target name 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.
| ocs | Pointer to the ocs structure. |
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.
| ocs | Pointer to the ocs structure. |
| tgt_name | The iSCSI target name. |
| index | Index into the IP Address 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.
| ocs | Pointer to the ocs structure. |
| index | Index into the target name 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.
| ocs | Pointer to the ocs structure. |
| tgt_name | The iSCSI target name. |
| ip_address | IP address. |
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.
| ocs | Pointer to the ocs structure. |
| tgt_name | The iSCSI target name. |
| ini_name | The iSCSI initiator name. |
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.
| ocs | Pointer to the ocs structure. |
| tgt_name | The iSCSI target name. |
| type | Either discovery or normal sessions. |
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.