rc_avpair_get_in6(3)

rc_avpair_get_in63

Get the ipv6 address and prefix value of the given attribute value-pair.

Usage

#include <radcli/>

int rc_avpair_get_in6(
    VALUE_PAIR       *vp,
    struct in6_addr  *res,
    unsigned         *prefix
);

Overview

This function is valid for PW_TYPE_IPV6ADDR, PW_TYPE_IPV6PREFIX.

Parameters

vp

a pointer to a VALUE_PAIR structure.

res

An in6_addr structure for result to be copied in.

prefix

If of type PW_TYPE_IPV6PREFIX the prefix will be copied (may be NULL).

Return value

zero on success or -1 on failure.

Releases

4 releases since Debian 11 (Bullseye); the text changed 1 time.

  1. 11–13
  2. Arch

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