libosmogsm  1.7.0.8-0578c
Osmocom GSM library
gsm_48_049.h
Go to the documentation of this file.
1 #pragma once
2 #include <stdint.h>
3 #include <osmocom/core/utils.h>
4 
5 /* CBSP is an ETSI/3GPP standard protocol used between CBC (Cell
6  * Brodadcast Centre) and BSC (Base Station Controller) in 2G/GSM/GERAN
7  * networks. It is specified in 3GPP TS 48.049.
8  *
9  * (C) 2019 by Harald Welte <laforge@gnumonks.org>
10  * All rights reserved.
11  *
12  * SPDX-License-Identifier: GPL-2.0+
13  *
14  * Released under the terms of the GNU General Public License, Version 2 or
15  * (at your option) any later version.
16  */
17 
18 /* 5.2 TCP/IP */
19 #define CBSP_TCP_PORT 48049
20 
21 /* 8.2.1 Information Element Identifiers */
22 enum cbsp_iei {
34  CBSP_IEI_DCS = 0x0c,
47 };
48 
49 /* 8.2.2 Message Type */
74 };
75 
76 /* 8.2.7 Category */
81 };
82 
83 /* Cell ID Discriminator (8.2.11, ...) */
87  CBSP_CIDD_CI = 0x2,
91 };
92 
93 /* 8.2.13 Cause */
111 };
112 
113 /* 8.2.20 Chanel Indicator */
117 };
118 
119 /* not explicitly specified, but every message starts with those mandatory elements */
120 struct cbsp_header {
121  uint8_t msg_type;
122  uint8_t len[3]; /* excluding the header */
123 } __attribute__((packed));
124 
125 extern const struct value_string cbsp_msg_type_names[];
126 extern const struct value_string cbsp_iei_names[];
127 extern const struct value_string cbsp_category_names[];
128 extern const struct tlv_definition cbsp_att_tlvdef;
Definition: gsm_48_049.h:102
Definition: gsm_48_049.h:27
Definition: gsm_48_049.h:28
Definition: gsm_48_049.h:87
Definition: gsm_48_049.h:26
Definition: gsm_48_049.h:86
Definition: gsm_48_049.h:42
uint8_t msg_type
Definition: gsm_48_049.h:121
Definition: gsm_48_049.h:56
Definition: gsm_48_049.h:71
Definition: gsm_48_049.h:39
Definition: gsm_48_049.h:34
const struct value_string cbsp_category_names[]
Definition: gsm48049.c:77
Definition: gsm_48_049.h:105
Definition: gsm_48_049.h:29
Definition: gsm_48_049.h:79
Definition: gsm_48_049.h:43
Definition: gsm_48_049.h:80
Definition: gsm_48_049.h:88
Definition: gsm_48_049.h:40
Definition: gsm_48_049.h:72
Definition: gsm_48_049.h:89
Definition: gsm_48_049.h:60
Definition: gsm_48_049.h:97
Definition: gsm_48_049.h:59
Definition: gsm_48_049.h:96
Definition: gsm_48_049.h:69
Definition: gsm_48_049.h:85
Definition: gsm_48_049.h:64
const struct value_string cbsp_iei_names[]
Definition: gsm48049.c:49
Definition: gsm_48_049.h:57
cbsp_msg_type
Definition: gsm_48_049.h:50
Definition: gsm_48_049.h:45
const struct value_string cbsp_msg_type_names[]
Definition: gsm48049.c:22
Definition: gsm_48_049.h:70
Definition: gsm_48_049.h:98
Definition: gsm_48_049.h:120
Definition: gsm_48_049.h:24
Definition: gsm_48_049.h:101
Definition: gsm_48_049.h:41
Definition: gsm_48_049.h:73
Definition: gsm_48_049.h:53
Definition: gsm_48_049.h:78
enum cbsp_iei __attribute__
Definition: gsm_48_049.h:108
cbsp_iei
Definition: gsm_48_049.h:22
Definition: gsm_48_049.h:95
Definition: gsm_48_049.h:115
cbsp_category
Definition: gsm_48_049.h:77
Definition: gsm_48_049.h:31
Definition: gsm_48_049.h:44
Definition: gsm_48_049.h:110
Definition: gsm_48_049.h:63
Definition: gsm_48_049.h:62
Definition: gsm_48_049.h:38
Definition: gsm_48_049.h:30
cbsp_cell_id_cause
Definition: gsm_48_049.h:94
const struct tlv_definition cbsp_att_tlvdef
Definition: gsm48049.c:84
Definition: gsm_48_049.h:25
Definition: gsm_48_049.h:107
Definition: gsm_48_049.h:52
uint8_t len[3]
Definition: gsm_48_049.h:122
Definition: gsm_48_049.h:109
Definition: gsm_48_049.h:37
Definition: gsm_48_049.h:54
Definition: gsm_48_049.h:36
Definition: gsm_48_049.h:90
Definition: gsm_48_049.h:66
Definition: gsm_48_049.h:58
cbsp_channel_ind
Definition: gsm_48_049.h:114
Definition: gsm_48_049.h:33
Definition: gsm_48_049.h:23
Definition: gsm_48_049.h:103
Definition: gsm_48_049.h:35
Definition: gsm_48_049.h:51
Definition: gsm_48_049.h:104
Definition of All 256 IE / TLV.
Definition: tlv.h:517
Definition: gsm_48_049.h:61
Definition: gsm_48_049.h:32
Definition: gsm_48_049.h:46
Definition: gsm_48_049.h:55
Definition: gsm_48_049.h:100
Definition: gsm_48_049.h:116
Definition: gsm_48_049.h:67
Definition: gsm_48_049.h:99
Definition: gsm_48_049.h:65
Definition: gsm_48_049.h:106
Definition: gsm_48_049.h:68
cbsp_cell_id_disc
Definition: gsm_48_049.h:84