libosmogsm
0.11.0-dirty
Osmocom GSM library
|
#include <osmocom/gsm/protocol/gsm_08_08.h>
#include <osmocom/gsm/protocol/gsm_04_08.h>
#include <osmocom/gsm/gsm23003.h>
#include <osmocom/gsm/gsm_utils.h>
Go to the source code of this file.
Data Structures | |
union | gsm0808_cell_id_u |
Instead of this, use either struct gsm0808_cell_id or gsm0808_cell_id_list2. More... | |
struct | gsm0808_cell_id |
Parsed representation of Cell Identifier IE (3GPP TS 48.008 3.2.2.17) More... | |
struct | gsm0808_cell_id_list2 |
Parsed representation of a Cell Identifier List IE (3GPP TS 48.008 3.2.2.27). More... | |
Defines | |
#define | GSM0808_CELL_ID_LIST2_MAXLEN 127 |
(225-1)/2 is the maximum number of elements in a cell identifier list. | |
Functions | |
static const char * | gsm0808_cell_id_discr_name (enum CELL_IDENT id_discr) |
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". | |
const char * | gsm0808_cell_id_name2 (const struct gsm0808_cell_id *cid) |
Like gsm0808_cell_id_name() but uses a different static buffer. | |
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. | |
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}". | |
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. | |
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_speech_codec (struct msgb *msg, const struct gsm0808_speech_codec *sc) |
Encode TS 08.08 Speech Codec IE. | |
int | gsm0808_dec_speech_codec (struct gsm0808_speech_codec *sc, const uint8_t *elem, uint8_t len) |
Decode TS 08.08 Speech Codec IE. | |
uint8_t | gsm0808_enc_speech_codec_list (struct msgb *msg, const struct gsm0808_speech_codec_list *scl) |
Encode TS 08.08 Speech Codec list. | |
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. | |
uint8_t | gsm0808_enc_channel_type (struct msgb *msg, const struct gsm0808_channel_type *ct) |
Encode TS 08.08 Channel Type IE. | |
int | gsm0808_dec_channel_type (struct gsm0808_channel_type *ct, const uint8_t *elem, uint8_t len) |
Decode TS 08.08 Channel Type IE. | |
uint8_t | gsm0808_enc_encrypt_info (struct msgb *msg, const struct gsm0808_encrypt_info *ei) |
Encode TS 08.08 Encryption Information IE. | |
int | gsm0808_dec_encrypt_info (struct gsm0808_encrypt_info *ei, const uint8_t *elem, uint8_t len) |
Decode TS 08.08 Encryption Information IE. | |
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. | |
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. | |
int | gsm0808_dec_cell_id_list2 (struct gsm0808_cell_id_list2 *cil, const uint8_t *elem, uint8_t len) |
Decode Cell Identifier List IE. | |
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. | |
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. | |
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). | |
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). | |
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_channel_type to the speech codec representation we use in struct gsm0808_speech_codec. | |
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). | |
static uint8_t | gsm0808_current_channel_type_1 (enum gsm_chan_t type) |
Return 3GPP TS 48.008 3.2.2.49 Current Channel Type 1 from enum gsm_chan_t. | |
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.2.2.11 Channel Type. | |
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. | |
const char * | gsm0808_channel_type_name (const struct gsm0808_channel_type *ct) |
Variables | |
struct value_string | gsm0808_cell_id_discr_names [] |
value_string[] for enum CELL_IDENT. |