You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
648 B
30 lines
648 B
/** |
|
* @file utun_state.h |
|
* @brief Main application state structure |
|
* @details Contains all module instances and configuration |
|
*/ |
|
|
|
#ifndef UTUN_STATE_H |
|
#define UTUN_STATE_H |
|
|
|
#include <stdio.h> |
|
#include "tun_if.h" |
|
#include "connection.h" |
|
#include "routing.h" |
|
#include "control_socket.h" |
|
#include "config_parser.h" |
|
|
|
// Main application state |
|
typedef struct utun_state { |
|
tun_config_t tun; |
|
conn_handle_t **connections; |
|
int connection_count; |
|
routing_table_t *routing_table; |
|
control_socket_t *control_socket; |
|
int running; |
|
uasync_t *ua; |
|
utun_config_t *config; |
|
FILE *log_fp; |
|
} utun_state_t; |
|
|
|
#endif /* UTUN_STATE_H */ |