radcli_avp...ytes_by_num(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸ’… NAME

radcli_avp_get_bytes_by_num β€” bestie, this one looks up an attribute by its legacy numeric ID and hands you the raw bytes of its first occurrence. That's the whole vibe. 🫢

The manual name is radcli_avp...ytes_by_num(3), from the Radius client library β€” yes the title's truncated, no we're not fixing it, it's iconic that way.


✨ SYNOPSIS

#include <radcli/>

int radcli_avp_get_bytes_by_num(
    const radcli_avp_list  *list,
    const radcli_ctx       *ctx,
    uint32_t                attrid,
    uint32_t                vendor,
    const void            **out,
    size_t                 *len
);

πŸŽ€ DESCRIPTION

Okay so the description section is lowkey just the vibes β€” the actual deets live in the parameters below, and honestly? Slay. Go read them, they ate. πŸ‘‘


🌸 PARAMETERS

  • list β€” the list you're searching. The main character of the search. πŸ”
  • ctx β€” a context with a dictionary loaded. No dictionary, no lookups, no cap.
  • attrid β€” the attribute ID. Can be a PW_* constant, or a vendor type ID when vendor is non-zero. πŸ’«
  • vendor β€” the vendor PEN, or 0 for a standard attribute. Zero means "not a vendor thing", periodt.
  • out β€” where the pointer to the value gets written. It's valid for list's lifetime (so don't go freeing things and acting surprised 😭). May be NULL.
  • len β€” where the value's length in bytes gets written. May be NULL.
Bestie note: out and len are both allowed to be NULL, that's not a mistake, that's the API being generous. πŸ’–

⭐ RETURN VALUE

  • 0 β€” success, we love to see it ✨
  • -1 β€” failure. That means no such attribute, or no occurrence of it. Not every search finds its person, and that's okay. πŸ’€

πŸ¦‹ SEE ALSO

All the sibling functions, the whole friend group, go say hi 🫢


And that's the page, bestie! Sending you off with the sign-off: this is radcli, dated 2026-10-10, filed under radcli_avp...ytes_by_num(3). Go get those bytes, you absolute icon πŸ’…πŸŒˆ

πŸ“¦ where this page comes from