Radcli library 1.5.2
A simple radius library
Loading...
Searching...
No Matches
rc_value_pair Struct Reference

#include <radcli.h>

Data Fields

char name [RC_NAME_LENGTH+1]
 attribute name if known.
uint64_t attribute
 attribute numeric value of type rc_attr_id including vendor; use VENDOR() and ATTRID() to separate.
rc_attr_type type
 attribute type.
uint32_t lvalue
 attribute value if type is PW_TYPE_INTEGER, PW_TYPE_DATE or PW_TYPE_IPADDR.
char strvalue [AUTH_STRING_LEN+1]
 contains attribute value in other cases.
struct rc_value_pairnext
char pad [32]
 unused pad

Detailed Description

Avoid using this structure directly. Use rc_avpair_get_uint32() for integer/IPv4/date values, rc_avpair_get_in6() for IPv6 addresses and prefixes, rc_avpair_get_raw() for string/binary values, and rc_avpair_get_attr() to read the attribute type and ID. To iterate the list use rc_avpair_next(). Free the entire list with rc_avpair_free().

Definition at line 483 of file radcli.h.

Field Documentation

◆ attribute

uint64_t rc_value_pair::attribute

attribute numeric value of type rc_attr_id including vendor; use VENDOR() and ATTRID() to separate.

Definition at line 486 of file radcli.h.

◆ lvalue

uint32_t rc_value_pair::lvalue

attribute value if type is PW_TYPE_INTEGER, PW_TYPE_DATE or PW_TYPE_IPADDR.

Definition at line 488 of file radcli.h.

◆ name

char rc_value_pair::name[RC_NAME_LENGTH+1]

attribute name if known.

Definition at line 485 of file radcli.h.

◆ next

struct rc_value_pair* rc_value_pair::next

Definition at line 490 of file radcli.h.

◆ pad

char rc_value_pair::pad[32]

unused pad

Definition at line 491 of file radcli.h.

◆ strvalue

char rc_value_pair::strvalue[AUTH_STRING_LEN+1]

contains attribute value in other cases.

Definition at line 489 of file radcli.h.

◆ type

rc_attr_type rc_value_pair::type

attribute type.

Definition at line 487 of file radcli.h.


The documentation for this struct was generated from the following file: