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:
parent
c68a9f7895
commit
45a69f29d5
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user