radcli_avp_add_gigawords64_by_num(3)

radcli_avp_add_gigawords64_by_num3

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

Usage

#include <radcli/>

int radcli_avp_add_gigawords64_by_num(
    radcli_ctx       *ctx,
    radcli_avp_list  *list,
    uint32_t          attrid,
    uint32_t          vendor,
    uint64_t          value
);

Overview

The _by_num() wrapper for radcli_avp_add_gigawords64(): unlike the other _by_num() wrappers, only one attribute ID is needed here, not two the Gigawords counterpart is resolved from octets' own dictionary entry (its gigawords= option), the same way radcli_avp_add_gigawords64() resolves it from a radcli_attr_def *.

Parameters

ctx

a context with a dictionary loaded.

list

destination list.

attrid

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

vendor

the vendor PEN, or 0 for a standard attribute.

value

the full 64-bit count.

Return value

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

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