iscsi_target_nego.h 718 B

1234567891011121314151617181920
  1. #ifndef ISCSI_TARGET_NEGO_H
  2. #define ISCSI_TARGET_NEGO_H
  3. #define DECIMAL 0
  4. #define HEX 1
  5. extern void convert_null_to_semi(char *, int);
  6. extern int extract_param(const char *, const char *, unsigned int, char *,
  7. unsigned char *);
  8. extern int iscsi_target_check_login_request(struct iscsi_conn *,
  9. struct iscsi_login *);
  10. extern int iscsi_target_get_initial_payload(struct iscsi_conn *,
  11. struct iscsi_login *);
  12. extern int iscsi_target_locate_portal(struct iscsi_np *, struct iscsi_conn *,
  13. struct iscsi_login *);
  14. extern int iscsi_target_start_negotiation(
  15. struct iscsi_login *, struct iscsi_conn *);
  16. extern void iscsi_target_nego_release(struct iscsi_conn *);
  17. #endif /* ISCSI_TARGET_NEGO_H */