"Fossies" - the Fresh Open Source Software Archive

Member "open-iscsi-2.1.0/usr/host.h" (14 Nov 2019, 597 Bytes) of package /linux/misc/open-iscsi-2.1.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "host.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.0.875_vs_2.0.876.

    1 #ifndef ISCSI_HOST_H
    2 #define ISCSI_HOST_H
    3 #include <sys/types.h>
    4 
    5 #include <libopeniscsiusr/libopeniscsiusr.h>
    6 
    7 #include "types.h"
    8 #include "config.h"
    9 
   10 #define MAX_HOST_NO UINT_MAX
   11 
   12 #define MAX_CHAP_ENTRIES 2048
   13 #define MAX_CHAP_BUF_SZ 4096
   14 #define REQ_CHAP_BUF_SZ (MAX_CHAP_BUF_SZ + sizeof(struct iscsi_uevent))
   15 
   16 struct host_info {
   17         struct iface_rec iface;
   18         uint32_t host_no;
   19 };
   20 
   21 extern int host_info_print(int info_level, uint32_t host_no,
   22                struct iscsi_session **ses, uint32_t se_count);
   23 extern int chap_build_config(struct iscsi_chap_rec *crec, struct iovec *iovs);
   24 
   25 #endif