radcli_avp_get_ip6_by_num(3)
π 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 aPW_*constant, or a vendor type ID whenvendoris non-zero. iykyk πvendorβ the vendor PEN, or0if you're dealing with a standard attribute.outβ where the address gets written. may beNULL, no pressure π«Άprefixβ where the prefix length gets written. may also beNULL, she's flexible like that β¨
π₯ RETURN VALUE π₯
0on success β slay π-1on failure. and that failure could be: no such attribute, no occurrence of it, or just whateverradcli_avp_get_ip6()decided to do. literally as it says in the source, fr fr.
π 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_uint32_by_num(3)radcli_avp_get_uint64_by_num(3)
the whole getter friend group, honestly ππ
lowkey reminder:outandprefixare 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
- 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