radcli_avp_add_uint643
Append a 64-bit integer- or ifid-typed attribute.
Usage
#include <radcli/>
int radcli_avp_add_uint64(
radcli_avp_list *list,
const radcli_attr_def *def,
uint64_t value
);
Overview
Parameters
list-
destination list.
def-
the attribute; must be RADCLI_TYPE_INTEGER64 or RADCLI_TYPE_IFID (RFC 8044 SS3.7's "ifid" data type an opaque 8-octet value, but identical in wire shape to RADCLI_TYPE_INTEGER64, so it shares this setter rather than getting its own).
value-
the value; for RADCLI_TYPE_IFID, the raw 8 octets read as a big-endian uint64_t.
Return value
0 on success, -1 on failure (def has neither accepted type, or as radcli_avp_add_bytes()).