From 53c815b7ae03199651bcc235610f351f61beb486 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 23 Jun 2012 21:54:46 +0200 Subject: gsm_44_318: add protocol discriminator enum and data[0] array to hdr --- include/osmocom/gsm/protocol/gsm_44_318.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/osmocom/gsm/protocol/gsm_44_318.h b/include/osmocom/gsm/protocol/gsm_44_318.h index 812215d6..6e26906b 100644 --- a/include/osmocom/gsm/protocol/gsm_44_318.h +++ b/include/osmocom/gsm/protocol/gsm_44_318.h @@ -5,6 +5,13 @@ /* Definitions according to 3GPP TS 44.318 6.8.0 Release 6 */ +/* Table 11.1.1.2.1: Protocol Discriminator */ +enum gan_pdisc { + GA_PDISC_RC = 0, + GA_PDISC_CSR = 1, + GA_PDISC_PSR = 2, +}; + /* Table 11.1.1.4.1: Message types for URR */ enum gan_msg_type { @@ -148,6 +155,7 @@ struct gan_rc_csr_hdr { uint8_t pdisc:4, skip_ind:4; uint8_t msg_type; + uint8_t data[0]; } __attribute__((packed)); #endif /* PROTO_GSM_44_318_H */ -- cgit v1.2.3