radcli_dict_lookup_num(3) Radius client library radcli_dict_lookup_num(3)

radcli_dict_lookup_num - Look up a dictionary attribute by its legacy numeric ID and vendor.

#include <radcli/>

const radcli_attr_def * radcli_dict_lookup_num(
    const radcli_ctx  *ctx,
    uint32_t           attrid,
    uint32_t           vendor
);

Bridges callers that still hold a radcli.h PW_* constant; equivalent to radcli_dict_lookup_oid() with the same attribute expressed as an OID.

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.

the attribute definition, or NULL if no such attribute is loaded. Non-NULL for any RFC 2865/2866/2869 attribute ID on a context that has the built-in dictionary loaded every radcli_ctx_read_config() context, and every radcli_ctx_new() context unless created with RADCLI_CTX_NO_BUILTIN_DICT.

radcli_attr_def_name(3), radcli_attr_def_oid(3), radcli_attr_def_type(3), radcli_dict_lookup(3), radcli_dict_lookup_oid(3), radcli_dict_lookup_value(3)

2026-09-03 radcli