blob: b44a07ebeff1ece553ee2c4de6a8269c06615681 [file] [log] [blame]
Neels Hofmeyrc6848f42020-09-18 18:00:50 +02001/*! \defgroup bssmap_le 3GPP TS 49.031 BSSMAP-LE.
2 * @{
3 * \file gsm_49_031.h
4 */
5/*
6 * (C) 2020 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
7 * All Rights Reserved
8 *
9 * Author: Neels Hofmeyr <neels@hofmeyr.de>
10 *
11 * SPDX-License-Identifier: GPL-2.0+
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, write to the Free Software Foundation, Inc.,
25 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 *
27 */
28#pragma once
29
30#include <stdint.h>
31#include <stdbool.h>
32
33/*! 3GPP TS 49.031 10.13 LCS Cause, also in 3GPP TS 48.008 3.2.2.66, which simply refers to the former. */
34enum lcs_cause {
35 LCS_CAUSE_UNSPECIFIED = 0,
36 LCS_CAUSE_SYSTEM_FAILURE = 1,
37 LCS_CAUSE_PROTOCOL_ERROR = 2,
38 LCS_CAUSE_DATA_MISSING_IN_REQ = 3,
39 LCS_CAUSE_UNEXP_DATA_IN_REQ = 4,
40 LCS_CAUSE_POS_METH_FAILURE = 5,
41 LCS_CAUSE_TGT_MS_UNREACHABLE = 6,
42 LCS_CAUSE_REQUEST_ABORTED = 7,
43 LCS_CAUSE_FACILITY_NOTSUPP = 8,
44 LCS_CAUSE_INTER_BSC_HO = 9,
45 LCS_CAUSE_INTRA_BSC_HO = 10,
46 LCS_CAUSE_CONGESTION = 11,
47 LCS_CAUSE_INTER_NSE_CHG = 12,
48 LCS_CAUSE_RA_UPDAT = 13,
49 LCS_CAUSE_PTMSI_REALLOC = 14,
50 LCS_CAUSE_GPRS_SUSPENSION = 15,
51};
52
53/*! 3GPP TS 49.031 10.13 LCS Cause, also in 3GPP TS 48.008 3.2.2.66, which simply refers to the former. */
54struct lcs_cause_ie {
55 bool present;
56 enum lcs_cause cause_val;
57 bool diag_val_present;
58 uint8_t diag_val;
59};
60
61/*! @} */