radcli_avp_...nt32_by_num(3)
π radcli_avp_get_uint32_by_num β a whole vibe from the Radius client library
okay so bestie, you're in the radcli docs and this one is literally all about looking stuff up by its legacy numeric ID and snagging the first occurrence it finds. No cap. Let's get into it π«Ά
β¨ NAME β¨
radcli_avp_get_uint32_by_num β look up an attribute that's integer/IPv4-address/date-typed, using its legacy numeric ID, and read its first occurrence. that's the whole assignment, and it ate π
πΈ SYNOPSIS πΈ
#include <radcli/>
int radcli_avp_get_uint32_by_num(
const radcli_avp_list *list,
const radcli_ctx *ctx,
uint32_t attrid,
uint32_t vendor,
uint32_t *out
);
π¦ DESCRIPTION π¦
this is the section where the deets live, and tbh the deets are all in PARAMETERS and RETURN VALUE below β the lookup-by-legacy-numeric-ID + read-the-first-occurrence energy from the NAME section is the entire plot. go off, king π
π PARAMETERS π
listβ the list you're searching. the one we're digging through πctxβ a context with a dictionary loaded. yes, it needs the dictionary, don't skip that part πattridβ the attribute ID. it's aPW_*constant, or a vendor type ID whenvendoris non-zero. iykykvendorβ the vendor PEN, or0for a standard attribute. zero means standard, periodtoutβ where to write the value. an IPv4 address comes back in host byte order, bestie. and lowkey it may beNULLπ
β RETURN VALUE β
0on success π₯³-1on failure β that's no such attribute, no occurrence, or the same failure energy asradcli_avp_get_uint32()π
π SEE ALSO π
radcli_avp_get_by_num(3)radcli_avp_get_bytes_by_num(3)radcli_avp_get_cstr_by_num(3)radcli_avp_get_ip4prefix_by_num(3)radcli_avp_get_ip6_by_num(3)radcli_avp_get_uint64_by_num(3)
all the sibling functions, iconic lineup honestly π
ngl bestie,-1covers three different flavours of "nope" β missing attribute, zero occurrences, or whateverradcli_avp_get_uint32()is serving. so don't assume which one it was, fr fr π
that's the whole page, mwah π β brought to you by radcli, dated 2026-10-10. go forth and look up those attributes, main character π§ββοΈπΈ
π¦ 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