libosmogsm
0.9.6.315-40e62
Osmocom GSM library
|
#include <osmocom/gsm/protocol/gsm_08_08.h>
Go to the source code of this file.
Functions | |
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. More... | |
int | gsm0808_dec_speech_codec (struct gsm0808_speech_codec *sc, const uint8_t *elem, uint8_t len) |
Decode TS 08.08 Speech Codec IE. More... | |
uint8_t | gsm0808_enc_speech_codec_list (struct msgb *msg, const struct gsm0808_speech_codec_list *scl) |
Encode TS 08.08 Speech Codec list. More... | |
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. More... | |
uint8_t | gsm0808_enc_channel_type (struct msgb *msg, const struct gsm0808_channel_type *ct) |
Encode TS 08.08 Channel Type IE. More... | |
int | gsm0808_dec_channel_type (struct gsm0808_channel_type *ct, const uint8_t *elem, uint8_t len) |
Decode TS 08.08 Channel Type IE. More... | |
uint8_t | gsm0808_enc_encrypt_info (struct msgb *msg, const struct gsm0808_encrypt_info *ei) |
Encode TS 08.08 Encryption Information IE. More... | |
int | gsm0808_dec_encrypt_info (struct gsm0808_encrypt_info *ei, const uint8_t *elem, uint8_t len) |
Decode TS 08.08 Encryption Information IE. More... | |
uint8_t | gsm0808_enc_cell_id_list (struct msgb *msg, const struct gsm0808_cell_id_list *cil) |
Encode TS 08.08 Cell Identifier List IE. More... | |
int | gsm0808_dec_cell_id_list (struct gsm0808_cell_id_list *cil, const uint8_t *elem, uint8_t len) |
Decode Cell Identifier List IE. More... | |
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. More... | |
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). More... | |
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.
[in] | perm_spch | to be converted (see also gsm0808_permitted_speech) |
The speech codec type, which is used in the channel type field to signal the permitted speech versions (codecs) has a different encoding than the type field in the speech codec type element (See also 3GPP TS 48.008, 3.2.2.11 and 3.2.2.103)
Referenced by gsm0808_speech_codec_from_chan_type().
int gsm0808_dec_aoip_trasp_addr | ( | struct sockaddr_storage * | ss, |
const uint8_t * | elem, | ||
uint8_t | len | ||
) |
int gsm0808_dec_cell_id_list | ( | struct gsm0808_cell_id_list * | cil, |
const uint8_t * | elem, | ||
uint8_t | len | ||
) |
Decode Cell Identifier List IE.
[out] | cil | Caller-provided memory to store Cell ID list |
[in] | elem | IE value to be decoded |
[in] | len | Length of elem in bytes |
int gsm0808_dec_channel_type | ( | struct gsm0808_channel_type * | ct, |
const uint8_t * | elem, | ||
uint8_t | len | ||
) |
Decode TS 08.08 Channel Type IE.
[out] | ct | Caller-provided memory to store channel type |
[in] | elem | IE Value to be decoded |
[in] | len | Length of elem in bytes |
See also 3GPP TS 48.008 3.2.2.11 Channel Type
int gsm0808_dec_encrypt_info | ( | struct gsm0808_encrypt_info * | ei, |
const uint8_t * | elem, | ||
uint8_t | len | ||
) |
Decode TS 08.08 Encryption Information IE.
[out] | ei | Caller-provided memory to store encryption information |
[in] | elem | IE value to be decoded |
[in] | len | Length of elem in bytes |
int gsm0808_dec_speech_codec | ( | struct gsm0808_speech_codec * | sc, |
const uint8_t * | elem, | ||
uint8_t | len | ||
) |
Decode TS 08.08 Speech Codec IE.
[out] | sc | Caller-allocated memory for Speech Codec |
[in] | elem | IE value to be decoded |
[in] | len | Length of elem in bytes |
Referenced by gsm0808_dec_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.
[out] | scl | Caller-provided memory to store codec list |
[in] | elem | IE value to be decoded |
[in] | len | Length of elem in bytes |
See also 3GPP TS 48.008 3.2.2.103 Speech Codec List
References gsm0808_dec_speech_codec().
uint8_t gsm0808_enc_aoip_trasp_addr | ( | struct msgb * | msg, |
const struct sockaddr_storage * | ss | ||
) |
Referenced by gsm0808_create_ass(), and gsm0808_create_ass_compl().
uint8_t gsm0808_enc_cell_id_list | ( | struct msgb * | msg, |
const struct gsm0808_cell_id_list * | cil | ||
) |
Encode TS 08.08 Cell Identifier List IE.
[out] | msg | Message Buffer to which IE is to be appended |
[in] | cil | Cell ID List to be encoded |
Referenced by gsm0808_create_paging().
uint8_t gsm0808_enc_channel_type | ( | struct msgb * | msg, |
const struct gsm0808_channel_type * | ct | ||
) |
Encode TS 08.08 Channel Type IE.
[out] | msg | Message Buffer to which IE is to be appended |
[in] | ct | Channel Type to be encoded |
See also 3GPP TS 48.008 3.2.2.11 Channel Type
References CHANNEL_TYPE_ELEMENT_MAXLEN.
Referenced by gsm0808_create_ass().
uint8_t gsm0808_enc_encrypt_info | ( | struct msgb * | msg, |
const struct gsm0808_encrypt_info * | ei | ||
) |
Encode TS 08.08 Encryption Information IE.
[out] | msg | Message Buffer to which IE is to be appended |
[in] | ei | Encryption Information to be encoded |
Referenced by gsm0808_create_cipher().
uint8_t gsm0808_enc_speech_codec | ( | struct msgb * | msg, |
const struct gsm0808_speech_codec * | sc | ||
) |
Encode TS 08.08 Speech Codec IE.
[out] | msg | Message Buffer to which IE will be appended |
[in] | sc | Speech Codec to be encoded into IE |
See also 3GPP TS 48.008 3.2.2.103 Speech Codec List
References enc_speech_codec().
Referenced by gsm0808_create_ass_compl().
uint8_t gsm0808_enc_speech_codec_list | ( | struct msgb * | msg, |
const struct gsm0808_speech_codec_list * | scl | ||
) |
Encode TS 08.08 Speech Codec list.
[out] | msg | Message Buffer to which IE is to be appended |
[in] | scl | Speech Codec List to be encoded into IE |
See also 3GPP TS 48.008 3.2.2.103 Speech Codec List
References enc_speech_codec().
Referenced by gsm0808_create_ass(), gsm0808_create_ass_compl(), gsm0808_create_ass_fail(), and gsm0808_create_layer3_aoip().
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).
[out] | sc | Caller provided memory to store the resulting speech codec |
[in] | perm_spch | value that is used to derive the speech codec info (see also: enum gsm0808_speech_codec_type in gsm0808_utils.h) |
References gsm0808_chan_type_to_speech_codec().