31#define GSMTAP_VERSION 0x02
33#define GSMTAP_TYPE_UM 0x01
34#define GSMTAP_TYPE_ABIS 0x02
35#define GSMTAP_TYPE_UM_BURST 0x03
36#define GSMTAP_TYPE_SIM 0x04
37#define GSMTAP_TYPE_TETRA_I1 0x05
38#define GSMTAP_TYPE_TETRA_I1_BURST 0x06
39#define GSMTAP_TYPE_WMX_BURST 0x07
40#define GSMTAP_TYPE_GB_LLC 0x08
41#define GSMTAP_TYPE_GB_SNDCP 0x09
42#define GSMTAP_TYPE_GMR1_UM 0x0a
43#define GSMTAP_TYPE_UMTS_RLC_MAC 0x0b
44#define GSMTAP_TYPE_UMTS_RRC 0x0c
45#define GSMTAP_TYPE_LTE_RRC 0x0d
46#define GSMTAP_TYPE_LTE_MAC 0x0e
47#define GSMTAP_TYPE_LTE_MAC_FRAMED 0x0f
48#define GSMTAP_TYPE_OSMOCORE_LOG 0x10
49#define GSMTAP_TYPE_QC_DIAG 0x11
50#define GSMTAP_TYPE_LTE_NAS 0x12
51#define GSMTAP_TYPE_E1T1 0x13
52#define GSMTAP_TYPE_GSM_RLP 0x14
57#define GSMTAP_BURST_UNKNOWN 0x00
58#define GSMTAP_BURST_FCCH 0x01
59#define GSMTAP_BURST_PARTIAL_SCH 0x02
60#define GSMTAP_BURST_SCH 0x03
61#define GSMTAP_BURST_CTS_SCH 0x04
62#define GSMTAP_BURST_COMPACT_SCH 0x05
63#define GSMTAP_BURST_NORMAL 0x06
64#define GSMTAP_BURST_DUMMY 0x07
65#define GSMTAP_BURST_ACCESS 0x08
66#define GSMTAP_BURST_NONE 0x09
68#define GSMTAP_BURST_CDMA_CODE 0x10
69#define GSMTAP_BURST_FCH 0x11
70#define GSMTAP_BURST_FFB 0x12
71#define GSMTAP_BURST_PDU 0x13
72#define GSMTAP_BURST_HACK 0x14
73#define GSMTAP_BURST_PHY_ATTRIBUTES 0x15
78#define GSMTAP_CHANNEL_UNKNOWN 0x00
79#define GSMTAP_CHANNEL_BCCH 0x01
80#define GSMTAP_CHANNEL_CCCH 0x02
81#define GSMTAP_CHANNEL_RACH 0x03
82#define GSMTAP_CHANNEL_AGCH 0x04
83#define GSMTAP_CHANNEL_PCH 0x05
84#define GSMTAP_CHANNEL_SDCCH 0x06
85#define GSMTAP_CHANNEL_SDCCH4 0x07
86#define GSMTAP_CHANNEL_SDCCH8 0x08
87#define GSMTAP_CHANNEL_FACCH_F 0x09
88#define GSMTAP_CHANNEL_FACCH_H 0x0a
89#define GSMTAP_CHANNEL_PACCH 0x0b
90#define GSMTAP_CHANNEL_CBCH52 0x0c
91#define GSMTAP_CHANNEL_PDTCH 0x0d
93#define GSMTAP_CHANNEL_PDCH GSMTAP_CHANNEL_PDTCH
94#define GSMTAP_CHANNEL_PTCCH 0x0e
95#define GSMTAP_CHANNEL_CBCH51 0x0f
96#define GSMTAP_CHANNEL_VOICE_F 0x10
97#define GSMTAP_CHANNEL_VOICE_H 0x11
98#define GSMTAP_CHANNEL_TCH_F GSMTAP_CHANNEL_FACCH_F
99#define GSMTAP_CHANNEL_TCH_H GSMTAP_CHANNEL_FACCH_H
102#define GSMTAP_GPRS_CS_BASE 0x20
103#define GSMTAP_GPRS_CS(N) (GSMTAP_GPRS_CS_BASE + N)
105#define GSMTAP_GPRS_MCS_BASE 0x30
106#define GSMTAP_GPRS_MCS(N) (GSMTAP_GPRS_MCS_BASE + N)
108#define GSMTAP_CHANNEL_ACCH 0x80
113#define GSMTAP_SIM_APDU 0x00
114#define GSMTAP_SIM_ATR 0x01
115#define GSMTAP_SIM_PPS_REQ 0x02
116#define GSMTAP_SIM_PPS_RSP 0x03
117#define GSMTAP_SIM_TPDU_HDR 0x04
118#define GSMTAP_SIM_TPDU_CMD 0x05
119#define GSMTAP_SIM_TPDU_RSP 0x06
120#define GSMTAP_SIM_TPDU_SW 0x07
125#define GSMTAP_TETRA_BSCH 0x01
126#define GSMTAP_TETRA_AACH 0x02
127#define GSMTAP_TETRA_SCH_HU 0x03
128#define GSMTAP_TETRA_SCH_HD 0x04
129#define GSMTAP_TETRA_SCH_F 0x05
130#define GSMTAP_TETRA_BNCH 0x06
131#define GSMTAP_TETRA_STCH 0x07
132#define GSMTAP_TETRA_TCH_F 0x08
133#define GSMTAP_TETRA_DMO_SCH_S 0x09
134#define GSMTAP_TETRA_DMO_SCH_H 0x0a
135#define GSMTAP_TETRA_DMO_SCH_F 0x0b
136#define GSMTAP_TETRA_DMO_STCH 0x0c
137#define GSMTAP_TETRA_DMO_TCH 0x0d
142#define GSMTAP_GMR1_UNKNOWN 0x00
143#define GSMTAP_GMR1_BCCH 0x01
144#define GSMTAP_GMR1_CCCH 0x02
145#define GSMTAP_GMR1_PCH 0x03
146#define GSMTAP_GMR1_AGCH 0x04
147#define GSMTAP_GMR1_BACH 0x05
148#define GSMTAP_GMR1_RACH 0x06
149#define GSMTAP_GMR1_CBCH 0x07
150#define GSMTAP_GMR1_SDCCH 0x08
151#define GSMTAP_GMR1_TACCH 0x09
152#define GSMTAP_GMR1_GBCH 0x0a
154#define GSMTAP_GMR1_SACCH 0x01
155#define GSMTAP_GMR1_FACCH 0x02
156#define GSMTAP_GMR1_DKAB 0x03
157#define GSMTAP_GMR1_TCH3 0x10
158#define GSMTAP_GMR1_TCH6 0x14
159#define GSMTAP_GMR1_TCH9 0x18
163#define GSMTAP_UMTS_CH_PCCH 0x01
164#define GSMTAP_UMTS_CH_CCCH 0x02
165#define GSMTAP_UMTS_CH_DCCH 0x03
168#define GSMTAP_LTE_CH_BCCH 0x01
169#define GSMTAP_LTE_CH_CCCH 0x02
170#define GSMTAP_LTE_CH_DCCH 0x03
171#define GSMTAP_LTE_CH_MCCH 0x04
172#define GSMTAP_LTE_CH_PCCH 0x05
173#define GSMTAP_LTE_CH_DTCH 0x06
174#define GSMTAP_LTE_CH_MTCH 0x07
178#define GSMTAP_E1T1_LAPD 0x01
179#define GSMTAP_E1T1_FR 0x02
180#define GSMTAP_E1T1_RAW 0x03
181#define GSMTAP_E1T1_TRAU16 0x04
182#define GSMTAP_E1T1_TRAU8 0x05
183#define GSMTAP_E1T1_V5EF 0x06
184#define GSMTAP_E1T1_X75 0x07
185#define GSMTAP_E1T1_V120 0x08
186#define GSMTAP_E1T1_V110 0x09
187#define GSMTAP_E1T1_H221 0x0a
188#define GSMTAP_E1T1_PPP 0x0b
191#define GSMTAP_ARFCN_F_PCS 0x8000
192#define GSMTAP_ARFCN_F_UPLINK 0x4000
193#define GSMTAP_ARFCN_MASK 0x3fff
196#define GSMTAP_UDP_PORT 4729
gsmtap_um_voice_type
First byte of type==GSMTAP_TYPE_UM sub_type==GSMTAP_CHANNEL_VOICE payload.
Definition: gsmtap.h:343
@ GSMTAP_UM_VOICE_AMR_RATSCCH_DATA
Definition: gsmtap.h:362
@ GSMTAP_UM_VOICE_AMR_SID_UPDATE_INH
Definition: gsmtap.h:357
@ GSMTAP_UM_VOICE_AMR_ONSET
Definition: gsmtap.h:355
@ GSMTAP_UM_VOICE_EFR
31 payload bytes; Reference is RFC3551 Section 4.5.9 + ETSI TS 101 318
Definition: gsmtap.h:350
@ GSMTAP_UM_VOICE_AMR
1 byte TOC + 5..31 bytes = 6..32 bytes payload; RFC4867 octet-aligned
Definition: gsmtap.h:352
@ GSMTAP_UM_VOICE_AMR_SID_FIRST_INH
Definition: gsmtap.h:360
@ GSMTAP_UM_VOICE_AMR_RATSCCH_MARKER
Definition: gsmtap.h:361
@ GSMTAP_UM_VOICE_AMR_RATSCCH
Definition: gsmtap.h:356
@ GSMTAP_UM_VOICE_AMR_SID_FIRST_P2
Definition: gsmtap.h:359
@ GSMTAP_UM_VOICE_AMR_SID_FIRST_P1
Definition: gsmtap.h:358
@ GSMTAP_UM_VOICE_AMR_SID_BAD
Definition: gsmtap.h:354
@ GSMTAP_UM_VOICE_HR
1 byte TOC + 112 bits (14 octets) = 15 octets payload; Reference is RFC5993 Section 5....
Definition: gsmtap.h:346
@ GSMTAP_UM_VOICE_FR
33 payload bytes; Reference is RFC3551 Section 4.5.8.1
Definition: gsmtap.h:348
@ GSMTAP_LTE_RRC_SUB_MCCH_Message
Definition: gsmtap.h:275
@ GSMTAP_LTE_RRC_SUB_BCCH_BCH_Message_TDD_NB
Definition: gsmtap.h:287
@ GSMTAP_LTE_RRC_SUB_BCCH_DL_SCH_Message_BR
Definition: gsmtap.h:277
@ GSMTAP_LTE_RRC_SUB_DL_CCCH_Message
Definition: gsmtap.h:268
@ GSMTAP_LTE_RRC_SUB_DL_CCCH_Message_NB
Definition: gsmtap.h:282
@ GSMTAP_LTE_RRC_SUB_SBCCH_SL_BCH_Message
Definition: gsmtap.h:280
@ GSMTAP_LTE_RRC_SUB_BCCH_DL_SCH_Message_NB
Definition: gsmtap.h:288
@ GSMTAP_LTE_RRC_SUB_DL_DCCH_Message
Definition: gsmtap.h:269
@ GSMTAP_LTE_RRC_SUB_SBCCH_SL_BCH_Message_V2X
Definition: gsmtap.h:281
@ GSMTAP_LTE_RRC_SUB_MAX
Definition: gsmtap.h:292
@ GSMTAP_LTE_RRC_SUB_BCCH_BCH_Message_MBMS
Definition: gsmtap.h:276
@ GSMTAP_LTE_RRC_SUB_UL_CCCH_Message_NB
Definition: gsmtap.h:284
@ GSMTAP_LTE_RRC_SUB_SC_MCCH_Message
Definition: gsmtap.h:279
@ GSMTAP_LTE_RRC_SUB_UL_CCCH_Message
Definition: gsmtap.h:270
@ GSMTAP_LTE_RRC_SUB_BCCH_DL_SCH_Message_MBMS
Definition: gsmtap.h:278
@ GSMTAP_LTE_RRC_SUB_BCCH_DL_SCH_Message
Definition: gsmtap.h:273
@ GSMTAP_LTE_RRC_SUB_UL_DCCH_Message_NB
Definition: gsmtap.h:285
@ GSMTAP_LTE_RRC_SUB_UL_DCCH_Message
Definition: gsmtap.h:271
@ GSMTAP_LTE_RRC_SUB_PCCH_Message
Definition: gsmtap.h:274
@ GSMTAP_LTE_RRC_SUB_DL_DCCH_Message_NB
Definition: gsmtap.h:283
@ GSMTAP_LTE_RRC_SUB_PCCH_Message_NB
Definition: gsmtap.h:289
@ GSMTAP_LTE_RRC_SUB_BCCH_BCH_Message_NB
Definition: gsmtap.h:286
@ GSMTAP_LTE_RRC_SUB_SC_MCCH_Message_NB
Definition: gsmtap.h:290
@ GSMTAP_LTE_RRC_SUB_BCCH_BCH_Message
Definition: gsmtap.h:272
@ GSMTAP_LTE_NAS_SUB_MAX
Definition: gsmtap.h:300
@ GSMTAP_LTE_NAS_SEC_HEADER
Definition: gsmtap.h:298
@ GSMTAP_LTE_NAS_PLAIN
Definition: gsmtap.h:297
enum gsmtap_um_voice_type __attribute__
@ GSMTAP_RRC_SUB_SysInfoTypeSB1
Definition: gsmtap.h:258
@ GSMTAP_RRC_SUB_SysInfoType18
Definition: gsmtap.h:253
@ GSMTAP_RRC_SUB_SysInfoType13_2
Definition: gsmtap.h:233
@ GSMTAP_RRC_SUB_System_Information_Container
Definition: gsmtap.h:214
@ GSMTAP_RRC_SUB_SysInfoType21
Definition: gsmtap.h:256
@ GSMTAP_RRC_SUB_SysInfoType11bis
Definition: gsmtap.h:229
@ GSMTAP_RRC_SUB_SysInfoType4
Definition: gsmtap.h:220
@ GSMTAP_RRC_SUB_SysInfoType15_7
Definition: gsmtap.h:249
@ GSMTAP_RRC_SUB_SysInfoType11
Definition: gsmtap.h:228
@ GSMTAP_RRC_SUB_SysInfoType3
Definition: gsmtap.h:219
@ GSMTAP_RRC_SUB_UL_DCCH_Message
Definition: gsmtap.h:201
@ GSMTAP_RRC_SUB_SysInfoType16
Definition: gsmtap.h:251
@ GSMTAP_RRC_SUB_MasterInformationBlock
Definition: gsmtap.h:216
@ GSMTAP_RRC_SUB_InterRATHandoverInfo
Definition: gsmtap.h:212
@ GSMTAP_RRC_SUB_SystemInformation_BCH
Definition: gsmtap.h:213
@ GSMTAP_RRC_SUB_PCCH_Message
Definition: gsmtap.h:204
@ GSMTAP_RRC_SUB_SysInfoType14
Definition: gsmtap.h:236
@ GSMTAP_RRC_SUB_MAX
Definition: gsmtap.h:263
@ GSMTAP_RRC_SUB_UL_CCCH_Message
Definition: gsmtap.h:203
@ GSMTAP_RRC_SUB_SysInfoType2
Definition: gsmtap.h:218
@ GSMTAP_RRC_SUB_SysInfoType15_2
Definition: gsmtap.h:241
@ GSMTAP_RRC_SUB_SysInfoType5bis
Definition: gsmtap.h:222
@ GSMTAP_RRC_SUB_SysInfoType15_6
Definition: gsmtap.h:248
@ GSMTAP_RRC_SUB_BCCH_BCH_Message
Definition: gsmtap.h:208
@ GSMTAP_RRC_SUB_TargetRNC_ToSourceRNC_Container
Definition: gsmtap.h:261
@ GSMTAP_RRC_SUB_SysInfoType13
Definition: gsmtap.h:231
@ GSMTAP_RRC_SUB_SysInfoType15_4
Definition: gsmtap.h:246
@ GSMTAP_RRC_SUB_DL_SHCCH_Message
Definition: gsmtap.h:205
@ GSMTAP_RRC_SUB_SysInfoType5
Definition: gsmtap.h:221
@ GSMTAP_RRC_SUB_SysInfoType7
Definition: gsmtap.h:224
@ GSMTAP_RRC_SUB_SysInfoType15bis
Definition: gsmtap.h:238
@ GSMTAP_RRC_SUB_SysInfoType13_3
Definition: gsmtap.h:234
@ GSMTAP_RRC_SUB_SysInfoType15_1bis
Definition: gsmtap.h:240
@ GSMTAP_RRC_SUB_SysInfoType15_2bis
Definition: gsmtap.h:242
@ GSMTAP_RRC_SUB_MCCH_Message
Definition: gsmtap.h:209
@ GSMTAP_RRC_SUB_SysInfoType15_2ter
Definition: gsmtap.h:243
@ GSMTAP_RRC_SUB_UE_RadioAccessCapabilityInfo
Definition: gsmtap.h:215
@ GSMTAP_RRC_SUB_SysInfoType10
Definition: gsmtap.h:227
@ GSMTAP_RRC_SUB_SysInfoType13_4
Definition: gsmtap.h:235
@ GSMTAP_RRC_SUB_SysInfoType19
Definition: gsmtap.h:254
@ GSMTAP_RRC_SUB_SysInfoType17
Definition: gsmtap.h:252
@ GSMTAP_RRC_SUB_SysInfoType1
Definition: gsmtap.h:217
@ GSMTAP_RRC_SUB_ToTargetRNC_Container
Definition: gsmtap.h:260
@ GSMTAP_RRC_SUB_DL_CCCH_Message
Definition: gsmtap.h:202
@ GSMTAP_RRC_SUB_SysInfoType22
Definition: gsmtap.h:257
@ GSMTAP_RRC_SUB_DL_DCCH_Message
Definition: gsmtap.h:200
@ GSMTAP_RRC_SUB_SysInfoType15_3
Definition: gsmtap.h:244
@ GSMTAP_RRC_SUB_SysInfoType15_1
Definition: gsmtap.h:239
@ GSMTAP_RRC_SUB_SysInfoType15_5
Definition: gsmtap.h:247
@ GSMTAP_RRC_SUB_SysInfoType12
Definition: gsmtap.h:230
@ GSMTAP_RRC_SUB_HandoverToUTRANCommand
Definition: gsmtap.h:211
@ GSMTAP_RRC_SUB_SysInfoType15
Definition: gsmtap.h:237
@ GSMTAP_RRC_SUB_SysInfoType20
Definition: gsmtap.h:255
@ GSMTAP_RRC_SUB_SysInfoType6
Definition: gsmtap.h:223
@ GSMTAP_RRC_SUB_SysInfoType15_8
Definition: gsmtap.h:250
@ GSMTAP_RRC_SUB_SysInfoType15_3bis
Definition: gsmtap.h:245
@ GSMTAP_RRC_SUB_SysInfoTypeSB2
Definition: gsmtap.h:259
@ GSMTAP_RRC_SUB_SysInfoType9
Definition: gsmtap.h:226
@ GSMTAP_RRC_SUB_BCCH_FACH_Message
Definition: gsmtap.h:207
@ GSMTAP_RRC_SUB_SysInfoType13_1
Definition: gsmtap.h:232
@ GSMTAP_RRC_SUB_UL_SHCCH_Message
Definition: gsmtap.h:206
@ GSMTAP_RRC_SUB_MSCH_Message
Definition: gsmtap.h:210
@ GSMTAP_RRC_SUB_SysInfoType8
Definition: gsmtap.h:225
Structure of the GSMTAP pseudo-header.
Definition: gsmtap.h:305
int8_t signal_dbm
signal level in dBm
Definition: gsmtap.h:312
uint32_t frame_number
GSM Frame Number (FN)
Definition: gsmtap.h:315
int8_t snr_db
signal/noise ratio in dB
Definition: gsmtap.h:313
uint8_t timeslot
timeslot (0..7 on Um)
Definition: gsmtap.h:309
uint8_t version
version, set to 0x01 currently
Definition: gsmtap.h:306
uint8_t res
reserved for future use (RFU)
Definition: gsmtap.h:320
uint8_t sub_slot
sub-slot within timeslot
Definition: gsmtap.h:319
uint8_t type
see GSMTAP_TYPE_*
Definition: gsmtap.h:308
uint8_t hdr_len
length in number of 32bit words
Definition: gsmtap.h:307
uint8_t antenna_nr
Antenna Number.
Definition: gsmtap.h:318
uint16_t arfcn
ARFCN (frequency)
Definition: gsmtap.h:311
uint8_t sub_type
Type of burst/channel, see above.
Definition: gsmtap.h:317
Structure of the GSMTAP libosmocore logging header.
Definition: gsmtap.h:325
uint32_t pid
process ID
Definition: gsmtap.h:331
uint32_t line_nr
line number
Definition: gsmtap.h:338
uint8_t _pad[3]
Definition: gsmtap.h:333
char subsys[16]
logging sub-system
Definition: gsmtap.h:335
struct gsmtap_osmocore_log_hdr::@4 ts
char name[32]
source file name
Definition: gsmtap.h:337
uint32_t usec
Definition: gsmtap.h:328
uint32_t sec
Definition: gsmtap.h:327
char proc_name[16]
name of process
Definition: gsmtap.h:330
uint8_t level
logging level
Definition: gsmtap.h:332
struct gsmtap_osmocore_log_hdr::@5 src_file