25RCSIDH(lib_bio_network_h,
"$Id: 75c82280e93b18ce3006aacc87e27fbc34d47f60 $")
27#include <freeradius-devel/util/inet.h>
28#include <freeradius-devel/util/trie.h>
43#define FR_BIO_NETWORK_ALLOW ((void *) (-1))
44#define FR_BIO_NETWORK_DENY ((void *) (-2))
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.
bool fr_bio_network_trie_allow(fr_trie_t const *trie, struct sockaddr const *sockaddr, socklen_t socklen)
Check if the source of a packet or connection is allowed by the network trie.