radcli_avp_...nt32_by_num(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸ’… 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 a PW_* constant, or a vendor type ID when vendor is non-zero. iykyk
  • vendor β€” the vendor PEN, or 0 for a standard attribute. zero means standard, periodt
  • out β€” where to write the value. an IPv4 address comes back in host byte order, bestie. and lowkey it may be NULL 😌

⭐ RETURN VALUE ⭐

  • 0 on success πŸ₯³
  • -1 on failure β€” that's no such attribute, no occurrence, or the same failure energy as radcli_avp_get_uint32() πŸ’€

🌈 SEE ALSO 🌈

all the sibling functions, iconic lineup honestly πŸ‘‘


ngl bestie, -1 covers three different flavours of "nope" β€” missing attribute, zero occurrences, or whatever radcli_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