libosmogsm
1.0.1.85-9f28
Osmocom GSM library
|
Helper functions regarding the TS 08.08 / 48.008 A interface, primarily message generation/encoding. More...
#include <osmocom/core/byteswap.h>
#include <osmocom/gsm/gsm0808.h>
#include <osmocom/gsm/gsm0808_utils.h>
#include <osmocom/gsm/protocol/gsm_08_08.h>
#include <osmocom/gsm/gsm48.h>
Functions | |
struct msgb * | gsm0808_create_layer3_aoip (const struct msgb *msg_l3, uint16_t nc, uint16_t cc, int lac, uint16_t _ci, const struct gsm0808_speech_codec_list *scl) |
Create "Complete L3 Info" for AoIP, legacy implementation. More... | |
struct msgb * | gsm0808_create_layer3_2 (const struct msgb *msg_l3, const struct osmo_cell_global_id *cell, const struct gsm0808_speech_codec_list *scl) |
Create "Complete L3 Info" for AoIP. More... | |
struct msgb * | gsm0808_create_layer3 (struct msgb *msg_l3, uint16_t nc, uint16_t cc, int lac, uint16_t _ci) |
Create "Complete L3 Info" for A, legacy implementation. More... | |
struct msgb * | gsm0808_create_reset (void) |
Create BSSMAP RESET message. More... | |
struct msgb * | gsm0808_create_reset_ack (void) |
Create BSSMAP RESET ACK message. More... | |
struct msgb * | gsm0808_create_clear_complete (void) |
Create BSSMAP Clear Complete message. More... | |
struct msgb * | gsm0808_create_clear_command (uint8_t cause) |
Create BSSMAP Clear Command message with BSSAP header before l3h and BSSMAP in l3h. More... | |
struct msgb * | gsm0808_create_clear_command2 (uint8_t cause, bool csfb_ind) |
Create BSSMAP Clear Command message. More... | |
struct msgb * | gsm0808_create_cipher (const struct gsm0808_encrypt_info *ei, const uint8_t *cipher_response_mode) |
Create BSSMAP Cipher Mode Command message. More... | |
struct msgb * | gsm0808_create_cipher_complete (struct msgb *layer3, uint8_t alg_id) |
Create BSSMAP Cipher Mode Complete message. More... | |
struct msgb * | gsm0808_create_cipher_reject (enum gsm0808_cause cause) |
Create BSSMAP Cipher Mode Reject message. More... | |
struct msgb * | gsm0808_create_cipher_reject_ext (enum gsm0808_cause_class class, uint8_t ext) |
Create BSSMAP Cipher Mode Reject message. More... | |
struct msgb * | gsm0808_create_lcls_conn_ctrl (enum gsm0808_lcls_config config, enum gsm0808_lcls_control control) |
Create BSSMAP LCLS CONNECT CONTROL message (TS 48.008 3.2.1.91). More... | |
struct msgb * | gsm0808_create_lcls_conn_ctrl_ack (enum gsm0808_lcls_status status) |
Create BSSMAP LCLS CONNECT CONTROL ACK message (TS 48.008 3.2.1.92). More... | |
struct msgb * | gsm0808_create_lcls_notification (enum gsm0808_lcls_status status, bool break_req) |
Create BSSMAP LCLS NOTIFICATION message (TS 48.008 3.2.1.93). More... | |
struct msgb * | gsm0808_create_classmark_request () |
Create BSSMAP Classmark Request message. More... | |
struct msgb * | gsm0808_create_classmark_update (const uint8_t *cm2, uint8_t cm2_len, const uint8_t *cm3, uint8_t cm3_len) |
Create BSSMAP Classmark Update message. More... | |
struct msgb * | gsm0808_create_sapi_reject (uint8_t link_id) |
Create BSSMAP SAPI N Reject message. More... | |
struct msgb * | gsm0808_create_ass2 (const struct gsm0808_channel_type *ct, const uint16_t *cic, const struct sockaddr_storage *ss, const struct gsm0808_speech_codec_list *scl, const uint32_t *ci, const uint8_t *kc, const struct osmo_lcls *lcls) |
Create BSSMAP Assignment Request message, 3GPP TS 48.008 §3.2.1.1. More... | |
struct msgb * | gsm0808_create_ass (const struct gsm0808_channel_type *ct, const uint16_t *cic, const struct sockaddr_storage *ss, const struct gsm0808_speech_codec_list *scl, const uint32_t *ci) |
Create BSSMAP Assignment Request message, 3GPP TS 48.008 §3.2.1.1. More... | |
struct msgb * | gsm0808_create_ass_compl2 (uint8_t rr_cause, uint8_t chosen_channel, uint8_t encr_alg_id, uint8_t speech_mode, const struct sockaddr_storage *ss, const struct gsm0808_speech_codec *sc, const struct gsm0808_speech_codec_list *scl, enum gsm0808_lcls_status lcls_bss_status) |
Create BSSMAP Assignment Completed message as per 3GPP TS 48.008 §3.2.1.2. More... | |
struct msgb * | gsm0808_create_ass_compl (uint8_t rr_cause, uint8_t chosen_channel, uint8_t encr_alg_id, uint8_t speech_mode, const struct sockaddr_storage *ss, const struct gsm0808_speech_codec *sc, const struct gsm0808_speech_codec_list *scl) |
Create BSSMAP Assignment Completed message. More... | |
struct msgb * | gsm0808_create_assignment_completed (uint8_t rr_cause, uint8_t chosen_channel, uint8_t encr_alg_id, uint8_t speech_mode) |
Create BSSMAP Assignment Completed message. More... | |
struct msgb * | gsm0808_create_ass_fail (uint8_t cause, const uint8_t *rr_cause, const struct gsm0808_speech_codec_list *scl) |
Create BSSMAP Assignment Failure message. More... | |
struct msgb * | gsm0808_create_assignment_failure (uint8_t cause, uint8_t *rr_cause) |
Create BSSMAP Assignment Failure message. More... | |
struct msgb * | gsm0808_create_clear_rqst (uint8_t cause) |
Create BSSMAP Clear Request message. More... | |
struct msgb * | gsm0808_create_paging2 (const char *imsi, const uint32_t *tmsi, const struct gsm0808_cell_id_list2 *cil, const uint8_t *chan_needed) |
Create BSSMAP PAGING message. More... | |
struct msgb * | gsm0808_create_paging (const char *imsi, const uint32_t *tmsi, const struct gsm0808_cell_id_list *cil, const uint8_t *chan_needed) |
DEPRECATED: Use gsm0808_create_paging2 instead. More... | |
static uint8_t | put_old_bss_to_new_bss_information (struct msgb *msg, const struct gsm0808_old_bss_to_new_bss_info *i) |
struct msgb * | gsm0808_create_handover_required (const struct gsm0808_handover_required *params) |
Create BSSMAP HANDOVER REQUIRED message. More... | |
struct msgb * | gsm0808_create_handover_request_ack (const uint8_t *l3_info, uint8_t l3_info_len, uint8_t chosen_channel, uint8_t chosen_encr_alg, uint8_t chosen_speech_version) |
Create BSSMAP HANDOVER REQUEST ACKNOWLEDGE message, 3GPP TS 48.008 3.2.1.10. More... | |
struct msgb * | gsm0808_create_handover_detect () |
Create BSSMAP HANDOVER DETECT message, 3GPP TS 48.008 3.2.1.40. More... | |
struct msgb * | gsm0808_create_handover_complete (const struct gsm0808_handover_complete *params) |
Create BSSMAP HANDOVER COMPLETE message, 3GPP TS 48.008 3.2.1.12. More... | |
struct msgb * | gsm0808_create_handover_failure (const struct gsm0808_handover_failure *params) |
Create BSSMAP HANDOVER FAILURE message, 3GPP TS 48.008 3.2.1.16. More... | |
struct msgb * | gsm0808_create_handover_performed (const struct gsm0808_handover_performed *params) |
Create BSSMAP HANDOVER PERFORMED message, 3GPP TS 48.008 3.2.1.25. More... | |
void | gsm0808_prepend_dtap_header (struct msgb *msg, uint8_t link_id) |
Prepend a DTAP header to given Message Buffer. More... | |
struct msgb * | gsm0808_create_dtap (struct msgb *msg_l3, uint8_t link_id) |
Create BSSMAP DTAP message. More... | |
const struct tlv_definition * | gsm0808_att_tlvdef (void) |
const char * | gsm0808_bssmap_name (uint8_t msg_type) |
Return string name of BSSMAP Message Type. More... | |
const char * | gsm0808_bssap_name (uint8_t msg_type) |
Return string name of BSSAP Message Type. More... | |
const char * | gsm0808_cause_class_name (enum gsm0808_cause_class class) |
Return string name of BSSMAP Cause Class name. More... | |
const char * | gsm0808_cause_name (enum gsm0808_cause cause) |
Return string name of BSSMAP Cause name. More... | |
Variables | |
static const struct tlv_definition | bss_att_tlvdef |
static const struct value_string | gsm0808_msgt_names [] |
static const struct value_string | gsm0808_bssap_names [] |
const struct value_string | gsm0808_speech_codec_type_names [] |
const struct value_string | gsm0808_permitted_speech_names [] |
const struct value_string | gsm0808_chosen_enc_alg_names [] |
static const struct value_string | gsm0808_cause_names [] |
static const struct value_string | gsm0808_cause_class_names [] |
const struct value_string | gsm0808_lcls_config_names [] |
const struct value_string | gsm0808_lcls_control_names [] |
const struct value_string | gsm0808_lcls_status_names [] |
Helper functions regarding the TS 08.08 / 48.008 A interface, primarily message generation/encoding.