#include "../conf.h"
#include "../device.h"
#include "../logger.h"
-#include "../names.h"
-#include "../net.h"
#include "../route.h"
-#include "../utils.h"
#include "../xalloc.h"
#ifdef ENABLE_TUNEMU
#include "../system.h"
-
-#include "../cipher.h"
#include "../xalloc.h"
#include "chacha.h"
#include "names.h"
#include "netutl.h" /* for str2address */
#include "protocol.h"
-#include "utils.h" /* for cp */
#include "xalloc.h"
splay_tree_t *config_tree = NULL;
#include "cipher.h"
#include "conf.h"
#include "control_common.h"
-#include "list.h"
#include "logger.h"
#include "net.h"
#include "rsa.h"
-#include "subnet.h"
#include "utils.h"
#include "xalloc.h"
#include "conf.h"
#include "control.h"
#include "control_common.h"
-#include "graph.h"
#include "logger.h"
-#include "meta.h"
#include "names.h"
#include "net.h"
#include "netutl.h"
#include "system.h"
-#include "xalloc.h"
-
#ifndef HAVE_DAEMON
/*
Replacement for the daemon() function.
#include "logger.h"
#include "netutl.h"
#include "node.h"
-#include "utils.h"
#include "xalloc.h"
splay_tree_t *edge_weight_tree;
*/
#include "system.h"
-
-#include "dropin.h"
#include "event.h"
-#include "net.h"
#include "utils.h"
-#include "xalloc.h"
struct timeval now;
#include "logger.h"
#include "net.h"
#include "route.h"
-#include "utils.h"
struct unix_socket_addr {
size_t size;
#include "system.h"
#include "connection.h"
-#include "device.h"
#include "edge.h"
#include "graph.h"
#include "list.h"
#include "logger.h"
-#include "names.h"
#include "netutl.h"
#include "node.h"
#include "protocol.h"
#include "script.h"
#include "subnet.h"
-#include "utils.h"
#include "xalloc.h"
-#include "graph.h"
/* Implementation of Kruskal's algorithm.
Running time: O(EN)
#include "system.h"
#include "control_common.h"
-#include "list.h"
#include "subnet.h"
#include "tincctl.h"
#include "info.h"
#include "utils.h"
-#include "xalloc.h"
void logger(int level, int priority, const char *format, ...) {
(void)level;
#include "../device.h"
#include "../logger.h"
#include "../names.h"
-#include "../net.h"
#include "../route.h"
-#include "../utils.h"
#include "../xalloc.h"
-#include "../device.h"
typedef enum device_type_t {
DEVICE_TYPE_TUN,
#include "net.h"
#include "protocol.h"
#include "utils.h"
-#include "xalloc.h"
#ifndef MIN
static ssize_t MIN(ssize_t x, ssize_t y) {
#include "logger.h"
#include "netutl.h"
#include "utils.h"
-#include "route.h"
#include "xalloc.h"
static const char *device_info = "multicast socket";
#include "conf_net.h"
#include "conf.h"
#include "connection.h"
-#include "device.h"
#include "graph.h"
#include "logger.h"
#include "meta.h"
#include "names.h"
#include "net.h"
-#include "netutl.h"
#include "protocol.h"
#include "subnet.h"
#include "utils.h"
-#include "xalloc.h"
int contradicting_add_edge = 0;
int contradicting_del_edge = 0;
#include "ethernet.h"
#include "ipv4.h"
#include "ipv6.h"
-#include "graph.h"
#include "logger.h"
#include "net.h"
#include "netutl.h"
#include "protocol.h"
#include "route.h"
#include "utils.h"
-#include "xalloc.h"
#ifndef MAX
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#include "process.h"
#include "protocol.h"
#include "route.h"
-#include "rsa.h"
#include "script.h"
#include "subnet.h"
#include "utils.h"
#include "address_cache.h"
#include "conf.h"
#include "connection.h"
-#include "control_common.h"
#include "list.h"
#include "logger.h"
-#include "meta.h"
#include "names.h"
#include "net.h"
#include "netutl.h"
#include "net.h"
#include "netutl.h"
#include "logger.h"
-#include "utils.h"
#include "xalloc.h"
bool hostnames = false;
#include "address_cache.h"
#include "control_common.h"
-#include "hash.h"
#include "logger.h"
#include "net.h"
#include "netutl.h"
*/
#include "../system.h"
-#include "../utils.h"
#include "../xalloc.h"
#include <openssl/err.h>
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "../system.h"
-
#include <openssl/pem.h>
#include <openssl/err.h>
#include "../logger.h"
#include "../rsagen.h"
-#include "../xalloc.h"
/* This function prettyprints the key generation process */
#include "system.h"
-#include "conf.h"
-#include "connection.h"
-#include "control.h"
-#include "device.h"
-#include "edge.h"
-#include "event.h"
#include "logger.h"
#include "names.h"
-#include "net.h"
-#include "node.h"
#include "process.h"
-#include "subnet.h"
-#include "utils.h"
-#include "xalloc.h"
#include "version.h"
+#ifdef HAVE_MINGW
+#include "utils.h"
+#endif
+
/* If zero, don't detach from the terminal. */
bool do_detach = true;
bool sigalrm = false;
extern bool kill_other(int);
#ifdef HAVE_MINGW
+#include "event.h"
+
extern io_t stop_io;
extern bool init_service(void);
#endif
#include "logger.h"
#include "meta.h"
#include "protocol.h"
-#include "utils.h"
#include "xalloc.h"
bool tunnelserver = false;
#include "control_common.h"
#include "cipher.h"
#include "crypto.h"
-#include "device.h"
#include "digest.h"
#include "ecdsa.h"
#include "edge.h"
#include "net.h"
#include "netutl.h"
#include "node.h"
-#include "prf.h"
#include "protocol.h"
#include "rsa.h"
#include "script.h"
#include "edge.h"
#include "graph.h"
#include "logger.h"
-#include "meta.h"
#include "net.h"
#include "netutl.h"
#include "node.h"
#include "net.h"
#include "netutl.h"
#include "node.h"
-#include "prf.h"
#include "protocol.h"
#include "route.h"
#include "sptps.h"
#include "utils.h"
-#include "xalloc.h"
#ifndef DISABLE_LEGACY
static bool mykeyused = false;
#include "system.h"
#include "address_cache.h"
-#include "conf.h"
#include "connection.h"
#include "logger.h"
#include "meta.h"
#include "netutl.h"
#include "protocol.h"
#include "utils.h"
-#include "xalloc.h"
#ifndef MIN
#define MIN(x, y) (((x)<(y))?(x):(y))
#include "conf.h"
#include "connection.h"
#include "logger.h"
-#include "net.h"
-#include "netutl.h"
#include "node.h"
#include "protocol.h"
#include "subnet.h"
#include "device.h"
#include "net.h"
#include "logger.h"
-#include "utils.h"
-#include "route.h"
#include "xalloc.h"
#if defined(PF_PACKET) && defined(ETH_P_ALL) && defined(AF_PACKET) && defined(SIOCGIFINDEX)
#include "protocol.h"
#include "route.h"
#include "subnet.h"
-#include "utils.h"
rmode_t routing_mode = RMODE_ROUTER;
fmode_t forwarding_mode = FMODE_INTERNAL;
#include "crypto.h"
#include "ecdsagen.h"
-#include "utils.h"
static char *program_name;
#include "splay_tree.h"
#include "control_common.h"
-#include "device.h"
#include "hash.h"
#include "logger.h"
-#include "names.h"
#include "net.h"
#include "netutl.h"
#include "node.h"
#include "script.h"
#include "subnet.h"
-#include "utils.h"
#include "xalloc.h"
/* lists type of subnet */
#include "logger.h"
#include "net.h"
-#include "netutl.h"
#include "subnet.h"
-#include "utils.h"
-#include "xalloc.h"
/* Changing this default will affect ADD_SUBNET messages - beware of inconsistencies between versions */
static const int DEFAULT_WEIGHT = 10;
#endif
#include "conf.h"
-#include "control.h"
#include "crypto.h"
-#include "device.h"
#include "event.h"
#include "logger.h"
#include "names.h"
#include "net.h"
-#include "netutl.h"
#include "process.h"
#include "protocol.h"
#include "utils.h"