radcli_avp...ytes_by_num(3)
π 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 aPW_*constant, or a vendor type ID whenvendoris non-zero. π«vendorβ the vendor PEN, or0for a standard attribute. Zero means "not a vendor thing", periodt.outβ where the pointer to the value gets written. It's valid forlist's lifetime (so don't go freeing things and acting surprised π). May beNULL.lenβ where the value's length in bytes gets written. May beNULL.
Bestie note:outandlenare both allowed to beNULL, 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
radcli_avp_get_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)
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
- arch rolling: radcli 2.0.1-1 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms