]> git.meshlink.io Git - meshlink/commitdiff
Simplified tincpackethdr struct
authorSaverio Proto <zioproto@gmail.com>
Thu, 10 Apr 2014 07:31:02 +0000 (09:31 +0200)
committerSaverio Proto <zioproto@gmail.com>
Thu, 10 Apr 2014 07:31:02 +0000 (09:31 +0200)
src/libmeshlink.h

index df1fc8d764be6df525b1b644d24d1a5ebfe6c178..ab7cdded06777410df9c7c87c89e2bfca51cdcda 100644 (file)
@@ -42,12 +42,8 @@ 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 destination[16];
+  u_int8_t source[16];
 } __attribute__ ((__packed__)) tincpackethdr;
 
 typedef struct tincremotehost {