radcli_dae_reply_error3
Answer a request with a nak carrying the given error-cause.
Usage
#include <radcli/>
int radcli_dae_reply_error(
radcli_dae_request *req,
uint32_t error_cause
);
Overview
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).