diff options
author | mnc <mnc@d7303112-9cec-0310-bdd2-e83a94d6c2b6> | 2007-05-30 18:02:00 +0000 |
---|---|---|
committer | mnc <mnc@d7303112-9cec-0310-bdd2-e83a94d6c2b6> | 2007-05-30 18:02:00 +0000 |
commit | de34873785738a87733050f3f9b37e2f6d1de032 (patch) | |
tree | 2c3b386d7780cf8c6b00bfd80e407cd33ca60c30 /usr/config.h | |
parent | 2ad4dd70f63d3021b466f7db078ce61fbf14cf4d (diff) | |
download | open-iscsi-de34873785738a87733050f3f9b37e2f6d1de032.tar.gz |
Support bind by hw address or netdev (ip address is temp disabled because targets are not handling it well) and use the iface argument instead of the actual values
git-svn-id: svn://svn.berlios.de/open-iscsi@845 d7303112-9cec-0310-bdd2-e83a94d6c2b6
Diffstat (limited to 'usr/config.h')
-rw-r--r-- | usr/config.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/config.h b/usr/config.h index d231a1b..b0ad1e5 100644 --- a/usr/config.h +++ b/usr/config.h @@ -33,8 +33,6 @@ /* number of possible connections per session */ #define ISCSI_CONN_MAX 1 -/* number of possible interfaces to manually enter */ -#define ISCSI_IFACE_MAX 32 /* max len of interface */ #define ISCSI_MAX_IFACE_LEN 65 @@ -186,15 +184,21 @@ typedef struct session_rec { typedef struct iface_rec { struct list_head list; + /* iscsi iface record name */ + char name[ISCSI_MAX_IFACE_LEN]; + /* network layer iface name (eth0) */ + char netdev[IFNAMSIZ]; + char ipaddress[NI_MAXHOST]; /* * TODO: we may have to make this bigger and interconnect - * specific for iser and and possibly qla4xxx hba serials + * specific for infinniband */ char hwaddress[ISCSI_MAX_IFACE_LEN]; char transport_name[ISCSI_TRANSPORT_NAME_MAXLEN]; } iface_rec_t; typedef struct node_rec { + struct list_head list; char name[TARGET_NAME_MAXLEN]; int tpgt; iscsi_startup_e startup; |