51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __TINC_NET_H__
-#define __TINC_NET_H__
+#ifndef __MESHLINK_NET_H__
+#define __MESHLINK_NET_H__
#include "event.h"
#include "sockaddr.h"
struct addrinfo *ai;
struct addrinfo *aip;
timeout_t ev;
+ struct meshlink_handle *mesh;
} outgoing_t;
extern int maxoutbufsize;
extern int keylifetime;
extern int max_connection_burst;
extern bool do_prune;
-extern int autoconnect;
/* Yes, very strange placement indeed, but otherwise the typedefs get all tangled up */
#include "connection.h"
extern void terminate_connection(struct meshlink_handle *mesh, struct connection_t *, bool);
extern bool node_read_ecdsa_public_key(struct meshlink_handle *mesh, struct node_t *);
extern bool read_ecdsa_public_key(struct meshlink_handle *mesh, struct connection_t *);
+extern bool read_ecdsa_private_key(struct meshlink_handle *mesh);
extern void send_mtu_probe(struct meshlink_handle *mesh, struct node_t *);
extern void handle_meta_connection_data(struct meshlink_handle *mesh, struct connection_t *);
extern void retry(struct meshlink_handle *mesh);
extern CRITICAL_SECTION mutex;
#endif
-#endif /* __TINC_NET_H__ */
+#endif /* __MESHLINK_NET_H__ */