1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-13 08:33:49 +01:00

Merge pull request #21947 from maribu/cpu/native/socket_zep/nonstring

sys/include/net/zep.h: add NONSTRING attribute
This commit is contained in:
Marian Buschsieweke 2025-12-09 21:16:25 +00:00 committed by GitHub
commit 526ac4c69e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,6 +24,7 @@
#include <stdint.h>
#include "byteorder.h"
#include "compiler_hints.h"
#include "net/ntp_packet.h"
#ifdef __cplusplus
@ -51,6 +52,7 @@ extern "C" {
* @brief ZEP header definition
*/
typedef struct __attribute__((packed)) {
NONSTRING
char preamble[2]; /**< Preamble code (must be "EX") */
uint8_t version; /**< Protocol Version (must be 1 or 2) */
} zep_hdr_t;