ctld(8): Fix MaxBurstLength negotiation.
The target must reply with the selected value of MaxBurstSize instead of just echoing back the initiator's offered value. Reviewed by: mav@ Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D7278
This commit is contained in:
parent
f5dac37f96
commit
fd936afb97
@ -569,7 +569,7 @@ login_negotiate_key(struct pdu *request, const char *name,
|
||||
tmp = MAX_BURST_LENGTH;
|
||||
}
|
||||
conn->conn_max_burst_length = tmp;
|
||||
keys_add(response_keys, name, value);
|
||||
keys_add_int(response_keys, name, tmp);
|
||||
} else if (strcmp(name, "FirstBurstLength") == 0) {
|
||||
tmp = strtoul(value, NULL, 10);
|
||||
if (tmp <= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user