The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
BFD handler for UDP. More...
#include <netdb.h>
#include <freeradius-devel/server/protocol.h>
#include <freeradius-devel/util/udp.h>
#include <freeradius-devel/util/trie.h>
#include <freeradius-devel/bfd/bfd.h>
#include <freeradius-devel/io/application.h>
#include <freeradius-devel/io/listen.h>
#include <freeradius-devel/io/schedule.h>
#include "session.h"
Go to the source code of this file.
Data Structures | |
struct | proto_bfd_udp_t |
struct | proto_bfd_udp_thread_t |
Functions | |
static fr_client_t * | mod_client_find (fr_listen_t *li, fr_ipaddr_t const *ipaddr, int ipproto) |
static void | mod_event_list_set (fr_listen_t *li, fr_event_list_t *el, void *nr) |
Set the event list for a new socket. More... | |
static int | mod_fd_set (fr_listen_t *li, int fd) |
Set the file descriptor for this socket. More... | |
static int | mod_instantiate (module_inst_ctx_t const *mctx) |
static char const * | mod_name (fr_listen_t *li) |
static void | mod_network_get (int *ipproto, bool *dynamic_clients, fr_trie_t const **trie, void *instance) |
static int | mod_open (fr_listen_t *li) |
Open a UDP listener for RADIUS. More... | |
static ssize_t | mod_read (fr_listen_t *li, void **packet_ctx, fr_time_t *recv_time_p, uint8_t *buffer, size_t buffer_len, size_t *leftover) |
static ssize_t | mod_write (fr_listen_t *li, void *packet_ctx, UNUSED fr_time_t request_time, uint8_t *buffer, size_t buffer_len, UNUSED size_t written) |
Variables | |
static const conf_parser_t | networks_config [] |
fr_app_io_t | proto_bfd_udp |
static const conf_parser_t | udp_listen_config [] |
BFD handler for UDP.
Definition in file proto_bfd_udp.c.
struct proto_bfd_udp_t |
Definition at line 47 of file proto_bfd_udp.c.
Data Fields | ||
---|---|---|
fr_ipaddr_t * | allow | allowed networks for dynamic clients |
CONF_SECTION * | cs | our configuration |
fr_ipaddr_t * | deny | denied networks for dynamic clients |
bool | dynamic_clients | whether we have dynamic clients |
char const * | interface | Interface to bind to. |
fr_ipaddr_t | ipaddr | IP address to listen on. |
bool | only_state_changes | on read(), only send packets which signal a state change |
fr_rb_tree_t * | peers | our peers |
uint16_t | port | Port to listen on. |
char const * | port_name | Name of the port for getservent(). |
uint32_t | recv_buff | How big the kernel's receive buffer should be. |
bool | recv_buff_is_set | Whether we were provided with a recv_buff. |
uint32_t | send_buff | How big the kernel's send buffer should be. |
bool | send_buff_is_set | Whether we were provided with a send_buff. |
char const * | server_name | virtual server name |
fr_trie_t * | trie | for parsed networks |
uint8_t | ttl | default ttl |
struct proto_bfd_udp_thread_t |
Definition at line 37 of file proto_bfd_udp.c.
Data Fields | ||
---|---|---|
fr_io_address_t * | connection | for connected sockets. |
char const * | name | socket name |
int | sockfd | |
fr_stats_t | stats | statistics for this socket |
|
static |
|
static |
Set the event list for a new socket.
[in] | li | the listener |
[in] | el | the event list |
[in] | nr | context from the network side |
Definition at line 489 of file proto_bfd_udp.c.
|
static |
Set the file descriptor for this socket.
Definition at line 333 of file proto_bfd_udp.c.
|
static |
|
static |
Definition at line 348 of file proto_bfd_udp.c.
|
static |
Definition at line 233 of file proto_bfd_udp.c.
|
static |
Open a UDP listener for RADIUS.
Definition at line 245 of file proto_bfd_udp.c.
|
static |
Definition at line 77 of file proto_bfd_udp.c.
fr_app_io_t proto_bfd_udp |
Definition at line 516 of file proto_bfd_udp.c.
|
static |
Definition at line 85 of file proto_bfd_udp.c.