libosmogsm  1.5.1
Osmocom GSM library
gsm29118.h
Go to the documentation of this file.
1 
3 /* (C) 2018 by sysmocom s.f.m.c. GmbH
4  * All Rights Reserved
5  *
6  * Author: Harald Welte, Philipp Maier
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 along
21  * with this program; if not, write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23  *
24  */
25 
26 #pragma once
27 
28 #include <osmocom/core/msgb.h>
29 #include <osmocom/gsm/gsm23003.h>
32 
37  uint8_t serv_ind;
38 
41 };
42 
49 };
50 
51 struct msgb *gsm29118_msgb_alloc(void);
52 struct msgb *gsm29118_create_alert_req(const char *imsi);
53 struct msgb *gsm29118_create_dl_ud(const char *imsi, struct msgb *nas_msg);
54 struct msgb *gsm29118_create_eps_det_ack(const char *imsi);
55 struct msgb *gsm29118_create_imsi_det_ack(const char *imsi);
56 struct msgb *gsm29118_create_lu_ack(const char *imsi, const struct osmo_location_area_id *lai, const uint8_t *new_id,
57  unsigned int new_id_len);
58 struct msgb *gsm29118_create_lu_rej(const char *imsi, uint8_t rej_cause, const struct osmo_location_area_id *lai);
59 struct msgb *gsm29118_create_mm_info_req(const char *imsi, const uint8_t *mm_info, uint8_t mm_info_len);
61 struct msgb *gsm29118_create_reset_ack(struct gsm29118_reset_msg *params);
62 struct msgb *gsm29118_create_reset_ind(struct gsm29118_reset_msg *params);
63 struct msgb *gsm29118_create_status(const char *imsi, enum sgsap_sgs_cause cause, const struct msgb *err_msg);
64 struct msgb *gsm29118_create_release_req(const char *imsi, const uint8_t sgs_cause);
65 struct msgb *gsm29118_create_service_abort_req(const char *imsi);
struct msgb * gsm29118_create_lu_rej(const char *imsi, uint8_t rej_cause, const struct osmo_location_area_id *lai)
Definition: gsm29118.c:307
struct msgb * gsm29118_create_reset_ind(struct gsm29118_reset_msg *params)
Definition: gsm29118.c:378
struct msgb * gsm29118_msgb_alloc(void)
Definition: gsm29118.c:189
struct msgb * gsm29118_create_service_abort_req(const char *imsi)
Definition: gsm29118.c:437
struct msgb * gsm29118_create_dl_ud(const char *imsi, struct msgb *nas_msg)
Definition: gsm29118.c:259
struct msgb * gsm29118_create_status(const char *imsi, enum sgsap_sgs_cause cause, const struct msgb *err_msg)
Definition: gsm29118.c:402
struct msgb * gsm29118_create_reset_ack(struct gsm29118_reset_msg *params)
Definition: gsm29118.c:356
struct msgb * gsm29118_create_paging_req(struct gsm29118_paging_req *params)
Definition: gsm29118.c:335
struct msgb * gsm29118_create_eps_det_ack(const char *imsi)
Definition: gsm29118.c:271
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.
Definition: gsm29118.c:290
struct msgb * gsm29118_create_mm_info_req(const char *imsi, const uint8_t *mm_info, uint8_t mm_info_len)
Definition: gsm29118.c:323
struct msgb * gsm29118_create_imsi_det_ack(const char *imsi)
Definition: gsm29118.c:279
struct msgb * gsm29118_create_alert_req(const char *imsi)
Definition: gsm29118.c:250
struct msgb * gsm29118_create_release_req(const char *imsi, const uint8_t sgs_cause)
Definition: gsm29118.c:424
GSM TS 04.08 definitions.
uint8_t cause
Definition: gsm_04_08.h:2
struct gsm48_loc_area_id lai
Definition: gsm_04_08.h:2
#define GSM48_MI_SIZE
Definition: gsm_04_08.h:2100
#define SGS_MME_NAME_LEN
Definition: gsm_29_118.h:178
#define SGS_VLR_NAME_MAXLEN
Definition: gsm_29_118.h:182
sgsap_sgs_cause
Definition: gsm_29_118.h:126
3GPP TS 3GPP TS 29.018 8.14 SGsAP-PAGING-REQUEST.
Definition: gsm29118.h:34
uint8_t serv_ind
Definition: gsm29118.h:37
bool lai_present
Definition: gsm29118.h:39
char imsi[GSM48_MI_SIZE]
Definition: gsm29118.h:35
char vlr_name[SGS_VLR_NAME_MAXLEN+1]
Definition: gsm29118.h:36
struct osmo_location_area_id lai
Definition: gsm29118.h:40
3GPP TS 3GPP TS 29.018 8.15 SGsAP-RESET-ACK and 8.16 SGsAP-RESET-INDICATION.
Definition: gsm29118.h:44
char mme_name[SGS_MME_NAME_LEN+1]
Definition: gsm29118.h:48
bool vlr_name_present
Definition: gsm29118.h:45
bool mme_name_present
Definition: gsm29118.h:47
char vlr_name[SGS_VLR_NAME_MAXLEN+1]
Definition: gsm29118.h:46
Definition: gsm23003.h:16