From 79c0c959860d1773404a16f1fa62431ab333d2e0 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Thu, 27 Oct 2016 10:24:44 +0200 Subject: [PATCH] lib: afi_ether structure packing fix 'packed' keyword had no effect on packing the afi_ethernet structure. The attribute keyword has been eppended in order to take into account the packed feature. Signed-off-by: Julien Courtat --- lib/prefix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prefix.h b/lib/prefix.h index 4a66b79502..1756dd21c8 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -44,7 +44,7 @@ */ struct ethaddr { u_char octet[ETHER_ADDR_LEN]; -} __packed; +} __attribute__ ((packed)); /* length is the number of valuable bits of prefix structure -- 2.39.5