radcli_avp_add_ip6_by_num(3)

radcli_avp_add_ip6_by_num3

Look up an ipv6-address or ipv6-prefix-typed attribute by legacy numeric id and append it.

Usage

#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
);

Overview

Parameters

list

destination list.

ctx

a context with a dictionary loaded.

attrid

the attribute ID (a PW_* constant, or a vendor type ID when vendor is non-zero).

vendor

the vendor PEN, or 0 for a standard attribute.

value

the address.

prefix

the prefix length (0-128); ignored/must be 0 for RADCLI_TYPE_IPV6ADDR.

Return value

0 on success, -1 on failure (no such attribute, or as radcli_avp_add_ip6()).

From radcli 2.0.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.