![]() |
The FreeRADIUS server $Id: a4e7f8c94e8038b7627bcf52356b7ed15955c1d7 $
|
BIO patricia trie filtering handlers. More...
#include <freeradius-devel/util/value.h>#include <freeradius-devel/util/trie.h>#include <freeradius-devel/bio/network.h>
Include dependency graph for network.c:Go to the source code of this file.
Functions | |
| 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. | |
BIO patricia trie filtering handlers.
Definition in file network.c.
| fr_trie_t * fr_bio_network_trie_alloc | ( | TALLOC_CTX * | ctx, |
| int | af, | ||
| fr_ipaddr_t const * | allow, | ||
| fr_ipaddr_t const * | deny | ||
| ) |
| 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.
| trie | created by fr_bio_network_trie_alloc(). |
| sockaddr | the source address of the packet or connection. |
| socklen | the length of the source address. |
Definition at line 39 of file network.c.
Here is the call graph for this function:
Here is the caller graph for this function:
1.9.8