Lines Matching defs:bhslr
101 struct iscsi_bhs_logout_response *bhslr;
108 bhslr = (struct iscsi_bhs_logout_response *)response->pdu_bhs;
109 if (ntohs(bhslr->bhslr_response) != BHSLR_RESPONSE_CLOSED_SUCCESSFULLY)
111 ntohs(bhslr->bhslr_response));
112 if (ntohl(bhslr->bhslr_statsn) != conn->conn_statsn + 1) {
114 "is %u, should be %u", ntohl(bhslr->bhslr_statsn),
117 conn->conn_statsn = ntohl(bhslr->bhslr_statsn);
126 struct iscsi_bhs_logout_request *bhslr;
129 bhslr = (struct iscsi_bhs_logout_request *)request->pdu_bhs;
130 bhslr->bhslr_opcode = ISCSI_BHS_OPCODE_LOGOUT_REQUEST |
132 bhslr->bhslr_reason = BHSLR_REASON_CLOSE_SESSION;
133 bhslr->bhslr_reason |= 0x80;
134 bhslr->bhslr_initiator_task_tag = 0; /* XXX */
135 bhslr->bhslr_cmdsn = 0; /* XXX */
136 bhslr->bhslr_expstatsn = htonl(conn->conn_statsn + 1);