radcli_avp_...nt32_by_num(3)
โจ radcli_avp_add_uint32_by_num โ the by-num integer/IPv4/date one โจ
okay so bestie, we're in the radcli manual (that's the Radius client library, iykyk) and this page is about radcli_avp_add_uint32_by_num. yes the header is all truncated like radcli_avp_...nt32_by_num(3) because even the manpage title ran out of room ๐ but it's fine, we know her.
๐ NAME ๐
radcli_avp_add_uint32_by_num โ look up an attribute by its legacy numeric ID (the integer / IPv4-address / date-typed kind) and then append it. that's the whole vibe. ๐ซถ
๐ธ SYNOPSIS ๐ธ
#include <radcli/>
int radcli_avp_add_uint32_by_num(
radcli_avp_list *list,
const radcli_ctx *ctx,
uint32_t attrid,
uint32_t vendor,
uint32_t value
);
copy that exactly bestie, character for character, no cap ๐ฅ
๐ DESCRIPTION ๐
so likeโฆ the description section in the source is literally empty. not a single word. she said "my NAME and my SYNOPSIS speak for themselves" and honestly? main character energy ๐. everything you need is in the parameters below, fr fr.
๐ฆ PARAMETERS ๐ฆ
listโ the destination list. where it's all going, bestie. ๐ฅctxโ a context with a dictionary loaded. like, it has to have a dictionary, that's her whole thing. ๐งattridโ the attribute ID. this is aPW_*constant, or a vendor type ID whenvendoris non-zero. yes, that conditional matters, don't skip it. โญvendorโ the vendor PEN, or0for a standard attribute. zero means standard, periodt. ๐valueโ the value. and heads up: an IPv4 address is given in host byte order. not network, host. write that down ๐
๐ RETURN VALUE ๐
0on success โ slay ๐-1on failure โ which happens when there's no such attribute, or asradcli_avp_add_uint32()does. ๐ญ
๐ฎ SEE ALSO ๐ฎ
the whole by-num friend group, all of them, in the exact order the page gives:
radcli_avp_add_bytes_by_num(3)radcli_avp_add_ip4_by_num(3)radcli_avp_add_ip4prefix_by_num(3)radcli_avp_add_ip6_by_num(3)radcli_avp_add_str_by_num(3)radcli_avp_add_uint64_by_num(3)
ngl there are no warnings, no bugs section, and no examples on this page โ that's just how she is. don't go inventing any ๐
and that's the page! brought to you by radcli, dated 2026-10-10, page radcli_avp_...nt32_by_num(3). mwah, go append some uint32s responsibly ๐
๐โจ
๐ฆ 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