summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/login.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-07-05 21:18:33 +0000
committermav <mav@FreeBSD.org>2014-07-05 21:18:33 +0000
commite3cec6db55cb1225d5dd300275ea0821b98e400e (patch)
tree8dd744dc9abb3eaabb01ff17f89d2e955135dc9c /usr.sbin/ctld/login.c
parentf995552a764a2c98cd7a2221aee581a0e5198186 (diff)
downloadFreeBSD-src-e3cec6db55cb1225d5dd300275ea0821b98e400e.zip
FreeBSD-src-e3cec6db55cb1225d5dd300275ea0821b98e400e.tar.gz
Pass through iSCSI session ISID from LOGIN request to the CTL frontend.
ISID is an important part of initiator transport ID for iSCSI. It is not used now, but should be to properly implement persistent reservation.
Diffstat (limited to 'usr.sbin/ctld/login.c')
-rw-r--r--usr.sbin/ctld/login.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/ctld/login.c b/usr.sbin/ctld/login.c
index f830d15..b14b264 100644
--- a/usr.sbin/ctld/login.c
+++ b/usr.sbin/ctld/login.c
@@ -850,6 +850,9 @@ login(struct connection *conn)
log_errx(1, "received Login PDU with non-zero TSIH");
}
+ memcpy(conn->conn_initiator_isid, bhslr->bhslr_isid,
+ sizeof(conn->conn_initiator_isid));
+
/*
* XXX: Implement the C flag some day.
*/
OpenPOWER on IntegriCloud