aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/msg_utils.h
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-11-28 17:27:05 +0100
committerHarald Welte <laforge@gnumonks.org>2016-12-09 11:54:38 +0000
commita1fa955212e18ddca286a2c7d30333116406f56b (patch)
tree566d138f88cc84b7413669a5fac1ecf9a306c76b /include/osmo-bts/msg_utils.h
parent55a7b0741752409e253412b22d842e8367fd5477 (diff)
Save RTP metadata in Control Buffer
Having RTP metadata is useful for debugging - save Sequence Number and Timestamp next to Marker bit from RTP header. Change-Id: I359b3bcb74fbfc071547fe2f9d837829374fe997
Diffstat (limited to 'include/osmo-bts/msg_utils.h')
-rw-r--r--include/osmo-bts/msg_utils.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/osmo-bts/msg_utils.h b/include/osmo-bts/msg_utils.h
index 73210455..55e8475d 100644
--- a/include/osmo-bts/msg_utils.h
+++ b/include/osmo-bts/msg_utils.h
@@ -13,9 +13,15 @@
struct msgb;
-/* Access 1st byte of msgb control buffer */
+/* Access 1st part of msgb control buffer */
#define rtpmsg_marker_bit(x) ((x)->cb[0])
+/* Access 2nd part of msgb control buffer */
+#define rtpmsg_seq(x) ((x)->cb[1])
+
+/* Access 3rd part of msgb control buffer */
+#define rtpmsg_ts(x) ((x)->cb[2])
+
/**
* Classification of OML message. ETSI for plain GSM 12.21
* messages and IPA/Osmo for manufacturer messages.