radcli_avp_add_ip6_by_num(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸ’– 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 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, bestie, don't forget it.
  • value β€” the address. Literally the address. πŸ’–
  • prefix β€” the prefix length, 0-128. For RADCLI_TYPE_IPV6ADDR it's ignored / must be 0 β€” so yeah, mind that. πŸ™ˆ

πŸ”₯ RETURN VALUE

  • 0 on success πŸŽ‰
  • -1 on failure β€” that's when there's no such attribute, or it fails the same way radcli_avp_add_ip6() does. 😭

πŸ‘‘ SEE ALSO

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