X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Flibmeshlink.h;h=f2fbd5c4b64966ade273f8aa848b7fce0b3bbdff;hb=bde0d73919778e0c31f79a6c14efad7e9378b633;hp=ab7cdded06777410df9c7c87c89e2bfca51cdcda;hpb=1d4439b5fcf05c8b191c9b9e3df57273eebc5ac2;p=meshlink diff --git a/src/libmeshlink.h b/src/libmeshlink.h index ab7cdded..f2fbd5c4 100644 --- a/src/libmeshlink.h +++ b/src/libmeshlink.h @@ -19,7 +19,6 @@ #include "system.h" #include "node.h" -#include "names.h" //#include "tincctl.h" #include "xalloc.h" #include "logger.h" @@ -42,18 +41,13 @@ bool tinc_start(const char* path); bool tinc_stop(); typedef struct tincpackethdr { + 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));