summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-11-07 15:24:11 +0100
committerHarald Welte <laforge@gnumonks.org>2018-11-18 20:13:15 +0000
commitc0d1de36f3e378364b1c02e98a3870394e3d457e (patch)
tree2fa62ad2f418010494b2fbe8e1e39f49287c8341 /include/osmocom
parentaf6710f4d433d138c5d1ea57d1e4ab22c86d4385 (diff)
Add helper wrapper for BSSAP TLV parsing
Change-Id: Ib228368901ce90a02a5664f2510593371c7d29cd
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/gsm/gsm0808.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm0808.h b/include/osmocom/gsm/gsm0808.h
index cdbb2734..652aae99 100644
--- a/include/osmocom/gsm/gsm0808.h
+++ b/include/osmocom/gsm/gsm0808.h
@@ -173,6 +173,9 @@ void gsm0808_prepend_dtap_header(struct msgb *msg, uint8_t link_id);
const struct tlv_definition *gsm0808_att_tlvdef(void);
+/*! Parse BSSAP TLV structure using \ref tlv_parse */
+#define osmo_bssap_tlv_parse(dec, buf, len) tlv_parse(dec, gsm0808_att_tlvdef(), buf, len, 0, 0)
+
const char *gsm0808_bssmap_name(uint8_t msg_type);
const char *gsm0808_bssap_name(uint8_t msg_type);
const char *gsm0808_cause_name(uint8_t cause);