.\" File automatically generated by doxy2man0.3 .\" Generation date: Thu Sep 3 2026 .TH radcli_dae_reply 3 2026-09-03 "radcli" "Radius client library" .SH "NAME" radcli_dae_reply \- Answer a request with an ACK or NAK, selecting 41/42 or 44/45 from the request's own code, mirroring its Proxy-State attributes, and computing the Response Authenticator over the request's Authenticator. .SH SYNOPSIS .nf .B #include .sp \fBint radcli_dae_reply\fP( \fBradcli_dae_request *\fP\fIreq\fP, \fBint \fP\fIack\fP ); .fi .SH DESCRIPTION .SH PARAMETERS .TP .B req a request passed to a radcli_dae_handler, not yet replied to. .TP .B ack non-zero for an ACK (Disconnect-ACK/CoA-ACK), zero for a bare NAK with no Error-Cause attribute most callers rejecting a request should use radcli_dae_reply_error() instead, which also states why. .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_error\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