diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2014-09-29 20:55:42 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-09-30 09:29:55 +0200 |
commit | 4bfb8ebf4c21f372a8677f9aa99963985e9e6539 (patch) | |
tree | f1cdb766fe027fd2ab30913ea4cc0d819871c3da /drivers/scsi/libiscsi.c | |
parent | be2iscsi : Bump the driver version (diff) | |
download | linux-4bfb8ebf4c21f372a8677f9aa99963985e9e6539.tar.xz linux-4bfb8ebf4c21f372a8677f9aa99963985e9e6539.zip |
iscsi_tcp: export port being used
This just has iscsi_tcp support ISCSI_PARAM_LOCAL_PORT which
exports the local port being used by the iscsi connection.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r-- | drivers/scsi/libiscsi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index 191b59793519..0d8bc6c66650 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c @@ -3505,6 +3505,7 @@ int iscsi_conn_get_addr_param(struct sockaddr_storage *addr, len = sprintf(buf, "%pI6\n", &sin6->sin6_addr); break; case ISCSI_PARAM_CONN_PORT: + case ISCSI_PARAM_LOCAL_PORT: if (sin) len = sprintf(buf, "%hu\n", be16_to_cpu(sin->sin_port)); else |