radcli_avp_get_bytes_by_num - Man Page

Look up an attribute by legacy numeric ID and read its first occurrence's raw bytes.

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

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.

out

where to write a pointer to the value; valid for list's lifetime. May be NULL.

len

where to write the value's length in bytes. May be NULL.

Return Value

0 on success, -1 on failure (no such attribute, or no occurrence).

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)

Info

2026-09-03 radcli Radius client library