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.
This commit is contained in:
parent
29816fedba
commit
7b4b3f9d39
@ -602,6 +602,11 @@ login_negotiate_key(struct pdu *request, const char *name,
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user