radcli_avp_get_ip4prefix(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸŽ€ 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 be RADCLI_TYPE_IPV4PREFIX. No cap, it has to be that type πŸ”₯
  • out β€” where to write the address (zero-padded beyond the prefix length); may be NULL. So if you don’t need it, you can pass NULL and vibe πŸ™ˆ
  • prefix β€” where to write the prefix length; may be NULL. 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 🫢


xoxo from radcli πŸ’– β€” that’s the source/version, dated 2026-10-10 🌸

πŸ“¦ where this page comes from