Lines Matching refs:bhslr
45 struct iscsi_bhs_logout_response *bhslr;
52 bhslr = (struct iscsi_bhs_logout_response *)response->pdu_bhs;
53 if (ntohs(bhslr->bhslr_response) != BHSLR_RESPONSE_CLOSED_SUCCESSFULLY)
55 ntohs(bhslr->bhslr_response));
56 if (ntohl(bhslr->bhslr_statsn) != conn->conn_statsn + 1) {
58 "is %u, should be %u", ntohl(bhslr->bhslr_statsn),
61 conn->conn_statsn = ntohl(bhslr->bhslr_statsn);
70 struct iscsi_bhs_logout_request *bhslr;
73 bhslr = (struct iscsi_bhs_logout_request *)request->pdu_bhs;
74 bhslr->bhslr_opcode = ISCSI_BHS_OPCODE_LOGOUT_REQUEST |
76 bhslr->bhslr_reason = BHSLR_REASON_CLOSE_SESSION;
77 bhslr->bhslr_reason |= 0x80;
78 bhslr->bhslr_initiator_task_tag = 0; /* XXX */
79 bhslr->bhslr_cmdsn = 0; /* XXX */
80 bhslr->bhslr_expstatsn = htonl(conn->conn_statsn + 1);