Scroll to navigation

radcli_avp_get_by_num(3) Radius client library radcli_avp_get_by_num(3)

NAME

radcli_avp_get_by_num - Look up the idx-th occurrence of an attribute by legacy numeric ID.

SYNOPSIS

#include <radcli/>

const radcli_avp * radcli_avp_get_by_num(

const radcli_avp_list *list,
const radcli_ctx *ctx,
uint32_t attrid,
uint32_t vendor,
unsigned idx );

DESCRIPTION

PARAMETERS

the list to search.

a context with a dictionary loaded.

the attribute ID (a PW_* constant, or a vendor type ID when vendor is non-zero).

the vendor PEN, or 0 for a standard attribute.

0 for the first occurrence, 1 for the second, and so on.

RETURN VALUE

the matching attribute, or NULL if no such attribute is defined, or fewer than idx+1 occurrences exist in list.

SEE ALSO

radcli_avp_get_bytes_by_num(3), radcli_avp_get_cstr_by_num(3), radcli_avp_get_ip4prefix_by_num(3), radcli_avp_get_ip6_by_num(3), radcli_avp_get_uint32_by_num(3), radcli_avp_get_uint64_by_num(3)

2026-11-15 radcli