radcli_dae_reply(3)
π radcli_dae_reply(3) β bestie edition π
ok so this is a page from the Radius client library (yes, that radcli), and it's about answering DAE requests. buckle up, it's actually so clean β¨
β¨ 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. π«Ά
like, it literally does four things at once and doesn't even brag about it. main character energy fr fr π
πΈ SYNOPSIS πΈ
#include <radcli/>
int radcli_dae_reply(
radcli_dae_request *req,
int ack
);
π DESCRIPTION π
the whole vibe lives in the parameters and the return value, so let's get into it β¬οΈ
π¦ PARAMETERS π¦
reqβ a request passed to aradcli_dae_handler, not yet replied to. lowkey important: not yet replied to. you get one shot at this one, bestie πackβ non-zero for an ACK (Disconnect-ACK/CoA-ACK), zero for a bare NAK with noError-Causeattribute. but listen β most callers rejecting a request should useradcli_dae_reply_error()instead, which also states why. so if you're about to send a naked NAK, just... don't π the error variant is right there and it explains itself iykyk
β RETURN VALUE β
0β once the reply is handed to the network. slay, it's out of your hands now ποΈ-1β on failure:reqis NULL, it was already replied to, or the reply could not be sent. π
no cap, -1 is the "something went sideways" bucket β check whether you're double-replying before you go blaming the network π
π 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)
and that's the whole page, bestie π go forth and ACK responsibly π
radcli Β· 2026-10-10 Β· radcli_dae_reply(3) β mwah, xoxo π§ββοΈβ¨
π¦ where this page comes from
- arch rolling: radcli 2.0.1-1 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms