From: Saverio Proto Date: Thu, 10 Apr 2014 07:31:02 +0000 (+0200) Subject: Simplified tincpackethdr struct X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=1d4439b5fcf05c8b191c9b9e3df57273eebc5ac2;p=meshlink Simplified tincpackethdr struct --- diff --git a/src/libmeshlink.h b/src/libmeshlink.h index df1fc8d7..ab7cdded 100644 --- a/src/libmeshlink.h +++ b/src/libmeshlink.h @@ -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 {