---
name: "radcli_avp_add_ip6_by_num"
section: "3"
platform: "linux"
package: "radcli"
version: "2.0.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/radcli_avp_add_ip6_by_num"
---

# radcli\_avp\_add\_ip6\_by\_num(3)

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

## NAME

radcli\_avp\_add\_ip6\_by\_num - Look up an IPv6-address or IPv6-prefix-typed attribute by legacy numeric ID and append it.

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

## DESCRIPTION

## 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()).

## SEE ALSO

[*radcli\_avp\_add\_bytes\_by\_num*(3)](/radcli_avp_add_bytes_by_num/3.md), [*radcli\_avp\_add\_ip4\_by\_num*(3)](/radcli_avp_add_ip4_by_num/3.md), [*radcli\_avp\_add\_ip4prefix\_by\_num*(3)](/radcli_avp_add_ip4prefix_by_num/3.md), [*radcli\_avp\_add\_str\_by\_num*(3)](/radcli_avp_add_str_by_num/3.md), [*radcli\_avp\_add\_uint32\_by\_num*(3)](/radcli_avp_add_uint32_by_num/3.md), [*radcli\_avp\_add\_uint64\_by\_num*(3)](/radcli_avp_add_uint64_by_num/3.md)
