#include "system.h"
#include "node.h"
-#include "names.h"
//#include "tincctl.h"
#include "xalloc.h"
#include "logger.h"
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));