]> git.meshlink.io Git - meshlink/blobdiff - src/libmeshlink.h
Remove pidfile/logfile/netname and so on.
[meshlink] / src / libmeshlink.h
index c5e84462fba366d57b94db15023c50ec1ff996f9..4c7c4a95a5d81afd4957e92b64a0d62b400b29d6 100644 (file)
 
 #include "system.h"
 #include "node.h"
-#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);
@@ -39,6 +40,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);