radcli_avp_get_ip4prefix(3)
π NAME π
radcli_avp_get_ip4prefix β read an attributeβs value as an IPv4 prefix, bestie. This page is part of the Radius client library, and yes itβs giving very specific networking fairy energy π§β¨
β¨ SYNOPSIS β¨
#include <radcli/>
int radcli_avp_get_ip4prefix(
const radcli_avp *a,
struct in_addr *out,
unsigned *prefix
);
π¦ DESCRIPTION π¦
Okay so the DESCRIPTION section is literally empty in the original β no extra lore, no secret side quest. The actual deets are right below in PARAMETERS, bestie π
πΈ PARAMETERS πΈ
aβ the attribute;radcli_avp_def(a)must beRADCLI_TYPE_IPV4PREFIX. No cap, it has to be that type π₯outβ where to write the address (zero-padded beyond the prefix length); may beNULL. So if you donβt need it, you can passNULLand vibe πprefixβ where to write the prefix length; may beNULL. Same deal, optional output spot π
π RETURN VALUE π
0 on success, -1 if aβs type does not match. Thatβs the whole mood: success is 0, type mismatch is -1 π
π SEE ALSO π
All the sibling functions are here, iykyk π«Ά
radcli_avp_add_bytes(3)radcli_avp_add_bytes_by_num(3)radcli_avp_add_gigawords64(3)radcli_avp_add_gigawords64_by_num(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_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)
xoxo from radcli π β thatβs the source/version, dated 2026-10-10 πΈ
π¦ where this page comes from
- arch rolling: radcli 2.0.1-1 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms