aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/netif/rtp.h
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-11-16 00:18:08 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-11-16 00:34:54 +0100
commit3c21004bfba30054bf0069c5b4bc27447453178d (patch)
tree9e5a15dfefa5edabcdd83e59c5256c24832f9b3d /include/osmocom/netif/rtp.h
parenta3c896f250224c72e291a9a9b1f232bdcf388b5d (diff)
add/clean big-endian packed structs (struct_endianess.py)neels/big_endian
Diffstat (limited to 'include/osmocom/netif/rtp.h')
-rw-r--r--include/osmocom/netif/rtp.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/osmocom/netif/rtp.h b/include/osmocom/netif/rtp.h
index c01df41..4e40745 100644
--- a/include/osmocom/netif/rtp.h
+++ b/include/osmocom/netif/rtp.h
@@ -13,12 +13,9 @@ struct rtp_hdr {
uint8_t payload_type:7,
marker:1;
#elif OSMO_IS_BIG_ENDIAN
- uint8_t version:2,
- padding:1,
- extension:1,
- csrc_count:4;
- uint8_t marker:1,
- payload_type:7;
+/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianess.py) */
+ uint8_t version:2, padding:1, extension:1, csrc_count:4;
+ uint8_t marker:1, payload_type:7;
#endif
uint16_t sequence;
uint32_t timestamp;