Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Sep 2015 20:58:23 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287766 - head/usr.sbin/ctld
Message-ID:  <201509132058.t8DKwNlB062711@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sun Sep 13 20:58:22 2015
New Revision: 287766
URL: https://svnweb.freebsd.org/changeset/base/287766

Log:
  Add negotiation of iSCSIProtocolLevel to 2 (RFC7144).
  
  We may need to pass negotiated value to kernel level, but so far it is
  not necessary, since it does not use any new features without request.

Modified:
  head/usr.sbin/ctld/login.c

Modified: head/usr.sbin/ctld/login.c
==============================================================================
--- head/usr.sbin/ctld/login.c	Sun Sep 13 20:40:00 2015	(r287765)
+++ head/usr.sbin/ctld/login.c	Sun Sep 13 20:58:22 2015	(r287766)
@@ -602,6 +602,11 @@ login_negotiate_key(struct pdu *request,
 		keys_add(response_keys, name, "No");
 	} else if (strcmp(name, "IFMarker") == 0) {
 		keys_add(response_keys, name, "No");
+	} else if (strcmp(name, "iSCSIProtocolLevel") == 0) {
+		tmp = strtoul(value, NULL, 10);
+		if (tmp > 2)
+			tmp = 2;
+		keys_add_int(response_keys, name, tmp);
 	} else {
 		log_debugx("unknown key \"%s\"; responding "
 		    "with NotUnderstood", name);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509132058.t8DKwNlB062711>