radcli_avp_get_gigawords64(3)

radcli_avp_get_gigawords643

Reassemble a 64-bit counter from an octets/gigawords attribute pair.

Usage

#include <radcli/>

int radcli_avp_get_gigawords64(
    const radcli_ctx       *ctx,
    const radcli_avp_list  *list,
    const radcli_attr_def  *octets,
    uint64_t               *out
);

Overview

Parameters

ctx

the context octets was looked up from; see radcli_avp_add_gigawords64().

list

the list to search (via radcli_avp_get()).

octets

the octets attribute; its dictionary entry must declare a gigawords= counterpart, as for radcli_avp_add_gigawords64().

out

where to write the reassembled value; may be NULL to just check validity.

Return value

0 on success, -1 if octets has no configured gigawords counterpart, list has no octets attribute, or the gigawords attribute is present but has the wrong type.

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