radcli_dae_reply - Man Page
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.
Synopsis
#include <radcli/>
int radcli_dae_reply(
radcli_dae_request *req,
int ack
);Description
Parameters
- req
a request passed to a radcli_dae_handler, not yet replied to.
- 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.
Return Value
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).
See Also
radcli_ctx_dispatch(3), radcli_ctx_get_poll(3), radcli_dae_free(3), radcli_dae_new(3), radcli_dae_process(3), radcli_dae_reply_error(3), radcli_dae_reply_to_buffer(3), radcli_dae_req_attrs(3), radcli_dae_req_code(3), radcli_dae_req_framed_ip(3), radcli_dae_req_nas_port(3), radcli_dae_req_session_id(3), radcli_dae_req_user_name(3), radcli_dae_request_free(3), radcli_dae_set_handler(3), radcli_dae_start(3)