diff options
author | Oliver Smith <osmith@sysmocom.de> | 2023-02-20 10:46:00 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2023-02-20 10:46:00 +0100 |
commit | d20d82442a9c73b6d22e03d5eea53dfb260d5e1b (patch) | |
tree | 0fa9c8a525bdda79f96c77c8fc4548265baf53f9 | |
parent | 7d2df40c692b532460f1bbd17da0d22b927447e3 (diff) |
Run struct_endianness.py
Ensure there is no diff to prepare to run this in CI.
Related: OS#5884
Change-Id: If070a3204d47f71d47e01276fe16323f8af8cb4a
-rw-r--r-- | include/osmocom/octoi/e1oip_proto.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/osmocom/octoi/e1oip_proto.h b/include/osmocom/octoi/e1oip_proto.h index 96bc1d7..c4eeea0 100644 --- a/include/osmocom/octoi/e1oip_proto.h +++ b/include/osmocom/octoi/e1oip_proto.h @@ -1,9 +1,16 @@ #pragma once +#include <osmocom/core/endian.h> struct e1oip_hdr { +#if OSMO_IS_LITTLE_ENDIAN uint8_t version:4, flags:4; uint8_t msg_type; /* enum e1oip_msgtype */ +#elif OSMO_IS_BIG_ENDIAN +/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */ + uint8_t flags:4, version:4; + uint8_t msg_type; +#endif } __attribute__ ((packed)); #define E1OIP_VERSION 1 |