radcli_avp_get_uint32(3)

radcli_avp_get_uint323

Read an attribute's value as an integer/ipv4-address/date.

Usage

#include <radcli/>

int radcli_avp_get_uint32(
    const radcli_avp  *a,
    uint32_t          *out
);

Overview

Parameters

a

the attribute; radcli_avp_def(a) must be RADCLI_TYPE_INTEGER, RADCLI_TYPE_IPADDR, or RADCLI_TYPE_DATE. An IPv4 address is returned in host byte order.

out

where to write the value; may be NULL to just check validity.

Return value

0 on success, -1 if a's type does not match.

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