1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

nanocoap: use __attribute__((packed)) for coap_hdr_t

This commit is contained in:
Sören Tempel 2018-01-31 21:41:53 +01:00
parent c68a9f7895
commit 45a69f29d5

View File

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