From 45a69f29d5674076d116a5c14b67ecb74c8ff02b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Wed, 31 Jan 2018 21:41:53 +0100 Subject: [PATCH] nanocoap: use __attribute__((packed)) for coap_hdr_t --- sys/include/net/nanocoap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/include/net/nanocoap.h b/sys/include/net/nanocoap.h index 5b113eedc8..ad525814f1 100644 --- a/sys/include/net/nanocoap.h +++ b/sys/include/net/nanocoap.h @@ -209,7 +209,7 @@ extern "C" { /** * @brief Raw CoAP PDU header structure */ -typedef struct { +typedef struct __attribute__((packed)) { uint8_t ver_t_tkl; /**< version, token, token length */ uint8_t code; /**< CoAP code (e.g.m 205) */ uint16_t id; /**< Req/resp ID */