Linux 4.19.133
[linux/fpc-iii.git] / drivers / target / iscsi / iscsi_target_nego.h
blob835e1b769b3f0cd557beb37474e822aa330ebbc7
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef ISCSI_TARGET_NEGO_H
3 #define ISCSI_TARGET_NEGO_H
5 #define DECIMAL 0
6 #define HEX 1
8 struct iscsi_conn;
9 struct iscsi_login;
10 struct iscsi_np;
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 iscsi_conn *,
16 struct iscsi_login *);
17 extern int iscsi_target_get_initial_payload(struct iscsi_conn *,
18 struct iscsi_login *);
19 extern int iscsi_target_locate_portal(struct iscsi_np *, struct iscsi_conn *,
20 struct iscsi_login *);
21 extern int iscsi_target_start_negotiation(
22 struct iscsi_login *, struct iscsi_conn *);
23 extern void iscsi_target_nego_release(struct iscsi_conn *);
25 #endif /* ISCSI_TARGET_NEGO_H */