From de34873785738a87733050f3f9b37e2f6d1de032 Mon Sep 17 00:00:00 2001 From: mnc Date: Wed, 30 May 2007 18:02:00 +0000 Subject: 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 --- usr/config.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'usr/config.h') 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; -- cgit v1.2.1