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
|
a pointer to a VALUE_PAIR structure. |
|---|---|
|
An in6_addr structure for result to be copied in. |
|
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.