aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gprs/protocol/gsm_08_16.h
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-05-04 11:59:52 +0200
committerMax <msuraev@sysmocom.de>2017-05-09 09:10:20 +0000
commit584f4b69d6d8bc0990c923ee5a144a7e3426b69a (patch)
tree8ac704517376979343f4e74d36f5e07da495ccd5 /include/osmocom/gprs/protocol/gsm_08_16.h
parent33c7ba693416bca679c60e15b31cf425bda75a2f (diff)
gprs: add value strings for NS PDU type
Add value strings for Service Control PDUs according to 3GPP TS 48.016 ยง9 and use them for logging. Change-Id: I0ea3a45f35d68619d4cfa9735ef77abd9f9f0d58 Related: SYS#3610
Diffstat (limited to 'include/osmocom/gprs/protocol/gsm_08_16.h')
-rw-r--r--include/osmocom/gprs/protocol/gsm_08_16.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/gprs/protocol/gsm_08_16.h b/include/osmocom/gprs/protocol/gsm_08_16.h
index 8b2ac564..56ed5947 100644
--- a/include/osmocom/gprs/protocol/gsm_08_16.h
+++ b/include/osmocom/gprs/protocol/gsm_08_16.h
@@ -18,6 +18,8 @@ struct gprs_ns_hdr {
uint8_t data[0]; /*!< variable-length payload */
} __attribute__((packed));
+extern const struct value_string gprs_ns_pdu_strings[];
+
/*! \brief NS PDU Type (TS 08.16, Section 10.3.7, Table 14) */
enum ns_pdu_type {
NS_PDUT_UNITDATA = 0x00,