diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2007-05-30 12:57:24 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-06-02 15:37:19 -0400 |
commit | 2223696192c687f2853e42b7c1e0d3ef002081fd (patch) | |
tree | 9eef082af7f3286781134226bfc98ec401d41e79 /include/scsi/libiscsi.h | |
parent | 4e7aba73f9f6e9fe6d3fa10d3fd63cd4882ba3d0 (diff) | |
download | kernel_samsung_aries-2223696192c687f2853e42b7c1e0d3ef002081fd.zip kernel_samsung_aries-2223696192c687f2853e42b7c1e0d3ef002081fd.tar.gz kernel_samsung_aries-2223696192c687f2853e42b7c1e0d3ef002081fd.tar.bz2 |
[SCSI] iscsi class, qla4xxx, iscsi_tcp: export local address
This patch exports the local address for the session. For
qla4xxx this is the ip of the hba's port. For software
this is the src addr of the socket.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Cc: David C Somayajulu <david.somayajulu@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/libiscsi.h')
-rw-r--r-- | include/scsi/libiscsi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 2f303a3..eea33f7 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h @@ -72,6 +72,8 @@ struct iscsi_nopin; #define ISCSI_AGE_SHIFT 28 #define ISCSI_AGE_MASK (0xf << ISCSI_AGE_SHIFT) +#define ISCSI_ADDRESS_BUF_LEN 64 + struct iscsi_mgmt_task { /* * Becuae LLDs allocate their hdr differently, this is a pointer to @@ -174,6 +176,12 @@ struct iscsi_conn { /* values userspace uses to id a conn */ int persistent_port; char *persistent_address; + /* remote portal currently connected to */ + int portal_port; + char portal_address[ISCSI_ADDRESS_BUF_LEN]; + /* local address */ + int local_port; + char local_address[ISCSI_ADDRESS_BUF_LEN]; /* MIB-statistics */ uint64_t txdata_octets; |