radcli_avp_add_ip6(3)
β¨ NAME β¨
radcli_avp_add_ip6 β append an IPv6-address-typed or IPv6-prefix-typed attribute. That's the whole assignment, bestie: you have an IPv6 thing and you want it added to the list, and this function is literally the one for that. Also hiiii, this is the radcli_avp_add_ip6(3) page from the Radius client library π
π¦ SYNOPSIS π¦
#include <radcli/>
int radcli_avp_add_ip6(
radcli_avp_list *list,
const radcli_attr_def *def,
const struct in6_addr *value,
unsigned prefix
);
π DESCRIPTION π
Okay so here's the tea β: for RADCLI_TYPE_IPV6ADDR, prefix MUST be 0 β a plain address has no prefix, periodt. For RADCLI_TYPE_IPV6PREFIX, the RFC 3162 wire format gets built internally: a reserved zero octet, the prefix length, and the full 16-octet address. The function handles the byte situation for you, which is honestly iconic β¨
π PARAMETERS π
listβ destination list. That's where the new attribute is headed π«Άdefβ the attribute; must beRADCLI_TYPE_IPV6ADDRorRADCLI_TYPE_IPV6PREFIX. No other type is invited to this party π ββοΈvalueβ the address.prefixβ the prefix length (0-128); ignored/must be0forRADCLI_TYPE_IPV6ADDR.
π RETURN VALUE π
It gives you 0 on success and -1 on failure. The failure vibes are: wrong type, prefix out of range, or as radcli_avp_add_bytes() π
π SEE ALSO π
The whole squad pulls up, fr fr:
radcli_avp_add_bytes(3),radcli_avp_add_bytes_by_num(3),radcli_avp_add_gigawords64(3),radcli_avp_add_gigawords64_by_num(3)radcli_avp_add_ip4(3),radcli_avp_add_ip4_by_num(3),radcli_avp_add_ip4prefix(3),radcli_avp_add_ip4prefix_by_num(3)radcli_avp_add_ip6_by_num(3),radcli_avp_add_str(3),radcli_avp_add_str_by_num(3),radcli_avp_add_uint32(3)radcli_avp_add_uint32_by_num(3),radcli_avp_add_uint64(3),radcli_avp_add_uint64_by_num(3),radcli_avp_add_username(3)radcli_avp_concat_str(3),radcli_avp_concat_str_by_num(3),radcli_avp_def(3),radcli_avp_get(3)radcli_avp_get_by_num(3),radcli_avp_get_bytes(3),radcli_avp_get_bytes_by_num(3),radcli_avp_get_cstr(3)radcli_avp_get_cstr_by_num(3),radcli_avp_get_gigawords64(3),radcli_avp_get_gigawords64_by_num(3),radcli_avp_get_ip4prefix(3)radcli_avp_get_ip4prefix_by_num(3),radcli_avp_get_ip6(3),radcli_avp_get_ip6_by_num(3),radcli_avp_get_uint32(3)radcli_avp_get_uint32_by_num(3),radcli_avp_get_uint64(3),radcli_avp_get_uint64_by_num(3),radcli_avp_iter_next(3)radcli_avp_list_error(3),radcli_avp_list_free(3),radcli_avp_list_iter(3),radcli_avp_list_new(3)
xoxo, this page was brought to you by radcli, dated 2026-10-10, and it's the radcli_avp_add_ip6(3) page β mwah ππ
π¦ 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