pespin submitted this change.

View Change

Approvals: Jenkins Builder: Verified osmith: Looks good to me, but someone else must approve laforge: Looks good to me, approved
osmux: Add data[0] field to osmux_hdr

This allows easy access to osmux_hdr payload.

Change-Id: I27750c38f12d3d84dbaac5beff166d78ffa6c45b
---
M TODO-RELEASE
M include/osmocom/netif/osmux.h
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/TODO-RELEASE b/TODO-RELEASE
index 5629a9c..55371fd 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -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()
\ No newline at end of file
diff --git a/include/osmocom/netif/osmux.h b/include/osmocom/netif/osmux.h
index f7a5fd5..b6014d5 100644
--- a/include/osmocom/netif/osmux.h
+++ b/include/osmocom/netif/osmux.h
@@ -53,6 +53,7 @@
/* 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 */

To view, visit change 30172. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I27750c38f12d3d84dbaac5beff166d78ffa6c45b
Gerrit-Change-Number: 30172
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>
Gerrit-MessageType: merged