\doxysection{gsm\+\_\+04\+\_\+08\+\_\+gprs.\+h}
\label{gsm__04__08__gprs_8h_source}\index{include/osmocom/gsm/protocol/gsm\_04\_08\_gprs.h@{include/osmocom/gsm/protocol/gsm\_04\_08\_gprs.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{3 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{4 }
\DoxyCodeLine{5 \textcolor{preprocessor}{\#include <stdint.h>}}
\DoxyCodeLine{6 \textcolor{preprocessor}{\#include <stdbool.h>}}
\DoxyCodeLine{7 \textcolor{preprocessor}{\#include <osmocom/gsm/protocol/gsm\_04\_08.h>}}
\DoxyCodeLine{8 \textcolor{preprocessor}{\#include <osmocom/crypt/gprs\_cipher.h>}}
\DoxyCodeLine{9 \textcolor{preprocessor}{\#include <osmocom/core/endian.h>}}
\DoxyCodeLine{10 }
\DoxyCodeLine{11 \textcolor{comment}{/* Table 10.4 / 10.4a, GPRS Mobility Management (GMM) */}}
\DoxyCodeLine{12 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_ATTACH\_REQ         0x01}}
\DoxyCodeLine{13 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_ATTACH\_ACK         0x02}}
\DoxyCodeLine{14 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_ATTACH\_COMPL       0x03}}
\DoxyCodeLine{15 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_ATTACH\_REJ         0x04}}
\DoxyCodeLine{16 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_DETACH\_REQ         0x05}}
\DoxyCodeLine{17 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_DETACH\_ACK         0x06}}
\DoxyCodeLine{18 }
\DoxyCodeLine{19 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_RA\_UPD\_REQ         0x08}}
\DoxyCodeLine{20 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_RA\_UPD\_ACK         0x09}}
\DoxyCodeLine{21 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_RA\_UPD\_COMPL       0x0a}}
\DoxyCodeLine{22 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_RA\_UPD\_REJ         0x0b}}
\DoxyCodeLine{23 }
\DoxyCodeLine{24 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_PTMSI\_REALL\_CMD    0x10}}
\DoxyCodeLine{25 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_PTMSI\_REALL\_COMPL  0x11}}
\DoxyCodeLine{26 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_AUTH\_CIPH\_REQ      0x12}}
\DoxyCodeLine{27 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_AUTH\_CIPH\_RESP     0x13}}
\DoxyCodeLine{28 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_AUTH\_CIPH\_REJ      0x14}}
\DoxyCodeLine{29 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_AUTH\_CIPH\_FAIL     0x1C}}
\DoxyCodeLine{30 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_ID\_REQ             0x15}}
\DoxyCodeLine{31 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_ID\_RESP            0x16}}
\DoxyCodeLine{32 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_STATUS             0x20}}
\DoxyCodeLine{33 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_INFO               0x21}}
\DoxyCodeLine{34 }
\DoxyCodeLine{35 \textcolor{comment}{/* Table 10.4a, GPRS Session Management (GSM) */}}
\DoxyCodeLine{36 \textcolor{preprocessor}{\#define GSM48\_MT\_GSM\_ACT\_PDP\_REQ        0x41}}
\DoxyCodeLine{37 \textcolor{preprocessor}{\#define GSM48\_MT\_GSM\_ACT\_PDP\_ACK        0x42}}
\DoxyCodeLine{38 \textcolor{preprocessor}{\#define GSM48\_MT\_GSM\_ACT\_PDP\_REJ        0x43}}
\DoxyCodeLine{39 \textcolor{preprocessor}{\#define GSM48\_MT\_GSM\_REQ\_PDP\_ACT        0x44}}
\DoxyCodeLine{40 \textcolor{preprocessor}{\#define GSM48\_MT\_GSM\_REQ\_PDP\_ACT\_REJ    0x45}}
\DoxyCodeLine{41 \textcolor{preprocessor}{\#define GSM48\_MT\_GSM\_DEACT\_PDP\_REQ      0x46}}
\DoxyCodeLine{42 \textcolor{preprocessor}{\#define GSM48\_MT\_GSM\_DEACT\_PDP\_ACK      0x47}}
\DoxyCodeLine{43 \textcolor{preprocessor}{\#define GSM48\_MT\_GSM\_ACT\_AA\_PDP\_REQ     0x50}}
\DoxyCodeLine{44 \textcolor{preprocessor}{\#define GSM48\_MT\_GSM\_ACT\_AA\_PDP\_ACK     0x51}}
\DoxyCodeLine{45 \textcolor{preprocessor}{\#define GSM48\_MT\_GSM\_ACT\_AA\_PDP\_REJ     0x52}}
\DoxyCodeLine{46 \textcolor{preprocessor}{\#define GSM48\_MT\_GSM\_DEACT\_AA\_PDP\_REQ   0x53}}
\DoxyCodeLine{47 \textcolor{preprocessor}{\#define GSM48\_MT\_GSM\_DEACT\_AA\_PDP\_ACK   0x54}}
\DoxyCodeLine{48 \textcolor{preprocessor}{\#define GSM48\_MT\_GSM\_STATUS             0x55}}
\DoxyCodeLine{49 }
\DoxyCodeLine{50 \textcolor{comment}{/* Chapter 10.5.5.2 / Table 10.5.135 */}}
\DoxyCodeLine{51 \textcolor{preprocessor}{\#define GPRS\_ATT\_T\_ATTACH               1}}
\DoxyCodeLine{52 \textcolor{preprocessor}{\#define GPRS\_ATT\_T\_ATT\_WHILE\_IMSI       2}}
\DoxyCodeLine{53 \textcolor{preprocessor}{\#define GPRS\_ATT\_T\_COMBINED             3}}
\DoxyCodeLine{54 }
\DoxyCodeLine{55 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string *gprs\_att\_t\_strs;}
\DoxyCodeLine{56 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string gprs\_msgt\_gmm\_names[];}
\DoxyCodeLine{57 }
\DoxyCodeLine{58 \textcolor{comment}{/* Chapter 10.5.5.5 / Table 10.5.138 */}}
\DoxyCodeLine{59 \textcolor{preprocessor}{\#define GPRS\_DET\_T\_MO\_GPRS              1}}
\DoxyCodeLine{60 \textcolor{preprocessor}{\#define GPRS\_DET\_T\_MO\_IMSI              2}}
\DoxyCodeLine{61 \textcolor{preprocessor}{\#define GPRS\_DET\_T\_MO\_COMBINED          3}}
\DoxyCodeLine{62 \textcolor{comment}{/* Network to MS direction */}}
\DoxyCodeLine{63 \textcolor{preprocessor}{\#define GPRS\_DET\_T\_MT\_REATT\_REQ         1}}
\DoxyCodeLine{64 \textcolor{preprocessor}{\#define GPRS\_DET\_T\_MT\_REATT\_NOTREQ      2}}
\DoxyCodeLine{65 \textcolor{preprocessor}{\#define GPRS\_DET\_T\_MT\_IMSI              3}}
\DoxyCodeLine{66 }
\DoxyCodeLine{67 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string *gprs\_det\_t\_mo\_strs;}
\DoxyCodeLine{68 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string *gprs\_det\_t\_mt\_strs;}
\DoxyCodeLine{69 }
\DoxyCodeLine{70 \textcolor{comment}{/* Chapter 10.5.5.18 / Table 105.150 */}}
\DoxyCodeLine{71 \textcolor{preprocessor}{\#define GPRS\_UPD\_T\_RA                   0}}
\DoxyCodeLine{72 \textcolor{preprocessor}{\#define GPRS\_UPD\_T\_RA\_LA                1}}
\DoxyCodeLine{73 \textcolor{preprocessor}{\#define GPRS\_UPD\_T\_RA\_LA\_IMSI\_ATT       2}}
\DoxyCodeLine{74 \textcolor{preprocessor}{\#define GPRS\_UPD\_T\_PERIODIC             3}}
\DoxyCodeLine{75 }
\DoxyCodeLine{76 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string *gprs\_upd\_t\_strs;}
\DoxyCodeLine{77 }
\DoxyCodeLine{78 \textcolor{comment}{/* Table 10.4 in 3GPP TS 24.008 (successor to 04.08) */}}
\DoxyCodeLine{79 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_SERVICE\_REQ        0x0c}}
\DoxyCodeLine{80 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_SERVICE\_ACK        0x0d}}
\DoxyCodeLine{81 \textcolor{preprocessor}{\#define GSM48\_MT\_GMM\_SERVICE\_REJ        0x0e}}
\DoxyCodeLine{82 }
\DoxyCodeLine{83 \textcolor{keyword}{enum} gsm48\_gprs\_ie\_mm \{}
\DoxyCodeLine{84         GSM48\_IE\_GMM\_CIPH\_CKSN            = 0x08, \textcolor{comment}{/* 10.5.1.2 */}}
\DoxyCodeLine{85         GSM48\_IE\_GMM\_PTMSI\_TYPE          = 0x0e, \textcolor{comment}{/* 10.5.5.29 */}}
\DoxyCodeLine{86         GSM48\_IE\_GMM\_TMSI\_BASED\_NRI\_C      = 0x10, \textcolor{comment}{/* 10.5.5.31 */}}
\DoxyCodeLine{87         GSM48\_IE\_GMM\_TIMER\_READY        = 0x17, \textcolor{comment}{/* 10.5.7.3 */}}
\DoxyCodeLine{88         GSM48\_IE\_GMM\_ALLOC\_PTMSI        = 0x18, \textcolor{comment}{/* 10.5.1.4 */}}
\DoxyCodeLine{89         GSM48\_IE\_GMM\_PTMSI\_SIG            = 0x19, \textcolor{comment}{/* 10.5.5.8 */}}
\DoxyCodeLine{90         GSM48\_IE\_GMM\_ADD\_IDENTITY      = 0x1a, \textcolor{comment}{/* 10.5.1.4 */}}
\DoxyCodeLine{91         GSM48\_IE\_GMM\_RAI2              = 0x1b, \textcolor{comment}{/* 10.5.5.15a */}}
\DoxyCodeLine{92         GSM48\_IE\_GMM\_AUTH\_RAND            = 0x21, \textcolor{comment}{/* 10.5.3.1 */}}
\DoxyCodeLine{93         GSM48\_IE\_GMM\_AUTH\_SRES            = 0x22, \textcolor{comment}{/* 10.5.3.2 */}}
\DoxyCodeLine{94         GSM48\_IE\_GMM\_IMEISV          = 0x23, \textcolor{comment}{/* 10.5.1.4 */}}
\DoxyCodeLine{95         GSM48\_IE\_GMM\_CAUSE            = 0x25, \textcolor{comment}{/* 10.5.5.14 */}}
\DoxyCodeLine{96         GSM48\_IE\_GMM\_RX\_NPDU\_NUM\_LIST      = 0x26, \textcolor{comment}{/* 10.5.5.11 */}}
\DoxyCodeLine{97         GSM48\_IE\_GMM\_DRX\_PARAM            = 0x27, \textcolor{comment}{/* 10.5.5.6 */}}
\DoxyCodeLine{98         GSM48\_IE\_GMM\_AUTN              = 0x28, \textcolor{comment}{/* 10.5.3.1.1 */}}
\DoxyCodeLine{99         GSM48\_IE\_GMM\_AUTH\_RES\_EXT      = 0x29, \textcolor{comment}{/* 10.5.3.2.1 */}}
\DoxyCodeLine{100         GSM48\_IE\_GMM\_TIMER\_T3302        = 0x2A, \textcolor{comment}{/* 10.5.7.4 */}}
\DoxyCodeLine{101         GSM48\_IE\_GMM\_AUTH\_FAIL\_PAR    = 0x30, \textcolor{comment}{/* 10.5.3.2.2 */}}
\DoxyCodeLine{102         GSM48\_IE\_GMM\_MS\_NET\_CAPA        = 0x31, \textcolor{comment}{/* 10.5.5.12 */}}
\DoxyCodeLine{103         GSM48\_IE\_GMM\_PDP\_CTX\_STATUS  = 0x32, \textcolor{comment}{/* 10.5.7.1 */}}
\DoxyCodeLine{104         GSM48\_IE\_GMM\_PS\_LCS\_CAPA        = 0x33, \textcolor{comment}{/* 10.5.5.22 */}}
\DoxyCodeLine{105         GSM48\_IE\_GMM\_GMM\_MBMS\_CTX\_ST        = 0x35, \textcolor{comment}{/* 10.5.7.6 */}}
\DoxyCodeLine{106         GSM48\_IE\_GMM\_TIMER\_T3346        = 0x3A, \textcolor{comment}{/* 10.5.7.4 */}}
\DoxyCodeLine{107         GSM48\_IE\_GMM\_NET\_FEAT\_SUPPORT      = 0xB0, \textcolor{comment}{/* 10.5.5.23 */}}
\DoxyCodeLine{108 \};}
\DoxyCodeLine{109 }
\DoxyCodeLine{110 \textcolor{keyword}{enum} gsm48\_gprs\_ie\_sm \{}
\DoxyCodeLine{111         GSM48\_IE\_GSM\_RADIO\_PRIO          = 0x08, \textcolor{comment}{/* 10.5.7.2 */}}
\DoxyCodeLine{112         GSM48\_IE\_GSM\_DEV\_PROP              = 0x0C, \textcolor{comment}{/* 10.5.7.8 */}}
\DoxyCodeLine{113         GSM48\_IE\_GSM\_APN                = 0x28, \textcolor{comment}{/* 10.5.6.1 */}}
\DoxyCodeLine{114         GSM48\_IE\_GSM\_PROTO\_CONF\_OPT  = 0x27, \textcolor{comment}{/* 10.5.6.3 */}}
\DoxyCodeLine{115         GSM48\_IE\_GSM\_PDP\_ADDR              = 0x2b, \textcolor{comment}{/* 10.5.6.4 */}}
\DoxyCodeLine{116         GSM48\_IE\_GSM\_AA\_TMR          = 0x29, \textcolor{comment}{/* 10.5.7.3 */}}
\DoxyCodeLine{117         GSM48\_IE\_GSM\_QOS                = 0x30, \textcolor{comment}{/* 10.5.6.5 */}}
\DoxyCodeLine{118         GSM48\_IE\_GSM\_TFT                = 0x31, \textcolor{comment}{/* 10.5.6.12 */}}
\DoxyCodeLine{119         GSM48\_IE\_GSM\_LLC\_SAPI              = 0x32, \textcolor{comment}{/* 10.5.6.9 */}}
\DoxyCodeLine{120         GSM48\_IE\_GSM\_MBIFOM\_CONT        = 0x33, \textcolor{comment}{/* 10.5.6.21 */}}
\DoxyCodeLine{121         GSM48\_IE\_GSM\_PFI                = 0x34, \textcolor{comment}{/* 10.5.6.11 */}}
\DoxyCodeLine{122         GSM48\_IE\_GSM\_NAME\_FULL            = 0x43, \textcolor{comment}{/* 10.5.3.5a */}}
\DoxyCodeLine{123         GSM48\_IE\_GSM\_NAME\_SHORT          = 0x45, \textcolor{comment}{/* 10.5.3.5a */}}
\DoxyCodeLine{124         GSM48\_IE\_GSM\_TIMEZONE              = 0x46, \textcolor{comment}{/* 10.5.3.8 */}}
\DoxyCodeLine{125         GSM48\_IE\_GSM\_UTC\_AND\_TZ          = 0x47, \textcolor{comment}{/* 10.5.3.9 */}}
\DoxyCodeLine{126         GSM48\_IE\_GSM\_LSA\_ID          = 0x48, \textcolor{comment}{/* 10.5.3.11 */}}
\DoxyCodeLine{127         GSM48\_IE\_GSM\_EXT\_QOS                = 0x5C, \textcolor{comment}{/* 10.5.6.5B */}}
\DoxyCodeLine{128         GSM48\_IE\_GSM\_EXT\_PROTO\_CONF\_OPT  = 0x7B, \textcolor{comment}{/* 10.5.6.3a */}}
\DoxyCodeLine{129 }
\DoxyCodeLine{130         \textcolor{comment}{/* Fake IEs that are not present on the Layer3 air interface,}}
\DoxyCodeLine{131 \textcolor{comment}{         * but which we use to simplify internal APIs */}}
\DoxyCodeLine{132         OSMO\_IE\_GSM\_CHARG\_CHAR            = 0xfc,}
\DoxyCodeLine{133         OSMO\_IE\_GSM\_REQ\_QOS          = 0xfd,}
\DoxyCodeLine{134         OSMO\_IE\_GSM\_REQ\_PDP\_ADDR        = 0xfe,}
\DoxyCodeLine{135         OSMO\_IE\_GSM\_SUB\_QOS          = 0xff,}
\DoxyCodeLine{136 \};}
\DoxyCodeLine{137 }
\DoxyCodeLine{138 \textcolor{comment}{/* Chapter 9.4.15 / Table 9.4.15 */}}
\DoxyCodeLine{139 \textcolor{keyword}{struct }gsm48\_ra\_upd\_ack \{}
\DoxyCodeLine{140 \textcolor{preprocessor}{\#if OSMO\_IS\_LITTLE\_ENDIAN}}
\DoxyCodeLine{141         uint8\_t force\_stby:4,   \textcolor{comment}{/* 10.5.5.7 */}}
\DoxyCodeLine{142                  upd\_result:4;  \textcolor{comment}{/* 10.5.5.17 */}}
\DoxyCodeLine{143         uint8\_t ra\_upd\_timer;   \textcolor{comment}{/* 10.5.7.3 */}}
\DoxyCodeLine{144         \textcolor{keyword}{struct }gsm48\_ra\_id ra\_id; \textcolor{comment}{/* 10.5.5.15 */}}
\DoxyCodeLine{145         uint8\_t data[0];}
\DoxyCodeLine{146 \textcolor{preprocessor}{\#elif OSMO\_IS\_BIG\_ENDIAN}}
\DoxyCodeLine{147 \textcolor{comment}{/* auto-\/generated from the little endian part above (libosmocore/contrib/struct\_endianness.py) */}}
\DoxyCodeLine{148         uint8\_t upd\_result:4, force\_stby:4;}
\DoxyCodeLine{149         uint8\_t ra\_upd\_timer;}
\DoxyCodeLine{150         \textcolor{keyword}{struct }gsm48\_ra\_id ra\_id;}
\DoxyCodeLine{151         uint8\_t data[0];}
\DoxyCodeLine{152 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{153 \} \_\_attribute\_\_((packed));}
\DoxyCodeLine{154 }
\DoxyCodeLine{155 \textcolor{comment}{/* Chapter 10.5.7.3 */}}
\DoxyCodeLine{156 \textcolor{keyword}{enum} gsm48\_gprs\_tmr\_unit \{}
\DoxyCodeLine{157         GPRS\_TMR\_2SECONDS      = 0 << 5,}
\DoxyCodeLine{158         GPRS\_TMR\_MINUTE          = 1 << 5,}
\DoxyCodeLine{159         GPRS\_TMR\_6MINUTE        = 2 << 5,}
\DoxyCodeLine{160         GPRS\_TMR\_DEACTIVATED        = 7 << 5,}
\DoxyCodeLine{161 \};}
\DoxyCodeLine{162 }
\DoxyCodeLine{163 \textcolor{preprocessor}{\#define GPRS\_TMR\_UNIT\_MASK (7 << 5)}}
\DoxyCodeLine{164 \textcolor{preprocessor}{\#define GPRS\_TMR\_FACT\_MASK ((1 << 5)-\/1)}}
\DoxyCodeLine{165 }
\DoxyCodeLine{166 \textcolor{comment}{/* Chapter 9.4.2 / Table 9.4.2 */}}
\DoxyCodeLine{167 \textcolor{keyword}{struct }gsm48\_attach\_ack \{}
\DoxyCodeLine{168 \textcolor{preprocessor}{\#if OSMO\_IS\_LITTLE\_ENDIAN}}
\DoxyCodeLine{169         uint8\_t att\_result:4,   \textcolor{comment}{/* 10.5.5.7 */}}
\DoxyCodeLine{170                  force\_stby:4;  \textcolor{comment}{/* 10.5.5.1 */}}
\DoxyCodeLine{171         uint8\_t ra\_upd\_timer;   \textcolor{comment}{/* 10.5.7.3 */}}
\DoxyCodeLine{172         uint8\_t radio\_prio;     \textcolor{comment}{/* 10.5.7.2 */}}
\DoxyCodeLine{173         \textcolor{keyword}{struct }gsm48\_ra\_id ra\_id; \textcolor{comment}{/* 10.5.5.15 */}}
\DoxyCodeLine{174         uint8\_t data[0];}
\DoxyCodeLine{175 \textcolor{preprocessor}{\#elif OSMO\_IS\_BIG\_ENDIAN}}
\DoxyCodeLine{176 \textcolor{comment}{/* auto-\/generated from the little endian part above (libosmocore/contrib/struct\_endianness.py) */}}
\DoxyCodeLine{177         uint8\_t force\_stby:4, att\_result:4;}
\DoxyCodeLine{178         uint8\_t ra\_upd\_timer;}
\DoxyCodeLine{179         uint8\_t radio\_prio;}
\DoxyCodeLine{180         \textcolor{keyword}{struct }gsm48\_ra\_id ra\_id;}
\DoxyCodeLine{181         uint8\_t data[0];}
\DoxyCodeLine{182 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{183 \} \_\_attribute\_\_((packed));}
\DoxyCodeLine{184 }
\DoxyCodeLine{185 \textcolor{comment}{/* Chapter 9.4.9 / Table 9.4.9 */}}
\DoxyCodeLine{186 \textcolor{keyword}{struct }gsm48\_auth\_ciph\_req \{}
\DoxyCodeLine{187 \textcolor{preprocessor}{\#if OSMO\_IS\_LITTLE\_ENDIAN}}
\DoxyCodeLine{188         uint8\_t ciph\_alg:4,     \textcolor{comment}{/* 10.5.5.3 */}}
\DoxyCodeLine{189                 imeisv\_req:4;   \textcolor{comment}{/* 10.5.5.10 */}}
\DoxyCodeLine{190         uint8\_t force\_stby:4,   \textcolor{comment}{/* 10.5.5.7 */}}
\DoxyCodeLine{191                 ac\_ref\_nr:4;    \textcolor{comment}{/* 10.5.5.19 */}}
\DoxyCodeLine{192         uint8\_t data[0];}
\DoxyCodeLine{193 \textcolor{preprocessor}{\#elif OSMO\_IS\_BIG\_ENDIAN}}
\DoxyCodeLine{194 \textcolor{comment}{/* auto-\/generated from the little endian part above (libosmocore/contrib/struct\_endianness.py) */}}
\DoxyCodeLine{195         uint8\_t imeisv\_req:4, ciph\_alg:4;}
\DoxyCodeLine{196         uint8\_t ac\_ref\_nr:4, force\_stby:4;}
\DoxyCodeLine{197         uint8\_t data[0];}
\DoxyCodeLine{198 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{199 \} \_\_attribute\_\_((packed));}
\DoxyCodeLine{200 \textcolor{comment}{/* optional: TV RAND, TV CKSN */}}
\DoxyCodeLine{201 }
\DoxyCodeLine{202 \textcolor{keyword}{struct }gsm48\_auth\_ciph\_resp \{}
\DoxyCodeLine{203 \textcolor{preprocessor}{\#if OSMO\_IS\_LITTLE\_ENDIAN}}
\DoxyCodeLine{204         uint8\_t ac\_ref\_nr:4,}
\DoxyCodeLine{205                 spare:4;}
\DoxyCodeLine{206         uint8\_t data[0];}
\DoxyCodeLine{207 \textcolor{preprocessor}{\#elif OSMO\_IS\_BIG\_ENDIAN}}
\DoxyCodeLine{208 \textcolor{comment}{/* auto-\/generated from the little endian part above (libosmocore/contrib/struct\_endianness.py) */}}
\DoxyCodeLine{209         uint8\_t spare:4, ac\_ref\_nr:4;}
\DoxyCodeLine{210         uint8\_t data[0];}
\DoxyCodeLine{211 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{212 \} \_\_attribute\_\_((packed));}
\DoxyCodeLine{213 }
\DoxyCodeLine{214 \textcolor{comment}{/* Chapter 9.5.1 / Table 9.5.1 */}}
\DoxyCodeLine{215 \textcolor{keyword}{struct }gsm48\_act\_pdp\_ctx\_req \{}
\DoxyCodeLine{216         uint8\_t req\_nsapi;}
\DoxyCodeLine{217         uint8\_t req\_llc\_sapi;}
\DoxyCodeLine{218         uint8\_t data[0];}
\DoxyCodeLine{219 \} \_\_attribute\_\_((packed));}
\DoxyCodeLine{220 }
\DoxyCodeLine{221 \textcolor{comment}{/* Chapter 10.5.5.14 / Table 10.5.147 */}}
\DoxyCodeLine{222 \textcolor{keyword}{enum} gsm48\_gmm\_cause \{}
\DoxyCodeLine{223         GMM\_CAUSE\_IMSI\_UNKNOWN            = 0x02,}
\DoxyCodeLine{224         GMM\_CAUSE\_ILLEGAL\_MS                = 0x03,}
\DoxyCodeLine{225         GMM\_CAUSE\_IMEI\_NOT\_ACCEPTED  = 0x05,}
\DoxyCodeLine{226         GMM\_CAUSE\_ILLEGAL\_ME                = 0x06,}
\DoxyCodeLine{227         GMM\_CAUSE\_GPRS\_NOTALLOWED      = 0x07,}
\DoxyCodeLine{228         GMM\_CAUSE\_GPRS\_OTHER\_NOTALLOWED  = 0x08,}
\DoxyCodeLine{229         GMM\_CAUSE\_MS\_ID\_NOT\_DERIVED  = 0x09,}
\DoxyCodeLine{230         GMM\_CAUSE\_IMPL\_DETACHED          = 0x0a,}
\DoxyCodeLine{231         GMM\_CAUSE\_PLMN\_NOTALLOWED      = 0x0b,}
\DoxyCodeLine{232         GMM\_CAUSE\_LA\_NOTALLOWED          = 0x0c,}
\DoxyCodeLine{233         GMM\_CAUSE\_ROAMING\_NOTALLOWED        = 0x0d,}
\DoxyCodeLine{234         GMM\_CAUSE\_NO\_GPRS\_PLMN            = 0x0e,}
\DoxyCodeLine{235         GMM\_CAUSE\_NO\_SUIT\_CELL\_IN\_LA        = 0x0f,}
\DoxyCodeLine{236         GMM\_CAUSE\_MSC\_TEMP\_NOTREACH  = 0x10,}
\DoxyCodeLine{237         GMM\_CAUSE\_NET\_FAIL            = 0x11,}
\DoxyCodeLine{238         GMM\_CAUSE\_MAC\_FAIL            = 0x14,}
\DoxyCodeLine{239         GMM\_CAUSE\_SYNC\_FAIL          = 0x15,}
\DoxyCodeLine{240         GMM\_CAUSE\_CONGESTION                = 0x16,}
\DoxyCodeLine{241         GMM\_CAUSE\_GSM\_AUTH\_UNACCEPT  = 0x17,}
\DoxyCodeLine{242         GMM\_CAUSE\_NOT\_AUTH\_FOR\_CSG    = 0x19,}
\DoxyCodeLine{243         GMM\_CAUSE\_SMS\_VIA\_GPRS\_IN\_RA        = 0x1c,}
\DoxyCodeLine{244         GMM\_CAUSE\_NO\_PDP\_ACTIVATED    = 0x28,}
\DoxyCodeLine{245         GMM\_CAUSE\_SEM\_INCORR\_MSG        = 0x5f,}
\DoxyCodeLine{246         GMM\_CAUSE\_INV\_MAND\_INFO          = 0x60,}
\DoxyCodeLine{247         GMM\_CAUSE\_MSGT\_NOTEXIST\_NOTIMPL  = 0x61,}
\DoxyCodeLine{248         GMM\_CAUSE\_MSGT\_INCOMP\_P\_STATE      = 0x62,}
\DoxyCodeLine{249         GMM\_CAUSE\_IE\_NOTEXIST\_NOTIMPL      = 0x63,}
\DoxyCodeLine{250         GMM\_CAUSE\_COND\_IE\_ERR              = 0x64,}
\DoxyCodeLine{251         GMM\_CAUSE\_MSG\_INCOMP\_P\_STATE        = 0x65,}
\DoxyCodeLine{252         GMM\_CAUSE\_PROTO\_ERR\_UNSPEC    = 0x6f,}
\DoxyCodeLine{253 \};}
\DoxyCodeLine{254 }
\DoxyCodeLine{255 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string *gsm48\_gmm\_cause\_names;}
\DoxyCodeLine{256 }
\DoxyCodeLine{257 \textcolor{comment}{/* 3GPP TS 24.008 10.5.6.6 / Table 10.5.157 */}}
\DoxyCodeLine{258 \textcolor{keyword}{enum} gsm48\_gsm\_cause \{}
\DoxyCodeLine{259         GSM\_CAUSE\_OPER\_DET\_BARR          = 0x08,}
\DoxyCodeLine{260         GSM\_CAUSE\_MBMS\_CAP\_INSUF        = 0x18,}
\DoxyCodeLine{261         GSM\_CAUSE\_LLC\_SNDCP\_FAIL        = 0x19,}
\DoxyCodeLine{262         GSM\_CAUSE\_INSUFF\_RSRC              = 0x1a,}
\DoxyCodeLine{263         GSM\_CAUSE\_MISSING\_APN              = 0x1b,}
\DoxyCodeLine{264         GSM\_CAUSE\_UNKNOWN\_PDP              = 0x1c,}
\DoxyCodeLine{265         GSM\_CAUSE\_AUTH\_FAILED              = 0x1d,}
\DoxyCodeLine{266         GSM\_CAUSE\_ACT\_REJ\_GGSN            = 0x1e,}
\DoxyCodeLine{267         GSM\_CAUSE\_ACT\_REJ\_UNSPEC        = 0x1f,}
\DoxyCodeLine{268         GSM\_CAUSE\_SERV\_OPT\_NOTSUPP    = 0x20,}
\DoxyCodeLine{269         GSM\_CAUSE\_REQ\_SERV\_OPT\_NOTSUB      = 0x21,}
\DoxyCodeLine{270         GSM\_CAUSE\_SERV\_OPT\_TEMP\_OOO  = 0x22,}
\DoxyCodeLine{271         GSM\_CAUSE\_NSAPI\_IN\_USE            = 0x23,}
\DoxyCodeLine{272         GSM\_CAUSE\_DEACT\_REGULAR          = 0x24,}
\DoxyCodeLine{273         GSM\_CAUSE\_QOS\_NOT\_ACCEPTED    = 0x25,}
\DoxyCodeLine{274         GSM\_CAUSE\_NET\_FAIL            = 0x26,}
\DoxyCodeLine{275         GSM\_CAUSE\_REACT\_RQD          = 0x27,}
\DoxyCodeLine{276         GSM\_CAUSE\_FEATURE\_NOTSUPP      = 0x28,}
\DoxyCodeLine{277         GSM\_CAUSE\_INVALID\_TRANS\_ID    = 0x51,}
\DoxyCodeLine{278         GSM\_CAUSE\_SEM\_INCORR\_MSG        = 0x5f,}
\DoxyCodeLine{279         GSM\_CAUSE\_INV\_MAND\_INFO          = 0x60,}
\DoxyCodeLine{280         GSM\_CAUSE\_MSGT\_NOTEXIST\_NOTIMPL  = 0x61,}
\DoxyCodeLine{281         GSM\_CAUSE\_MSGT\_INCOMP\_P\_STATE      = 0x62,}
\DoxyCodeLine{282         GSM\_CAUSE\_IE\_NOTEXIST\_NOTIMPL      = 0x63,}
\DoxyCodeLine{283         GSM\_CAUSE\_COND\_IE\_ERR              = 0x64,}
\DoxyCodeLine{284         GSM\_CAUSE\_MSG\_INCOMP\_P\_STATE        = 0x65,}
\DoxyCodeLine{285         GSM\_CAUSE\_PROTO\_ERR\_UNSPEC    = 0x6f,}
\DoxyCodeLine{286 \};}
\DoxyCodeLine{287 }
\DoxyCodeLine{288 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string *gsm48\_gsm\_cause\_names;}
\DoxyCodeLine{289 }
\DoxyCodeLine{290 \textcolor{comment}{/* Section 6.1.2.2: Session management states on the network side */}}
\DoxyCodeLine{291 \textcolor{keyword}{enum} gsm48\_pdp\_state \{}
\DoxyCodeLine{292         PDP\_S\_INACTIVE,}
\DoxyCodeLine{293         PDP\_S\_ACTIVE\_PENDING,}
\DoxyCodeLine{294         PDP\_S\_ACTIVE,}
\DoxyCodeLine{295         PDP\_S\_INACTIVE\_PENDING,}
\DoxyCodeLine{296         PDP\_S\_MODIFY\_PENDING,}
\DoxyCodeLine{297 \};}
\DoxyCodeLine{298 }
\DoxyCodeLine{299 \textcolor{comment}{/* TS 24.008 Table 10.5.155/3GPP */}}
\DoxyCodeLine{300 \textcolor{keyword}{enum} gsm48\_pdp\_type\_org \{}
\DoxyCodeLine{301         PDP\_TYPE\_ORG\_ETSI              = 0x00,}
\DoxyCodeLine{302         PDP\_TYPE\_ORG\_IETF              = 0x01,}
\DoxyCodeLine{303         PDP\_TYPE\_ORG\_EMPTY            = 0x0f,}
\DoxyCodeLine{304 \};}
\DoxyCodeLine{305 \textcolor{keyword}{enum} gsm48\_pdp\_type\_nr \{}
\DoxyCodeLine{306         PDP\_TYPE\_N\_ETSI\_RESERVED        = 0x00,}
\DoxyCodeLine{307         PDP\_TYPE\_N\_ETSI\_PPP          = 0x01,}
\DoxyCodeLine{308         PDP\_TYPE\_N\_IETF\_IPv4                = 0x21,}
\DoxyCodeLine{309         PDP\_TYPE\_N\_IETF\_IPv6                = 0x57,}
\DoxyCodeLine{310         PDP\_TYPE\_N\_IETF\_IPv4v6            = 0x8D,}
\DoxyCodeLine{311 \};}
\DoxyCodeLine{312 \textcolor{comment}{/* TS 24.008 10.5.6.4 "{}Packet data protocol address"{} value}}
\DoxyCodeLine{313 \textcolor{comment}{ * Note: This can be reused for 3GPP TS 29.060 7.7.27 "{}End User Address"{}}}
\DoxyCodeLine{314 \textcolor{comment}{ * with minor changes in the values, like spare being 1111 instead.}}
\DoxyCodeLine{315 \textcolor{comment}{*/}}
\DoxyCodeLine{316 \textcolor{keyword}{struct }gsm48\_pdp\_address \{}
\DoxyCodeLine{317 \textcolor{preprocessor}{\#if OSMO\_IS\_LITTLE\_ENDIAN}}
\DoxyCodeLine{318 uint8\_t organization:4, \textcolor{comment}{/* enum gsm48\_pdp\_type\_org */}}
\DoxyCodeLine{319         spare:4; \textcolor{comment}{/* 0000 */}}
\DoxyCodeLine{320 \textcolor{preprocessor}{\#elif OSMO\_IS\_BIG\_ENDIAN}}
\DoxyCodeLine{321 \textcolor{comment}{/* auto-\/generated from the little endian part above (libosmocore/contrib/struct\_endianness.py) */}}
\DoxyCodeLine{322 uint8\_t spare:4, organization:4;}
\DoxyCodeLine{323 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{324 uint8\_t type; \textcolor{comment}{/* enum gsm48\_pdp\_type\_nr */}}
\DoxyCodeLine{325         \textcolor{keyword}{union }\{}
\DoxyCodeLine{326                 \textcolor{comment}{/* PDP\_TYPE\_ORG\_ETSI */}}
\DoxyCodeLine{327                 \textcolor{keyword}{union }\{}
\DoxyCodeLine{328                 \} etsi;}
\DoxyCodeLine{329                 \textcolor{comment}{/* PDP\_TYPE\_ORG\_IETF */}}
\DoxyCodeLine{330                 \textcolor{keyword}{union }\{}
\DoxyCodeLine{331                         \textcolor{comment}{/* PDP\_TYPE\_N\_IETF\_IPv4 */}}
\DoxyCodeLine{332                         uint32\_t v4;}
\DoxyCodeLine{333 }
\DoxyCodeLine{334                         \textcolor{comment}{/* PDP\_TYPE\_N\_IETF\_IPv6 */}}
\DoxyCodeLine{335                         uint8\_t v6[16];}
\DoxyCodeLine{336 }
\DoxyCodeLine{337                         \textcolor{comment}{/* PDP\_TYPE\_N\_IETF\_IPv4v6 */}}
\DoxyCodeLine{338                         \textcolor{keyword}{struct }\{}
\DoxyCodeLine{339                                 uint32\_t v4;}
\DoxyCodeLine{340                                 uint8\_t v6[16];}
\DoxyCodeLine{341                         \} \_\_attribute\_\_ ((packed)) v4v6;}
\DoxyCodeLine{342                 \} ietf;}
\DoxyCodeLine{343         \};}
\DoxyCodeLine{344 \} \_\_attribute\_\_ ((packed));}
\DoxyCodeLine{345 }
\DoxyCodeLine{346 \textcolor{comment}{/* Figure 10.5.138/24.008 / Chapter 10.5.6.5 */}}
\DoxyCodeLine{347 \textcolor{keyword}{enum} gsm48\_qos\_reliab\_class \{}
\DoxyCodeLine{348         GSM48\_QOS\_RC\_LLC\_ACK\_RLC\_ACK\_DATA\_PROT    = 2,}
\DoxyCodeLine{349         GSM48\_QOS\_RC\_LLC\_UN\_RLC\_ACK\_DATA\_PROT      = 3,}
\DoxyCodeLine{350         GSM48\_QOS\_RC\_LLC\_UN\_RLC\_UN\_PROT\_DATA        = 4,}
\DoxyCodeLine{351         GSM48\_QOS\_RC\_LLC\_UN\_RLC\_UN\_DATA\_UN    = 5,}
\DoxyCodeLine{352 \};}
\DoxyCodeLine{353 }
\DoxyCodeLine{354 \textcolor{comment}{/* Figure 10.5.138/24.008 / Chapter 10.5.6.5 */}}
\DoxyCodeLine{355 \textcolor{keyword}{enum} gsm48\_qos\_preced\_class \{}
\DoxyCodeLine{356         GSM48\_QOS\_PC\_HIGH      = 1,}
\DoxyCodeLine{357         GSM48\_QOS\_PC\_NORMAL  = 2,}
\DoxyCodeLine{358         GSM48\_QOS\_PC\_LOW        = 3,}
\DoxyCodeLine{359 \};}
\DoxyCodeLine{360 }
\DoxyCodeLine{361 \textcolor{comment}{/* Figure 10.5.138/24.008 / Chapter 10.5.6.5 */}}
\DoxyCodeLine{362 \textcolor{keyword}{enum} gsm48\_qos\_peak\_tput \{}
\DoxyCodeLine{363         GSM48\_QOS\_PEAK\_TPUT\_1000bps  = 1,}
\DoxyCodeLine{364         GSM48\_QOS\_PEAK\_TPUT\_2000bps  = 2,}
\DoxyCodeLine{365         GSM48\_QOS\_PEAK\_TPUT\_4000bps  = 3,}
\DoxyCodeLine{366         GSM48\_QOS\_PEAK\_TPUT\_8000bps  = 4,}
\DoxyCodeLine{367         GSM48\_QOS\_PEAK\_TPUT\_16000bps        = 5,}
\DoxyCodeLine{368         GSM48\_QOS\_PEAK\_TPUT\_32000bps        = 6,}
\DoxyCodeLine{369         GSM48\_QOS\_PEAK\_TPUT\_64000bps        = 7,}
\DoxyCodeLine{370         GSM48\_QOS\_PEAK\_TPUT\_128000bps      = 8,}
\DoxyCodeLine{371         GSM48\_QOS\_PEAK\_TPUT\_256000bps      = 9,}
\DoxyCodeLine{372 \};}
\DoxyCodeLine{373 }
\DoxyCodeLine{374 \textcolor{comment}{/* Figure 10.5.138/24.008 / Chapter 10.5.6.5 */}}
\DoxyCodeLine{375 \textcolor{keyword}{enum} gsm48\_qos\_mean\_tput \{}
\DoxyCodeLine{376         GSM48\_QOS\_MEAN\_TPUT\_100bph    = 1,}
\DoxyCodeLine{377         GSM48\_QOS\_MEAN\_TPUT\_200bph    = 2,}
\DoxyCodeLine{378         GSM48\_QOS\_MEAN\_TPUT\_500bph    = 3,}
\DoxyCodeLine{379         GSM48\_QOS\_MEAN\_TPUT\_1000bph  = 4,}
\DoxyCodeLine{380         GSM48\_QOS\_MEAN\_TPUT\_2000bph  = 5,}
\DoxyCodeLine{381         GSM48\_QOS\_MEAN\_TPUT\_5000bph  = 6,}
\DoxyCodeLine{382         GSM48\_QOS\_MEAN\_TPUT\_10000bph        = 7,}
\DoxyCodeLine{383         GSM48\_QOS\_MEAN\_TPUT\_20000bph        = 8,}
\DoxyCodeLine{384         GSM48\_QOS\_MEAN\_TPUT\_50000bph        = 9,}
\DoxyCodeLine{385         GSM48\_QOS\_MEAN\_TPUT\_100kbph  = 10,}
\DoxyCodeLine{386         GSM48\_QOS\_MEAN\_TPUT\_200kbph  = 11,}
\DoxyCodeLine{387         GSM48\_QOS\_MEAN\_TPUT\_500kbph  = 0xc,}
\DoxyCodeLine{388         GSM48\_QOS\_MEAN\_TPUT\_1Mbph      = 0xd,}
\DoxyCodeLine{389         GSM48\_QOS\_MEAN\_TPUT\_2Mbph      = 0xe,}
\DoxyCodeLine{390         GSM48\_QOS\_MEAN\_TPUT\_5Mbph      = 0xf,}
\DoxyCodeLine{391         GSM48\_QOS\_MEAN\_TPUT\_10Mbph    = 0x10,}
\DoxyCodeLine{392         GSM48\_QOS\_MEAN\_TPUT\_20Mbph    = 0x11,}
\DoxyCodeLine{393         GSM48\_QOS\_MEAN\_TPUT\_50Mbph    = 0x12,}
\DoxyCodeLine{394         GSM48\_QOS\_MEAN\_TPUT\_BEST\_EFFORT  = 0x1f,}
\DoxyCodeLine{395 \};}
\DoxyCodeLine{396 }
\DoxyCodeLine{397 \textcolor{comment}{/* Figure 10.5.138/24.008 / Chapter 10.5.6.5 */}}
\DoxyCodeLine{398 \textcolor{keyword}{enum} gsm48\_qos\_err\_sdu \{}
\DoxyCodeLine{399         GSM48\_QOS\_ERRSDU\_NODETECT      = 1,}
\DoxyCodeLine{400         GSM48\_QOS\_ERRSDU\_YES                = 2,}
\DoxyCodeLine{401         GSM48\_QOS\_ERRSDU\_NO          = 3,}
\DoxyCodeLine{402 \};}
\DoxyCodeLine{403 }
\DoxyCodeLine{404 \textcolor{comment}{/* Figure 10.5.138/24.008 / Chapter 10.5.6.5 */}}
\DoxyCodeLine{405 \textcolor{keyword}{enum} gsm48\_qos\_deliv\_order \{}
\DoxyCodeLine{406         GSM48\_QOS\_DO\_ORDERED                = 1,}
\DoxyCodeLine{407         GSM48\_QOS\_DO\_UNORDERED            = 2,}
\DoxyCodeLine{408 \};}
\DoxyCodeLine{409 }
\DoxyCodeLine{410 \textcolor{comment}{/* Figure 10.5.138/24.008 / Chapter 10.5.6.5 */}}
\DoxyCodeLine{411 \textcolor{keyword}{enum} gsm48\_qos\_traf\_class \{}
\DoxyCodeLine{412         GSM48\_QOS\_TC\_CONVERSATIONAL  = 1,}
\DoxyCodeLine{413         GSM48\_QOS\_TC\_STREAMING            = 2,}
\DoxyCodeLine{414         GSM48\_QOS\_TC\_INTERACTIVE        = 3,}
\DoxyCodeLine{415         GSM48\_QOS\_TC\_BACKGROUND          = 4,}
\DoxyCodeLine{416 \};}
\DoxyCodeLine{417 }
\DoxyCodeLine{418 \textcolor{comment}{/* Figure 10.5.138/24.008 / Chapter 10.5.6.5 */}}
\DoxyCodeLine{419 \textcolor{keyword}{enum} gsm48\_qos\_max\_sdu\_size \{}
\DoxyCodeLine{420         \textcolor{comment}{/* values below in 10 octet granularity */}}
\DoxyCodeLine{421         GSM48\_QOS\_MAXSDU\_1502              = 0x97,}
\DoxyCodeLine{422         GSM48\_QOS\_MAXSDU\_1510              = 0x98,}
\DoxyCodeLine{423         GSM48\_QOS\_MAXSDU\_1520              = 0x99,}
\DoxyCodeLine{424 \};}
\DoxyCodeLine{425 }
\DoxyCodeLine{426 \textcolor{comment}{/* Figure 10.5.138/24.008 / Chapter 10.5.6.5 */}}
\DoxyCodeLine{427 \textcolor{keyword}{enum} gsm48\_qos\_max\_bitrate \{}
\DoxyCodeLine{428         GSM48\_QOS\_MBRATE\_1k          = 0x01,}
\DoxyCodeLine{429         GSM48\_QOS\_MBRATE\_63k                = 0x3f,}
\DoxyCodeLine{430         GSM48\_QOS\_MBRATE\_64k                = 0x40,}
\DoxyCodeLine{431         GSM48\_QOS\_MBRATE\_568k              = 0x7f,}
\DoxyCodeLine{432         GSM48\_QOS\_MBRATE\_576k              = 0x80,}
\DoxyCodeLine{433         GSM48\_QOS\_MBRATE\_8640k            = 0xfe,}
\DoxyCodeLine{434         GSM48\_QOS\_MBRATE\_0k          = 0xff,}
\DoxyCodeLine{435 \};}
\DoxyCodeLine{436 }
\DoxyCodeLine{437 \textcolor{comment}{/* Figure 10.5.138/24.008 / Chapter 10.5.6.5 */}}
\DoxyCodeLine{438 \textcolor{keyword}{enum} gsm48\_qos\_resid\_ber \{}
\DoxyCodeLine{439         GSM48\_QOS\_RBER\_5e\_2          = 0x01,}
\DoxyCodeLine{440         GSM48\_QOS\_RBER\_1e\_2          = 0x02,}
\DoxyCodeLine{441         GSM48\_QOS\_RBER\_5e\_3          = 0x03,}
\DoxyCodeLine{442         GSM48\_QOS\_RBER\_4e\_3          = 0x04,}
\DoxyCodeLine{443         GSM48\_QOS\_RBER\_1e\_3          = 0x05,}
\DoxyCodeLine{444         GSM48\_QOS\_RBER\_1e\_4          = 0x06,}
\DoxyCodeLine{445         GSM48\_QOS\_RBER\_1e\_5          = 0x07,}
\DoxyCodeLine{446         GSM48\_QOS\_RBER\_1e\_6          = 0x08,}
\DoxyCodeLine{447         GSM48\_QOS\_RBER\_6e\_8          = 0x09,}
\DoxyCodeLine{448 \};}
\DoxyCodeLine{449 }
\DoxyCodeLine{450 \textcolor{comment}{/* Figure 10.5.138/24.008 / Chapter 10.5.6.5 */}}
\DoxyCodeLine{451 \textcolor{keyword}{enum} gsm48\_qos\_sdu\_err \{}
\DoxyCodeLine{452         GSM48\_QOS\_SERR\_1e\_2          = 0x01,}
\DoxyCodeLine{453         GSM48\_QOS\_SERR\_7e\_2          = 0x02,}
\DoxyCodeLine{454         GSM48\_QOS\_SERR\_1e\_3          = 0x03,}
\DoxyCodeLine{455         GSM48\_QOS\_SERR\_1e\_4          = 0x04,}
\DoxyCodeLine{456         GSM48\_QOS\_SERR\_1e\_5          = 0x05,}
\DoxyCodeLine{457         GSM48\_QOS\_SERR\_1e\_6          = 0x06,}
\DoxyCodeLine{458         GSM48\_QOS\_SERR\_1e\_1          = 0x07,}
\DoxyCodeLine{459 \};}
\DoxyCodeLine{460 }
\DoxyCodeLine{461 \textcolor{comment}{/* 3GPP 24.008 / Chapter 10.5.5.20 / Table 10.5.153a */}}
\DoxyCodeLine{462 \textcolor{keyword}{enum} gsm48\_gmm\_service\_type \{}
\DoxyCodeLine{463         GPRS\_SERVICE\_T\_SIGNALLING      = 0x00,}
\DoxyCodeLine{464         GPRS\_SERVICE\_T\_DATA          = 0x01,}
\DoxyCodeLine{465         GPRS\_SERVICE\_T\_PAGING\_RESP    = 0x02,}
\DoxyCodeLine{466         GPRS\_SERVICE\_T\_MBMS\_MC\_SERV  = 0x03,}
\DoxyCodeLine{467         GPRS\_SERVICE\_T\_MBMS\_BC\_SERV  = 0x04,}
\DoxyCodeLine{468 \};}
\DoxyCodeLine{469 }
\DoxyCodeLine{470 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string *gprs\_service\_t\_strs;}
\DoxyCodeLine{471 }
\DoxyCodeLine{472 \textcolor{keywordtype}{bool} gprs\_ms\_net\_cap\_gea\_supported(\textcolor{keyword}{const} uint8\_t *ms\_net\_cap, uint8\_t cap\_len,}
\DoxyCodeLine{473                                    \textcolor{keyword}{enum} gprs\_ciph\_algo gea);}
\DoxyCodeLine{474 }
\DoxyCodeLine{475 \textcolor{comment}{/* Figure 10.5.138/24.008 / Chapter 10.5.6.5 */}}
\DoxyCodeLine{476 \textcolor{keyword}{struct }gsm48\_qos \{}
\DoxyCodeLine{477         \textcolor{comment}{/* octet 3 */}}
\DoxyCodeLine{478         uint8\_t reliab\_class:3;}
\DoxyCodeLine{479         uint8\_t delay\_class:3;}
\DoxyCodeLine{480         uint8\_t spare:2;}
\DoxyCodeLine{481         \textcolor{comment}{/* octet 4 */}}
\DoxyCodeLine{482         uint8\_t preced\_class:3;}
\DoxyCodeLine{483         uint8\_t spare2:1;}
\DoxyCodeLine{484         uint8\_t peak\_tput:4;}
\DoxyCodeLine{485         \textcolor{comment}{/* octet 5 */}}
\DoxyCodeLine{486         uint8\_t mean\_tput:5;}
\DoxyCodeLine{487         uint8\_t spare3:3;}
\DoxyCodeLine{488         \textcolor{comment}{/* octet 6 */}}
\DoxyCodeLine{489         uint8\_t deliv\_err\_sdu:3;}
\DoxyCodeLine{490         uint8\_t deliv\_order:2;}
\DoxyCodeLine{491         uint8\_t traf\_class:3;}
\DoxyCodeLine{492         \textcolor{comment}{/* octet 7 */}}
\DoxyCodeLine{493         uint8\_t max\_sdu\_size;}
\DoxyCodeLine{494         \textcolor{comment}{/* octet 8 */}}
\DoxyCodeLine{495         uint8\_t max\_bitrate\_up;}
\DoxyCodeLine{496         \textcolor{comment}{/* octet 9 */}}
\DoxyCodeLine{497         uint8\_t max\_bitrate\_down;}
\DoxyCodeLine{498         \textcolor{comment}{/* octet 10 */}}
\DoxyCodeLine{499         uint8\_t sdu\_err\_ratio:4;}
\DoxyCodeLine{500         uint8\_t resid\_ber:4;}
\DoxyCodeLine{501         \textcolor{comment}{/* octet 11 */}}
\DoxyCodeLine{502         uint8\_t handling\_prio:2;}
\DoxyCodeLine{503         uint8\_t xfer\_delay:6;}
\DoxyCodeLine{504         \textcolor{comment}{/* octet 12 */}}
\DoxyCodeLine{505         uint8\_t guar\_bitrate\_up;}
\DoxyCodeLine{506         \textcolor{comment}{/* octet 13 */}}
\DoxyCodeLine{507         uint8\_t guar\_bitrate\_down;}
\DoxyCodeLine{508         \textcolor{comment}{/* octet 14 */}}
\DoxyCodeLine{509         uint8\_t src\_stats\_desc:4;}
\DoxyCodeLine{510         uint8\_t sig\_ind:1;}
\DoxyCodeLine{511         uint8\_t spare5:3;}
\DoxyCodeLine{512         \textcolor{comment}{/* octet 15 */}}
\DoxyCodeLine{513         uint8\_t max\_bitrate\_down\_ext;}
\DoxyCodeLine{514         \textcolor{comment}{/* octet 16 */}}
\DoxyCodeLine{515         uint8\_t guar\_bitrate\_down\_ext;}
\DoxyCodeLine{516 \};}
\DoxyCodeLine{517 }
\DoxyCodeLine{518 \textcolor{comment}{/* TS 24.008 Table 10.5.5.29 */}}
\DoxyCodeLine{519 \textcolor{keyword}{enum} gsm48\_ptsmi\_type \{}
\DoxyCodeLine{520         PTMSI\_TYPE\_NATIVE              = 0x00,}
\DoxyCodeLine{521         PTMSI\_TYPE\_MAPPED              = 0x01,}
\DoxyCodeLine{522 \};}
\DoxyCodeLine{523 }

\end{DoxyCode}
