radcli_avp...ds64_by_num(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸ’– NAME

radcli_avp_add_gigawords64_by_num β€” Look up the octets attribute by legacy numeric ID and append a 64-bit counter as an Octets/Gigawords pair.

Okay so welcome to the radcli_avp...ds64_by_num(3) page from the Radius client library manual, bestie! ✨


🌸 SYNOPSIS

       #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
       );

πŸŽ€ DESCRIPTION

This is the _by_num() wrapper for radcli_avp_add_gigawords64(). But here’s the twist: 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 *. It’s giving β€œone ID, dictionary-entry matchmaking” energy. πŸ’…

πŸ¦‹ PARAMETERS

  • ctx β€” a context with a dictionary loaded. Yes, the dictionary is kinda the whole point, bestie. πŸ“š
  • 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 β€” slay. βœ…
  • -1 on failure (no such attribute, or as radcli_avp_add_gigawords64()). 😭

🌈 SEE ALSO

Your fave supporting cast, all hanging out in (3)-land: radcli_avp_add_bytes(3), radcli_avp_add_bytes_by_num(3), radcli_avp_add_gigawords64(3), radcli_avp_add_ip4(3), radcli_avp_add_ip4_by_num(3), radcli_avp_add_ip4prefix(3), radcli_avp_add_ip4prefix_by_num(3), radcli_avp_add_ip6(3), radcli_avp_add_ip6_by_num(3), radcli_avp_add_str(3), radcli_avp_add_str_by_num(3), radcli_avp_add_uint32(3), radcli_avp_add_uint32_by_num(3), radcli_avp_add_uint64(3), radcli_avp_add_uint64_by_num(3), radcli_avp_add_username(3), radcli_avp_concat_str(3), radcli_avp_concat_str_by_num(3), radcli_avp_def(3), radcli_avp_get(3), radcli_avp_get_by_num(3), radcli_avp_get_bytes(3), radcli_avp_get_bytes_by_num(3), radcli_avp_get_cstr(3), radcli_avp_get_cstr_by_num(3), radcli_avp_get_gigawords64(3), radcli_avp_get_gigawords64_by_num(3), radcli_avp_get_ip4prefix(3), radcli_avp_get_ip4prefix_by_num(3), radcli_avp_get_ip6(3), radcli_avp_get_ip6_by_num(3), radcli_avp_get_uint32(3), radcli_avp_get_uint32_by_num(3), radcli_avp_get_uint64(3), radcli_avp_get_uint64_by_num(3), radcli_avp_iter_next(3), radcli_avp_list_error(3), radcli_avp_list_free(3), radcli_avp_list_iter(3), radcli_avp_list_new(3).


Catch you later, bestie 🫢 β€” this page’s source/version is radcli, dated 2026-10-10. radcli_avp...ds64_by_num(3) out! πŸ’…βœ¨

πŸ“¦ where this page comes from