Lines Matching full:pdu
43 static void login_send_error(struct pdu *request,
47 login_set_nsg(struct pdu *response, int nsg) in login_set_nsg()
63 login_csg(const struct pdu *request) in login_csg()
73 login_set_csg(struct pdu *response, int csg) in login_set_csg()
87 static struct pdu *
90 struct pdu *request; in login_receive()
98 * The first PDU in session is special - if we receive any PDU in login_receive()
100 * without sending response ("A target receiving any PDU in login_receive()
102 * immediately terminate the connection on which the PDU in login_receive()
116 log_errx(1, "received Login PDU with unsupported \"C\" flag"); in login_receive()
120 log_errx(1, "received Login PDU with unsupported " in login_receive()
125 log_errx(1, "received Login PDU with unsupported " in login_receive()
131 log_errx(1, "received Login PDU with decreasing CmdSN: " in login_receive()
138 log_errx(1, "received Login PDU with wrong ExpStatSN: " in login_receive()
147 static struct pdu *
148 login_new_response(struct pdu *request) in login_new_response()
150 struct pdu *response; in login_new_response()
173 login_send_error(struct pdu *request, char class, char detail) in login_send_error()
175 struct pdu *response; in login_send_error()
178 log_debugx("sending Login Response PDU with failure class 0x%x/0x%x; " in login_send_error()
228 static struct pdu *
231 struct pdu *request; in login_receive_chap_a()
242 log_errx(1, "received CHAP Login PDU without CHAP_A"); in login_receive_chap_a()
246 log_errx(1, "received CHAP Login PDU with unsupported CHAP_A " in login_receive_chap_a()
255 login_send_chap_c(struct pdu *request, struct chap *chap) in login_send_chap_c()
257 struct pdu *response; in login_send_chap_c()
277 static struct pdu *
281 struct pdu *request; in login_receive_chap_r()
294 log_errx(1, "received CHAP Login PDU without CHAP_N"); in login_receive_chap_r()
299 log_errx(1, "received CHAP Login PDU without CHAP_R"); in login_receive_chap_r()
304 log_errx(1, "received CHAP Login PDU with malformed CHAP_R"); in login_receive_chap_r()
336 login_send_chap_success(struct pdu *request, in login_send_chap_success()
339 struct pdu *response; in login_send_chap_success()
381 log_errx(1, "received CHAP Login PDU with malformed " in login_send_chap_success()
406 struct pdu *request; in login_chap()
409 * Receive CHAP_A PDU. in login_chap()
428 * Receive CHAP_N/CHAP_R PDU and authenticate. in login_chap()
449 login_negotiate_key(struct pdu *request, const char *name, in login_negotiate_key()
621 login_redirect(struct pdu *request, const char *target_address) in login_redirect()
623 struct pdu *response; in login_redirect()
643 login_portal_redirect(struct ctld_connection *conn, struct pdu *request) in login_portal_redirect()
659 login_target_redirect(struct ctld_connection *conn, struct pdu *request) in login_target_redirect()
680 login_negotiate(struct ctld_connection *conn, struct pdu *request) in login_negotiate()
682 struct pdu *response; in login_negotiate()
736 "waiting for Login PDU"); in login_negotiate()
814 struct pdu *request, *response; in login_wait_transition()
838 struct pdu *request, *response; in login()
852 log_debugx("beginning Login Phase; waiting for Login PDU"); in login()
857 log_errx(1, "received Login PDU with non-zero TSIH"); in login()
875 log_errx(1, "received Login PDU without InitiatorName"); in login()
879 log_errx(1, "received Login PDU with invalid InitiatorName"); in login()
904 log_errx(1, "received Login PDU with invalid " in login()
915 log_errx(1, "received Login PDU without TargetName"); in login()