X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet.h;h=7bea4a6b59e75ad275659eaf713fcfa5c9eda372;hb=a86faaf34711d6b0f278b670d70a229a3cf0d479;hp=4277279aa8d80b02799c91f07bb93cc37107e608;hpb=6bc5d626a8726fc23365ee705761a3c666a08ad4;p=meshlink diff --git a/src/net.h b/src/net.h index 4277279a..7bea4a6b 100644 --- a/src/net.h +++ b/src/net.h @@ -1,7 +1,7 @@ /* net.h -- header for net.c Copyright (C) 1998-2005 Ivo Timmermans - 2000-2012 Guus Sliepen + 2000-2014 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -103,6 +103,7 @@ typedef struct listen_socket_t { io_t tcp; io_t udp; sockaddr_t sa; + bool bindto; } listen_socket_t; #include "conf.h" @@ -125,15 +126,18 @@ extern int seconds_till_retry; extern int addressfamily; extern unsigned replaywin; extern bool localdiscovery; +extern sockaddr_t localdiscovery_address; extern listen_socket_t listen_socket[MAXSOCKETS]; extern int listen_sockets; extern int keylifetime; extern int udp_rcvbuf; extern int udp_sndbuf; +extern int max_connection_burst; extern bool do_prune; extern char *myport; extern int autoconnect; +extern bool disablebuggypeers; extern int contradicting_add_edge; extern int contradicting_del_edge; extern time_t last_config_check; @@ -198,4 +202,7 @@ extern void load_all_nodes(void); extern CRITICAL_SECTION mutex; #endif +//TODO: move this to a better place +extern char *confbase; + #endif /* __TINC_NET_H__ */