From 1d4439b5fcf05c8b191c9b9e3df57273eebc5ac2 Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Thu, 10 Apr 2014 09:31:02 +0200 Subject: [PATCH] Simplified tincpackethdr struct --- src/libmeshlink.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 { -- 2.39.2