]> git.meshlink.io Git - meshlink/blobdiff - src/libmeshlink.h
Get rid of tincremotehost structure, we use directly node_t
[meshlink] / src / libmeshlink.h
index 7f64320f0f70c37dd24148f3f10b35bab46c1f01..e99f895768fb762369e524dd1f0e4adfb3888885 100644 (file)
 #include "names.h"
 //#include "tincctl.h"
 #include "xalloc.h"
+#include "logger.h"
+#include "route.h"
 
 extern char *hosts_dir;
 extern FILE *fopenmask(const char *filename, const char *mode, mode_t perms);
 
 extern int check_port(char *name);
+
+bool tinc_main_thread(void * in);
+
 /* OLD: tinc_configuration_t provides all information required to setup "/etc/tinc"
 I think tinc_setup() should basically do what cmd_init() from src/tincctl.c does, except it doesn't have to generate a tinc-up script.
 */
@@ -36,6 +41,11 @@ bool tinc_start(const char* path);
 
 bool tinc_stop();
 
+typedef struct tincpackethdr {
+  u_int8_t destination[16];
+  u_int8_t source[16];
+} __attribute__ ((__packed__)) tincpackethdr;
+
 // can be called from any thread
 bool tinc_send_packet(node_t *receiver, const char* buf, unsigned int len);