osmux: Add data[0] field to osmux_hdr

This allows easy access to osmux_hdr payload.

Change-Id: I27750c38f12d3d84dbaac5beff166d78ffa6c45b
This commit is contained in:
Pau Espin 2022-11-15 19:35:38 +01:00
parent 3424ee0c8d
commit 62a7ec137a
2 changed files with 2 additions and 0 deletions

View File

@ -9,4 +9,5 @@
#library what description / commit summary line
libosmo-netif osmux new osmux_xfrm_output_* APIs
libosmo-netif osmux new osmux_xfrm_input_* APIs
libosmo-netif osmux new struct osmux_hdr->data[0] field
libosmo-netif stream new APIs osmo_stream_{cli,srv}_clear_tx_queue()

View File

@ -53,6 +53,7 @@ struct osmux_hdr {
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianess.py) */
uint8_t amr_ft:4, amr_cmr:4;
#endif
uint8_t data[0];
} __attribute__((packed));
/* one to handle all existing RTP flows */