36#ifdef HAVE_SYS_INOTIFY_H
37#include <sys/inotify.h>
static void gc_free(struct gc_arena *a)
Free all allocations in a garbage collection arena.
static struct gc_arena gc_new(void)
Allocate and return a new, empty garbage collection arena.
static void event_del(struct event_set *es, event_t event)
Interface functions to the internal and external multiplexers.
void mbuf_free(struct mbuf_set *ms)
struct mbuf_set * mbuf_init(unsigned int size)
static bool mbuf_defined(const struct mbuf_set *ms)
bool mroute_extract_openvpn_sockaddr(struct mroute_addr *addr, const struct openvpn_sockaddr *osaddr, bool use_port)
const char * mroute_addr_print(const struct mroute_addr *ma, struct gc_arena *gc)
void multi_tcp_set_global_rw_flags(struct multi_context *m, struct multi_instance *mi)
bool multi_tcp_instance_specific_init(const struct multi_context *m, struct multi_instance *mi)
void multi_tcp_instance_specific_free(struct multi_instance *mi)
struct multi_instance * multi_create_instance_tcp(struct multi_context *m, struct link_socket *sock)
void multi_tcp_delete_event(struct multi_io *multi_io, event_t event)
void multi_tcp_dereference_instance(struct multi_io *multi_io, struct multi_instance *mi)
struct multi_instance * multi_create_instance(struct multi_context *m, const struct mroute_addr *real, struct link_socket *sock)
void multi_assign_peer_id(struct multi_context *m, struct multi_instance *mi)
Assigns a peer-id to a a client and adds the instance to the the instances array of the multi_context...
Header file for server-mode related structures and functions.
unsigned int socket_set(struct link_socket *s, struct event_set *es, unsigned int rwflags, void *arg, unsigned int *persistent)
static event_t socket_event_handle(const struct link_socket *sock)
#define LS_MODE_TCP_ACCEPT_FROM
static bool proto_is_dgram(int proto)
Return if the protocol is datagram (UDP)
struct link_socket ** link_sockets
struct context_2 c2
Level 2 context.
struct options options
Options loaded from command line or configuration file.
Garbage collection arena used to keep track of dynamically allocated memory.
struct openvpn_sockaddr dest
struct link_socket_actual actual
struct link_socket_addr * lsa
struct link_socket_info info
Main OpenVPN server state structure.
struct multi_io * multi_io
I/O state and events tracker.
struct context top
Storage structure for process-wide configuration.
Server-mode state structure for one single VPN tunnel.
struct mbuf_set * tcp_link_out_deferred
struct mroute_addr real
External network address of the remote peer.
struct event_arg ev_arg
this struct will store a pointer to either mi or link_socket, depending on the event type,...
struct context context
The context structure storing state for this VPN tunnel.
union openvpn_sockaddr::@27 addr