radcli_avp_get_uint64(3)

radcli_avp_get_uint643

Read an attribute's value as a 64-bit integer or ifid.

Usage

#include <radcli/>

int radcli_avp_get_uint64(
    const radcli_avp  *a,
    uint64_t          *out
);

Overview

Parameters

a

the attribute; radcli_avp_def(a) must be RADCLI_TYPE_INTEGER64 or RADCLI_TYPE_IFID see radcli_avp_add_uint64() for why the two types share this getter.

out

where to write the value (a big-endian uint64_t for RADCLI_TYPE_IFID); may be NULL to just check validity.

Return value

0 on success, -1 if a's type is neither.

From radcli 2.0.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.