From 584f4b69d6d8bc0990c923ee5a144a7e3426b69a Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 4 May 2017 11:59:52 +0200 Subject: gprs: add value strings for NS PDU type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/osmocom/gprs/protocol/gsm_08_16.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocom/gprs') 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, -- cgit v1.2.3