1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef ISCSI_TARGET_NEGO_H 3 #define ISCSI_TARGET_NEGO_H 4 5 #define DECIMAL 0 6 #define HEX 1 7 8 struct iscsit_conn; 9 struct iscsi_login; 10 struct iscsi_np; 11 12 extern void convert_null_to_semi(char *, int); 13 extern int extract_param(const char *, const char *, unsigned int, char *, 14 unsigned char *); 15 extern int iscsi_target_check_login_request(struct iscsit_conn *, 16 struct iscsi_login *); 17 extern int iscsi_target_get_initial_payload(struct iscsit_conn *, 18 struct iscsi_login *); 19 extern int iscsi_target_locate_portal(struct iscsi_np *, struct iscsit_conn *, 20 struct iscsi_login *); 21 extern int iscsi_target_start_negotiation( 22 struct iscsi_login *, struct iscsit_conn *); 23 extern void iscsi_target_nego_release(struct iscsit_conn *); 24 25 #endif /* ISCSI_TARGET_NEGO_H */ 26