From 7fd58eca21396f4494f2cfc9568cc5b35ab79310 Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Fri, 27 Mar 2015 13:16:42 +0100 Subject: [PATCH] pdu: a target NOP-In may indiciate a changes MaxCmdSN or ExpCmdSN RFC3720 10.19. NOP-In NOP-In is either sent by a target as a response to a NOP-Out, as a "ping" to an initiator, or as a means to carry a changed ExpCmdSN and/or MaxCmdSN if another PDU will not be available for a long time (as determined by the target). ... Signed-off-by: Peter Lieven --- lib/pdu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pdu.c b/lib/pdu.c index 3c4bc3a..3866816 100644 --- a/lib/pdu.c +++ b/lib/pdu.c @@ -324,6 +324,7 @@ int iscsi_process_target_nop_in(struct iscsi_context *iscsi, ttt = scsi_get_uint32(&in->hdr[20]); iscsi_adjust_statsn(iscsi, in); + iscsi_adjust_maxexpcmdsn(iscsi, in); /* if the server does not want a response */ if (ttt == 0xffffffff) {