| radcli_dae_reply_error(3) | Radius client library | radcli_dae_reply_error(3) |
NAME
radcli_dae_reply_error - Answer a request with a NAK carrying the given Error-Cause.
SYNOPSIS
#include <radcli/>
int radcli_dae_reply_error(
radcli_dae_request *req,
uint32_t error_cause
);
DESCRIPTION
PARAMETERS
- req
- a request passed to a radcli_dae_handler, not yet replied to.
- error_cause
- a radcli_error_cause value (e.g. RADCLI_ERROR_SESSION_CONTEXT_NOT_FOUND), encoded as attribute 101.
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(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)
| 2026-09-03 | radcli |