radcli_avp_add_ip4_by_num(3)
β¨ NAME β¨
okay so bestie, this is radcli_avp_add_ip4_by_num β from the radcli Radius client library β and what it does is look up an IPv4-address-typed attribute by its legacy numeric ID and then append it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <radcli/>
int radcli_avp_add_ip4_by_num(
radcli_avp_list *list,
const radcli_ctx *ctx,
uint32_t attrid,
uint32_t vendor,
struct in_addr value
);
like, that's the whole incantation. no cap. π«Ά
π¦ DESCRIPTION π¦
so the description section is literally just the parameter breakdown, and honestly? iconic of it. let's get into it π
π PARAMETERS π
listβ the destination list, queen. this is where the attribute is headed. β¨ctxβ a context with a dictionary loaded. yes, it needs the dictionary β that's the whole point of the lookup, iykyk. πattridβ the attribute ID. this can be aPW_*constant, or a vendor type ID whenvendoris non-zero. your call, bestie. πvendorβ the vendor PEN, or0for a standard attribute. zero means "no vendor, just a regular one". πvalueβ the address, in the usual network byte order thatstruct in_addrcarries. don't come at it with host byte order, I'm begging π
π₯ RETURN VALUE π₯
0on success β slay, it worked π-1on failure β either there's no such attribute, or it failed the same wayradcli_avp_add_ip4()does. π
so yeah, -1 is doing double duty here. if things go sideways, that's where you'll see it. not me being dramatic, it's just what the page says π«Ά
π SEE ALSO π
the whole by-num friend group, fr fr:
radcli_avp_add_bytes_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_uint32_by_num(3)radcli_avp_add_uint64_by_num(3)
and that's the page!! π brought to you by radcli, dated 2026-10-10, filed under radcli_avp_add_ip4_by_num(3) β go forth and append those IPv4 attributes, bestie. πβ¨π
π¦ 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