radcli_avp_get_by_num3
Look up the idx-th occurrence of an attribute by legacy numeric id.
Usage
#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
);
Overview
Parameters
list-
the list to search.
ctx-
a context with a dictionary loaded.
attrid-
the attribute ID (a PW_* constant, or a vendor type ID when vendor is non-zero).
vendor-
the vendor PEN, or 0 for a standard attribute.
idx-
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.