radcli_avp_get_ip6_by_num(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸ’– radcli_avp_get_ip6_by_num(3) πŸ’–

okay so bestie, we're in the radcli Radius client library today and this lil function is a whole vibe 🌈 β€” it's the man page for radcli_avp_get_ip6_by_num, and yes the name is a mouthful but she's worth it.


✨ NAME ✨

radcli_avp_get_ip6_by_num β€” looks up an IPv6-address-typed or IPv6-prefix-typed attribute by its legacy numeric ID, and then reads its first occurrence. That's it, that's the whole job πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <radcli/>

int radcli_avp_get_ip6_by_num(
    const radcli_avp_list  *list,
    const radcli_ctx       *ctx,
    uint32_t                attrid,
    uint32_t                vendor,
    struct in6_addr        *out,
    unsigned               *prefix
);

🌸 DESCRIPTION 🌸

πŸ’œ PARAMETERS πŸ’œ

  • list β€” the list you're searching through. your little haystack, if you will πŸ“
  • ctx β€” a context that already has a dictionary loaded. no dictionary, no vibes, periodt.
  • attrid β€” the attribute ID. this is a PW_* constant, or a vendor type ID when vendor is non-zero. iykyk πŸ‘‘
  • vendor β€” the vendor PEN, or 0 if you're dealing with a standard attribute.
  • out β€” where the address gets written. may be NULL, no pressure 🫢
  • prefix β€” where the prefix length gets written. may also be NULL, she's flexible like that ✨

πŸ”₯ RETURN VALUE πŸ”₯

  • 0 on success β€” slay πŸ’…
  • -1 on failure. and that failure could be: no such attribute, no occurrence of it, or just whatever radcli_avp_get_ip6() decided to do. literally as it says in the source, fr fr.

🌈 SEE ALSO 🌈

the whole getter friend group, honestly πŸ˜­πŸ’–


lowkey reminder: out and prefix are both nullable, so don't stress about passing everything β€” but the rest is the rest, okay? 🧚

okay that's the whole page, mwah πŸ’‹ β€” this was radcli_avp_get_ip6_by_num(3) from radcli, version dated 2026-10-10, and you ate that, bestie. see you in the next man page β­πŸŽ€

πŸ“¦ where this page comes from