26 RCSIDH(udp_queue_h,
"$Id: 24fda9b6eb6eb81d7c489c544db1f5441b764f73 $")
32 #include <freeradius-devel/util/dlist.h>
33 #include <freeradius-devel/util/inet.h>
34 #include <freeradius-devel/util/event.h>
60 uint8_t const *packet,
size_t packet_len,
Stores all information relating to an event list.
static const conf_parser_t config[]
A time delta, a difference in time measured in nanoseconds.
fr_udp_queue_resume_t resume
uint32_t max_queued_packets
maximum queued packets
int fr_udp_queue_write(TALLOC_CTX *ctx, fr_udp_queue_t *uq, uint8_t const *packet, size_t packet_len, fr_ipaddr_t const *ipaddr, int port, void *rctx))
Write packet to socket, OR enqueue it if we get EAGAIN.
char const * interface
Interface to bind to.
uint32_t send_buff
How big the kernel's send buffer should be.
void(* fr_udp_queue_resume_t)(bool written, void *rctx)
fr_ipaddr_t ipaddr
socket IP address
fr_udp_queue_t * fr_udp_queue_alloc(TALLOC_CTX *ctx, fr_udp_queue_config_t const *config, fr_event_list_t *el, fr_udp_queue_resume_t resume))
Allocate an outbound UDP queue.
fr_time_delta_t max_queued_time
maximum time a packet can be queued
bool send_buff_is_set
Whether we were provided with a send_buf.
static fr_event_list_t * el