radcli_avp_get_ip6(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸ’… radcli_avp_get_ip6(3) β€” bestie's guide to the Radius client library

okay so picture this: you're deep in the Radius client library (that's the manual we're in, mwah πŸ’–) and you've got an attribute just sitting there holding an IPv6 address or prefix, and you need it OUT. That's this function. It's giving "extract the goods" energy. πŸŽ€


✨ NAME ✨

radcli_avp_get_ip6 β€” read an attribute's value as an IPv6 address or prefix. that's it, that's the whole gig. ngl it does exactly what it says on the tin πŸ¦‹


🌸 SYNOPSIS 🌸

#include <radcli/>

int radcli_avp_get_ip6(
    const radcli_avp  *a,
    struct in6_addr   *out,
    unsigned          *prefix
);

🫢 DESCRIPTION 🫢

so the actual DESCRIPTION section on this page is literally blank 😭 like the manpage authors said "the vibes will explain it" and moved on. no cap. everything you need is chilling in PARAMETERS and RETURN VALUE below β€” go look, I got you πŸ’œ


πŸ‘‘ PARAMETERS πŸ‘‘

  • a β€” the attribute itself. the catch? radcli_avp_def(a) must be RADCLI_TYPE_IPV6ADDR or RADCLI_TYPE_IPV6PREFIX. anything else and we're not doing this. main character attribute only πŸ”₯
  • out β€” where the address gets written. lowkey important detail: for RADCLI_TYPE_IPV6PREFIX it's zero-padded beyond the prefix length. also it may be NULL, so if you just wanna peek at the prefix and not the address, you do you bestie πŸ’…
  • prefix β€” where the prefix length goes. it's 128 for RADCLI_TYPE_IPV6ADDR, which makes sense (a whole address is a /128, periodt). and yep β€” it may be NULL too. equal opportunity NULLs ✨

⭐ RETURN VALUE ⭐

  • 0 β€” success!! ate. πŸ’–
  • -1 β€” a's type does not match. the vibe check failed, sorry babe πŸ™ˆ

🌈 SEE ALSO 🌈

the whole friend group, fr fr β€” go read these next:


and that's the page!! 🧚 this lil masterpiece comes to you courtesy of radcli, dated 2026-10-10 β€” screenshot it, cite it, tattoo it, ily, bye πŸ’œβœ¨πŸ“

πŸ“¦ where this page comes from