libosmogsm 1.10.0.57-8972
Osmocom GSM library
|
#include <osmocom/core/utils.h>
#include <osmocom/gsm/tlv.h>
#include <osmocom/gsm/protocol/gsm_29_118.h>
#include <osmocom/gsm/gsm29118.h>
#include <osmocom/gsm/apn.h>
#include <osmocom/gsm/gsm48.h>
Functions | |
struct msgb * | gsm29118_msgb_alloc (void) |
static int | msgb_sgsap_name_put (struct msgb *msg, enum sgsap_iei iei, const char *name) |
static void | msgb_sgsap_imsi_put (struct msgb *msg, const char *imsi) |
static void | msgb_sgsap_lai_put (struct msgb *msg, const struct osmo_location_area_id *lai) |
static struct msgb * | create_simple_msg (enum sgsap_msg_type msg_type, const char *imsi) |
struct msgb * | gsm29118_create_alert_req (const char *imsi) |
struct msgb * | gsm29118_create_dl_ud (const char *imsi, struct msgb *nas_msg) |
struct msgb * | gsm29118_create_eps_det_ack (const char *imsi) |
struct msgb * | gsm29118_create_imsi_det_ack (const char *imsi) |
struct msgb * | gsm29118_create_lu_ack (const char *imsi, const struct osmo_location_area_id *lai, const uint8_t *new_id, unsigned int new_id_len) |
8.9 SGsAP-LOCATION-UPDATE-ACCEPT. More... | |
struct msgb * | gsm29118_create_lu_rej (const char *imsi, uint8_t rej_cause, const struct osmo_location_area_id *lai) |
struct msgb * | gsm29118_create_mm_info_req (const char *imsi, const uint8_t *mm_info, uint8_t mm_info_len) |
struct msgb * | gsm29118_create_paging_req (struct gsm29118_paging_req *params) |
struct msgb * | gsm29118_create_reset_ack (struct gsm29118_reset_msg *params) |
struct msgb * | gsm29118_create_reset_ind (struct gsm29118_reset_msg *params) |
struct msgb * | gsm29118_create_status (const char *imsi, enum sgsap_sgs_cause cause, const struct msgb *err_msg) |
struct msgb * | gsm29118_create_release_req (const char *imsi, const uint8_t sgs_cause) |
struct msgb * | gsm29118_create_service_abort_req (const char *imsi) |
Variables | |
const struct value_string | sgsap_msg_type_names [] |
const struct value_string | sgsap_iei_names [] |
const struct value_string | sgsap_eps_lu_type_names [] |
const struct value_string | sgsap_ismi_det_eps_type_names [] |
const struct value_string | sgsap_ismi_det_noneps_type_names [] |
const struct value_string | sgsap_service_ind_names [] |
const struct value_string | sgsap_sgs_cause_names [] |
const struct value_string | sgsap_ue_emm_mode_names [] |
const struct tlv_definition | sgsap_ie_tlvdef |
|
static |
References gsm29118_msgb_alloc(), msg, msg_type, msgb_push_u8(), and msgb_sgsap_imsi_put().
Referenced by gsm29118_create_alert_req(), gsm29118_create_eps_det_ack(), gsm29118_create_imsi_det_ack(), and gsm29118_create_service_abort_req().
struct msgb * gsm29118_create_alert_req | ( | const char * | imsi | ) |
References create_simple_msg(), and SGSAP_MSGT_ALERT_REQ.
struct msgb * gsm29118_create_eps_det_ack | ( | const char * | imsi | ) |
References create_simple_msg(), and SGSAP_MSGT_EPS_DET_ACK.
struct msgb * gsm29118_create_imsi_det_ack | ( | const char * | imsi | ) |
References create_simple_msg(), and SGSAP_MSGT_IMSI_DET_ACK.
struct msgb * gsm29118_create_lu_ack | ( | const char * | imsi, |
const struct osmo_location_area_id * | lai, | ||
const uint8_t * | new_id, | ||
unsigned int | new_id_len | ||
) |
8.9 SGsAP-LOCATION-UPDATE-ACCEPT.
[in] | imsi | IMSI of the subscriber. |
[in] | lai | Location Area Identity (optional, may be NULL). |
[in] | new_id | value part of new Mobile Identity (optional, may be NULL). |
[in] | new_id_len | length of new_id in octets. |
References gsm29118_msgb_alloc(), lai, msg, msgb_push_u8(), msgb_sgsap_imsi_put(), msgb_sgsap_lai_put(), msgb_tlv_put(), SGSAP_IE_MOBILE_ID, and SGSAP_MSGT_LOC_UPD_ACK.
struct msgb * gsm29118_create_lu_rej | ( | const char * | imsi, |
uint8_t | rej_cause, | ||
const struct osmo_location_area_id * | lai | ||
) |
struct msgb * gsm29118_create_mm_info_req | ( | const char * | imsi, |
const uint8_t * | mm_info, | ||
uint8_t | mm_info_len | ||
) |
References gsm29118_msgb_alloc(), msg, msgb_push_u8(), msgb_sgsap_imsi_put(), msgb_tlv_put(), SGSAP_IE_MM_INFO, and SGSAP_MSGT_MM_INFO_REQ.
struct msgb * gsm29118_create_paging_req | ( | struct gsm29118_paging_req * | params | ) |
struct msgb * gsm29118_create_release_req | ( | const char * | imsi, |
const uint8_t | sgs_cause | ||
) |
struct msgb * gsm29118_create_reset_ack | ( | struct gsm29118_reset_msg * | params | ) |
struct msgb * gsm29118_create_reset_ind | ( | struct gsm29118_reset_msg * | params | ) |
struct msgb * gsm29118_create_service_abort_req | ( | const char * | imsi | ) |
References create_simple_msg(), and SGSAP_MSGT_SERVICE_ABORT_REQ.
struct msgb * gsm29118_create_status | ( | const char * | imsi, |
enum sgsap_sgs_cause | cause, | ||
const struct msgb * | err_msg | ||
) |
struct msgb * gsm29118_msgb_alloc | ( | void | ) |
References msgb_alloc_headroom().
Referenced by create_simple_msg(), gsm29118_create_dl_ud(), gsm29118_create_lu_ack(), gsm29118_create_lu_rej(), gsm29118_create_mm_info_req(), gsm29118_create_paging_req(), gsm29118_create_release_req(), gsm29118_create_reset_ack(), gsm29118_create_reset_ind(), and gsm29118_create_status().
|
static |
References gsm48_generate_mid_from_imsi(), len, msg, msgb_tlv_put(), and SGSAP_IE_IMSI.
Referenced by create_simple_msg(), gsm29118_create_dl_ud(), gsm29118_create_lu_ack(), gsm29118_create_lu_rej(), gsm29118_create_mm_info_req(), gsm29118_create_paging_req(), gsm29118_create_release_req(), and gsm29118_create_status().
|
static |
References gsm48_generate_lai2(), lai, msg, msgb_tlv_put(), and SGSAP_IE_LAI.
Referenced by gsm29118_create_lu_ack(), gsm29118_create_lu_rej(), and gsm29118_create_paging_req().
References APN_MAXLEN, iei, len, msg, msgb_tlv_put(), name, osmo_apn_from_str(), SGS_MME_NAME_LEN, and SGSAP_IE_MME_NAME.
Referenced by gsm29118_create_paging_req(), gsm29118_create_reset_ack(), and gsm29118_create_reset_ind().
const struct value_string sgsap_eps_lu_type_names[] |
Referenced by sgsap_eps_lu_type_name().
const struct tlv_definition sgsap_ie_tlvdef |
const struct value_string sgsap_iei_names[] |
Referenced by sgsap_iei_name().
const struct value_string sgsap_ismi_det_eps_type_names[] |
Referenced by sgsap_imsi_det_eps_type_name().
const struct value_string sgsap_ismi_det_noneps_type_names[] |
Referenced by sgsap_imsi_det_noneps_type_name().
const struct value_string sgsap_msg_type_names[] |
Referenced by sgsap_msg_type_name().
const struct value_string sgsap_service_ind_names[] |
Referenced by sgsap_service_ind_name().
const struct value_string sgsap_sgs_cause_names[] |
Referenced by sgsap_sgs_cause_name().
const struct value_string sgsap_ue_emm_mode_names[] |
Referenced by sgsap_ue_emm_mode_name().