.\" File automatically generated by doxy2man0.3 .\" Generation date: Thu Sep 3 2026 .TH radcli_dae_reply_error 3 2026-09-03 "radcli" "Radius client library" .SH "NAME" radcli_dae_reply_error \- Answer a request with a NAK carrying the given Error-Cause. .SH SYNOPSIS .nf .B #include .sp \fBint radcli_dae_reply_error\fP( \fBradcli_dae_request *\fP\fIreq\fP, \fBuint32_t \fP\fIerror_cause\fP ); .fi .SH DESCRIPTION .SH PARAMETERS .TP .B req a request passed to a radcli_dae_handler, not yet replied to. .TP .B error_cause a radcli_error_cause value (e.g. RADCLI_ERROR_SESSION_CONTEXT_NOT_FOUND), encoded as attribute 101. .SH RETURN VALUE .PP 0 once the reply is handed to the network, -1 on failure (req is NULL, already replied to, or the reply could not be sent). .SH SEE ALSO .PP .nh .ad l \fIradcli_ctx_dispatch\fP(3), \fIradcli_ctx_get_poll\fP(3), \fIradcli_dae_free\fP(3), \fIradcli_dae_new\fP(3), \fIradcli_dae_process\fP(3), \fIradcli_dae_reply\fP(3), \fIradcli_dae_reply_to_buffer\fP(3), \fIradcli_dae_req_attrs\fP(3), \fIradcli_dae_req_code\fP(3), \fIradcli_dae_req_framed_ip\fP(3), \fIradcli_dae_req_nas_port\fP(3), \fIradcli_dae_req_session_id\fP(3), \fIradcli_dae_req_user_name\fP(3), \fIradcli_dae_request_free\fP(3), \fIradcli_dae_set_handler\fP(3), \fIradcli_dae_start\fP(3) .ad .hy