rc_avpair_get_raw(3)

rc_avpair_get_raw3

Get the raw value of the given attribute value-pair.

Usage

#include <radcli/>

int rc_avpair_get_raw(
    VALUE_PAIR  *vp,
    char       **res,
    unsigned    *res_size
);

Overview

This function is valid for PW_TYPE_STRING, PW_TYPE_IPV6ADDR, PW_TYPE_IPV6PREFIX.

Parameters

vp

a pointer to a VALUE_PAIR structure.

res

Will contain pointer to the data value.

res_size

Will contain the data size.

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.