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
|
a context with a dictionary loaded. |
|---|---|
|
destination list. |
|
the octets attribute's ID (e.g. PW_ACCT_INPUT_OCTETS). |
|
the vendor PEN, or 0 for a standard attribute. |
|
the full 64-bit count. |
Return value
0 on success, -1 on failure (no such attribute, or as radcli_avp_add_gigawords64()).