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 <julien.courtat@6wind.com>
This commit is contained in:
Philippe Guibert 2016-10-27 10:24:44 +02:00
parent 4470c22cad
commit 79c0c95986

View File

@ -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