libosmogsm  1.4.1
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;
47 };
48 
51  enum CELL_IDENT id_discr;
53 };
54 
57  enum CELL_IDENT id_discr;
59  unsigned int id_list_len;
60 };
61 
63 struct osmo_lcls {
65  enum gsm0808_lcls_control control;
66  struct osmo_gcr_parsed gcr;
68  bool corr_needed;
69 };
70 
71 char *osmo_lcls_dump(const struct osmo_lcls *lcls);
72 char *osmo_lcls_dump_buf(char *buf, size_t buf_len, const struct osmo_lcls *lcls);
73 char *osmo_lcls_dump_c(void *ctx, const struct osmo_lcls *lcls);
74 char *osmo_gcr_dump(const struct osmo_lcls *lcls);
75 char *osmo_gcr_dump_buf(char *buf, size_t buf_len, const struct osmo_lcls *lcls);
76 
77 extern const struct value_string gsm0808_cell_id_discr_names[];
78 static inline const char *gsm0808_cell_id_discr_name(enum CELL_IDENT id_discr)
79 { return get_value_string(gsm0808_cell_id_discr_names, id_discr); }
80 
81 const char *gsm0808_cell_id_name(const struct gsm0808_cell_id *cid);
82 const char *gsm0808_cell_id_name2(const struct gsm0808_cell_id *cid);
83 char *gsm0808_cell_id_name_buf(char *buf, size_t buflen, const struct gsm0808_cell_id *cid);
84 char *gsm0808_cell_id_name_c(const void *ctx, const struct gsm0808_cell_id *cid);
85 const char *gsm0808_cell_id_list_name(const struct gsm0808_cell_id_list2 *cil);
86 int gsm0808_cell_id_list_name_buf(char *buf, size_t buflen, const struct gsm0808_cell_id_list2 *cil);
87 char *gsm0808_cell_id_list_name_c(const void *ctx, const struct gsm0808_cell_id_list2 *cil);
88 int gsm0808_cell_id_u_name(char *buf, size_t buflen,
89  enum CELL_IDENT id_discr, const union gsm0808_cell_id_u *u);
90 bool gsm0808_cell_ids_match(const struct gsm0808_cell_id *id1, const struct gsm0808_cell_id *id2, bool exact_match);
91 int gsm0808_cell_id_matches_list(const struct gsm0808_cell_id *id, const struct gsm0808_cell_id_list2 *list,
92  unsigned int match_nr, bool exact_match);
93 void gsm0808_cell_id_from_cgi(struct gsm0808_cell_id *cid, enum CELL_IDENT id_discr,
94  const struct osmo_cell_global_id *cgi);
95 int gsm0808_cell_id_to_cgi(struct osmo_cell_global_id *cgi, const struct gsm0808_cell_id *cid);
96 void gsm0808_msgb_put_cell_id_u(struct msgb *msg, enum CELL_IDENT id_discr, const union gsm0808_cell_id_u *u);
97 int gsm0808_decode_cell_id_u(union gsm0808_cell_id_u *out, enum CELL_IDENT discr, const uint8_t *buf, unsigned int len);
98 int gsm0808_cell_id_size(enum CELL_IDENT discr);
99 
100 uint8_t gsm0808_enc_cause(struct msgb *msg, uint16_t cause);
101 uint8_t gsm0808_enc_aoip_trasp_addr(struct msgb *msg,
102  const struct sockaddr_storage *ss);
103 int gsm0808_dec_aoip_trasp_addr(struct sockaddr_storage *ss,
104  const uint8_t *elem, uint8_t len);
105 int gsm0808_dec_osmux_cid(uint8_t *cid, const uint8_t *elem, uint8_t len);
106 
107 uint8_t gsm0808_enc_lcls(struct msgb *msg, const struct osmo_lcls *lcls);
108 int gsm0808_dec_lcls(struct osmo_lcls *lcls, const struct tlv_parsed *tp);
109 
110 uint8_t gsm0808_enc_speech_codec(struct msgb *msg,
111  const struct gsm0808_speech_codec *sc);
113  const uint8_t *elem, uint8_t len);
114 uint8_t gsm0808_enc_speech_codec_list(struct msgb *msg,
115  const struct gsm0808_speech_codec_list
116  *scl);
118  const uint8_t *elem, uint8_t len);
119 uint8_t gsm0808_enc_channel_type(struct msgb *msg,
120  const struct gsm0808_channel_type *ct);
122  const uint8_t *elem, uint8_t len);
123 uint8_t gsm0808_enc_encrypt_info(struct msgb *msg,
124  const struct gsm0808_encrypt_info *ei);
126  const uint8_t *elem, uint8_t len);
127 uint8_t gsm0808_enc_cell_id_list2(struct msgb *msg, const struct gsm0808_cell_id_list2 *cil);
128 uint8_t gsm0808_enc_cell_id_list(struct msgb *msg,
129  const struct gsm0808_cell_id_list *cil)
130  OSMO_DEPRECATED("use gsm0808_enc_cell_id_list2 instead");
131 int gsm0808_dec_cell_id_list2(struct gsm0808_cell_id_list2 *cil, const uint8_t *elem, uint8_t len);
133  const uint8_t *elem, uint8_t len)
134  OSMO_DEPRECATED("use gsm0808_dec_cell_id_list2 instead");
135 int gsm0808_cell_id_list_add(struct gsm0808_cell_id_list2 *dst, const struct gsm0808_cell_id_list2 *src);
136 void gsm0808_cell_id_to_list(struct gsm0808_cell_id_list2 *dst, const struct gsm0808_cell_id *src);
137 uint8_t gsm0808_enc_cell_id(struct msgb *msg, const struct gsm0808_cell_id *ci);
138 int gsm0808_dec_cell_id(struct gsm0808_cell_id *ci, const uint8_t *elem, uint8_t len);
139 int gsm0808_chan_type_to_speech_codec(uint8_t perm_spch);
141  uint8_t perm_spch);
142 uint16_t gsm0808_sc_cfg_from_gsm48_mr_cfg(const struct gsm48_multi_rate_conf *cfg, bool fr);
143 int gsm48_mr_cfg_from_gsm0808_sc_cfg(struct gsm48_multi_rate_conf *cfg, uint16_t s15_s0);
144 
147 {
148  return (cause >> 4) & 0x7;
149 }
150 
152 static inline bool gsm0808_cause_ext(enum gsm0808_cause cause)
153 {
154  /* check that cause looks like 1XXX0000 where XXX represent class */
155  return (cause & 0x80) && !(cause & 0x0F);
156 }
157 
158 int gsm0808_get_cipher_reject_cause(const struct tlv_parsed *tp)
159 OSMO_DEPRECATED("Use gsm0808_get_cause() instead");
160 
162 static inline uint8_t gsm0808_current_channel_type_1(enum gsm_chan_t type)
163 {
164  switch (type) {
165  default:
166  return 0;
167  case GSM_LCHAN_SDCCH:
168  return 0x01;
169  case GSM_LCHAN_TCH_F:
170  return 0x18;
171  case GSM_LCHAN_TCH_H:
172  return 0x19;
173  }
174 }
175 
179  enum gsm48_chan_mode mode)
180 {
181  switch (mode) {
183  switch (type) {
184  case GSM_LCHAN_TCH_F:
185  return GSM0808_PERM_FR1;
186  case GSM_LCHAN_TCH_H:
187  return GSM0808_PERM_HR1;
188  default:
189  return 0;
190  }
192  switch (type) {
193  case GSM_LCHAN_TCH_F:
194  return GSM0808_PERM_FR2;
195  case GSM_LCHAN_TCH_H:
196  return GSM0808_PERM_HR2;
197  default:
198  return 0;
199  }
201  switch (type) {
202  case GSM_LCHAN_TCH_F:
203  return GSM0808_PERM_FR3;
204  case GSM_LCHAN_TCH_H:
205  return GSM0808_PERM_HR3;
206  default:
207  return 0;
208  }
209  default:
210  return 0;
211  }
212 }
213 
215 static inline uint8_t gsm0808_chosen_channel(enum gsm_chan_t type, enum gsm48_chan_mode mode)
216 {
217  uint8_t channel_mode = 0, channel = 0;
218 
219  switch (mode) {
223  channel_mode = 0x9;
224  break;
225  case GSM48_CMODE_SIGN:
226  channel_mode = 0x8;
227  break;
229  channel_mode = 0xe;
230  break;
232  channel_mode = 0xb;
233  break;
235  channel_mode = 0xc;
236  break;
238  channel_mode = 0xd;
239  break;
240  default:
241  return 0;
242  }
243 
244  switch (type) {
245  case GSM_LCHAN_NONE:
246  channel = 0x0;
247  break;
248  case GSM_LCHAN_SDCCH:
249  channel = 0x1;
250  break;
251  case GSM_LCHAN_TCH_F:
252  channel = 0x8;
253  break;
254  case GSM_LCHAN_TCH_H:
255  channel = 0x9;
256  break;
257  default:
258  return 0;
259  }
260 
261  return channel_mode << 4 | channel;
262 }
263 
264 const char *gsm0808_channel_type_name(const struct gsm0808_channel_type *ct);
265 char *gsm0808_channel_type_name_buf(char *buf, size_t buf_len, const struct gsm0808_channel_type *ct);
266 char *gsm0808_channel_type_name_c(const void *ctx, const struct gsm0808_channel_type *ct);
267 
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
Definition: gsm_04_08.h:576
uint16_t lac
Definition: gsm0808_utils.h:46
int gsm0808_get_cipher_reject_cause(const struct tlv_parsed *tp) OSMO_DEPRECATED("Use gsm0808_get_cause() instead")
Definition: gsm0808_utils.c:1566
char * gsm0808_channel_type_name_c(const void *ctx, const struct gsm0808_channel_type *ct)
Definition: gsm0808_utils.c:1977
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
uint8_t type
Definition: gsm_08_08.h:469
unsigned int id_list_len
Definition: gsm0808_utils.h:59
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:882
#define OSMO_DEPRECATED(text)
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:178
gsm48_chan_mode
Definition: gsm_04_08.h:574
Definition: gsm_04_08.h:582
const char * get_value_string(const struct value_string *vs, uint32_t val)
Parsed representation of a Cell Identifier List IE (3GPP TS 48.008 3.2.2.27).
Definition: gsm0808_utils.h:56
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
Definition: gsm_04_08.h:575
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
GSM FR.
Definition: gsm_08_08.h:482
gsm0808_cause_class
Definition: gsm_08_08.h:423
Definition: gsm_04_08.h:580
(deprecated)
Definition: gsm_08_08.h:488
write Write running configuration to or terminal n Write configuration to the copy running config startup config
LCLS-related parameters from 3GPP TS 48.008.
Definition: gsm0808_utils.h:63
HR AMR.
Definition: gsm_08_08.h:489
GSM EFR.
Definition: gsm_08_08.h:483
struct osmo_location_area_id lai_and_lac
Definition: gsm0808_utils.h:45
static const char * gsm0808_cell_id_discr_name(enum CELL_IDENT id_discr)
Definition: gsm0808_utils.h:78
gsm0808_lcls_control
Definition: gsm_08_08.h:648
#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_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:1214
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:1127
Definition: gsm_utils.h:221
char * osmo_lcls_dump_c(void *ctx, const struct osmo_lcls *lcls)
Definition: gsm0808_utils.c:655
Instead of this, use either struct gsm0808_cell_id or gsm0808_cell_id_list2.
Definition: gsm0808_utils.h:41
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
uint8_t cause
Definition: gsm_04_08.h:589
struct osmo_lac_and_ci_id lac_and_ci
Definition: gsm0808_utils.h:43
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.08 AMR configuration struct.
Definition: gsm0808_utils.c:1425
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
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:1877
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_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:1801
char * gsm0808_cell_id_name_c(const void *ctx, const struct gsm0808_cell_id *cid)
Definition: gsm0808_utils.c:1893
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:736
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:1310
Definition: gsm23003.h:44
static enum gsm0808_cause_class gsm0808_cause_class(enum gsm0808_cause cause)
Definition: gsm0808_utils.h:146
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:1251
char * gsm0808_cell_id_name_buf(char *buf, size_t buflen, const struct gsm0808_cell_id *cid)
Definition: gsm0808_utils.c:1863
Definition: gsm_04_08.h:581
uint8_t gsm0808_enc_cause(struct msgb *msg, uint16_t cause)
Definition: gsm_utils.h:222
GSM TS 04.08 definitions.
GSM HR.
Definition: gsm_08_08.h:487
Definition: gsm_08_08.h:599
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:481
uint8_t gsm0808_enc_aoip_trasp_addr(struct msgb *msg, const struct sockaddr_storage *ss)
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:1887
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:1282
Definition: gsm_utils.h:220
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:797
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:1753
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:838
static bool gsm0808_cause_ext(enum gsm0808_cause cause)
Definition: gsm0808_utils.h:152
struct osmo_cell_global_id global
Definition: gsm0808_utils.h:42
static uint8_t gsm0808_current_channel_type_1(enum gsm_chan_t type)
Definition: gsm0808_utils.h:162
gsm0808_cause
Definition: gsm_08_08.h:356
const struct value_string gsm0808_cell_id_discr_names[]
value_string[] for enum CELL_IDENT.
Definition: gsm0808_utils.c:1836
int gsm0808_cell_id_size(enum CELL_IDENT discr)
Definition: gsm0808_utils.c:771
Definition: gsm23003.h:28
FR AMR.
Definition: gsm_08_08.h:484
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:1478
Parsed representation of Global Call Reference, 3GPP TS 29.205 Table B 2.1.9.1.
Definition: gsm29205.h:33
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:912
int gsm0808_dec_aoip_trasp_addr(struct sockaddr_storage *ss, const uint8_t *elem, uint8_t len)
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:1372
Definition: gsm23003.h:16
uint8_t len
Definition: gsm_04_11.h:465
bool gcr_available
Definition: gsm0808_utils.h:67
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, 456}".
Definition: gsm0808_utils.c:1913
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
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
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:215
uint8_t mode
Definition: gsm_04_08.h:515
Definition: gsm_04_08.h:579
Definition: gsm_08_08.h:606
Definition: gsm_04_08.h:578
Definition: gsm_utils.h:219
uint8_t msg[0]
Definition: gsm_08_08.h:522
result of the TLV parser
Definition: tlv.h:487
CELL_IDENT
Definition: gsm_08_08.h:17
char * gsm0808_cell_id_list_name_c(const void *ctx, const struct gsm0808_cell_id_list2 *cil)
Definition: gsm0808_utils.c:1951
char * gsm0808_channel_type_name_buf(char *buf, size_t buf_len, const struct gsm0808_channel_type *ct)
Definition: gsm0808_utils.c:1963
int gsm0808_dec_osmux_cid(uint8_t *cid, const uint8_t *elem, uint8_t len)
gsm_chan_t
Definition: gsm_utils.h:218
Definition: gsm_08_08.h:616
Definition: gsm_04_08.h:428
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
Parsed representation of Cell Identifier IE (3GPP TS 48.008 3.2.2.17)
Definition: gsm0808_utils.h:50
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:1944
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_list2(struct gsm0808_cell_id_list2 *cil, const uint8_t *elem, uint8_t len)
Decode Cell Identifier List IE.
Definition: gsm0808_utils.c:1065
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
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:1716
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
gsm0808_lcls_config
Definition: gsm_08_08.h:637
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:1733
const char * gsm0808_channel_type_name(const struct gsm0808_channel_type *ct)
Definition: gsm0808_utils.c:1971
Definition: gsm_04_08.h:577
uint16_t ci
Definition: gsm0808_utils.h:44
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:1581
GSM utility functions, e.g.
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:1334
bool corr_needed
§3.2.2.118 Correlation-Not-Needed.
Definition: gsm0808_utils.h:68
DEPRECATED: This definition of the cell identifier list is insufficient.
Definition: gsm_08_08.h:630
3GPP TS 48.008 3.2.2.104 Speech Codec
Definition: gsm_08_08.h:537