]> git.meshlink.io Git - meshlink/blobdiff - src/libmeshlink.h
Dealing with legacy MTU probingwq
[meshlink] / src / libmeshlink.h
index df1fc8d764be6df525b1b644d24d1a5ebfe6c178..f2fbd5c4b64966ade273f8aa848b7fce0b3bbdff 100644 (file)
@@ -19,7 +19,6 @@
 
 #include "system.h"
 #include "node.h"
-#include "names.h"
 //#include "tincctl.h"
 #include "xalloc.h"
 #include "logger.h"
@@ -42,22 +41,13 @@ bool tinc_start(const char* path);
 bool tinc_stop();
 
 typedef struct tincpackethdr {
-  /* Use a standard Type-Length-Value (TLV) element */
-  u_int8_t type;
-  u_int8_t len;
-  u_int16_t reserved;                  /* Always 0 */
-  u_int32_t destination;
-  u_int32_t source;
+  u_int8_t legacymtu[14];
+  u_int8_t destination[16];
+  u_int8_t source[16];
 } __attribute__ ((__packed__)) tincpackethdr;
 
-typedef struct tincremotehost {
-  char *name;
-  char *publickey;
-
-} tincremotehost;
-
 // can be called from any thread
-bool tinc_send_packet(tincremotehost *receiver, const char* buf, unsigned int len);
+bool tinc_send_packet(node_t *receiver, const char* buf, unsigned int len);
 
 // handler runs in tinc thread and should return immediately
 bool tinc_set_packet_receive_handler(void (*handler)(const char* sender, const char* buf, unsigned int len));