X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet.h;h=57e9d8db3a0c7ddb05a915e6c7a4f970c49406a1;hb=075e6828a7533e7daa790225f17aa6bb39703278;hp=d320c15af6e537644e130a04b9fe144cc0d69166;hpb=08aabbf9317806bc50a9a6693ca866c8936ce26b;p=meshlink diff --git a/src/net.h b/src/net.h index d320c15a..57e9d8db 100644 --- a/src/net.h +++ b/src/net.h @@ -131,7 +131,7 @@ extern int setup_vpn_in_socket(const sockaddr_t *); extern void send_packet(const struct node_t *, vpn_packet_t *); extern void receive_tcppacket(struct connection_t *, char *, int); extern void broadcast_packet(const struct node_t *, vpn_packet_t *); -extern bool setup_network_connections(void); +extern bool setup_network(void); extern void setup_outgoing_connection(struct outgoing_t *); extern void try_outgoing_connections(void); extern void close_network_connections(void); @@ -149,6 +149,8 @@ extern int reload_configuration(void); #ifndef HAVE_MINGW #define closesocket(s) close(s) +#else +extern CRITICAL_SECTION mutex; #endif #endif /* __TINC_NET_H__ */