From b032f748f166a6ff26e60a6d5607a34a230532d7 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 28 Oct 2014 17:56:28 +0100 Subject: [PATCH] Ehternet: added packed attribute on DHCP message struct --- libraries/Ethernet/src/Dhcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Ethernet/src/Dhcp.h b/libraries/Ethernet/src/Dhcp.h index 4a47936f0..1a533ef00 100644 --- a/libraries/Ethernet/src/Dhcp.h +++ b/libraries/Ethernet/src/Dhcp.h @@ -120,7 +120,7 @@ enum endOption = 255 }; -typedef struct _RIP_MSG_FIXED +typedef struct __attribute__((packed)) _RIP_MSG_FIXED { uint8_t op; uint8_t htype;