libosmogsm  1.7.0.10-76bdb
Osmocom GSM library
gsm0808_utils.h
Go to the documentation of this file.
1 
4 /*
5  * (C) 2016 by sysmocom - s.f.m.c. GmbH, Author: Philipp Maier
6  * All Rights Reserved
7  *
8  * SPDX-License-Identifier: GPL-2.0+
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24 #pragma once
25 
26 struct sockaddr_storage;
27 
30 #include <osmocom/gsm/gsm29205.h>
31 #include <osmocom/gsm/gsm23003.h>
32 #include <osmocom/gsm/gsm_utils.h>
33 #include <osmocom/gsm/tlv.h>
34 
36 #define GSM0808_CELL_ID_LIST2_MAXLEN 127
37 
44  uint16_t ci;
46  uint16_t lac;
48  /* osmocom specific: */
50 };
51 
54  enum CELL_IDENT id_discr;
55  union gsm0808_cell_id_u id;
56 };
57 
60  enum CELL_IDENT id_discr;
62  unsigned int id_list_len;
63 };
64 
66 struct osmo_lcls {
69  struct osmo_gcr_parsed gcr;
71  bool corr_needed;
72 };
73 
74 char *osmo_lcls_dump(const struct osmo_lcls *lcls);
75 char *osmo_lcls_dump_buf(char *buf, size_t buf_len, const struct osmo_lcls *lcls);
76 char *osmo_lcls_dump_c(void *ctx, const struct osmo_lcls *lcls);
77 char *osmo_gcr_dump(const struct osmo_lcls *lcls);
78 char *osmo_gcr_dump_buf(char *buf, size_t buf_len, const struct osmo_lcls *lcls);
79 
80 extern const struct value_string gsm0808_cell_id_discr_names[];
81 static inline const char *gsm0808_cell_id_discr_name(enum CELL_IDENT id_discr)
82 { return get_value_string(gsm0808_cell_id_discr_names, id_discr); }
83 
84 const char *gsm0808_cell_id_name(const struct gsm0808_cell_id *cid);
85 const char *gsm0808_cell_id_name2(const struct gsm0808_cell_id *cid);
86 char *gsm0808_cell_id_name_buf(char *buf, size_t buflen, const struct gsm0808_cell_id *cid);
87 char *gsm0808_cell_id_name_c(const void *ctx, const struct gsm0808_cell_id *cid);
88 const char *gsm0808_cell_id_list_name(const struct gsm0808_cell_id_list2 *cil);
89 int gsm0808_cell_id_list_name_buf(char *buf, size_t buflen, const struct gsm0808_cell_id_list2 *cil);
90 char *gsm0808_cell_id_list_name_c(const void *ctx, const struct gsm0808_cell_id_list2 *cil);
91 int gsm0808_cell_id_u_name(char *buf, size_t buflen,
92  enum CELL_IDENT id_discr, const union gsm0808_cell_id_u *u);
93 bool gsm0808_cell_ids_match(const struct gsm0808_cell_id *id1, const struct gsm0808_cell_id *id2, bool exact_match);
94 int gsm0808_cell_id_matches_list(const struct gsm0808_cell_id *id, const struct gsm0808_cell_id_list2 *list,
95  unsigned int match_nr, bool exact_match);
96 void gsm0808_cell_id_from_cgi(struct gsm0808_cell_id *cid, enum CELL_IDENT id_discr,
97  const struct osmo_cell_global_id *cgi);
98 int gsm0808_cell_id_to_cgi(struct osmo_cell_global_id *cgi, const struct gsm0808_cell_id *cid);
99 void gsm0808_msgb_put_cell_id_u(struct msgb *msg, enum CELL_IDENT id_discr, const union gsm0808_cell_id_u *u);
100 int gsm0808_decode_cell_id_u(union gsm0808_cell_id_u *out, enum CELL_IDENT discr, const uint8_t *buf, unsigned int len);
101 int gsm0808_cell_id_size(enum CELL_IDENT discr);
102 
103 uint8_t gsm0808_enc_cause(struct msgb *msg, uint16_t cause);
105  const struct sockaddr_storage *ss);
106 int gsm0808_dec_aoip_trasp_addr(struct sockaddr_storage *ss,
107  const uint8_t *elem, uint8_t len);
108 int gsm0808_dec_osmux_cid(uint8_t *cid, const uint8_t *elem, uint8_t len);
109 
110 uint8_t gsm0808_enc_lcls(struct msgb *msg, const struct osmo_lcls *lcls);
111 int gsm0808_dec_lcls(struct osmo_lcls *lcls, const struct tlv_parsed *tp);
112 
113 uint8_t gsm0808_enc_speech_codec(struct msgb *msg,
114  const struct gsm0808_speech_codec *sc);
116  const uint8_t *elem, uint8_t len);
117 uint8_t gsm0808_enc_speech_codec_list(struct msgb *msg,
118  const struct gsm0808_speech_codec_list
119  *scl);
121  const uint8_t *elem, uint8_t len);
122 uint8_t gsm0808_enc_channel_type(struct msgb *msg,
123  const struct gsm0808_channel_type *ct);
125  const uint8_t *elem, uint8_t len);
126 uint8_t gsm0808_enc_encrypt_info(struct msgb *msg,
127  const struct gsm0808_encrypt_info *ei);
129  const uint8_t *elem, uint8_t len);
130 int gsm0808_enc_kc128(struct msgb *msg, const uint8_t *kc128);
131 int gsm0808_dec_kc128(uint8_t *kc128, const uint8_t *elem, uint8_t len);
132 uint8_t gsm0808_enc_cell_id_list2(struct msgb *msg, const struct gsm0808_cell_id_list2 *cil);
133 uint8_t gsm0808_enc_cell_id_list(struct msgb *msg,
134  const struct gsm0808_cell_id_list *cil)
135  OSMO_DEPRECATED("use gsm0808_enc_cell_id_list2 instead");
136 int gsm0808_dec_cell_id_list2(struct gsm0808_cell_id_list2 *cil, const uint8_t *elem, uint8_t len);
138  const uint8_t *elem, uint8_t len)
139  OSMO_DEPRECATED("use gsm0808_dec_cell_id_list2 instead");
140 int gsm0808_cell_id_list_add(struct gsm0808_cell_id_list2 *dst, const struct gsm0808_cell_id_list2 *src);
141 void gsm0808_cell_id_to_list(struct gsm0808_cell_id_list2 *dst, const struct gsm0808_cell_id *src);
142 uint8_t gsm0808_enc_cell_id(struct msgb *msg, const struct gsm0808_cell_id *ci);
143 int gsm0808_dec_cell_id(struct gsm0808_cell_id *ci, const uint8_t *elem, uint8_t len);
144 int gsm0808_chan_type_to_speech_codec(uint8_t perm_spch);
146  uint8_t perm_spch);
147 uint16_t gsm0808_sc_cfg_from_gsm48_mr_cfg(const struct gsm48_multi_rate_conf *cfg, bool fr);
148 int gsm48_mr_cfg_from_gsm0808_sc_cfg(struct gsm48_multi_rate_conf *cfg, uint16_t s15_s0);
149 
152 {
153  return (cause >> 4) & 0x7;
154 }
155 
157 static inline bool gsm0808_cause_ext(enum gsm0808_cause cause)
158 {
159  /* check that cause looks like 1XXX0000 where XXX represent class */
160  return (cause & 0x80) && !(cause & 0x0F);
161 }
162 
163 int gsm0808_get_cipher_reject_cause(const struct tlv_parsed *tp)
164 OSMO_DEPRECATED("Use gsm0808_get_cause() instead");
165 
167 static inline uint8_t gsm0808_current_channel_type_1(enum gsm_chan_t type)
168 {
169  switch (type) {
170  default:
171  return 0;
172  case GSM_LCHAN_SDCCH:
173  return 0x01;
174  case GSM_LCHAN_TCH_F:
175  return 0x18;
176  case GSM_LCHAN_TCH_H:
177  return 0x19;
178  }
179 }
180 
184  enum gsm48_chan_mode mode)
185 {
186  switch (mode) {
188  switch (type) {
189  case GSM_LCHAN_TCH_F:
190  return GSM0808_PERM_FR1;
191  case GSM_LCHAN_TCH_H:
192  return GSM0808_PERM_HR1;
193  default:
194  return 0;
195  }
197  switch (type) {
198  case GSM_LCHAN_TCH_F:
199  return GSM0808_PERM_FR2;
200  case GSM_LCHAN_TCH_H:
201  return GSM0808_PERM_HR2;
202  default:
203  return 0;
204  }
206  switch (type) {
207  case GSM_LCHAN_TCH_F:
208  return GSM0808_PERM_FR3;
209  case GSM_LCHAN_TCH_H:
210  return GSM0808_PERM_HR3;
211  default:
212  return 0;
213  }
214  default:
215  return 0;
216  }
217 }
218 
220 static inline uint8_t gsm0808_chosen_channel(enum gsm_chan_t type, enum gsm48_chan_mode mode)
221 {
222  uint8_t channel_mode = 0, channel = 0;
223 
224  switch (mode) {
228  channel_mode = 0x9;
229  break;
230  case GSM48_CMODE_SIGN:
231  channel_mode = 0x8;
232  break;
234  channel_mode = 0xe;
235  break;
237  channel_mode = 0xb;
238  break;
240  channel_mode = 0xc;
241  break;
243  channel_mode = 0xd;
244  break;
245  default:
246  return 0;
247  }
248 
249  switch (type) {
250  case GSM_LCHAN_NONE:
251  channel = 0x0;
252  break;
253  case GSM_LCHAN_SDCCH:
254  channel = 0x1;
255  break;
256  case GSM_LCHAN_TCH_F:
257  channel = 0x8;
258  break;
259  case GSM_LCHAN_TCH_H:
260  channel = 0x9;
261  break;
262  default:
263  return 0;
264  }
265 
266  return channel_mode << 4 | channel;
267 }
268 
269 const char *gsm0808_channel_type_name(const struct gsm0808_channel_type *ct);
270 char *gsm0808_channel_type_name_buf(char *buf, size_t buf_len, const struct gsm0808_channel_type *ct);
271 char *gsm0808_channel_type_name_c(const void *ctx, const struct gsm0808_channel_type *ct);
272 
int gsm0808_dec_speech_codec_list(struct gsm0808_speech_codec_list *scl, const uint8_t *elem, uint8_t len)
Decode TS 08.08 Speech Codec list IE.
Definition: gsm0808_utils.c:429
int gsm0808_dec_cell_id_list(struct gsm0808_cell_id_list *cil, const uint8_t *elem, uint8_t len) OSMO_DEPRECATED("use gsm0808_dec_cell_id_list2 instead")
DEPRECATED: Use gsm0808_dec_cell_id_list2 instead.
Definition: gsm0808_utils.c:1289
uint8_t gsm0808_enc_cause(struct msgb *msg, uint16_t cause)
int gsm0808_dec_channel_type(struct gsm0808_channel_type *ct, const uint8_t *elem, uint8_t len)
Decode TS 08.08 Channel Type IE.
Definition: gsm0808_utils.c:509
void gsm0808_msgb_put_cell_id_u(struct msgb *msg, enum CELL_IDENT id_discr, const union gsm0808_cell_id_u *u)
Definition: gsm0808_utils.c:934
const char * gsm0808_cell_id_name(const struct gsm0808_cell_id *cid)
Return a human readable representation of a Cell Identifier, like "LAC:123" or "CGI:001-01-42-23".
Definition: gsm0808_utils.c:2027
uint16_t gsm0808_sc_cfg_from_gsm48_mr_cfg(const struct gsm48_multi_rate_conf *cfg, bool fr)
Determine a set of AMR speech codec configuration bits (S0-S15) from a given GSM 04....
Definition: gsm0808_utils.c:1587
int gsm0808_chan_type_to_speech_codec(uint8_t perm_spch)
Convert the representation of the permitted speech codec identifier that is used in struct gsm0808_ch...
Definition: gsm0808_utils.c:1496
int gsm0808_get_cipher_reject_cause(const struct tlv_parsed *tp) OSMO_DEPRECATED("Use gsm0808_get_cause() instead")
Definition: gsm0808_utils.c:1728
int gsm0808_dec_cell_id_list2(struct gsm0808_cell_id_list2 *cil, const uint8_t *elem, uint8_t len)
Decode Cell Identifier List IE.
Definition: gsm0808_utils.c:1221
static bool gsm0808_cause_ext(enum gsm0808_cause cause)
Definition: gsm0808_utils.h:157
uint8_t gsm0808_enc_cell_id(struct msgb *msg, const struct gsm0808_cell_id *ci)
Encode Cell Identifier IE (3GPP TS 48.008 3.2.2.17).
Definition: gsm0808_utils.c:1444
char * gsm0808_channel_type_name_c(const void *ctx, const struct gsm0808_channel_type *ct)
Definition: gsm0808_utils.c:2127
char * osmo_lcls_dump_buf(char *buf, size_t buf_len, const struct osmo_lcls *lcls)
Dump LCLS parameters (GCR excluded) into string for printing.
Definition: gsm0808_utils.c:632
int gsm48_mr_cfg_from_gsm0808_sc_cfg(struct gsm48_multi_rate_conf *cfg, uint16_t s15_s0)
Determine a GSM 04.08 AMR configuration struct from a set of speech codec configuration bits (S0-S15)
Definition: gsm0808_utils.c:1640
char * gsm0808_channel_type_name_buf(char *buf, size_t buf_len, const struct gsm0808_channel_type *ct)
Definition: gsm0808_utils.c:2113
const char * gsm0808_cell_id_list_name(const struct gsm0808_cell_id_list2 *cil)
Return a human-readable representation of cil in a static buffer.
Definition: gsm0808_utils.c:2094
uint8_t gsm0808_enc_speech_codec_list(struct msgb *msg, const struct gsm0808_speech_codec_list *scl)
Encode TS 08.08 Speech Codec list.
Definition: gsm0808_utils.c:396
int gsm0808_cell_id_u_name(char *buf, size_t buflen, enum CELL_IDENT id_discr, const union gsm0808_cell_id_u *u)
Print a human readable name of the cell identifier to the char buffer.
Definition: gsm0808_utils.c:1743
int gsm0808_cell_id_matches_list(const struct gsm0808_cell_id *id, const struct gsm0808_cell_id_list2 *list, unsigned int match_nr, bool exact_match)
Find an index in a Cell Identifier list that matches a given single Cell Identifer.
Definition: gsm0808_utils.c:1858
static enum gsm0808_cause_class gsm0808_cause_class(enum gsm0808_cause cause)
Definition: gsm0808_utils.h:151
bool gsm0808_cell_ids_match(const struct gsm0808_cell_id *id1, const struct gsm0808_cell_id *id2, bool exact_match)
Return true if the common information between the two Cell Identifiers match.
Definition: gsm0808_utils.c:1841
int gsm0808_dec_kc128(uint8_t *kc128, const uint8_t *elem, uint8_t len)
Decode TS 48.008 Kc128 IE.
Definition: gsm0808_utils.c:790
int gsm0808_decode_cell_id_u(union gsm0808_cell_id_u *out, enum CELL_IDENT discr, const uint8_t *buf, unsigned int len)
Decode a single GSM 08.08 Cell ID list element payload.
Definition: gsm0808_utils.c:879
uint8_t gsm0808_enc_cell_id_list(struct msgb *msg, const struct gsm0808_cell_id_list *cil) OSMO_DEPRECATED("use gsm0808_enc_cell_id_list2 instead")
DEPRECATED: Use gsm0808_enc_cell_id_list2 instead.
Definition: gsm0808_utils.c:1043
char * gsm0808_cell_id_name_buf(char *buf, size_t buflen, const struct gsm0808_cell_id *cid)
Definition: gsm0808_utils.c:2013
char * gsm0808_cell_id_list_name_c(const void *ctx, const struct gsm0808_cell_id_list2 *cil)
Definition: gsm0808_utils.c:2101
uint8_t gsm0808_enc_lcls(struct msgb *msg, const struct osmo_lcls *lcls)
Add LCLS parameters to a given msgb, 3GPP TS 48.008 §3.2.2.115 - 3.2.2.120.
Definition: gsm0808_utils.c:580
static uint8_t gsm0808_current_channel_type_1(enum gsm_chan_t type)
Definition: gsm0808_utils.h:167
int gsm0808_dec_encrypt_info(struct gsm0808_encrypt_info *ei, const uint8_t *elem, uint8_t len)
Decode TS 08.08 Encryption Information IE.
Definition: gsm0808_utils.c:738
void gsm0808_cell_id_to_list(struct gsm0808_cell_id_list2 *dst, const struct gsm0808_cell_id *src)
Convert a single Cell Identifier to a Cell Identifier List with one entry.
Definition: gsm0808_utils.c:1413
#define GSM0808_CELL_ID_LIST2_MAXLEN
(225-1)/2 is the maximum number of elements in a cell identifier list.
Definition: gsm0808_utils.h:36
int gsm0808_dec_lcls(struct osmo_lcls *lcls, const struct tlv_parsed *tp)
Decode LCLS parameters to a given msgb, 3GPP TS 48.008 §3.2.2.115 - 3.2.2.120.
Definition: gsm0808_utils.c:613
int gsm0808_dec_osmux_cid(uint8_t *cid, const uint8_t *elem, uint8_t len)
uint8_t gsm0808_enc_encrypt_info(struct msgb *msg, const struct gsm0808_encrypt_info *ei)
Encode TS 08.08 Encryption Information IE.
Definition: gsm0808_utils.c:697
uint8_t gsm0808_enc_aoip_trasp_addr(struct msgb *msg, const struct sockaddr_storage *ss)
int gsm0808_dec_aoip_trasp_addr(struct sockaddr_storage *ss, const uint8_t *elem, uint8_t len)
uint8_t gsm0808_enc_cell_id_list2(struct msgb *msg, const struct gsm0808_cell_id_list2 *cil)
Encode TS 08.08 Cell Identifier List IE.
Definition: gsm0808_utils.c:998
char * osmo_lcls_dump_c(void *ctx, const struct osmo_lcls *lcls)
Definition: gsm0808_utils.c:655
int gsm0808_cell_id_list_add(struct gsm0808_cell_id_list2 *dst, const struct gsm0808_cell_id_list2 *src)
Append entries from one Cell Identifier List to another.
Definition: gsm0808_utils.c:1376
const char * gsm0808_channel_type_name(const struct gsm0808_channel_type *ct)
Definition: gsm0808_utils.c:2121
int gsm0808_cell_id_size(enum CELL_IDENT discr)
Definition: gsm0808_utils.c:849
static enum gsm0808_permitted_speech gsm0808_permitted_speech(enum gsm_chan_t type, enum gsm48_chan_mode mode)
Return 3GPP TS 48.008 3.2.2.51 Speech Version aka permitted speech version indication in 3....
Definition: gsm0808_utils.h:183
uint8_t gsm0808_enc_speech_codec(struct msgb *msg, const struct gsm0808_speech_codec *sc)
Encode TS 08.08 Speech Codec IE.
Definition: gsm0808_utils.c:291
int gsm0808_cell_id_list_name_buf(char *buf, size_t buflen, const struct gsm0808_cell_id_list2 *cil)
Return a human readable representation of the Cell Identifier List, like "LAC[2]:{123,...
Definition: gsm0808_utils.c:2063
int gsm0808_dec_cell_id(struct gsm0808_cell_id *ci, const uint8_t *elem, uint8_t len)
Decode Cell Identifier IE (3GPP TS 48.008 3.2.2.17).
Definition: gsm0808_utils.c:1472
char * osmo_gcr_dump(const struct osmo_lcls *lcls)
Dump GCR struct into static string buffer for printing.
Definition: gsm0808_utils.c:687
int gsm0808_speech_codec_from_chan_type(struct gsm0808_speech_codec *sc, uint8_t perm_spch)
Extrapolate a speech codec field from a given permitted speech parameter (channel type).
Definition: gsm0808_utils.c:1534
const struct value_string gsm0808_cell_id_discr_names[]
value_string[] for enum CELL_IDENT.
Definition: gsm0808_utils.c:1984
int gsm0808_dec_speech_codec(struct gsm0808_speech_codec *sc, const uint8_t *elem, uint8_t len)
Decode TS 08.08 Speech Codec IE.
Definition: gsm0808_utils.c:316
char * osmo_gcr_dump_buf(char *buf, size_t buf_len, const struct osmo_lcls *lcls)
Dump GCR struct into string for printing.
Definition: gsm0808_utils.c:668
static const char * gsm0808_cell_id_discr_name(enum CELL_IDENT id_discr)
Definition: gsm0808_utils.h:81
char * gsm0808_cell_id_name_c(const void *ctx, const struct gsm0808_cell_id *cid)
Definition: gsm0808_utils.c:2043
char * osmo_lcls_dump(const struct osmo_lcls *lcls)
Dump LCLS parameters (GCR excluded) into static string buffer for printing.
Definition: gsm0808_utils.c:650
static uint8_t gsm0808_chosen_channel(enum gsm_chan_t type, enum gsm48_chan_mode mode)
Return 3GPP TS 48.008 3.2.2.33 Chosen Channel.
Definition: gsm0808_utils.h:220
int gsm0808_cell_id_to_cgi(struct osmo_cell_global_id *cgi, const struct gsm0808_cell_id *cid)
Overwrite parts of cgi with values from a Cell Identifier.
Definition: gsm0808_utils.c:1940
const char * gsm0808_cell_id_name2(const struct gsm0808_cell_id *cid)
Like gsm0808_cell_id_name() but uses a different static buffer.
Definition: gsm0808_utils.c:2037
void gsm0808_cell_id_from_cgi(struct gsm0808_cell_id *cid, enum CELL_IDENT id_discr, const struct osmo_cell_global_id *cgi)
Copy information from a CGI to form a Cell Identifier of the specified kind.
Definition: gsm0808_utils.c:1878
int gsm0808_enc_kc128(struct msgb *msg, const uint8_t *kc128)
Encode TS 48.008 Kc128 IE.
Definition: gsm0808_utils.c:778
uint8_t gsm0808_enc_channel_type(struct msgb *msg, const struct gsm0808_channel_type *ct)
Encode TS 08.08 Channel Type IE.
Definition: gsm0808_utils.c:466
#define OSMO_DEPRECATED(text)
const char * get_value_string(const struct value_string *vs, uint32_t val)
GSM TS 04.08 definitions.
uint8_t cause
Definition: gsm_04_08.h:2
gsm48_chan_mode
Definition: gsm_04_08.h:749
@ GSM48_CMODE_DATA_6k0
Definition: gsm_04_08.h:756
@ GSM48_CMODE_SPEECH_V1
Definition: gsm_04_08.h:751
@ GSM48_CMODE_DATA_3k6
Definition: gsm_04_08.h:757
@ GSM48_CMODE_SIGN
Definition: gsm_04_08.h:750
@ GSM48_CMODE_DATA_12k0
Definition: gsm_04_08.h:755
@ GSM48_CMODE_SPEECH_AMR
Definition: gsm_04_08.h:753
@ GSM48_CMODE_SPEECH_EFR
Definition: gsm_04_08.h:752
@ GSM48_CMODE_DATA_14k5
Definition: gsm_04_08.h:754
uint8_t mode
Definition: gsm_04_08.h:1
uint8_t len
Definition: gsm_04_11.h:0
gsm0808_cause
Definition: gsm_08_08.h:363
uint8_t type
Definition: gsm_08_08.h:0
uint8_t msg[0]
Definition: gsm_08_08.h:8
gsm0808_cause_class
Definition: gsm_08_08.h:430
gsm0808_lcls_control
Definition: gsm_08_08.h:655
gsm0808_lcls_config
Definition: gsm_08_08.h:644
gsm0808_permitted_speech
GSM 08.08 3.2.2.11 Channel Type (see also 3GPP TS 48.008, section 3.2.2.11)
Definition: gsm_08_08.h:488
@ GSM0808_PERM_FR2
GSM EFR.
Definition: gsm_08_08.h:490
@ GSM0808_PERM_FR1
GSM FR.
Definition: gsm_08_08.h:489
@ GSM0808_PERM_HR1
GSM HR.
Definition: gsm_08_08.h:494
@ GSM0808_PERM_HR3
HR AMR.
Definition: gsm_08_08.h:496
@ GSM0808_PERM_HR2
(deprecated)
Definition: gsm_08_08.h:495
@ GSM0808_PERM_FR3
FR AMR.
Definition: gsm_08_08.h:491
CELL_IDENT
Definition: gsm_08_08.h:17
GSM utility functions, e.g.
gsm_chan_t
Definition: gsm_utils.h:226
@ GSM_LCHAN_TCH_H
Definition: gsm_utils.h:230
@ GSM_LCHAN_SDCCH
Definition: gsm_utils.h:228
@ GSM_LCHAN_TCH_F
Definition: gsm_utils.h:229
@ GSM_LCHAN_NONE
Definition: gsm_utils.h:227
Parsed representation of a Cell Identifier List IE (3GPP TS 48.008 3.2.2.27).
Definition: gsm0808_utils.h:59
enum CELL_IDENT id_discr
Definition: gsm0808_utils.h:60
union gsm0808_cell_id_u id_list[GSM0808_CELL_ID_LIST2_MAXLEN]
Definition: gsm0808_utils.h:61
unsigned int id_list_len
Definition: gsm0808_utils.h:62
DEPRECATED: This definition of the cell identifier list is insufficient.
Definition: gsm_08_08.h:637
Parsed representation of Cell Identifier IE (3GPP TS 48.008 3.2.2.17)
Definition: gsm0808_utils.h:53
union gsm0808_cell_id_u id
Definition: gsm0808_utils.h:55
enum CELL_IDENT id_discr
Definition: gsm0808_utils.h:54
Definition: gsm_08_08.h:613
Definition: gsm_08_08.h:623
Definition: gsm_08_08.h:606
3GPP TS 48.008 3.2.2.104 Speech Codec
Definition: gsm_08_08.h:544
Definition: gsm_04_08.h:603
Definition: gsm23003.h:36
Definition: gsm23003.h:28
Parsed representation of Global Call Reference, 3GPP TS 29.205 Table B 2.1.9.1.
Definition: gsm29205.h:29
Definition: gsm23003.h:53
LCLS-related parameters from 3GPP TS 48.008.
Definition: gsm0808_utils.h:66
enum gsm0808_lcls_control control
§3.2.2.117 Connection Status Control.
Definition: gsm0808_utils.h:68
bool gcr_available
Definition: gsm0808_utils.h:70
struct osmo_gcr_parsed gcr
§3.2.2.115 Global Call Reference.
Definition: gsm0808_utils.h:69
enum gsm0808_lcls_config config
§3.2.2.116 Configuration.
Definition: gsm0808_utils.h:67
bool corr_needed
§3.2.2.118 Correlation-Not-Needed.
Definition: gsm0808_utils.h:71
Definition: gsm23003.h:16
Definition: gsm23003.h:59
result of the TLV parser
Definition: tlv.h:522
Instead of this, use either struct gsm0808_cell_id or gsm0808_cell_id_list2.
Definition: gsm0808_utils.h:41
uint16_t lac
Definition: gsm0808_utils.h:46
struct osmo_cell_global_id_ps global_ps
Definition: gsm0808_utils.h:49
uint16_t ci
Definition: gsm0808_utils.h:44
struct osmo_cell_global_id global
Definition: gsm0808_utils.h:42
struct osmo_location_area_id lai_and_lac
Definition: gsm0808_utils.h:45
struct osmo_lac_and_ci_id lac_and_ci
Definition: gsm0808_utils.h:43
struct osmo_service_area_id sai
Definition: gsm0808_utils.h:47