login.c (9268022b74279434ed6300244e3f977e56a8ceb5) login.c (2124e3b07fe7bc1648596b971d9e58180b6fcbad)
1/*-
2 * Copyright (c) 2012 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Edward Tomasz Napierala under sponsorship
6 * from the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 243 unchanged lines hidden (view full) ---

252 }
253 if (initial == false &&
254 ntohl(bhslr->bhslr_statsn) != conn->conn_statsn + 1) {
255 /*
256 * It's a warning, not an error, to work around what seems
257 * to be bug in NetBSD iSCSI target.
258 */
259 log_warnx("received Login PDU with wrong StatSN: "
1/*-
2 * Copyright (c) 2012 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Edward Tomasz Napierala under sponsorship
6 * from the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 243 unchanged lines hidden (view full) ---

252 }
253 if (initial == false &&
254 ntohl(bhslr->bhslr_statsn) != conn->conn_statsn + 1) {
255 /*
256 * It's a warning, not an error, to work around what seems
257 * to be bug in NetBSD iSCSI target.
258 */
259 log_warnx("received Login PDU with wrong StatSN: "
260 "is %d, should be %d", ntohl(bhslr->bhslr_statsn),
260 "is %u, should be %u", ntohl(bhslr->bhslr_statsn),
261 conn->conn_statsn + 1);
262 }
263 conn->conn_tsih = ntohs(bhslr->bhslr_tsih);
264 conn->conn_statsn = ntohl(bhslr->bhslr_statsn);
265
266 initial = false;
267
268 return (response);

--- 554 unchanged lines hidden ---
261 conn->conn_statsn + 1);
262 }
263 conn->conn_tsih = ntohs(bhslr->bhslr_tsih);
264 conn->conn_statsn = ntohl(bhslr->bhslr_statsn);
265
266 initial = false;
267
268 return (response);

--- 554 unchanged lines hidden ---