25 RCSIDH(lib_bio_network_h,
"$Id: 7270ee76a4e1b064a7c2eb43018b719d28647efa $")
27 #include <freeradius-devel/util/inet.h>
43 #define FR_BIO_NETWORK_ALLOW ((void *) (-1))
44 #define FR_BIO_NETWORK_DENY ((void *) (-2))
ssize_t(* fr_bio_read_t)(fr_bio_t *bio, void *packet_ctx, void *buffer, size_t size)
Do a raw read from a socket, or other data source.
fr_trie_t * fr_bio_network_trie_alloc(TALLOC_CTX *ctx, int af, fr_ipaddr_t const *allow, fr_ipaddr_t const *deny)
Create a patricia trie for doing network filtering.
fr_bio_t * fr_bio_network_alloc(TALLOC_CTX *ctx, fr_ipaddr_t const *allow, fr_ipaddr_t const *deny, fr_bio_read_t discard, fr_bio_t *next))
Allocate a bio for filtering IP addresses.