radcli_dict_lookup_num(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸ’… radcli_dict_lookup_num(3) πŸ’…

okay bestie, welcome to the Radius client library manual page for radcli_dict_lookup_num(3) β€” she’s niche, she’s useful, and she’s literally here to help u look stuff up πŸ’–


πŸ’– NAME πŸ’–

  • radcli_dict_lookup_num β€” look up a dictionary attribute by its legacy numeric ID and vendor. periodt ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

bestie, u include this and call it like:

#include <radcli/>

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

🌸 DESCRIPTION 🌸

okay so this function is the bridge for callers who are still holding onto a radcli.h PW_* constant β€” iconic, honestly 🫢

it’s equivalent to radcli_dict_lookup_oid() with the same attribute expressed as an OID. no cap, that’s the whole vibe πŸ’…


πŸŽ€ PARAMETERS πŸŽ€

  • ctx β€” a context with a dictionary loaded. gotta have ur dictionary ready, bestie πŸ“š
  • attrid β€” the attribute ID, aka a PW_* constant, or a vendor type ID when vendor is non-zero.
  • vendor β€” the vendor PEN, or 0 for a standard attribute.

🌈 RETURN VALUE 🌈

it returns the attribute definition, or NULL if no such attribute is loaded 😭

and it’s 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. that’s the tea β˜•βœ¨


πŸ‘‘ SEE ALSO πŸ‘‘


xoxo, this page came from radcli and is dated 2026-10-10 β€” radcli_dict_lookup_num(3) is literally living its best life, bye bestie πŸ«ΆπŸ’‹

πŸ“¦ where this page comes from