From d26cfa0519daf1369b697b0df000c8db8b730e66 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Thu, 16 Oct 2014 18:05:54 +0200 Subject: [PATCH] __attribute__((packed)) added. Thank to Maksim Tamarsky --- proto/ospf/ospf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index e705b88b9..45dd70561 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -319,13 +319,13 @@ struct immsb u8 i:1; u8 padding:5; #endif -}; +}__attribute__((packed));; union imms { u8 byte; struct immsb bit; -}; +}__attribute__((packed));; #define DBDES_MS 1 #define DBDES_M 2 #define DBDES_I 4 -- 2.39.2