radcli_avp_add_ip6_by_num(3)
π radcli_avp_add_ip6_by_num β the girlies' guide to IPv6 attributes π
Okay so bestie, welcome to radcli_avp_add_ip6_by_num(3) from the radcli Radius client library manual. This one is lowkey iconic: it looks up an attribute that's typed as an IPv6 address or an IPv6 prefix β by its legacy numeric ID β and then appends it to your list. Slay. β¨
π¦ NAME
radcli_avp_add_ip6_by_num β look up an IPv6-address-typed or IPv6-prefix-typed attribute by legacy numeric ID, then append it. Periodt. π
πΈ SYNOPSIS
#include <radcli/>
int radcli_avp_add_ip6_by_num(
radcli_avp_list *list,
const radcli_ctx *ctx,
uint32_t attrid,
uint32_t vendor,
const struct in6_addr *value,
unsigned prefix
);
Not me obsessing over this signature, it's giving "very specific but in a cute way" π
β¨ DESCRIPTION
Okay so there's genuinely no prose in this section of the original β it goes straight to the parameters, and honestly? Valid. The tea is all in the parameter list. So let's get into it π
π PARAMETERS
listβ the destination list, aka where the appending happens. It's the main character here π«Άctxβ a context with a dictionary loaded. Like, it needs the dictionary, no cap.attridβ the attribute ID. That's aPW_*constant, or a vendor type ID whenvendoris non-zero. iykyk π¦vendorβ the vendor PEN, or0for a standard attribute. Zero means standard, bestie, don't forget it.valueβ the address. Literally the address. πprefixβ the prefix length,0-128. ForRADCLI_TYPE_IPV6ADDRit's ignored / must be 0 β so yeah, mind that. π
π₯ RETURN VALUE
0on success π-1on failure β that's when there's no such attribute, or it fails the same wayradcli_avp_add_ip6()does. π
π SEE ALSO
radcli_avp_add_bytes_by_num(3)radcli_avp_add_ip4_by_num(3)radcli_avp_add_ip4prefix_by_num(3)radcli_avp_add_str_by_num(3)radcli_avp_add_uint32_by_num(3)radcli_avp_add_uint64_by_num(3)
Go read the whole friend group, they're all serving π
Quick vibe check: this page is filed under the radcli manual, dated 2026-10-10, and yes β it's page radcli_avp_add_ip6_by_num(3) like the header said. That's the whole footer, bestie, I would never gatekeep it from you π
okay bye ily, go append some IPv6 attributes responsibly π§π
π¦ 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