radcli_avp_get_gigawords64_by_num(3)

radcli_avp_get_gigawords64_by_num3

Look up the octets attribute by legacy numeric id and reassemble a 64-bit counter from an octets/gigawords pair.

Usage

#include <radcli/>

int radcli_avp_get_gigawords64_by_num(
    const radcli_ctx       *ctx,
    const radcli_avp_list  *list,
    uint32_t                attrid,
    uint32_t                vendor,
    uint64_t               *out
);

Overview

Parameters

ctx

a context with a dictionary loaded.

list

the list to search.

attrid

the octets attribute's ID (e.g. PW_ACCT_INPUT_OCTETS).

vendor

the vendor PEN, or 0 for a standard attribute.

out

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

Return value

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

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