X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet.h;h=7bea4a6b59e75ad275659eaf713fcfa5c9eda372;hb=a86faaf34711d6b0f278b670d70a229a3cf0d479;hp=9a97276ca99d62f6c95fce0b2ef25040e7a01756;hpb=24e3ec863ec463186501f76961c6d4b1dfe122af;p=meshlink diff --git a/src/net.h b/src/net.h index 9a97276c..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-2013 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" @@ -129,7 +130,6 @@ extern sockaddr_t localdiscovery_address; extern listen_socket_t listen_socket[MAXSOCKETS]; extern int listen_sockets; -extern io_t unix_socket; extern int keylifetime; extern int udp_rcvbuf; extern int udp_sndbuf; @@ -168,7 +168,6 @@ extern void handle_incoming_vpn_data(void *, int); extern void finish_connecting(struct connection_t *); extern bool do_outgoing_connection(struct outgoing_t *); extern void handle_new_meta_connection(void *, int); -extern void handle_new_unix_connection(void *, int); extern int setup_listen_socket(const sockaddr_t *); extern int setup_vpn_in_socket(const sockaddr_t *); extern bool send_sptps_data(void *handle, uint8_t type, const char *data, size_t len); @@ -203,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__ */