NAME
radcli_avp_add_bytes_by_num - Look up an attribute by legacy numeric ID and append its bytes.
SYNOPSIS
#include <radcli/>
int radcli_avp_add_bytes_by_num(
radcli_avp_list *list,
const radcli_ctx *ctx,
uint32_t attrid,
uint32_t vendor,
const void *value,
size_t len
);
DESCRIPTION
PARAMETERS
- list
-
destination list.
- 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.
- value
-
the bytes to copy in; may be NULL only if len is 0.
- len
-
number of bytes at value.
RETURN VALUE
0 on success, -1 on failure (no such attribute, or as radcli_avp_add_bytes()).
SEE ALSO
radcli_avp_add_ip4_by_num(3), radcli_avp_add_ip4prefix_by_num(3), radcli_avp_add_ip6_by_num(3), radcli_avp_add_str_by_num(3), radcli_avp_add_uint32_by_num(3), radcli_avp_add_uint64_by_num(3)