Lines Matching full:pdu

50 static void login_send_error(struct pdu *request,
106 login_set_nsg(struct pdu *response, int nsg) in login_set_nsg()
122 login_csg(const struct pdu *request) in login_csg()
132 login_set_csg(struct pdu *response, int csg) in login_set_csg()
146 static struct pdu *
149 struct pdu *request; in login_receive()
157 * The first PDU in session is special - if we receive any PDU in login_receive()
159 * without sending response ("A target receiving any PDU in login_receive()
161 * immediately terminate the connection on which the PDU in login_receive()
175 log_errx(1, "received Login PDU with unsupported \"C\" flag"); in login_receive()
179 log_errx(1, "received Login PDU with unsupported " in login_receive()
184 log_errx(1, "received Login PDU with unsupported " in login_receive()
190 log_errx(1, "received Login PDU with decreasing CmdSN: " in login_receive()
197 log_errx(1, "received Login PDU with wrong ExpStatSN: " in login_receive()
206 static struct pdu *
207 login_new_response(struct pdu *request) in login_new_response()
209 struct pdu *response; in login_new_response()
232 login_send_error(struct pdu *request, char error_class, char detail) in login_send_error()
234 struct pdu *response; in login_send_error()
237 log_debugx("sending Login Response PDU with failure class 0x%x/0x%x; " in login_send_error()
287 static struct pdu *
290 struct pdu *request; in login_receive_chap_a()
301 log_errx(1, "received CHAP Login PDU without CHAP_A"); in login_receive_chap_a()
305 log_errx(1, "received CHAP Login PDU with unsupported CHAP_A " in login_receive_chap_a()
314 login_send_chap_c(struct pdu *request, struct chap *chap) in login_send_chap_c()
316 struct pdu *response; in login_send_chap_c()
336 static struct pdu *
340 struct pdu *request; in login_receive_chap_r()
353 log_errx(1, "received CHAP Login PDU without CHAP_N"); in login_receive_chap_r()
358 log_errx(1, "received CHAP Login PDU without CHAP_R"); in login_receive_chap_r()
363 log_errx(1, "received CHAP Login PDU with malformed CHAP_R"); in login_receive_chap_r()
393 login_send_chap_success(struct pdu *request, in login_send_chap_success()
396 struct pdu *response; in login_send_chap_success()
438 log_errx(1, "received CHAP Login PDU with malformed " in login_send_chap_success()
464 struct pdu *request; in login_chap()
467 * Receive CHAP_A PDU. in login_chap()
486 * Receive CHAP_N/CHAP_R PDU and authenticate. in login_chap()
507 iscsi_connection::login_negotiate_key(struct pdu *request, const char *name, in login_negotiate_key()
676 login_redirect(struct pdu *request, const char *target_address) in login_redirect()
678 struct pdu *response; in login_redirect()
698 iscsi_connection::login_portal_redirect(struct pdu *request) in login_portal_redirect()
714 iscsi_connection::login_target_redirect(struct pdu *request) in login_target_redirect()
735 iscsi_connection::login_negotiate(struct pdu *request) in login_negotiate()
738 struct pdu *response; in login_negotiate()
789 "waiting for Login PDU"); in login_negotiate()
866 struct pdu *request, *response; in login_wait_transition()
890 struct pdu *request, *response; in login()
904 log_debugx("beginning Login Phase; waiting for Login PDU"); in login()
909 log_errx(1, "received Login PDU with non-zero TSIH"); in login()
927 log_errx(1, "received Login PDU without InitiatorName"); in login()
931 log_errx(1, "received Login PDU with invalid InitiatorName"); in login()
957 log_errx(1, "received Login PDU with invalid " in login()
968 log_errx(1, "received Login PDU without TargetName"); in login()