radcli_avp_add_uint32(3)
π radcli_avp_add_uint32(3) β the Radius client library era π
okay bestie, so this is a little function from the Radius client library manual, and honestly? it's giving "small but mighty." it appends a typed attribute to a list, and the types it handles are a very specific trio. let's get into it β¨
β¨ NAME β¨
radcli_avp_add_uint32 β append an integer/IPv4-address/date-typed attribute. that's literally the whole job, and she does it well π«Ά
πΈ SYNOPSIS πΈ
#include <radcli/>
int radcli_avp_add_uint32(
radcli_avp_list *list,
const radcli_attr_def *def,
uint32_t value
);
(yes, #include <radcli/> is exactly what the page says β we're copying it character for character, no cap π
)
π¦ DESCRIPTION π¦
so the DESCRIPTION section on this page is kinda shy and doesn't actually say anything extra π β the real deets are chilling in PARAMETERS and RETURN VALUE right below, so scroll with me, iykyk.
π PARAMETERS π
listβ the destination list. this is where the attribute goes to live. her new home πdefβ the attribute definition. and listen, it's picky: it must beRADCLI_TYPE_INTEGER,RADCLI_TYPE_IPADDR, orRADCLI_TYPE_DATE. those three. that's the vibe check, and ifdefdoesn't pass it, we have problems πvalueβ the actual value being added. little heads up: an IPv4 address here is given in host byte order β
π₯ RETURN VALUE π₯
0β slay, success π-1β it did NOT work out. this happens whendefhas none of the accepted types, or in the same situations asradcli_avp_add_bytes(). so yeah, check it, bestie, don't just assume π
π SEE ALSO π
the whole friend group π«Ά β every single one of these:
radcli_avp_add_bytes(3),radcli_avp_add_bytes_by_num(3),radcli_avp_add_gigawords64(3),radcli_avp_add_gigawords64_by_num(3),radcli_avp_add_ip4(3),radcli_avp_add_ip4_by_num(3),radcli_avp_add_ip4prefix(3),radcli_avp_add_ip4prefix_by_num(3),radcli_avp_add_ip6(3),radcli_avp_add_ip6_by_num(3)radcli_avp_add_str(3),radcli_avp_add_str_by_num(3),radcli_avp_add_uint32_by_num(3),radcli_avp_add_uint64(3),radcli_avp_add_uint64_by_num(3),radcli_avp_add_username(3),radcli_avp_concat_str(3),radcli_avp_concat_str_by_num(3),radcli_avp_def(3)radcli_avp_get(3),radcli_avp_get_by_num(3),radcli_avp_get_bytes(3),radcli_avp_get_bytes_by_num(3),radcli_avp_get_cstr(3),radcli_avp_get_cstr_by_num(3),radcli_avp_get_gigawords64(3),radcli_avp_get_gigawords64_by_num(3)radcli_avp_get_ip4prefix(3),radcli_avp_get_ip4prefix_by_num(3),radcli_avp_get_ip6(3),radcli_avp_get_ip6_by_num(3),radcli_avp_get_uint32(3),radcli_avp_get_uint32_by_num(3),radcli_avp_get_uint64(3),radcli_avp_get_uint64_by_num(3)radcli_avp_iter_next(3),radcli_avp_list_error(3),radcli_avp_list_free(3),radcli_avp_list_iter(3),radcli_avp_list_new(3)
and that's the page!! this one's from radcli, dated 2026-10-10 β so when you cite her, cite her correctly, bestie π bye!! π¦β¨
π¦ 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