2 * Routines for packet dissection of GSM A-bis OML (3GPP TS 12.21)
3 * Copyright 2009-2011 by Harald Welte <laforge@gnumonks.org>
4 * Copyright 2009 by Holger Hans Peter Freyther <zecke@selfish.org>
5 * based on A-bis OML code in OpenBSC
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * SPDX-License-Identifier: GPL-2.0-or-later
16 #include <epan/packet.h>
17 #include <epan/expert.h>
18 #include <epan/lapd_sapi.h>
19 #include <epan/prefs.h>
20 #include <epan/unit_strings.h>
22 #include "packet-gsm_a_common.h"
24 void proto_register_abis_oml(void);
25 void proto_reg_handoff_abis_oml(void);
27 /* From openbsc/include/openbsc/abis_nm.h */
29 #define ABIS_OM_MDISC_FOM 0x80
30 #define ABIS_OM_MDISC_MMI 0x40
31 #define ABIS_OM_MDISC_TRAU 0x20
32 #define ABIS_OM_MDISC_MANUF 0x10
33 #define ABIS_OM_PLACEMENT_ONLY 0x80
34 #define ABIS_OM_PLACEMENT_FIRST 0x40
35 #define ABIS_OM_PLACEMENT_MIDDLE 0x20
36 #define ABIS_OM_PLACEMENT_LAST 0x10
38 /* Section 9.1: Message Types */
39 enum abis_nm_msgtype
{
40 /* SW Download Management Messages */
41 NM_MT_LOAD_INIT
= 0x01,
50 NM_MT_SW_ACT_REQ
, /* BTS->BSC */
52 NM_MT_SW_ACT_REQ_NACK
,
53 NM_MT_ACTIVATE_SW
, /* BSC->BTS */
54 NM_MT_ACTIVATE_SW_ACK
,
55 NM_MT_ACTIVATE_SW_NACK
,
56 NM_MT_SW_ACTIVATED_REP
, /* 0x10 */
57 /* A-bis Interface Management Messages */
58 NM_MT_ESTABLISH_TEI
= 0x21,
59 NM_MT_ESTABLISH_TEI_ACK
,
60 NM_MT_ESTABLISH_TEI_NACK
,
62 NM_MT_CONN_TERR_SIGN_ACK
,
63 NM_MT_CONN_TERR_SIGN_NACK
,
65 NM_MT_DISC_TERR_SIGN_ACK
,
66 NM_MT_DISC_TERR_SIGN_NACK
,
68 NM_MT_CONN_TERR_TRAF_ACK
,
69 NM_MT_CONN_TERR_TRAF_NACK
,
71 NM_MT_DISC_TERR_TRAF_ACK
,
72 NM_MT_DISC_TERR_TRAF_NACK
,
73 /* Transmission Management Messages */
74 NM_MT_CONN_MDROP_LINK
= 0x31,
75 NM_MT_CONN_MDROP_LINK_ACK
,
76 NM_MT_CONN_MDROP_LINK_NACK
,
77 NM_MT_DISC_MDROP_LINK
,
78 NM_MT_DISC_MDROP_LINK_ACK
,
79 NM_MT_DISC_MDROP_LINK_NACK
,
80 /* Air Interface Management Messages */
81 NM_MT_SET_BTS_ATTR
= 0x41,
82 NM_MT_SET_BTS_ATTR_ACK
,
83 NM_MT_SET_BTS_ATTR_NACK
,
85 NM_MT_SET_RADIO_ATTR_ACK
,
86 NM_MT_SET_RADIO_ATTR_NACK
,
88 NM_MT_SET_CHAN_ATTR_ACK
,
89 NM_MT_SET_CHAN_ATTR_NACK
,
90 /* Test Management Messages */
91 NM_MT_PERF_TEST
= 0x51,
96 NM_MT_SEND_TEST_REP_ACK
,
97 NM_MT_SEND_TEST_REP_NACK
,
100 NM_MT_STOP_TEST_NACK
,
101 /* State Management and Event Report Messages */
102 NM_MT_STATECHG_EVENT_REP
= 0x61,
103 NM_MT_FAILURE_EVENT_REP
,
104 NM_MT_STOP_EVENT_REP
,
105 NM_MT_STOP_EVENT_REP_ACK
,
106 NM_MT_STOP_EVENT_REP_NACK
,
107 NM_MT_REST_EVENT_REP
,
108 NM_MT_REST_EVENT_REP_ACK
,
109 NM_MT_REST_EVENT_REP_NACK
,
111 NM_MT_CHG_ADM_STATE_ACK
,
112 NM_MT_CHG_ADM_STATE_NACK
,
113 NM_MT_CHG_ADM_STATE_REQ
,
114 NM_MT_CHG_ADM_STATE_REQ_ACK
,
115 NM_MT_CHG_ADM_STATE_REQ_NACK
,
116 NM_MT_REP_OUTST_ALARMS
= 0x93,
117 NM_MT_REP_OUTST_ALARMS_ACK
,
118 NM_MT_REP_OUTST_ALARMS_NACK
,
119 /* Equipment Management Messages */
120 NM_MT_CHANGEOVER
= 0x71,
121 NM_MT_CHANGEOVER_ACK
,
122 NM_MT_CHANGEOVER_NACK
,
129 NM_MT_SET_SITE_OUT
, /* BS11: get alarm ?!? */
130 NM_MT_SET_SITE_OUT_ACK
,
131 NM_MT_SET_SITE_OUT_NACK
,
132 NM_MT_CHG_HW_CONF
= 0x90,
133 NM_MT_CHG_HW_CONF_ACK
,
134 NM_MT_CHG_HW_CONF_NACK
,
135 /* Measurement Management Messages */
136 NM_MT_MEAS_RES_REQ
= 0x8a,
141 NM_MT_GET_ATTR
= 0x81,
144 NM_MT_SET_ALARM_THRES
,
145 NM_MT_SET_ALARM_THRES_ACK
,
146 NM_MT_SET_ALARM_THRES_NACK
,
148 NM_MT_IPACC_RESTART
= 0x87,
149 NM_MT_IPACC_RESTART_ACK
152 enum abis_nm_msgtype_bs11
{
153 NM_MT_BS11_RESET_RESOURCE
= 0x74,
155 NM_MT_BS11_BEGIN_DB_TX
= 0xa3,
156 NM_MT_BS11_BEGIN_DB_TX_ACK
,
157 NM_MT_BS11_BEGIN_DB_TX_NACK
,
158 NM_MT_BS11_END_DB_TX
= 0xa6,
159 NM_MT_BS11_END_DB_TX_ACK
,
160 NM_MT_BS11_END_DB_TX_NACK
,
161 NM_MT_BS11_CREATE_OBJ
= 0xa9,
162 NM_MT_BS11_CREATE_OBJ_ACK
,
163 NM_MT_BS11_CREATE_OBJ_NACK
,
164 NM_MT_BS11_DELETE_OBJ
= 0xac,
165 NM_MT_BS11_DELETE_OBJ_ACK
,
166 NM_MT_BS11_DELETE_OBJ_NACK
,
168 NM_MT_BS11_SET_ATTR
= 0xd0,
169 NM_MT_BS11_SET_ATTR_ACK
,
170 NM_MT_BS11_SET_ATTR_NACK
,
171 NM_MT_BS11_LMT_SESSION
= 0xdc,
173 NM_MT_BS11_GET_STATE
= 0xe3,
174 NM_MT_BS11_GET_STATE_ACK
,
175 NM_MT_BS11_LMT_LOGON
= 0xe5,
176 NM_MT_BS11_LMT_LOGON_ACK
,
177 NM_MT_BS11_RESTART
= 0xe7,
178 NM_MT_BS11_RESTART_ACK
,
179 NM_MT_BS11_DISCONNECT
= 0xe9,
180 NM_MT_BS11_DISCONNECT_ACK
,
181 NM_MT_BS11_LMT_LOGOFF
= 0xec,
182 NM_MT_BS11_LMT_LOGOFF_ACK
,
183 NM_MT_BS11_RECONNECT
= 0xf1,
184 NM_MT_BS11_RECONNECT_ACK
187 enum abis_nm_msgtype_ipacc
{
188 NM_MT_IPACC_RSL_CONNECT
= 0xe0,
189 NM_MT_IPACC_RSL_CONNECT_ACK
,
190 NM_MT_IPACC_RSL_CONNECT_NACK
,
191 NM_MT_IPACC_RSL_DISCONNECT
= 0xe3,
192 NM_MT_IPACC_RSL_DISCONNECT_ACK
,
193 NM_MT_IPACC_RSL_DISCONNECT_NACK
,
194 NM_MT_IPACC_CONN_TRAF
= 0xe6,
195 NM_MT_IPACC_CONN_TRAF_ACK
,
196 NM_MT_IPACC_CONN_TRAF_NACK
,
197 NM_MT_IPACC_DISC_TRAF
= 0xe9,
198 NM_MT_IPACC_DISC_TRAF_ACK
,
199 NM_MT_IPACC_DISC_TRAF_NACK
,
200 NM_MT_IPACC_DEF_BOOT_SW
= 0xec,
201 NM_MT_IPACC_DEF_BOOT_SW_ACK
,
202 NM_MT_IPACC_DEF_BOOT_SW_NACK
,
203 NM_MT_IPACC_SET_NVATTR
= 0xef,
204 NM_MT_IPACC_SET_NVATTR_ACK
,
205 NM_MT_IPACC_SET_NVATTR_NACK
,
206 NM_MT_IPACC_GET_NVATTR
= 0xf2,
207 NM_MT_IPACC_GET_NVATTR_ACK
,
208 NM_MT_IPACC_GET_NVATTR_NACK
,
209 NM_MT_IPACC_SET_ATTR
= 0xf5,
210 NM_MT_IPACC_SET_ATTR_ACK
,
211 NM_MT_IPACC_SET_ATTR_NACK
,
212 NM_MT_IPACC_ATTR_CHG_EVT
= 0xf8,
213 NM_MT_IPACC_SW_DEACT
= 0xf9,
214 NM_MT_IPACC_SW_DEACT_ACK
,
215 NM_MT_IPACC_SW_DEACT_NACK
,
216 NM_MT_IPACC_MEAS_RES_REQ_NACK
= 0xfc,
217 NM_MT_IPACC_START_MEAS_NACK
,
218 NM_MT_IPACC_STOP_MEAS_NACK
221 enum abis_nm_bs11_cell_alloc
{
222 NM_BS11_CANR_GSM
= 0x00,
223 NM_BS11_CANR_DCS1800
= 0x01
226 /* Section 9.2: Object Class */
227 enum abis_nm_obj_class
{
228 NM_OC_SITE_MANAGER
= 0x00,
234 NM_OC_BS11_ADJC
= 0xa0,
235 NM_OC_BS11_HANDOVER
= 0xa1,
236 NM_OC_BS11_PWR_CTRL
= 0xa2,
237 NM_OC_BS11_BTSE
= 0xa3, /* LMT? */
238 NM_OC_BS11_RACK
= 0xa4,
239 NM_OC_BS11
= 0xa5, /* 01: ALCO */
240 NM_OC_BS11_TEST
= 0xa6,
241 NM_OC_BS11_ENVABTSE
= 0xa8,
242 NM_OC_BS11_BPORT
= 0xa9,
244 NM_OC_GPRS_NSE
= 0xf0,
245 NM_OC_GPRS_CELL
= 0xf1,
246 NM_OC_GPRS_NSVC
= 0xf2,
251 /* Section 9.4: Attributes */
253 NM_ATT_ABIS_CHANNEL
= 0x01,
262 NM_ATT_BTS_AIR_TIMER
,
266 NM_ATT_CONN_FAIL_CRIT
,
269 NM_ATT_EVENT_TYPE
= 0x11, /* BS11: file data ?!? */
278 NM_ATT_LIST_REQ_ATTR
,
284 NM_ATT_MDROP_LINK
, /* 0x20 */
294 NM_ATT_RACH_B_THRESH
,
300 NM_ATT_SOURCE
, /* 0x30 */
311 NM_ATT_BS11_RSSI_OFFS
= 0x3d,
312 NM_ATT_BS11_TXPWR
= 0x3e,
313 NM_ATT_BS11_DIVERSITY
= 0x3f,
327 enum abis_nm_attr_bs11
{
328 NM_ATT_BS11_OM_LAPD_REL_TIMER
= 0x02,
329 NM_ATT_BS11_EMERG_TIMER1
= 0x42,
330 NM_ATT_BS11_EMERG_TIMER2
= 0x44,
331 NM_ATT_BS11_ESN_FW_CODE_NO
= 0x4c,
332 NM_ATT_BS11_ESN_HW_CODE_NO
= 0x4f,
334 NM_ATT_BS11_FILE_DATA
= NM_ATT_EVENT_TYPE
,
336 NM_ATT_BS11_ESN_PCB_SERIAL
= 0x55,
337 NM_ATT_BS11_EXCESSIVE_DISTANCE
= 0x58,
339 NM_ATT_BS11_ALL_TEST_CATG
= 0x60,
340 NM_ATT_BS11_BTSLS_HOPPING
,
341 NM_ATT_BS11_CELL_ALLOC_NR
,
342 NM_ATT_BS11_CELL_GLOBAL_ID
,
343 NM_ATT_BS11_ENA_INTERF_CLASS
= 0x66,
344 NM_ATT_BS11_ENA_INT_INTEC_HANDO
= 0x67,
345 NM_ATT_BS11_ENA_INT_INTRC_HANDO
= 0x68,
346 NM_ATT_BS11_ENA_MS_PWR_CTRL
= 0x69,
347 NM_ATT_BS11_ENA_PWR_BDGT_HO
= 0x6a,
348 NM_ATT_BS11_ENA_PWR_CTRL_RLFW
= 0x6b,
349 NM_ATT_BS11_ENA_RXLEV_HO
= 0x6c,
350 NM_ATT_BS11_ENA_RXQUAL_HO
= 0x6d,
351 NM_ATT_BS11_FACCH_QUAL
= 0x6e,
353 NM_ATT_BS11_RF_RES_IND_PER
= 0x8f,
355 NM_ATT_BS11_RX_LEV_MIN_CELL
= 0x90,
356 NM_ATT_BS11_ABIS_EXT_TIME
= 0x91,
357 NM_ATT_BS11_TIMER_HO_REQUEST
= 0x92,
358 NM_ATT_BS11_TIMER_NCELL
= 0x93,
359 NM_ATT_BS11_TSYNC
= 0x94,
360 NM_ATT_BS11_TTRAU
= 0x95,
361 NM_ATT_BS11_EMRG_CFG_MEMBER
= 0x9b,
362 NM_ATT_BS11_TRX_AREA
= 0x9f,
364 NM_ATT_BS11_BCCH_RECONF
= 0xd7,
365 NM_ATT_BS11_BIT_ERR_THESH
= 0xa0,
366 NM_ATT_BS11_BOOT_SW_VERS
= 0xa1,
367 NM_ATT_BS11_CCLK_ACCURACY
= 0xa3,
368 NM_ATT_BS11_CCLK_TYPE
= 0xa4,
369 NM_ATT_BS11_INP_IMPEDANCE
= 0xaa,
370 NM_ATT_BS11_L1_PROT_TYPE
= 0xab,
371 NM_ATT_BS11_LINE_CFG
= 0xac,
372 NM_ATT_BS11_LI_PORT_1
= 0xad,
373 NM_ATT_BS11_LI_PORT_2
= 0xae,
375 NM_ATT_BS11_L1_REM_ALM_TYPE
= 0xb0,
376 NM_ATT_BS11_SW_LOAD_INTENDED
= 0xbb,
377 NM_ATT_BS11_SW_LOAD_SAFETY
= 0xbc,
378 NM_ATT_BS11_SW_LOAD_STORED
= 0xbd,
380 NM_ATT_BS11_VENDOR_NAME
= 0xc1,
381 NM_ATT_BS11_HOPPING_MODE
= 0xc5,
382 NM_ATT_BS11_LMT_LOGON_SESSION
= 0xc6,
383 NM_ATT_BS11_LMT_LOGIN_TIME
= 0xc7,
384 NM_ATT_BS11_LMT_USER_ACC_LEV
= 0xc8,
385 NM_ATT_BS11_LMT_USER_NAME
= 0xc9,
387 NM_ATT_BS11_L1_CONTROL_TS
= 0xd8,
388 NM_ATT_BS11_RADIO_MEAS_GRAN
= 0xdc, /* in SACCH multiframes */
389 NM_ATT_BS11_RADIO_MEAS_REP
= 0xdd,
391 NM_ATT_BS11_SH_LAPD_INT_TIMER
= 0xe8,
393 NM_ATT_BS11_BTS_STATE
= 0xf0,
394 NM_ATT_BS11_E1_STATE
= 0xf1,
395 NM_ATT_BS11_PLL
= 0xf2,
396 NM_ATT_BS11_RX_OFFSET
= 0xf3,
397 NM_ATT_BS11_ANT_TYPE
= 0xf4,
398 NM_ATT_BS11_PLL_MODE
= 0xfc,
399 NM_ATT_BS11_PASSWORD
= 0xfd
402 enum abis_nm_attr_ipa
{
403 NM_ATT_IPACC_DST_IP
= 0x80,
404 NM_ATT_IPACC_DST_IP_PORT
= 0x81,
405 NM_ATT_IPACC_SSRC
= 0x82, /* RTP Sync Source */
406 NM_ATT_IPACC_RTP_PAYLD_TYPE
= 0x83,
407 NM_ATT_IPACC_BASEB_ID
= 0x84,
408 NM_ATT_IPACC_STREAM_ID
= 0x85,
409 NM_ATT_IPACC_NV_FLAGS
= 0x86,
410 NM_ATT_IPACC_FREQ_CTRL
= 0x87,
411 NM_ATT_IPACC_PRIM_OML_CFG
= 0x88,
412 NM_ATT_IPACC_SEC_OML_CFG
= 0x89,
413 NM_ATT_IPACC_IP_IF_CFG
= 0x8a, /* IP interface */
414 NM_ATT_IPACC_IP_GW_CFG
= 0x8b, /* IP gateway */
415 NM_ATT_IPACC_IN_SERV_TIME
= 0x8c,
416 NM_ATT_IPACC_TRX_BTS_ASS
= 0x8d,
417 NM_ATT_IPACC_LOCATION
= 0x8e, /* string describing location */
418 NM_ATT_IPACC_PAGING_CFG
= 0x8f,
419 NM_ATT_IPACC_FILE_DATA
= 0x90,
420 NM_ATT_IPACC_UNIT_ID
= 0x91, /* Site/BTS/TRX */
421 NM_ATT_IPACC_PARENT_UNIT_ID
= 0x92,
422 NM_ATT_IPACC_UNIT_NAME
= 0x93, /* default: nbts-<mac-as-string> */
423 NM_ATT_IPACC_SNMP_CFG
= 0x94,
424 NM_ATT_IPACC_PRIM_OML_CFG_LIST
= 0x95,
425 NM_ATT_IPACC_PRIM_OML_FB_TOUT
= 0x96, /* fallback timeout */
426 NM_ATT_IPACC_CUR_SW_CFG
= 0x97,
427 NM_ATT_IPACC_TIMING_BUS
= 0x98,
428 NM_ATT_IPACC_CGI
= 0x99, /* Cell Global ID */
429 NM_ATT_IPACC_RAC
= 0x9a,
430 NM_ATT_IPACC_OBJ_VERSION
= 0x9b,
431 NM_ATT_IPACC_GPRS_PAGING_CFG
= 0x9c,
432 NM_ATT_IPACC_NSEI
= 0x9d,
433 NM_ATT_IPACC_BVCI
= 0x9e,
434 NM_ATT_IPACC_NSVCI
= 0x9f,
435 NM_ATT_IPACC_NS_CFG
= 0xa0,
436 NM_ATT_IPACC_BSSGP_CFG
= 0xa1,
437 NM_ATT_IPACC_NS_LINK_CFG
= 0xa2,
438 NM_ATT_IPACC_RLC_CFG
= 0xa3,
439 NM_ATT_IPACC_ALM_THRESH_LIST
= 0xa4,
440 NM_ATT_IPACC_MONIT_VAL_LIST
= 0xa5,
441 NM_ATT_IPACC_TIB_CONTROL
= 0xa6,
442 NM_ATT_IPACC_SUPP_FEATURES
= 0xa7,
443 NM_ATT_IPACC_CODING_SCHEMES
= 0xa8,
444 NM_ATT_IPACC_RLC_CFG_2
= 0xa9,
445 NM_ATT_IPACC_HEARTB_TOUT
= 0xaa,
446 NM_ATT_IPACC_UPTIME
= 0xab,
447 NM_ATT_IPACC_RLC_CFG_3
= 0xac,
448 NM_ATT_IPACC_SSL_CFG
= 0xad,
449 NM_ATT_IPACC_SEC_POSSIBLE
= 0xae,
450 NM_ATT_IPACC_IML_SSL_STATE
= 0xaf,
451 NM_ATT_IPACC_REVOC_DATE
= 0xb0
454 /* Section 9.4.4: Administrative State */
455 enum abis_nm_adm_state
{
456 NM_STATE_LOCKED
= 0x01,
457 NM_STATE_UNLOCKED
= 0x02,
458 NM_STATE_SHUTDOWN
= 0x03,
462 /* Section 9.4.13: Channel Combination */
463 enum abis_nm_chan_comb
{
464 NM_CHANC_TCHFull
= 0x00,
465 NM_CHANC_TCHHalf
= 0x01,
466 NM_CHANC_TCHHalf2
= 0x02,
467 NM_CHANC_SDCCH
= 0x03,
468 NM_CHANC_mainBCCH
= 0x04,
469 NM_CHANC_BCCHComb
= 0x05,
470 NM_CHANC_BCCH
= 0x06,
471 NM_CHANC_BCCH_CBCH
= 0x07,
472 NM_CHANC_SDCCH_CBCH
= 0x08
475 /* Section 9.4.16: Event Type */
476 enum abis_nm_event_type
{
477 NM_EVT_COMM_FAIL
= 0x00,
478 NM_EVT_QOS_FAIL
= 0x01,
479 NM_EVT_PROC_FAIL
= 0x02,
480 NM_EVT_EQUIP_FAIL
= 0x03,
481 NM_EVT_ENV_FAIL
= 0x04
484 /* Section: 9.4.63: Perceived Severity */
485 enum abis_nm_severity
{
486 NM_SEVER_CEASED
= 0x00,
487 NM_SEVER_CRITICAL
= 0x01,
488 NM_SEVER_MAJOR
= 0x02,
489 NM_SEVER_MINOR
= 0x03,
490 NM_SEVER_WARNING
= 0x04,
491 NM_SEVER_INDETERMINATE
= 0x05
494 /* Section 9.4.43: Probable Cause Type */
495 enum abis_nm_pcause_type
{
496 NM_PCAUSE_T_X721
= 0x01,
497 NM_PCAUSE_T_GSM
= 0x02,
498 NM_PCAUSE_T_MANUF
= 0x03
501 /* Section 9.4.36: NACK Causes */
502 enum abis_nm_nack_cause
{
503 /* General Nack Causes */
504 NM_NACK_INCORR_STRUCT
= 0x01,
505 NM_NACK_MSGTYPE_INVAL
= 0x02,
506 NM_NACK_OBJCLASS_INVAL
= 0x05,
507 NM_NACK_OBJCLASS_NOTSUPP
= 0x06,
508 NM_NACK_BTSNR_UNKN
= 0x07,
509 NM_NACK_TRXNR_UNKN
= 0x08,
510 NM_NACK_OBJINST_UNKN
= 0x09,
511 NM_NACK_ATTRID_INVAL
= 0x0c,
512 NM_NACK_ATTRID_NOTSUPP
= 0x0d,
513 NM_NACK_PARAM_RANGE
= 0x0e,
514 NM_NACK_ATTRLIST_INCONSISTENT
= 0x0f,
515 NM_NACK_SPEC_IMPL_NOTSUPP
= 0x10,
516 NM_NACK_CANT_PERFORM
= 0x11,
517 /* Specific Nack Causes */
518 NM_NACK_RES_NOTIMPL
= 0x19,
519 NM_NACK_RES_NOTAVAIL
= 0x1a,
520 NM_NACK_FREQ_NOTAVAIL
= 0x1b,
521 NM_NACK_TEST_NOTSUPP
= 0x1c,
522 NM_NACK_CAPACITY_RESTR
= 0x1d,
523 NM_NACK_PHYSCFG_NOTPERFORM
= 0x1e,
524 NM_NACK_TEST_NOTINIT
= 0x1f,
525 NM_NACK_PHYSCFG_NOTRESTORE
= 0x20,
526 NM_NACK_TEST_NOSUCH
= 0x21,
527 NM_NACK_TEST_NOSTOP
= 0x22,
528 NM_NACK_MSGINCONSIST_PHYSCFG
= 0x23,
529 NM_NACK_FILE_INCOMPLETE
= 0x25,
530 NM_NACK_FILE_NOTAVAIL
= 0x26,
531 NM_NACK_FILE_NOTACTIVATE
= 0x27,
532 NM_NACK_REQ_NOT_GRANT
= 0x28,
534 NM_NACK_NOTH_REPORT_EXIST
= 0x2a,
535 NM_NACK_MEAS_NOTSUPP
= 0x2b,
536 NM_NACK_MEAS_NOTSTART
= 0x2c
540 struct abis_nm_channel
{
547 /* Siemens BS-11 specific objects in the SiemensHW (0xA5) object class */
548 enum abis_bs11_objtype
{
549 BS11_OBJ_ALCO
= 0x01,
550 BS11_OBJ_BBSIG
= 0x02, /* obj_class: 0,1 */
551 BS11_OBJ_TRX1
= 0x03, /* only DEACTIVATE TRX1 */
552 BS11_OBJ_CCLK
= 0x04,
553 BS11_OBJ_GPSU
= 0x06,
555 BS11_OBJ_PA
= 0x09 /* obj_class: 0, 1*/
558 enum abis_bs11_trx_power
{
559 BS11_TRX_POWER_GSM_2W
= 0x06,
560 BS11_TRX_POWER_GSM_250mW
= 0x07,
561 BS11_TRX_POWER_GSM_80mW
= 0x08,
562 BS11_TRX_POWER_GSM_30mW
= 0x09,
563 BS11_TRX_POWER_DCS_3W
= 0x0a,
564 BS11_TRX_POWER_DCS_1W6
= 0x0b,
565 BS11_TRX_POWER_DCS_500mW
= 0x0c,
566 BS11_TRX_POWER_DCS_160mW
= 0x0d
569 enum abis_bs11_li_pll_mode
{
570 BS11_LI_PLL_LOCKED
= 2,
571 BS11_LI_PLL_STANDALONE
= 3
574 enum abis_bs11_phase
{
575 BS11_STATE_SOFTWARE_RQD
= 0x01,
576 BS11_STATE_LOAD_SMU_INTENDED
= 0x11,
577 BS11_STATE_LOAD_SMU_SAFETY
= 0x21,
578 BS11_STATE_LOAD_FAILED
= 0x31,
579 BS11_STATE_LOAD_DIAGNOSTIC
= 0x41,
580 BS11_STATE_WARM_UP
= 0x51,
581 BS11_STATE_WARM_UP_2
= 0x52,
582 BS11_STATE_WAIT_MIN_CFG
= 0x62,
583 BS11_STATE_MAINTENANCE
= 0x72,
584 BS11_STATE_LOAD_MBCCU
= 0x92,
585 BS11_STATE_WAIT_MIN_CFG_2
= 0xA2,
586 BS11_STATE_NORMAL
= 0x03,
587 BS11_STATE_ABIS_LOAD
= 0x13
590 /* From openbsc/include/openbsc/tlv.h */
606 struct tlv_definition
{
607 struct tlv_def def
[0x100];
610 enum abis_nm_ipacc_test_no
{
611 NM_IPACC_TESTNO_RLOOP_ANT
= 0x01,
612 NM_IPACC_TESTNO_RLOOP_XCVR
= 0x02,
613 NM_IPACC_TESTNO_FUNC_OBJ
= 0x03,
614 NM_IPACC_TESTNO_CHAN_USAGE
= 0x40,
615 NM_IPACC_TESTNO_BCCH_CHAN_USAGE
= 0x41,
616 NM_IPACC_TESTNO_FREQ_SYNC
= 0x42,
617 NM_IPACC_TESTNO_BCCH_INFO
= 0x43,
618 NM_IPACC_TESTNO_TX_BEACON
= 0x44,
619 NM_IPACC_TESTNO_SYSINFO_MONITOR
= 0x45,
620 NM_IPACC_TESTNO_BCCCH_MONITOR
= 0x46
623 /* first byte after length inside NM_ATT_TEST_REPORT */
624 enum abis_nm_ipacc_test_res
{
625 NM_IPACC_TESTRES_SUCCESS
= 0,
626 NM_IPACC_TESTRES_TIMEOUT
= 1,
627 NM_IPACC_TESTRES_NO_CHANS
= 2,
628 NM_IPACC_TESTRES_PARTIAL
= 3,
629 NM_IPACC_TESTRES_STOPPED
= 4
632 /* internal IE inside NM_ATT_TEST_REPORT */
633 enum abis_nm_ipacc_testres_ie
{
634 NM_IPACC_TR_IE_FREQ_ERR_LIST
= 3,
635 NM_IPACC_TR_IE_CHAN_USAGE
= 4,
636 NM_IPACC_TR_IE_BCCH_INFO
= 6,
637 NM_IPACC_TR_IE_RESULT_DETAILS
= 8,
638 NM_IPACC_TR_IE_FREQ_ERR
= 18
641 /* initialize the protocol and registered fields */
642 static int proto_abis_oml
;
645 static int hf_oml_msg_disc
;
646 static int hf_oml_placement
;
647 static int hf_oml_sequence
;
648 static int hf_oml_length
;
649 static int hf_oml_manuf_id_len
;
650 static int hf_oml_manuf_id_val
;
652 static int hf_oml_fom_msgtype
;
653 static int hf_oml_fom_objclass
;
654 static int hf_oml_fom_inst_bts
;
655 static int hf_oml_fom_inst_trx
;
656 static int hf_oml_fom_inst_ts
;
657 static int hf_oml_fom_attr_tag
;
658 static int hf_oml_fom_attr_len
;
659 static int hf_oml_fom_attr_val
;
661 static int hf_attr_adm_state
;
662 static int hf_attr_arfcn
;
663 static int hf_attr_oper_state
;
664 static int hf_attr_avail_state
;
665 static int hf_attr_event_type
;
666 static int hf_attr_severity
;
667 static int hf_attr_nack_causes
;
668 static int hf_attr_bcch_arfcn
;
669 static int hf_attr_bsic
;
670 static int hf_attr_test_no
;
671 static int hf_attr_tsc
;
672 static int hf_attr_tei
;
673 static int hf_attr_ach_btsp
;
674 static int hf_attr_ach_tslot
;
675 static int hf_attr_ach_sslot
;
676 static int hf_attr_gsm_time
;
677 static int hf_attr_chan_comb
;
678 static int hf_attr_hsn
;
679 static int hf_attr_maio
;
680 static int hf_attr_list_req_attr
;
681 static int hf_attr_ari_not_reported_cnt
;
682 static int hf_attr_ari_not_reported_attr
;
683 static int hf_attr_rf_max_pwr_red
;
684 static int hf_attr_interf_bound0
;
685 static int hf_attr_interf_bound1
;
686 static int hf_attr_interf_bound2
;
687 static int hf_attr_interf_bound3
;
688 static int hf_attr_interf_bound4
;
689 static int hf_attr_interf_bound5
;
691 static int hf_oml_ipa_tres_attr_tag
;
692 static int hf_oml_ipa_tres_attr_len
;
693 static int hf_attr_ipa_test_res
;
694 static int hf_attr_ipa_tr_rxlev
;
695 static int hf_attr_ipa_tr_b_rxlev
;
696 static int hf_attr_ipa_tr_arfcn
;
697 static int hf_attr_ipa_tr_f_qual
;
698 static int hf_attr_ipa_tr_f_err
;
699 static int hf_attr_ipa_tr_rxqual
;
700 static int hf_attr_ipa_tr_frame_offs
;
701 static int hf_attr_ipa_tr_framenr_offs
;
702 static int hf_attr_ipa_tr_bsic
;
703 static int hf_attr_ipa_tr_cell_id
;
704 static int hf_attr_ipa_tr_si2
;
705 static int hf_attr_ipa_tr_si2bis
;
706 static int hf_attr_ipa_tr_si2ter
;
707 static int hf_attr_ipa_tr_chan_desc
;
708 static int hf_attr_ipa_rsl_ip
;
709 static int hf_attr_ipa_rsl_port
;
710 static int hf_attr_ipa_prim_oml_ip
;
711 static int hf_attr_ipa_prim_oml_port
;
712 static int hf_attr_ipa_location_name
;
713 static int hf_attr_ipa_unit_id
;
714 static int hf_attr_ipa_unit_name
;
715 static int hf_attr_ipa_nv_flags
;
716 static int hf_attr_ipa_nv_mask
;
717 static int hf_attr_ipa_nsl_sport
;
718 static int hf_attr_ipa_nsl_daddr
;
719 static int hf_attr_ipa_nsl_dport
;
720 static int hf_attr_ipa_nsei
;
721 static int hf_attr_ipa_nsvci
;
722 static int hf_attr_ipa_bvci
;
723 static int hf_attr_ipa_rac
;
724 static int hf_attr_ipa_ns_cfg_unblock_timer
;
725 static int hf_attr_ipa_ns_cfg_unblock_retries
;
726 static int hf_attr_ipa_ns_cfg_reset_timer
;
727 static int hf_attr_ipa_ns_cfg_reset_retries
;
728 static int hf_attr_ipa_ns_cfg_test_timer
;
729 static int hf_attr_ipa_ns_cfg_alive_timer
;
730 static int hf_attr_ipa_ns_cfg_alive_retries
;
731 static int hf_attr_ipa_gprs_paging_rep_time
;
732 static int hf_attr_ipa_gprs_paging_rep_count
;
733 static int hf_attr_ipa_rlc_cfg_t3142
;
734 static int hf_attr_ipa_rlc_cfg_t3169
;
735 static int hf_attr_ipa_rlc_cfg_t3191
;
736 static int hf_attr_ipa_rlc_cfg_t3193
;
737 static int hf_attr_ipa_rlc_cfg_t3195
;
738 static int hf_attr_ipa_rlc_cfg_t3101
;
739 static int hf_attr_ipa_rlc_cfg_t3103
;
740 static int hf_attr_ipa_rlc_cfg_t3105
;
741 static int hf_attr_ipa_rlc_cfg_countdown
;
742 static int hf_attr_ipa_rlc_cfg2_t_dl_tbf_ext
;
743 static int hf_attr_ipa_rlc_cfg2_t_ul_tbf_ext
;
744 static int hf_attr_ipa_rlc_cfg2_init_cs
;
745 static int hf_attr_ipa_rlc_cfg2_init_mcs
;
746 static int hf_attr_ipa_cs
[4];
747 static int hf_attr_ipa_mcs
[9];
749 /* initialize the subtree pointers */
751 static int ett_oml_fom
;
752 static int ett_oml_fom_att
;
754 static expert_field ei_unknown_type
;
755 static expert_field ei_unknown_manuf
;
756 static expert_field ei_length_mismatch
;
765 /* which A-bis OML dialect to use (preference) */
766 static int global_oml_dialect
= OML_DIALECT_ETSI
;
768 static proto_tree
*top_tree
;
770 static dissector_handle_t sub_om2000
;
772 /* TS 12.21 Chapter 8.1 / TS 08.59 */
773 static const value_string oml_msg_disc_vals
[] = {
774 { ABIS_OM_MDISC_FOM
, "Formatted O&M" },
775 { ABIS_OM_MDISC_MMI
, "MMI Transfer" },
776 { ABIS_OM_MDISC_TRAU
, "TRAU O&M" },
777 { ABIS_OM_MDISC_MANUF
, "Manufacturer specific" },
781 /* TS 12.21 Chapter 8.1.1 */
782 static const value_string oml_placement_vals
[] = {
783 { ABIS_OM_PLACEMENT_ONLY
, "Only" },
784 { ABIS_OM_PLACEMENT_FIRST
, "First" },
785 { ABIS_OM_PLACEMENT_MIDDLE
, "Middle" },
786 { ABIS_OM_PLACEMENT_LAST
, "Last" },
790 /* Standard Message Types as per TS 12.21 Chapter 9.2 */
791 static const value_string oml_fom_msgtype_vals
[] = {
792 { NM_MT_LOAD_INIT
, "Software Load Init" },
793 { NM_MT_LOAD_INIT_ACK
, "Software Load Init ACK" },
794 { NM_MT_LOAD_INIT_NACK
, "Software Load Init NACK" },
795 { NM_MT_LOAD_SEG
, "Software Load Segment" },
796 { NM_MT_LOAD_SEG_ACK
, "Software Load Segment ACK" },
797 { NM_MT_LOAD_END
, "Software Load End" },
798 { NM_MT_LOAD_END_ACK
, "Software Load End ACK" },
799 { NM_MT_LOAD_END_NACK
, "Software Load End NACK" },
800 { NM_MT_SW_ACT_REQ
, "Software Activate Request" },
801 { NM_MT_SW_ACT_REQ_ACK
, "Software Activate Request ACK" },
802 { NM_MT_SW_ACT_REQ_NACK
, "Software Activate Request NACK" },
803 { NM_MT_ACTIVATE_SW
, "Activate Software" },
804 { NM_MT_ACTIVATE_SW_ACK
, "Activate Software ACK" },
805 { NM_MT_ACTIVATE_SW_NACK
, "Activate Software NACK" },
806 { NM_MT_SW_ACTIVATED_REP
, "Software Activated Report" },
807 { NM_MT_ESTABLISH_TEI
, "Establish TEI" },
808 { NM_MT_ESTABLISH_TEI_ACK
, "Establish TEI ACK" },
809 { NM_MT_ESTABLISH_TEI_NACK
, "Establish TEI NACK" },
810 { NM_MT_CONN_TERR_SIGN
, "Connect Terrestrial Signalling" },
811 { NM_MT_CONN_TERR_SIGN_ACK
, "Connect Terrestrial Signalling ACK" },
812 { NM_MT_CONN_TERR_SIGN_NACK
, "Connect Terrestrial Signalling NACK" },
813 { NM_MT_DISC_TERR_SIGN
, "Disconnect Terrestrial Signalling" },
814 { NM_MT_DISC_TERR_SIGN_ACK
, "Disconnect Terrestrial Signalling ACK" },
815 { NM_MT_DISC_TERR_SIGN_NACK
, "Disconnect Terrestrial Signalling NACK" },
816 { NM_MT_CONN_TERR_TRAF
, "Connect Terrestrial Traffic" },
817 { NM_MT_CONN_TERR_TRAF_ACK
, "Connect Terrestrial Traffic ACK" },
818 { NM_MT_CONN_TERR_TRAF_NACK
, "Connect Terrestrial Traffic NACK" },
819 { NM_MT_DISC_TERR_TRAF
, "Disconnect Terrestrial Traffic" },
820 { NM_MT_DISC_TERR_TRAF_ACK
, "Disconnect Terrestrial Traffic ACK" },
821 { NM_MT_DISC_TERR_TRAF_NACK
, "Disconnect Terrestrial Traffic NACK" },
822 { NM_MT_CONN_MDROP_LINK
, "Connect Multi-Drop Link" },
823 { NM_MT_CONN_MDROP_LINK_ACK
, "Connect Multi-Drop Link ACK" },
824 { NM_MT_CONN_MDROP_LINK_NACK
, "Connect Multi-Drop Link NACK" },
825 { NM_MT_DISC_MDROP_LINK
, "Disconnect Multi-Drop Link" },
826 { NM_MT_DISC_MDROP_LINK_ACK
, "Disconnect Multi-Drop Link ACK" },
827 { NM_MT_DISC_MDROP_LINK_NACK
, "Disconnect Multi-Drop Link NACK" },
828 { NM_MT_SET_BTS_ATTR
, "Set BTS Attributes" },
829 { NM_MT_SET_BTS_ATTR_ACK
, "Set BTS Attributes ACK" },
830 { NM_MT_SET_BTS_ATTR_NACK
, "Set BTS Attributes NACK" },
831 { NM_MT_SET_RADIO_ATTR
, "Set Radio Carrier Attributes" },
832 { NM_MT_SET_RADIO_ATTR_ACK
, "Set Radio Carrier Attributes ACK" },
833 { NM_MT_SET_RADIO_ATTR_NACK
, "Set Radio Carrier Attributes NACK" },
834 { NM_MT_SET_CHAN_ATTR
, "Set Channel Attributes" },
835 { NM_MT_SET_CHAN_ATTR_ACK
, "Set Channel Attributes ACK" },
836 { NM_MT_SET_CHAN_ATTR_NACK
, "Set Channel Attributes NACK" },
837 { NM_MT_PERF_TEST
, "Perform Test" },
838 { NM_MT_PERF_TEST_ACK
, "Perform Test ACK" },
839 { NM_MT_PERF_TEST_NACK
, "Perform Test NACK" },
840 { NM_MT_TEST_REP
, "Test Report" },
841 { NM_MT_SEND_TEST_REP
, "Send Test Report" },
842 { NM_MT_SEND_TEST_REP_ACK
, "Send Test Report ACK" },
843 { NM_MT_SEND_TEST_REP_NACK
, "Send Test Report NACK" },
844 { NM_MT_STOP_TEST
, "Stop Test" },
845 { NM_MT_STOP_TEST_ACK
, "Stop Test ACK" },
846 { NM_MT_STOP_TEST_NACK
, "Stop Test NACK" },
847 { NM_MT_STATECHG_EVENT_REP
, "State Changed Event Report" },
848 { NM_MT_FAILURE_EVENT_REP
, "Failure Event Report" },
849 { NM_MT_STOP_EVENT_REP
, "Stop Sending Event Reports" },
850 { NM_MT_STOP_EVENT_REP_ACK
, "Stop Sending Event Reports ACK" },
851 { NM_MT_STOP_EVENT_REP_NACK
, "Stop Sending Event Reports NACK" },
852 { NM_MT_REST_EVENT_REP
, "Restart Sending Event Reports" },
853 { NM_MT_REST_EVENT_REP_ACK
, "Restart Sending Event Reports ACK" },
854 { NM_MT_REST_EVENT_REP_NACK
, "Restart Sending Event Reports NACK" },
855 { NM_MT_CHG_ADM_STATE
, "Change Administrative State" },
856 { NM_MT_CHG_ADM_STATE_ACK
, "Change Administrative State ACK" },
857 { NM_MT_CHG_ADM_STATE_NACK
, "Change Administrative State NACK" },
858 { NM_MT_CHG_ADM_STATE_REQ
, "Change Administrative State Request" },
859 { NM_MT_CHG_ADM_STATE_REQ_ACK
, "Change Administrative State Request ACK" },
860 { NM_MT_CHG_ADM_STATE_REQ_NACK
, "Change Administrative State Request NACK" },
861 { NM_MT_REP_OUTST_ALARMS
, "Report Outstanding Alarms" },
862 { NM_MT_REP_OUTST_ALARMS_ACK
, "Report Outstanding Alarms ACK" },
863 { NM_MT_REP_OUTST_ALARMS_NACK
, "Report Outstanding Alarms NACK" },
864 { NM_MT_CHANGEOVER
, "Changeover" },
865 { NM_MT_CHANGEOVER_ACK
, "Changeover ACK" },
866 { NM_MT_CHANGEOVER_NACK
, "Changeover NACK" },
867 { NM_MT_OPSTART
, "Opstart" },
868 { NM_MT_OPSTART_ACK
, "Opstart ACK" },
869 { NM_MT_OPSTART_NACK
, "Opstart NACK" },
870 { NM_MT_REINIT
, "Reinitialize" },
871 { NM_MT_REINIT_ACK
, "Reinitialize ACK" },
872 { NM_MT_REINIT_NACK
, "Reinitialize NACK" },
873 { NM_MT_SET_SITE_OUT
, "Set Site Outputs" },
874 { NM_MT_SET_SITE_OUT_ACK
, "Set Site Outputs ACK" },
875 { NM_MT_SET_SITE_OUT_NACK
, "Set Site Outputs NACK" },
876 { NM_MT_CHG_HW_CONF
, "Change HW Configuration" },
877 { NM_MT_CHG_HW_CONF_ACK
, "Change HW Configuration ACK" },
878 { NM_MT_CHG_HW_CONF_NACK
, "Change HW Configuration NACK" },
879 { NM_MT_MEAS_RES_REQ
, "Measurement Result Request" },
880 { NM_MT_MEAS_RES_RESP
, "Measurement Result Response" },
881 { NM_MT_STOP_MEAS
, "Stop Measurement" },
882 { NM_MT_START_MEAS
, "Start Measurement" },
883 { NM_MT_GET_ATTR
, "Get Attributes" },
884 { NM_MT_GET_ATTR_RESP
, "Get Attributes Response" },
885 { NM_MT_GET_ATTR_NACK
, "Get Attributes NACK" },
886 { NM_MT_SET_ALARM_THRES
, "Set Alarm Threshold" },
887 { NM_MT_SET_ALARM_THRES_ACK
, "Set Alarm Threshold ACK" },
888 { NM_MT_SET_ALARM_THRES_NACK
, "Set Alarm Threshold NACK" },
892 /* proprietary ip.access message types, not in the standard */
893 static const value_string oml_fom_msgtype_vals_ipa
[] = {
894 { NM_MT_IPACC_RESTART
, "IPA Restart" },
895 { NM_MT_IPACC_RESTART_ACK
, "IPA Restart ACK" },
896 { NM_MT_IPACC_RSL_CONNECT
, "IPA RSL Connect" },
897 { NM_MT_IPACC_RSL_CONNECT_ACK
, "IPA RSL Connect ACK" },
898 { NM_MT_IPACC_RSL_CONNECT_NACK
, "IPA RSL Connect NACK" },
899 { NM_MT_IPACC_RSL_DISCONNECT
, "IPA RSL Disconnect" },
900 { NM_MT_IPACC_RSL_DISCONNECT_ACK
, "IPA RSL Disconnect ACK" },
901 { NM_MT_IPACC_RSL_DISCONNECT_NACK
, "IPA RSL Disconnect NACK" },
902 { NM_MT_IPACC_CONN_TRAF
, "IPA Connect Traffic" },
903 { NM_MT_IPACC_CONN_TRAF_ACK
, "IPA Connect Traffic ACK" },
904 { NM_MT_IPACC_CONN_TRAF_NACK
, "IPA Connect Traffic NACK" },
905 { NM_MT_IPACC_DISC_TRAF
, "IPA Disconnect Traffic" },
906 { NM_MT_IPACC_DISC_TRAF_ACK
, "IPA Disconnect Traffic ACK" },
907 { NM_MT_IPACC_DISC_TRAF_NACK
, "IPA Disconnect Traffic NACK" },
908 { NM_MT_IPACC_DEF_BOOT_SW
, "IPA Default Boot Software" },
909 { NM_MT_IPACC_DEF_BOOT_SW_ACK
, "IPA Default Boot Software ACK" },
910 { NM_MT_IPACC_DEF_BOOT_SW_NACK
, "IPA Default Boot Software NACK" },
911 { NM_MT_IPACC_SET_NVATTR
, "IPA Set NVRAM Attributes" },
912 { NM_MT_IPACC_SET_NVATTR_ACK
, "IPA Set NVRAM Attributes ACK" },
913 { NM_MT_IPACC_SET_NVATTR_NACK
, "IPA Set NVRAM Attributes NACK" },
914 { NM_MT_IPACC_GET_NVATTR
, "IPA Get NVRAM Attributes" },
915 { NM_MT_IPACC_GET_NVATTR_ACK
, "IPA Get NVRAM Attributes ACK" },
916 { NM_MT_IPACC_GET_NVATTR_NACK
, "IPA Get NVRAM Attributes NACK" },
917 { NM_MT_IPACC_SET_ATTR
, "IPA Set Attributes" },
918 { NM_MT_IPACC_SET_ATTR_ACK
, "IPA Set Attributes ACK" },
919 { NM_MT_IPACC_SET_ATTR_NACK
, "IPA Set Attributes NACK" },
920 { NM_MT_IPACC_ATTR_CHG_EVT
, "IPA Attribute Change Event" },
921 { NM_MT_IPACC_SW_DEACT
, "IPA Software Deactivate" },
922 { NM_MT_IPACC_SW_DEACT_ACK
, "IPA Software Deactivate ACK" },
923 { NM_MT_IPACC_SW_DEACT_NACK
, "IPA Software Deactivate NACK" },
924 { NM_MT_IPACC_MEAS_RES_REQ_NACK
,"IPA Measurement Result Request NACK" },
925 { NM_MT_IPACC_START_MEAS_NACK
, "IPA Start Measurement NACK" },
926 { NM_MT_IPACC_STOP_MEAS_NACK
, "IPA Stop Measurement NACK" },
930 /* proprietary Siemens message types, not in the standard */
931 static const value_string oml_fom_msgtype_vals_bs11
[] = {
932 { NM_MT_BS11_RESET_RESOURCE
, "SIE Reset Resource" },
933 { NM_MT_BS11_BEGIN_DB_TX
, "SIE Begin Database Transmission" },
934 { NM_MT_BS11_BEGIN_DB_TX_ACK
, "SIE Begin Database Transmission ACK" },
935 { NM_MT_BS11_BEGIN_DB_TX_NACK
, "SIE Begin Database Transmission NACK" },
936 { NM_MT_BS11_END_DB_TX
, "SIE End Database Transmission" },
937 { NM_MT_BS11_END_DB_TX_ACK
, "SIE End Database Transmission ACK" },
938 { NM_MT_BS11_END_DB_TX_NACK
, "SIE End Database Transmission NACK" },
939 { NM_MT_BS11_CREATE_OBJ
, "SIE Create Object" },
940 { NM_MT_BS11_CREATE_OBJ_ACK
, "SIE Create Object ACK" },
941 { NM_MT_BS11_CREATE_OBJ_NACK
, "SIE Create Object NACK" },
942 { NM_MT_BS11_DELETE_OBJ
, "SIE Delete Object" },
943 { NM_MT_BS11_DELETE_OBJ_ACK
, "SIE Delete Object ACK" },
944 { NM_MT_BS11_DELETE_OBJ_NACK
, "SIE Delete Object NACK" },
945 { NM_MT_BS11_SET_ATTR
, "SIE Set Attribute" },
946 { NM_MT_BS11_SET_ATTR_ACK
, "SIE Set Attribute ACK" },
947 { NM_MT_BS11_SET_ATTR_NACK
, "SIE Set Attribute NACK" },
948 { NM_MT_BS11_GET_STATE
, "SIE Get State" },
949 { NM_MT_BS11_GET_STATE_ACK
, "SIE Get State ACK" },
950 { NM_MT_BS11_LMT_LOGON
, "SIE LMT Logon" },
951 { NM_MT_BS11_LMT_LOGON_ACK
, "SIE LMT Logon ACK" },
952 { NM_MT_BS11_RESTART
, "SIE Restart" },
953 { NM_MT_BS11_RESTART_ACK
, "SIE Restart ACK" },
954 { NM_MT_BS11_DISCONNECT
, "SIE Disconnect BTS" },
955 { NM_MT_BS11_DISCONNECT_ACK
, "SIE Disconnect BTS ACK" },
956 { NM_MT_BS11_LMT_LOGOFF
, "SIE LMT Logoff" },
957 { NM_MT_BS11_LMT_LOGOFF_ACK
, "SIE LMT Logoff ACK" },
958 { NM_MT_BS11_RECONNECT
, "SIE Reconnect BTS" },
959 { NM_MT_BS11_RECONNECT_ACK
, "SIE Reconnect BTS ACK" },
963 /* TS 12.21 Section 9.2: Object Class */
964 static const value_string oml_fom_objclass_vals
[] = {
965 { NM_OC_SITE_MANAGER
, "BTS Site Manager" },
966 { NM_OC_BTS
, "BTS" },
967 { NM_OC_RADIO_CARRIER
, "Radio Carrier" },
968 { NM_OC_CHANNEL
, "Radio Channel" },
969 { NM_OC_BASEB_TRANSC
, "Baseband Transceiver" },
971 /* proprietary, vendor specific */
972 { NM_OC_BS11_ADJC
, "SIE Adjacent Channel" },
973 { NM_OC_BS11_HANDOVER
, "SIE Handover" },
974 { NM_OC_BS11_PWR_CTRL
, "SIE Power Control" },
975 { NM_OC_BS11_BTSE
, "SIE BTSE" },
976 { NM_OC_BS11_RACK
, "SIE Rack" },
977 { NM_OC_BS11
, "SIE SiemensHW" },
978 { NM_OC_BS11_TEST
, "SIE Test" },
979 { NM_OC_BS11_ENVABTSE
, "SIE EnvaBTSE" },
980 { NM_OC_BS11_BPORT
, "SIE BPort" },
982 { NM_OC_GPRS_NSE
, "GPRS NSE" },
983 { NM_OC_GPRS_CELL
, "GPRS Cell" },
984 { NM_OC_GPRS_NSVC
, "GPRS NSVC" },
986 { NM_OC_NULL
, "NULL" },
990 /* TS 12.21 Section 9.4: Attributes */
991 static const value_string oml_fom_attr_vals
[] = {
992 { NM_ATT_ABIS_CHANNEL
, "A-bis Channel" },
993 { NM_ATT_ADD_INFO
, "Additional Information" },
994 { NM_ATT_ADD_TEXT
, "Additional Text" },
995 { NM_ATT_ADM_STATE
, "Administrative State" },
996 { NM_ATT_ARFCN_LIST
, "ARFCN List" },
997 { NM_ATT_AUTON_REPORT
, "Autonomously Report" },
998 { NM_ATT_AVAIL_STATUS
, "Availability Status" },
999 { NM_ATT_BCCH_ARFCN
, "BCCH ARFCN" },
1000 { NM_ATT_BSIC
, "BSIC" },
1001 { NM_ATT_BTS_AIR_TIMER
, "BTS Air Timer" },
1002 { NM_ATT_CCCH_L_I_P
, "CCCH Load Indication Period" },
1003 { NM_ATT_CCCH_L_T
, "CCCH Load Threshold" },
1004 { NM_ATT_CHAN_COMB
, "Channel Combination" },
1005 { NM_ATT_CONN_FAIL_CRIT
, "Connection Fail Criterion" },
1006 { NM_ATT_DEST
, "Destination" },
1007 { NM_ATT_EVENT_TYPE
, "Event Type" },
1008 { NM_ATT_FILE_ID
, "File ID" },
1009 { NM_ATT_FILE_VERSION
, "File Version" },
1010 { NM_ATT_GSM_TIME
, "GSM Time" },
1011 { NM_ATT_HSN
, "HSN" },
1012 { NM_ATT_HW_CONFIG
, "HW Configuration" },
1013 { NM_ATT_HW_DESC
, "HW Description" },
1014 { NM_ATT_INTAVE_PARAM
, "Intave Parameter" },
1015 { NM_ATT_INTERF_BOUND
, "Interference Boundaries" },
1016 { NM_ATT_LIST_REQ_ATTR
, "List of required Attributes" },
1017 { NM_ATT_MAIO
, "MAIO" },
1018 { NM_ATT_MANUF_STATE
, "Manufacturer Dependent State" },
1019 { NM_ATT_MANUF_THRESH
, "Manufacturer Dependent Thresholds" },
1020 { NM_ATT_MANUF_ID
, "Manufacturer Id" },
1021 { NM_ATT_MAX_TA
, "Maximum Timing Advance" },
1022 { NM_ATT_MDROP_LINK
, "Multi-drop BSC Link" },
1023 { NM_ATT_MDROP_NEXT
, "Multi-drop next BTS Link" },
1024 { NM_ATT_NACK_CAUSES
, "NACK Causes" },
1025 { NM_ATT_NY1
, "Ny1" },
1026 { NM_ATT_OPER_STATE
, "Operational State" },
1027 { NM_ATT_OVERL_PERIOD
, "Overload Period" },
1028 { NM_ATT_PHYS_CONF
, "Physical Config" },
1029 { NM_ATT_POWER_CLASS
, "Power Class" },
1030 { NM_ATT_POWER_THRESH
, "Power Output Thresholds" },
1031 { NM_ATT_PROB_CAUSE
, "Probable Cause" },
1032 { NM_ATT_RACH_B_THRESH
, "RACH Busy Threshold" },
1033 { NM_ATT_LDAVG_SLOTS
, "RACH Load Averaging Slots" },
1034 { NM_ATT_RAD_SUBC
, "Radio Sub Channel" },
1035 { NM_ATT_RF_MAXPOWR_R
, "RF Max Power Reduction" },
1036 { NM_ATT_SITE_INPUTS
, "Site Inputs" },
1037 { NM_ATT_SITE_OUTPUTS
, "Site Outputs" },
1038 { NM_ATT_SOURCE
, "Source" },
1039 { NM_ATT_SPEC_PROB
, "Specific Problems" },
1040 { NM_ATT_START_TIME
, "Starting Time" },
1041 { NM_ATT_T200
, "T200" },
1042 { NM_ATT_TEI
, "TEI" },
1043 { NM_ATT_TEST_DUR
, "Test Duration" },
1044 { NM_ATT_TEST_NO
, "Test No" },
1045 { NM_ATT_TEST_REPORT
, "Test Report Info" },
1046 { NM_ATT_VSWR_THRESH
, "VSWR Thresholds " },
1047 { NM_ATT_WINDOW_SIZE
, "Window Size" },
1048 { NM_ATT_BS11_RSSI_OFFS
, "SIE RSSI Offset" },
1049 { NM_ATT_BS11_TXPWR
, "SIE TX Power" },
1050 { NM_ATT_BS11_DIVERSITY
, "SIE Diversity" },
1051 { NM_ATT_TSC
, "Training Sequence Code" },
1052 { NM_ATT_SW_CONFIG
, "SW Configuration" },
1053 { NM_ATT_SW_DESCR
, "SW Description" },
1054 { NM_ATT_SEVERITY
, "Perceived Severity" },
1055 { NM_ATT_GET_ARI
, "Get ARI" },
1056 { NM_ATT_HW_CONF_CHG
, "HW Configuration Change" },
1057 { NM_ATT_OUTST_ALARM
, "Outstanding Alarm" },
1058 { NM_ATT_FILE_DATA
, "File Data" },
1059 { NM_ATT_MEAS_RES
, "Measurement Result" },
1060 { NM_ATT_MEAS_TYPE
, "Measurement Type" },
1064 /* proprietary Siemens attributes, not in the standard */
1065 static const value_string oml_fom_attr_vals_bs11
[] = {
1066 { NM_ATT_BS11_OM_LAPD_REL_TIMER
,"SIE OML LAPD Release Timer" },
1067 { NM_ATT_BS11_RF_RES_IND_PER
, "SIE RF Resource Indication Period" },
1068 { NM_ATT_BS11_RX_LEV_MIN_CELL
, "SIE RxLevel Min Cell" },
1069 { NM_ATT_BS11_ABIS_EXT_TIME
, "SIE A-bis external time" },
1070 { NM_ATT_BS11_TIMER_HO_REQUEST
, "SIE Timer Handover Request" },
1071 { NM_ATT_BS11_TIMER_NCELL
, "SIE Timer nCell" },
1072 { NM_ATT_BS11_TSYNC
, "SIE Timer Tsync" },
1073 { NM_ATT_BS11_TTRAU
, "SIE Timer Ttrau" },
1074 { NM_ATT_BS11_EMRG_CFG_MEMBER
, "SIE Emergency Config Member" },
1075 { NM_ATT_BS11_TRX_AREA
, "SIE TRX Area" },
1076 { NM_ATT_BS11_BCCH_RECONF
, "SIE BCCH Reconfiguration" },
1077 { NM_ATT_BS11_BIT_ERR_THESH
, "SIE Bit Error Threshold" },
1078 { NM_ATT_BS11_BOOT_SW_VERS
, "SIE Boot Software Version" },
1079 { NM_ATT_BS11_CCLK_ACCURACY
, "SIE CCLK Accuracy" },
1080 { NM_ATT_BS11_CCLK_TYPE
, "SIE CCLK Type" },
1081 { NM_ATT_BS11_INP_IMPEDANCE
, "SIE Input Impedance" },
1082 { NM_ATT_BS11_L1_PROT_TYPE
, "SIE L1 Protocol Type" },
1083 { NM_ATT_BS11_LINE_CFG
, "SIE Line Configuration" },
1084 { NM_ATT_BS11_LI_PORT_1
, "SIE Line Interface Port 1" },
1085 { NM_ATT_BS11_LI_PORT_2
, "SIE Line Interface Port 2" },
1086 { NM_ATT_BS11_L1_REM_ALM_TYPE
, "SIE L1 Remote Alarm Type" },
1087 { NM_ATT_BS11_SW_LOAD_INTENDED
, "SIE Software Load Intended" },
1088 { NM_ATT_BS11_SW_LOAD_SAFETY
, "SIE Software Load Safety" },
1089 { NM_ATT_BS11_SW_LOAD_STORED
, "SIE Software Load Stored" },
1090 { NM_ATT_BS11_VENDOR_NAME
, "SIE Vendor Name" },
1091 { NM_ATT_BS11_HOPPING_MODE
, "SIE Hopping Mode" },
1092 { NM_ATT_BS11_LMT_LOGON_SESSION
,"SIE LMT Logon Session" },
1093 { NM_ATT_BS11_LMT_LOGIN_TIME
, "SIE LMT Login Time" },
1094 { NM_ATT_BS11_LMT_USER_ACC_LEV
, "SIE LMT User Account Level" },
1095 { NM_ATT_BS11_LMT_USER_NAME
, "SIE LMT User Account Name" },
1096 { NM_ATT_BS11_L1_CONTROL_TS
, "SIE L1 Control TS" },
1097 { NM_ATT_BS11_RADIO_MEAS_GRAN
, "SIE Radio Measurement Granularity" },
1098 { NM_ATT_BS11_RADIO_MEAS_REP
, "SIE Radio Measurement Report" },
1099 { NM_ATT_BS11_SH_LAPD_INT_TIMER
,"SIE LAPD Internal Timer" },
1100 { NM_ATT_BS11_BTS_STATE
, "SIE BTS State" },
1101 { NM_ATT_BS11_E1_STATE
, "SIE E1 State" },
1102 { NM_ATT_BS11_PLL
, "SIE PLL" },
1103 { NM_ATT_BS11_RX_OFFSET
, "SIE Rx Offset" },
1104 { NM_ATT_BS11_ANT_TYPE
, "SIE Antenna Type" },
1105 { NM_ATT_BS11_PLL_MODE
, "SIE PLL Mode" },
1106 { NM_ATT_BS11_PASSWORD
, "SIE Password" },
1107 { NM_ATT_BS11_ESN_FW_CODE_NO
, "SIE ESN FW Code Number" },
1108 { NM_ATT_BS11_ESN_HW_CODE_NO
, "SIE ESN HW Code Number" },
1109 { NM_ATT_BS11_ESN_PCB_SERIAL
, "SIE ESN PCB Serial Number" },
1110 { NM_ATT_BS11_EXCESSIVE_DISTANCE
, "SIE Excessive Distance" },
1111 { NM_ATT_BS11_ALL_TEST_CATG
, "SIE All Test Categories" },
1112 { NM_ATT_BS11_BTSLS_HOPPING
, "SIE BTS LS Hopping" },
1113 { NM_ATT_BS11_CELL_ALLOC_NR
, "SIE Cell Allocation Number" },
1114 { NM_ATT_BS11_CELL_GLOBAL_ID
, "SIE Cell Global ID" },
1115 { NM_ATT_BS11_ENA_INTERF_CLASS
, "SIE Enable Interference Class" },
1116 { NM_ATT_BS11_ENA_INT_INTEC_HANDO
, "SIE Enable Int Intec Handover" },
1117 { NM_ATT_BS11_ENA_INT_INTRC_HANDO
, "SIE Enable Int Intrc Handover" },
1118 { NM_ATT_BS11_ENA_MS_PWR_CTRL
, "SIE Enable MS Power Control" },
1119 { NM_ATT_BS11_ENA_PWR_BDGT_HO
, "SIE Enable Power Budget HO" },
1120 { NM_ATT_BS11_ENA_RXLEV_HO
, "SIE Enable RxLevel HO" },
1121 { NM_ATT_BS11_ENA_RXQUAL_HO
, "SIE Enable RxQual HO" },
1122 { NM_ATT_BS11_FACCH_QUAL
, "SIE FACCH Quality" },
1126 /* proprietary ip.access attributes, not in the standard */
1127 static const value_string oml_fom_attr_vals_ipa
[] = {
1128 { NM_ATT_IPACC_DST_IP
, "IPA Destination IP Address" },
1129 { NM_ATT_IPACC_DST_IP_PORT
, "IPA Destination IP Port" },
1130 { NM_ATT_IPACC_SSRC
, "IPA RTP SSRC" },
1131 { NM_ATT_IPACC_RTP_PAYLD_TYPE
, "IPA RTP Payload Type" },
1132 { NM_ATT_IPACC_BASEB_ID
, "IPA Baseband Identifier" },
1133 { NM_ATT_IPACC_STREAM_ID
, "IPA Stream Identifier" },
1134 { NM_ATT_IPACC_NV_FLAGS
, "IPA NVRAM Flags" },
1135 { NM_ATT_IPACC_FREQ_CTRL
, "IPA Frequency Control" },
1136 { NM_ATT_IPACC_PRIM_OML_CFG
, "IPA Primary OML Config" },
1137 { NM_ATT_IPACC_SEC_OML_CFG
, "IPA Secondary OML Config" },
1138 { NM_ATT_IPACC_IP_IF_CFG
, "IPA IP Interface Config" },
1139 { NM_ATT_IPACC_IP_GW_CFG
, "IPA IP Gateway Config" },
1140 { NM_ATT_IPACC_IN_SERV_TIME
, "IPA In Service Time" },
1141 { NM_ATT_IPACC_TRX_BTS_ASS
, "IPA TRX BTS Assignment" },
1142 { NM_ATT_IPACC_LOCATION
, "IPA BTS Location Name" },
1143 { NM_ATT_IPACC_PAGING_CFG
, "IPA Paging Configuration" },
1144 { NM_ATT_IPACC_FILE_DATA
, "IPA File Data" },
1145 { NM_ATT_IPACC_UNIT_ID
, "IPA Unit ID" },
1146 { NM_ATT_IPACC_PARENT_UNIT_ID
, "IPA Parent Unit ID" },
1147 { NM_ATT_IPACC_UNIT_NAME
, "IPA Unit Name" },
1148 { NM_ATT_IPACC_SNMP_CFG
, "IPA SNMP Config" },
1149 { NM_ATT_IPACC_PRIM_OML_CFG_LIST
, "IPA Primary OML Config List" },
1150 { NM_ATT_IPACC_PRIM_OML_FB_TOUT
,"IPA Primary OML Fallback Timeout" },
1151 { NM_ATT_IPACC_CUR_SW_CFG
, "IPA Current Software Config" },
1152 { NM_ATT_IPACC_TIMING_BUS
, "IPA Timing Bus" },
1153 { NM_ATT_IPACC_CGI
, "IPA CGI" },
1154 { NM_ATT_IPACC_RAC
, "IPA RAC" },
1155 { NM_ATT_IPACC_OBJ_VERSION
, "IPA Object Version" },
1156 { NM_ATT_IPACC_GPRS_PAGING_CFG
, "IPA GPRS Paging Configuration" },
1157 { NM_ATT_IPACC_NSEI
, "IPA NSEI" },
1158 { NM_ATT_IPACC_BVCI
, "IPA BVCI" },
1159 { NM_ATT_IPACC_NSVCI
, "IPA NSVCI" },
1160 { NM_ATT_IPACC_NS_CFG
, "IPA NS Configuration" },
1161 { NM_ATT_IPACC_BSSGP_CFG
, "IPA BSSGP Configuration" },
1162 { NM_ATT_IPACC_NS_LINK_CFG
, "IPA NS Link Configuration" },
1163 { NM_ATT_IPACC_RLC_CFG
, "IPA RLC Configuration" },
1164 { NM_ATT_IPACC_ALM_THRESH_LIST
, "IPA Alarm Threshold List" },
1165 { NM_ATT_IPACC_MONIT_VAL_LIST
, "IPA Monitored Value List" },
1166 { NM_ATT_IPACC_TIB_CONTROL
, "IPA Timing Interface Bus Control" },
1167 { NM_ATT_IPACC_SUPP_FEATURES
, "IPA Supported Features" },
1168 { NM_ATT_IPACC_CODING_SCHEMES
, "IPA Coding Schemes" },
1169 { NM_ATT_IPACC_RLC_CFG_2
, "IPA RLC Configuration 2" },
1170 { NM_ATT_IPACC_HEARTB_TOUT
, "IPA Heartbeat Timeout" },
1171 { NM_ATT_IPACC_UPTIME
, "IPA Uptime" },
1172 { NM_ATT_IPACC_RLC_CFG_3
, "IPA RLC Configuration 3" },
1173 { NM_ATT_IPACC_SSL_CFG
, "IPA SSL Configuration" },
1174 { NM_ATT_IPACC_SEC_POSSIBLE
, "IPA Security Possible" },
1175 { NM_ATT_IPACC_IML_SSL_STATE
, "IPA IML SSL State" },
1176 { NM_ATT_IPACC_REVOC_DATE
, "IPA Revocation Date" },
1180 static const enum_val_t oml_dialect_enumvals
[] = {
1181 { "etsi", "ETSI/3GPP TS 12.21", OML_DIALECT_ETSI
},
1182 { "siemens", "Siemens", OML_DIALECT_SIEMENS
},
1183 { "ipaccess", "ip.access", OML_DIALECT_IPA
},
1184 { "om2000", "Ericsson OM2000", OML_DIALECT_ERICSSON
},
1188 static void format_custom_msgtype(char *out
, uint32_t in
)
1190 const char *tmp
= NULL
;
1193 switch (global_oml_dialect
) {
1194 case OML_DIALECT_SIEMENS
:
1195 tmp
= try_val_to_str(in
, oml_fom_msgtype_vals_bs11
);
1197 case OML_DIALECT_IPA
:
1198 tmp
= try_val_to_str(in
, oml_fom_msgtype_vals_ipa
);
1200 case OML_DIALECT_ETSI
:
1202 /* Handled by tmp == NULL below */
1207 snprintf(out
, ITEM_LABEL_LENGTH
, "%s", tmp
);
1209 tmp_str
= val_to_str_wmem(NULL
, in
, oml_fom_msgtype_vals
, "Unknown 0x%02x");
1210 snprintf(out
, ITEM_LABEL_LENGTH
, "%s", tmp_str
);
1211 wmem_free(NULL
, tmp_str
);
1215 static void format_custom_attr(char *out
, uint32_t in
)
1217 const char *tmp
= NULL
;
1220 switch (global_oml_dialect
) {
1221 case OML_DIALECT_SIEMENS
:
1222 tmp
= try_val_to_str(in
, oml_fom_attr_vals_bs11
);
1224 case OML_DIALECT_IPA
:
1225 tmp
= try_val_to_str(in
, oml_fom_attr_vals_ipa
);
1227 case OML_DIALECT_ETSI
:
1229 /* Handled by tmp == NULL below */
1234 snprintf(out
, ITEM_LABEL_LENGTH
, "%s", tmp
);
1236 tmp_str
= val_to_str_wmem(NULL
, in
, oml_fom_attr_vals
, "Unknown 0x%02x");
1237 snprintf(out
, ITEM_LABEL_LENGTH
, "%s", tmp_str
);
1238 wmem_free(NULL
, tmp_str
);
1242 /* Interference level boundaries are coded as a binary presentation of -x dBm */
1243 static void format_interf_bound(char *buf
, const uint32_t in
)
1245 snprintf(buf
, ITEM_LABEL_LENGTH
, "-%u%s", in
,
1246 unit_name_string_get_value(in
, &units_dbm
));
1249 /* Section 9.4.4: Administrative State */
1250 static const value_string oml_adm_state_vals
[] = {
1251 { NM_STATE_LOCKED
, "Locked" },
1252 { NM_STATE_UNLOCKED
, "Unlocked" },
1253 { NM_STATE_SHUTDOWN
, "Shutdown" },
1254 { NM_STATE_NULL
, "Null" },
1258 static const value_string oml_oper_state_vals
[] = {
1265 /* Section 9.4.7 Availability Status */
1266 static const value_string oml_avail_state_vals
[] = {
1271 { 5, "Dependency" },
1273 { 7, "Not installed" },
1278 /* Section 9.4.13: Channel Combination */
1279 static const value_string oml_chan_comb_vals
[] = {
1280 { NM_CHANC_TCHFull
, "TCH/F" },
1281 { NM_CHANC_TCHHalf
, "TCH/H" },
1282 { NM_CHANC_TCHHalf2
, "TCH/H 2" },
1283 { NM_CHANC_SDCCH
, "SDCCH" },
1284 { NM_CHANC_mainBCCH
, "Main BCCH" },
1285 { NM_CHANC_BCCHComb
, "Combined BCCH" },
1286 { NM_CHANC_BCCH
, "BCCH" },
1287 { NM_CHANC_BCCH_CBCH
, "BCCH+CBCH" },
1288 { NM_CHANC_SDCCH_CBCH
, "SDCCH+CBCH" },
1292 /* Section 9.4.16: Event Type */
1293 static const value_string oml_event_type_vals
[] = {
1294 { NM_EVT_COMM_FAIL
, "Communication Failure" },
1295 { NM_EVT_QOS_FAIL
, "QoS Failure" },
1296 { NM_EVT_PROC_FAIL
, "Processor Failure" },
1297 { NM_EVT_EQUIP_FAIL
, "Equipment Failure" },
1298 { NM_EVT_ENV_FAIL
, "Environment Failure" },
1302 /* Section 9.4.63: Perceived Severity */
1303 static const value_string oml_severity_vals
[] = {
1304 { NM_SEVER_CEASED
, "Ceased" },
1305 { NM_SEVER_CRITICAL
, "Critical" },
1306 { NM_SEVER_MAJOR
, "Major" },
1307 { NM_SEVER_MINOR
, "Minor" },
1308 { NM_SEVER_WARNING
, "Warning" },
1309 { NM_SEVER_INDETERMINATE
, "Indeterminate" },
1313 /* Section 9.4.36: NACK Causes */
1314 static const value_string oml_nack_causes
[] = {
1315 { NM_NACK_INCORR_STRUCT
, "Incorrect message structure" },
1316 { NM_NACK_MSGTYPE_INVAL
, "Invalid message type value" },
1317 { NM_NACK_OBJCLASS_INVAL
, "Invalid Object class value" },
1318 { NM_NACK_OBJCLASS_NOTSUPP
, "Object Class not supported" },
1319 { NM_NACK_BTSNR_UNKN
, "BTS Number unknown" },
1320 { NM_NACK_TRXNR_UNKN
, "TRX Number unknown" },
1321 { NM_NACK_OBJINST_UNKN
, "Object Instance unknown" },
1322 { NM_NACK_ATTRID_INVAL
, "Invalid Attribute ID value" },
1323 { NM_NACK_ATTRID_NOTSUPP
, "Attribute ID not supported" },
1324 { NM_NACK_PARAM_RANGE
, "Parameter value out of range" },
1325 { NM_NACK_ATTRLIST_INCONSISTENT
, "Inconsistency in Attribute list" },
1326 { NM_NACK_SPEC_IMPL_NOTSUPP
, "Specified Implementation not supported" },
1327 { NM_NACK_CANT_PERFORM
, "Message cannot be performed" },
1328 { NM_NACK_RES_NOTIMPL
, "Resource not implemented" },
1329 { NM_NACK_RES_NOTAVAIL
, "Resource not available" },
1330 { NM_NACK_FREQ_NOTAVAIL
, "Frequency not available" },
1331 { NM_NACK_TEST_NOTSUPP
, "Test not supported" },
1332 { NM_NACK_CAPACITY_RESTR
, "Capacity restrictions" },
1333 { NM_NACK_PHYSCFG_NOTPERFORM
, "Phys config cannot be performed" },
1334 { NM_NACK_TEST_NOTINIT
, "Test not initiated" },
1335 { NM_NACK_PHYSCFG_NOTRESTORE
, "Phys config cannot be restored" },
1336 { NM_NACK_TEST_NOSUCH
, "No such Test" },
1337 { NM_NACK_TEST_NOSTOP
, "Test cannot be stopped" },
1338 { NM_NACK_MSGINCONSIST_PHYSCFG
, "Message inconsistent with physical config" },
1339 { NM_NACK_FILE_INCOMPLETE
, "Complete file not received" },
1340 { NM_NACK_FILE_NOTAVAIL
, "File not available at destination" },
1341 { NM_NACK_FILE_NOTACTIVATE
, "File cannot be activated" },
1342 { NM_NACK_REQ_NOT_GRANT
, "Request not granted" },
1343 { NM_NACK_WAIT
, "Wait" },
1344 { NM_NACK_NOTH_REPORT_EXIST
, "Nothing reportable existing" },
1345 { NM_NACK_MEAS_NOTSUPP
, "Measurement not supported" },
1346 { NM_NACK_MEAS_NOTSTART
, "Measurement not started" },
1351 static const value_string oml_test_no_vals
[] = {
1352 { NM_IPACC_TESTNO_RLOOP_ANT
, "Radio Loop test via antenna" },
1353 { NM_IPACC_TESTNO_RLOOP_XCVR
, "Radio Loop test via transceiver" },
1354 { NM_IPACC_TESTNO_FUNC_OBJ
, "BTS Functional object self test" },
1355 { NM_IPACC_TESTNO_CHAN_USAGE
, "Channel Usage" },
1356 { NM_IPACC_TESTNO_BCCH_CHAN_USAGE
, "BCCH Channel Usage" },
1357 { NM_IPACC_TESTNO_FREQ_SYNC
, "Frequency Synchronization" },
1358 { NM_IPACC_TESTNO_BCCH_INFO
, "BCCH Information" },
1359 { NM_IPACC_TESTNO_TX_BEACON
, "Transmit Beacon" },
1360 { NM_IPACC_TESTNO_SYSINFO_MONITOR
, "SysInfo Monitor" },
1361 { NM_IPACC_TESTNO_BCCCH_MONITOR
, "BCCH & CCCH Monitor" },
1365 static const value_string ipacc_test_res_vals
[] = {
1366 { NM_IPACC_TESTRES_SUCCESS
, "Success" },
1367 { NM_IPACC_TESTRES_TIMEOUT
, "Timeout" },
1368 { NM_IPACC_TESTRES_NO_CHANS
, "No suitable channels available" },
1369 { NM_IPACC_TESTRES_PARTIAL
, "Partial" },
1370 { NM_IPACC_TESTRES_STOPPED
, "Stopped" },
1374 static const value_string ipacc_testres_ie_vals
[] = {
1375 { NM_IPACC_TR_IE_FREQ_ERR_LIST
, "Frequency Error List" },
1376 { NM_IPACC_TR_IE_CHAN_USAGE
, "Channel Usage" },
1377 { NM_IPACC_TR_IE_BCCH_INFO
, "BCCH Information" },
1378 { NM_IPACC_TR_IE_RESULT_DETAILS
,"Result Details" },
1379 { NM_IPACC_TR_IE_FREQ_ERR
, "Frequency Error" },
1383 static const value_string rlc_cfg2_init_cs_vals
[] = {
1391 static const value_string rlc_cfg2_init_mcs_vals
[] = {
1404 /* ANSI C does not allow selective initialization of arrays, for that reason,
1405 * we initialize these three TLV definitions in proto_register_abis_oml(). */
1406 static struct tlv_definition nm_att_tlvdef_base
;
1407 static struct tlv_definition nm_att_tlvdev_bs11
;
1408 static struct tlv_definition nm_att_tlvdef_ipa
;
1410 static const struct tlv_def
*
1411 find_tlv_tag(uint8_t tag
)
1413 const struct tlv_def
*specific
;
1415 switch (global_oml_dialect
) {
1416 case OML_DIALECT_IPA
:
1417 specific
= &nm_att_tlvdef_ipa
.def
[tag
];
1419 case OML_DIALECT_SIEMENS
:
1420 specific
= &nm_att_tlvdev_bs11
.def
[tag
];
1422 case OML_DIALECT_ETSI
:
1428 if (specific
&& specific
->type
!= TLV_TYPE_UNKNOWN
)
1431 return &nm_att_tlvdef_base
.def
[tag
];
1434 /* Parse the ip.access specific BCCH Information IE embedded into the Test
1437 ipacc_tr_ie_bcch(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*att_tree
,
1440 uint16_t binfo_type
;
1442 binfo_type
= tvb_get_ntohs(tvb
, offset
);
1445 /* FIXME: there are still some bugs remaining here */
1446 proto_tree_add_item(att_tree
, hf_attr_ipa_tr_arfcn
,
1447 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
1449 proto_tree_add_item(att_tree
, hf_attr_ipa_tr_f_qual
,
1450 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
1453 proto_tree_add_item(att_tree
, hf_attr_ipa_tr_b_rxlev
,
1454 tvb
, offset
++, 1, ENC_LITTLE_ENDIAN
);
1456 proto_tree_add_item(att_tree
, hf_attr_ipa_tr_rxqual
,
1457 tvb
, offset
++, 1, ENC_LITTLE_ENDIAN
);
1459 proto_tree_add_item(att_tree
, hf_attr_ipa_tr_f_err
,
1460 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
1463 proto_tree_add_item(att_tree
, hf_attr_ipa_tr_frame_offs
,
1464 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
1466 proto_tree_add_item(att_tree
, hf_attr_ipa_tr_framenr_offs
,
1467 tvb
, offset
, 4, ENC_LITTLE_ENDIAN
);
1470 proto_tree_add_item(att_tree
, hf_attr_ipa_tr_bsic
,
1471 tvb
, offset
++, 1, ENC_LITTLE_ENDIAN
);
1473 de_lai(tvb
, att_tree
, pinfo
, offset
, 5, NULL
, 0);
1476 proto_tree_add_item(att_tree
, hf_attr_ipa_tr_cell_id
,
1477 tvb
, offset
, 2, ENC_LITTLE_ENDIAN
);
1480 if (binfo_type
& 0x8000) {
1481 /* System Information 2 */
1482 /* FIXME: Parse 04.18 Neighbour Cell Description */
1483 proto_tree_add_item(att_tree
, hf_attr_ipa_tr_si2
,
1484 tvb
, offset
, 16, ENC_NA
);
1487 if (binfo_type
& 0x0001) {
1488 /* System Information 2bis */
1489 /* FIXME: Parse 04.18 Neighbour Cell Description */
1490 proto_tree_add_item(att_tree
, hf_attr_ipa_tr_si2bis
,
1491 tvb
, offset
, 16, ENC_NA
);
1494 if (binfo_type
& 0x0002) {
1495 /* System Information 2ter */
1496 /* FIXME: Parse 04.18 Neighbour Cell Description */
1497 proto_tree_add_item(att_tree
, hf_attr_ipa_tr_si2ter
,
1498 tvb
, offset
, 16, ENC_NA
);
1501 if (binfo_type
& 0x0004) {
1502 /* FIXME: Parse 04.18 Cell Channel Description */
1503 proto_tree_add_item(att_tree
, hf_attr_ipa_tr_chan_desc
,
1504 tvb
, offset
, 16, ENC_NA
);
1511 /* Parse the ip.access specific Channel Usage IE embedded into the Test
1514 ipacc_tr_ie_chan_usage(tvbuff_t
*tvb
, proto_tree
*att_tree
, int offset
)
1516 while (tvb_reported_length_remaining(tvb
, offset
) > 0) {
1519 result
= tvb_get_ntohs(tvb
, offset
);
1520 proto_tree_add_uint(att_tree
, hf_attr_ipa_tr_arfcn
,
1521 tvb
, offset
, 2, result
);
1522 proto_tree_add_uint(att_tree
, hf_attr_ipa_tr_rxlev
,
1523 tvb
, offset
, 2, result
);
1529 /* Parse the ip.access specific format of the standard test report IE */
1531 dissect_ipacc_test_rep(proto_tree
*tree
, packet_info
*pinfo
, tvbuff_t
*tvb
)
1535 proto_tree_add_item(tree
, hf_attr_ipa_test_res
, tvb
, offset
++,
1538 while (tvb_reported_length_remaining(tvb
, offset
) > 0) {
1542 proto_tree
*att_tree
;
1544 ie
= tvb_get_uint8(tvb
, offset
);
1545 len
= tvb_get_ntohs(tvb
, offset
+1);
1546 ti
= proto_tree_add_item(tree
, hf_oml_ipa_tres_attr_tag
, tvb
,
1547 offset
++, 1, ENC_BIG_ENDIAN
);
1548 att_tree
= proto_item_add_subtree(ti
, ett_oml_fom_att
);
1549 proto_tree_add_uint(att_tree
, hf_oml_ipa_tres_attr_len
, tvb
,
1554 case NM_IPACC_TR_IE_CHAN_USAGE
:
1555 offset
= ipacc_tr_ie_chan_usage(tvb
,
1558 case NM_IPACC_TR_IE_BCCH_INFO
:
1559 offset
= ipacc_tr_ie_bcch(tvb
, pinfo
,
1569 /* Dissect OML FOM Attributes after OML + FOM header */
1571 // NOLINTNEXTLINE(misc-no-recursion)
1572 dissect_oml_attrs(tvbuff_t
*tvb
, int base_offs
, int length
,
1573 packet_info
*pinfo
, proto_tree
*tree
)
1575 int offset
= base_offs
;
1577 while (offset
- base_offs
< length
) {
1581 unsigned int len
, len_len
, hlen
;
1582 const struct tlv_def
*tdef
;
1584 proto_tree
*att_tree
;
1588 tag
= tvb_get_uint8(tvb
, offset
);
1589 ti
= proto_tree_add_item(tree
, hf_oml_fom_attr_tag
, tvb
,
1590 offset
, 1, ENC_BIG_ENDIAN
);
1591 att_tree
= proto_item_add_subtree(ti
, ett_oml_fom_att
);
1593 tdef
= find_tlv_tag(tag
);
1595 switch (tdef
->type
) {
1596 case TLV_TYPE_FIXED
:
1599 len
= tdef
->fixed_len
;
1614 len
= tvb_get_uint8(tvb
, offset
+1);
1616 case TLV_TYPE_TL16V
:
1619 len
= tvb_get_uint8(tvb
, offset
+1) << 8 |
1620 tvb_get_uint8(tvb
, offset
+2);
1622 case TLV_TYPE_TLV16
:
1625 len
= tvb_get_uint8(tvb
, offset
+1) * 2;
1627 case TLV_TYPE_UNKNOWN
: /* fall through */
1629 expert_add_info(pinfo
, ti
, &ei_unknown_type
);
1630 return tvb_captured_length(tvb
);
1633 proto_tree_add_uint(att_tree
, hf_oml_fom_attr_len
, tvb
,
1634 offset
+1, len_len
, len
);
1637 /* Empty IE => nothing to dissect */
1642 sub_tvb
= tvb_new_subset_length(tvb
, offset
, len
);
1645 /* parse only the most common IE for now */
1646 case NM_ATT_ABIS_CHANNEL
:
1647 proto_tree_add_item(att_tree
, hf_attr_ach_btsp
, tvb
,
1648 offset
, 1, ENC_LITTLE_ENDIAN
);
1649 proto_tree_add_item(att_tree
, hf_attr_ach_tslot
, tvb
,
1650 offset
+1, 1, ENC_LITTLE_ENDIAN
);
1651 proto_tree_add_item(att_tree
, hf_attr_ach_sslot
, tvb
,
1652 offset
+2, 1, ENC_LITTLE_ENDIAN
);
1654 case NM_ATT_ADM_STATE
:
1655 proto_tree_add_item(att_tree
, hf_attr_adm_state
, tvb
,
1656 offset
, len
, ENC_BIG_ENDIAN
);
1657 val8
= tvb_get_uint8(tvb
, offset
);
1658 col_append_fstr(pinfo
->cinfo
, COL_INFO
, "%s ",
1659 val_to_str(val8
, oml_adm_state_vals
,
1662 case NM_ATT_ARFCN_LIST
:
1663 for (i
= 0; i
< len
; i
+= 2) {
1664 proto_tree_add_item(att_tree
, hf_attr_arfcn
,
1669 case NM_ATT_RF_MAXPOWR_R
:
1670 val8
= tvb_get_uint8(tvb
, offset
); /* 2 dB steps */
1671 proto_tree_add_uint(att_tree
, hf_attr_rf_max_pwr_red
,
1672 tvb
, offset
, 1, val8
* 2);
1674 case NM_ATT_AVAIL_STATUS
:
1675 /* Availability status can have length 0 */
1677 val8
= tvb_get_uint8(tvb
, offset
);
1678 proto_tree_add_item(att_tree
,
1679 hf_attr_avail_state
, tvb
,
1680 offset
, len
, ENC_BIG_ENDIAN
);
1683 col_append_fstr(pinfo
->cinfo
, COL_INFO
, "%s ",
1684 val_to_str(val8
, oml_avail_state_vals
,
1687 case NM_ATT_BCCH_ARFCN
:
1688 proto_tree_add_item(att_tree
, hf_attr_bcch_arfcn
, tvb
,
1689 offset
, len
, ENC_BIG_ENDIAN
);
1692 proto_tree_add_item(att_tree
, hf_attr_bsic
, tvb
,
1693 offset
, len
, ENC_LITTLE_ENDIAN
);
1695 case NM_ATT_CHAN_COMB
:
1696 proto_tree_add_item(att_tree
, hf_attr_chan_comb
, tvb
,
1697 offset
, len
, ENC_LITTLE_ENDIAN
);
1699 case NM_ATT_EVENT_TYPE
:
1700 proto_tree_add_item(att_tree
, hf_attr_event_type
, tvb
,
1701 offset
, len
, ENC_LITTLE_ENDIAN
);
1703 case NM_ATT_GSM_TIME
:
1704 proto_tree_add_item(att_tree
, hf_attr_gsm_time
, tvb
,
1705 offset
, len
, ENC_LITTLE_ENDIAN
);
1707 case NM_ATT_OPER_STATE
:
1708 proto_tree_add_item(att_tree
, hf_attr_oper_state
, tvb
,
1709 offset
, len
, ENC_BIG_ENDIAN
);
1710 val8
= tvb_get_uint8(tvb
, offset
);
1711 col_append_fstr(pinfo
->cinfo
, COL_INFO
, "%s ",
1712 val_to_str(val8
, oml_oper_state_vals
,
1716 proto_tree_add_item(att_tree
, hf_attr_tei
, tvb
,
1717 offset
, len
, ENC_LITTLE_ENDIAN
);
1720 proto_tree_add_item(att_tree
, hf_attr_tsc
, tvb
,
1721 offset
, len
, ENC_LITTLE_ENDIAN
);
1723 case NM_ATT_SEVERITY
:
1724 proto_tree_add_item(att_tree
, hf_attr_severity
, tvb
,
1725 offset
, len
, ENC_LITTLE_ENDIAN
);
1727 case NM_ATT_NACK_CAUSES
:
1728 proto_tree_add_item(att_tree
, hf_attr_nack_causes
, tvb
,
1729 offset
, len
, ENC_LITTLE_ENDIAN
);
1731 case NM_ATT_TEST_REPORT
:
1732 dissect_ipacc_test_rep(att_tree
, pinfo
, sub_tvb
);
1734 case NM_ATT_TEST_NO
:
1735 proto_tree_add_item(att_tree
, hf_attr_test_no
, tvb
,
1736 offset
, len
, ENC_LITTLE_ENDIAN
);
1737 val8
= tvb_get_uint8(tvb
, offset
);
1738 col_append_fstr(pinfo
->cinfo
, COL_INFO
, "%s ",
1739 val_to_str(val8
, oml_test_no_vals
,
1743 proto_tree_add_item(att_tree
, hf_attr_hsn
, tvb
,
1744 offset
, len
, ENC_LITTLE_ENDIAN
);
1747 proto_tree_add_item(att_tree
, hf_attr_maio
, tvb
,
1748 offset
, len
, ENC_LITTLE_ENDIAN
);
1750 case NM_ATT_LIST_REQ_ATTR
:
1751 for (i
= 0; i
< len
; i
++) {
1752 proto_tree_add_item(att_tree
, hf_attr_list_req_attr
,
1757 case NM_ATT_GET_ARI
:
1759 unsigned not_counted
, loffset
;
1765 not_counted
= tvb_get_uint8(tvb
, offset
);
1766 proto_tree_add_item(att_tree
, hf_attr_ari_not_reported_cnt
,
1770 for (i
= 0; i
< not_counted
; i
++) {
1771 proto_tree_add_item(att_tree
, hf_attr_ari_not_reported_attr
,
1775 increment_dissection_depth(pinfo
);
1776 dissect_oml_attrs(tvb
, loffset
, len
- 1 - not_counted
, pinfo
, att_tree
);
1777 decrement_dissection_depth(pinfo
);
1780 case NM_ATT_INTERF_BOUND
:
1781 proto_tree_add_item(att_tree
, hf_attr_interf_bound0
,
1782 tvb
, offset
+ 0, 1, ENC_NA
);
1783 proto_tree_add_item(att_tree
, hf_attr_interf_bound1
,
1784 tvb
, offset
+ 1, 1, ENC_NA
);
1785 proto_tree_add_item(att_tree
, hf_attr_interf_bound2
,
1786 tvb
, offset
+ 2, 1, ENC_NA
);
1787 proto_tree_add_item(att_tree
, hf_attr_interf_bound3
,
1788 tvb
, offset
+ 3, 1, ENC_NA
);
1789 proto_tree_add_item(att_tree
, hf_attr_interf_bound4
,
1790 tvb
, offset
+ 4, 1, ENC_NA
);
1791 proto_tree_add_item(att_tree
, hf_attr_interf_bound5
,
1792 tvb
, offset
+ 5, 1, ENC_NA
);
1795 proto_tree_add_item(att_tree
, hf_oml_fom_attr_val
, tvb
,
1796 offset
, len
, ENC_NA
);
1799 if (global_oml_dialect
== OML_DIALECT_IPA
) switch (tag
) {
1800 /* proprietary ip.access extensions */
1801 case NM_ATT_IPACC_DST_IP
:
1802 proto_tree_add_item(att_tree
, hf_attr_ipa_rsl_ip
, tvb
,
1803 offset
, len
, ENC_NA
);
1805 case NM_ATT_IPACC_DST_IP_PORT
:
1806 proto_tree_add_item(att_tree
, hf_attr_ipa_rsl_port
, tvb
,
1807 offset
, len
, ENC_BIG_ENDIAN
);
1809 case NM_ATT_IPACC_LOCATION
:
1810 proto_tree_add_item(att_tree
, hf_attr_ipa_location_name
,
1811 tvb
, offset
, len
, ENC_ASCII
);
1813 case NM_ATT_IPACC_UNIT_ID
:
1814 proto_tree_add_item(att_tree
, hf_attr_ipa_unit_id
,
1815 tvb
, offset
, len
, ENC_ASCII
);
1817 case NM_ATT_IPACC_UNIT_NAME
:
1818 proto_tree_add_item(att_tree
, hf_attr_ipa_unit_name
,
1819 tvb
, offset
, len
, ENC_ASCII
);
1821 case NM_ATT_IPACC_PRIM_OML_CFG_LIST
:
1822 proto_tree_add_item(att_tree
, hf_attr_ipa_prim_oml_ip
,
1823 tvb
, offset
+1, 4, ENC_BIG_ENDIAN
);
1824 proto_tree_add_item(att_tree
, hf_attr_ipa_prim_oml_port
,
1825 tvb
, offset
+1+4, 2, ENC_LITTLE_ENDIAN
);
1827 case NM_ATT_IPACC_NV_FLAGS
:
1829 unsigned flags
, mask
;
1830 flags
= tvb_get_uint8(tvb
, offset
);
1831 mask
= tvb_get_uint8(tvb
, offset
+1);
1832 flags
|= tvb_get_uint8(tvb
, offset
+2) << 8;
1833 mask
|= tvb_get_uint8(tvb
, offset
+3) << 8;
1834 proto_tree_add_uint(att_tree
, hf_attr_ipa_nv_flags
,
1835 tvb
, offset
, 3, flags
);
1836 proto_tree_add_uint(att_tree
, hf_attr_ipa_nv_mask
,
1837 tvb
, offset
+1, 3, mask
);
1840 case NM_ATT_IPACC_RAC
:
1841 proto_tree_add_item(att_tree
, hf_attr_ipa_rac
,
1842 tvb
, offset
, 1, ENC_LITTLE_ENDIAN
);
1844 case NM_ATT_IPACC_NSEI
:
1845 proto_tree_add_item(att_tree
, hf_attr_ipa_nsei
,
1846 tvb
, offset
, 2, ENC_BIG_ENDIAN
);
1848 case NM_ATT_IPACC_NSVCI
:
1849 proto_tree_add_item(att_tree
, hf_attr_ipa_nsvci
,
1850 tvb
, offset
, 2, ENC_BIG_ENDIAN
);
1852 case NM_ATT_IPACC_BVCI
:
1853 proto_tree_add_item(att_tree
, hf_attr_ipa_bvci
,
1854 tvb
, offset
, 2, ENC_BIG_ENDIAN
);
1856 case NM_ATT_IPACC_NS_LINK_CFG
:
1857 proto_tree_add_item(att_tree
, hf_attr_ipa_nsl_dport
,
1858 tvb
, offset
, 2, ENC_BIG_ENDIAN
);
1859 proto_tree_add_item(att_tree
, hf_attr_ipa_nsl_daddr
,
1860 tvb
, offset
+2, 4, ENC_NA
);
1861 proto_tree_add_item(att_tree
, hf_attr_ipa_nsl_sport
,
1862 tvb
, offset
+6, 2, ENC_BIG_ENDIAN
);
1864 case NM_ATT_IPACC_NS_CFG
:
1865 /* (Un)Blocking Timer and Retries */
1866 proto_tree_add_item(att_tree
, hf_attr_ipa_ns_cfg_unblock_timer
,
1867 tvb
, ie_offset
++, 1, ENC_NA
);
1868 proto_tree_add_item(att_tree
, hf_attr_ipa_ns_cfg_unblock_retries
,
1869 tvb
, ie_offset
++, 1, ENC_NA
);
1870 /* Reset Timer and Retries */
1871 proto_tree_add_item(att_tree
, hf_attr_ipa_ns_cfg_reset_timer
,
1872 tvb
, ie_offset
++, 1, ENC_NA
);
1873 proto_tree_add_item(att_tree
, hf_attr_ipa_ns_cfg_reset_retries
,
1874 tvb
, ie_offset
++, 1, ENC_NA
);
1875 /* Test Timer, Alive Timer and Retries */
1876 proto_tree_add_item(att_tree
, hf_attr_ipa_ns_cfg_test_timer
,
1877 tvb
, ie_offset
++, 1, ENC_NA
);
1878 proto_tree_add_item(att_tree
, hf_attr_ipa_ns_cfg_alive_timer
,
1879 tvb
, ie_offset
++, 1, ENC_NA
);
1880 proto_tree_add_item(att_tree
, hf_attr_ipa_ns_cfg_alive_retries
,
1881 tvb
, ie_offset
++, 1, ENC_NA
);
1883 case NM_ATT_IPACC_GPRS_PAGING_CFG
:
1884 val8
= tvb_get_uint8(tvb
, ie_offset
); /* units: 50 ms */
1885 proto_tree_add_uint(att_tree
, hf_attr_ipa_gprs_paging_rep_time
,
1886 tvb
, ie_offset
++, 1, val8
* 50);
1887 proto_tree_add_item(att_tree
, hf_attr_ipa_gprs_paging_rep_count
,
1888 tvb
, ie_offset
++, 1, ENC_NA
);
1890 case NM_ATT_IPACC_RLC_CFG
:
1891 proto_tree_add_item(att_tree
, hf_attr_ipa_rlc_cfg_t3142
,
1892 tvb
, ie_offset
++, 1, ENC_NA
);
1893 proto_tree_add_item(att_tree
, hf_attr_ipa_rlc_cfg_t3169
,
1894 tvb
, ie_offset
++, 1, ENC_NA
);
1895 proto_tree_add_item(att_tree
, hf_attr_ipa_rlc_cfg_t3191
,
1896 tvb
, ie_offset
++, 1, ENC_NA
);
1897 val8
= tvb_get_uint8(tvb
, ie_offset
); /* units: 10 ms */
1898 proto_tree_add_uint(att_tree
, hf_attr_ipa_rlc_cfg_t3193
,
1899 tvb
, ie_offset
++, 1, val8
* 10);
1900 proto_tree_add_item(att_tree
, hf_attr_ipa_rlc_cfg_t3195
,
1901 tvb
, ie_offset
++, 1, ENC_NA
);
1902 proto_tree_add_item(att_tree
, hf_attr_ipa_rlc_cfg_t3101
,
1903 tvb
, ie_offset
++, 1, ENC_NA
);
1904 proto_tree_add_item(att_tree
, hf_attr_ipa_rlc_cfg_t3103
,
1905 tvb
, ie_offset
++, 1, ENC_NA
);
1906 proto_tree_add_item(att_tree
, hf_attr_ipa_rlc_cfg_t3105
,
1907 tvb
, ie_offset
++, 1, ENC_NA
);
1908 proto_tree_add_item(att_tree
, hf_attr_ipa_rlc_cfg_countdown
,
1909 tvb
, ie_offset
++, 1, ENC_NA
);
1911 case NM_ATT_IPACC_RLC_CFG_2
:
1912 val16
= tvb_get_uint16(tvb
, ie_offset
, ENC_BIG_ENDIAN
); /* units: 10 ms */
1913 proto_tree_add_uint(att_tree
, hf_attr_ipa_rlc_cfg2_t_dl_tbf_ext
,
1914 tvb
, ie_offset
, 2, val16
* 10);
1916 val16
= tvb_get_uint16(tvb
, ie_offset
, ENC_BIG_ENDIAN
); /* units: 10 ms */
1917 proto_tree_add_uint(att_tree
, hf_attr_ipa_rlc_cfg2_t_ul_tbf_ext
,
1918 tvb
, ie_offset
, 2, val16
* 10);
1920 proto_tree_add_item(att_tree
, hf_attr_ipa_rlc_cfg2_init_cs
,
1921 tvb
, ie_offset
++, 1, ENC_NA
);
1923 case NM_ATT_IPACC_RLC_CFG_3
:
1924 proto_tree_add_item(att_tree
, hf_attr_ipa_rlc_cfg2_init_mcs
,
1925 tvb
, ie_offset
++, 1, ENC_NA
);
1927 case NM_ATT_IPACC_CODING_SCHEMES
:
1928 for (i
= 0; i
< 4; i
++) /* CS1 .. CS4 */
1929 proto_tree_add_item(att_tree
, hf_attr_ipa_cs
[i
],
1930 tvb
, ie_offset
, 2, ENC_LITTLE_ENDIAN
);
1931 for (i
= 0; i
< 9; i
++) /* MCS1 .. MCS9 */
1932 proto_tree_add_item(att_tree
, hf_attr_ipa_mcs
[i
],
1933 tvb
, ie_offset
, 2, ENC_LITTLE_ENDIAN
);
1942 dissect_oml_fom(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
,
1943 int offset
, proto_item
*top_ti
)
1945 uint8_t msg_type
, obj_class
, bts_nr
, trx_nr
, ts_nr
;
1947 proto_tree
*fom_tree
;
1948 char formatted
[ITEM_LABEL_LENGTH
];
1950 msg_type
= tvb_get_uint8(tvb
, offset
);
1951 obj_class
= tvb_get_uint8(tvb
, offset
+1);
1952 bts_nr
= tvb_get_uint8(tvb
, offset
+2);
1953 trx_nr
= tvb_get_uint8(tvb
, offset
+3);
1954 ts_nr
= tvb_get_uint8(tvb
, offset
+4);
1955 format_custom_msgtype(formatted
, msg_type
);
1956 proto_item_append_text(top_ti
, ", %s(%02x,%02x,%02x) %s ",
1957 val_to_str(obj_class
, oml_fom_objclass_vals
, "%02x"),
1958 bts_nr
, trx_nr
, ts_nr
, formatted
);
1959 col_append_fstr(pinfo
->cinfo
, COL_INFO
, "%s(%02x,%02x,%02x) %s ",
1960 val_to_str(obj_class
, oml_fom_objclass_vals
, "%02x"),
1961 bts_nr
, trx_nr
, ts_nr
, formatted
);
1962 ti
= proto_tree_add_item(tree
, hf_oml_fom_msgtype
, tvb
, offset
++, 1, ENC_BIG_ENDIAN
);
1963 fom_tree
= proto_item_add_subtree(ti
, ett_oml_fom
);
1964 proto_tree_add_item(fom_tree
, hf_oml_fom_objclass
, tvb
, offset
++, 1, ENC_BIG_ENDIAN
);
1965 proto_tree_add_item(fom_tree
, hf_oml_fom_inst_bts
, tvb
, offset
++, 1, ENC_BIG_ENDIAN
);
1966 proto_tree_add_item(fom_tree
, hf_oml_fom_inst_trx
, tvb
, offset
++, 1, ENC_BIG_ENDIAN
);
1967 proto_tree_add_item(fom_tree
, hf_oml_fom_inst_ts
, tvb
, offset
++, 1, ENC_BIG_ENDIAN
);
1970 /* dissect the TLV objects in the message body */
1971 offset
= dissect_oml_attrs(tvb
, offset
, tvb_reported_length_remaining(tvb
, offset
), pinfo
, fom_tree
);
1976 static const uint8_t ipaccess_magic
[] = "com.ipaccess";
1979 dissect_oml_manuf(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
,
1980 int offset
, proto_item
*top_ti
)
1984 proto_tree_add_item_ret_uint(tree
, hf_oml_manuf_id_len
, tvb
,
1985 offset
, 1, ENC_NA
, &len
);
1986 proto_tree_add_item(tree
, hf_oml_manuf_id_val
, tvb
,
1987 offset
+ 1, len
, ENC_ASCII
);
1989 /* Some implementations include '\0', some don't - handle this */
1990 if ((len
== (sizeof(ipaccess_magic
) + 1) || len
== sizeof(ipaccess_magic
)) &&
1991 !tvb_memeql(tvb
, offset
+1, ipaccess_magic
, sizeof(ipaccess_magic
))) {
1993 return dissect_oml_fom(tvb
, pinfo
, tree
, offset
, top_ti
);
1995 expert_add_info(pinfo
, top_ti
, &ei_unknown_manuf
);
2001 dissect_abis_oml(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
, void *data _U_
)
2004 proto_tree
*oml_tree
;
2005 uint32_t remain_len
;
2008 uint8_t msg_disc
= tvb_get_uint8(tvb
, offset
);
2009 uint8_t len
= tvb_get_uint8(tvb
, offset
+3);
2012 col_set_str(pinfo
->cinfo
, COL_PROTOCOL
, "OML");
2016 ti
= proto_tree_add_item(tree
, proto_abis_oml
, tvb
, 0, -1, ENC_NA
);
2017 oml_tree
= proto_item_add_subtree(ti
, ett_oml
);
2019 proto_tree_add_item(oml_tree
, hf_oml_msg_disc
, tvb
, offset
++,
2020 1, ENC_LITTLE_ENDIAN
);
2021 proto_tree_add_item(oml_tree
, hf_oml_placement
, tvb
, offset
++,
2022 1, ENC_LITTLE_ENDIAN
);
2023 proto_tree_add_item(oml_tree
, hf_oml_sequence
, tvb
, offset
++,
2024 1, ENC_LITTLE_ENDIAN
);
2025 proto_tree_add_item(oml_tree
, hf_oml_length
, tvb
, offset
++,
2026 1, ENC_LITTLE_ENDIAN
);
2028 /* Check whether the indicated length is correct */
2029 if (msg_disc
== ABIS_OM_MDISC_MANUF
) /* TS 12.21 sec 8.1.4 NOTE 1 */
2030 remain_len
= tvb_reported_length_remaining(tvb
, offset
+ 1 + tvb_get_uint8(tvb
, offset
));
2032 remain_len
= tvb_reported_length_remaining(tvb
, offset
);
2033 if (len
!= remain_len
) {
2034 expert_add_info_format(pinfo
, ti
, &ei_length_mismatch
,
2035 "Indicated length (%u) does not match the actual (%u)",
2039 if (global_oml_dialect
== OML_DIALECT_ERICSSON
) {
2040 /* Ericsson OM2000 only sharese the common header above
2041 * and has completely custom/proprietary message format
2042 * after that header. Thus, it makes more sense of
2043 * putting all of that into an external dissector and
2044 * call out to that dissector */
2046 subtvb
= tvb_new_subset_length(tvb
, offset
, len
);
2049 call_dissector(sub_om2000
, subtvb
, pinfo
, tree
);
2053 case ABIS_OM_MDISC_FOM
:
2054 offset
= dissect_oml_fom(tvb
, pinfo
, oml_tree
,
2057 case ABIS_OM_MDISC_MANUF
:
2058 offset
= dissect_oml_manuf(tvb
, pinfo
, oml_tree
,
2061 case ABIS_OM_MDISC_MMI
:
2062 case ABIS_OM_MDISC_TRAU
:
2072 proto_register_abis_oml(void)
2074 static hf_register_info hf
[] = {
2076 { "Message Discriminator", "gsm_abis_oml.msg_dsc",
2077 FT_UINT8
, BASE_HEX
, VALS(oml_msg_disc_vals
), 0,
2078 "GSM 12.21 Message Discriminator", HFILL
}
2080 { &hf_oml_placement
,
2081 { "Placement Indicator", "gsm_abis_oml.placement",
2082 FT_UINT8
, BASE_HEX
, VALS(oml_placement_vals
), 0,
2083 "GSM 12.21 Placement Indicator", HFILL
}
2086 { "Sequence Number", "gsm_abis_oml.sequence",
2087 FT_UINT8
, BASE_HEX
, NULL
, 0,
2088 "Sequence Number (if multi-part msg)", HFILL
}
2091 { "Length Indicator", "gsm_abis_oml.length",
2092 FT_UINT8
, BASE_DEC
, NULL
, 0,
2093 "Total length of payload", HFILL
}
2095 { &hf_oml_manuf_id_len
,
2096 { "Manufacturer ID Length", "gsm_abis_oml.manuf_id_len",
2097 FT_UINT8
, BASE_DEC
, NULL
, 0,
2100 { &hf_oml_manuf_id_val
,
2101 { "Manufacturer ID Value", "gsm_abis_oml.manuf_id_val",
2102 FT_STRING
, BASE_NONE
, NULL
, 0,
2105 { &hf_oml_fom_msgtype
,
2106 { "FOM Message Type", "gsm_abis_oml.fom.msg_type",
2107 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(format_custom_msgtype
), 0,
2110 { &hf_oml_fom_objclass
,
2111 { "FOM Object Class", "gsm_abis_oml.fom.obj_class",
2112 FT_UINT8
, BASE_HEX
, VALS(oml_fom_objclass_vals
), 0,
2115 { &hf_oml_fom_inst_bts
,
2116 { "FOM Object Instance BTS", "gsm_abis_oml.fom.obj_inst.bts",
2117 FT_UINT8
, BASE_DEC
, NULL
, 0,
2120 { &hf_oml_fom_inst_trx
,
2121 { "FOM Object Instance TRX", "gsm_abis_oml.fom.obj_inst.trx",
2122 FT_UINT8
, BASE_DEC
, NULL
, 0,
2125 { &hf_oml_fom_inst_ts
,
2126 { "FOM Object Instance TS", "gsm_abis_oml.fom.obj_inst.ts",
2127 FT_UINT8
, BASE_DEC
, NULL
, 0,
2130 { &hf_oml_fom_attr_tag
,
2131 { "FOM Attribute ID", "gsm_abis_oml.fom.attr_id",
2132 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(format_custom_attr
), 0,
2135 { &hf_oml_fom_attr_len
,
2136 { "FOM Attribute Length", "gsm_abis_oml.fom.attr_len",
2137 FT_UINT16
, BASE_DEC
, NULL
, 0,
2140 { &hf_oml_fom_attr_val
,
2141 { "FOM Attribute Value", "gsm_abis_oml.fom.attr_val",
2142 FT_BYTES
, BASE_NONE
, NULL
, 0,
2148 /* OML Attributes */
2149 { &hf_attr_adm_state
,
2150 { "Administrative State", "gsm_abis_oml.fom.attr.adm_state",
2151 FT_UINT8
, BASE_HEX
, VALS(oml_adm_state_vals
), 0,
2155 { "ARFCN", "gsm_abis_oml.fom.attr.arfcn",
2156 FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2158 { &hf_attr_oper_state
,
2159 { "Operational State", "gsm_abis_oml.fom.attr.oper_state",
2160 FT_UINT8
, BASE_HEX
, VALS(oml_oper_state_vals
), 0,
2163 { &hf_attr_avail_state
,
2164 { "Availability Status", "gsm_abis_oml.fom.attr.avail_state",
2165 FT_UINT8
, BASE_HEX
, VALS(oml_avail_state_vals
), 0,
2168 { &hf_attr_event_type
,
2169 { "Event Type", "gsm_abis_oml.fom.attr.event_type",
2170 FT_UINT8
, BASE_HEX
, VALS(oml_event_type_vals
), 0,
2173 { &hf_attr_severity
,
2174 { "Severity", "gsm_abis_oml.fom.attr.severity",
2175 FT_UINT8
, BASE_HEX
, VALS(oml_severity_vals
), 0,
2178 { &hf_attr_nack_causes
,
2179 { "NACK Causes", "gsm_abis_oml.fom.attr.nack_causes",
2180 FT_UINT8
, BASE_HEX
, VALS(oml_nack_causes
), 0,
2183 { &hf_attr_bcch_arfcn
,
2184 { "BCCH ARFCN", "gsm_abis_oml.fom.attr.bcch_arfcn",
2185 FT_UINT16
, BASE_DEC
, NULL
, 0,
2186 "ARFCN of the BCCH", HFILL
}
2189 { "BSIC", "gsm_abis_oml.fom.attr.bsic",
2190 FT_UINT16
, BASE_HEX
, NULL
, 0,
2191 "Base Station Identity Cdoe", HFILL
}
2194 { "Test Number", "gsm_abis_oml.fom.attr.test_no",
2195 FT_UINT8
, BASE_HEX
, VALS(oml_test_no_vals
), 0,
2199 { "TSC", "gsm_abis_oml.fom.attr.tsc",
2200 FT_UINT8
, BASE_HEX
, NULL
, 0,
2201 "Training Sequence Code", HFILL
}
2204 { "TEI", "gsm_abis_oml.fom.attr.tei",
2205 FT_UINT8
, BASE_DEC
, NULL
, 0,
2208 { &hf_attr_ach_btsp
,
2209 { "BTS E1 Port", "gsm_abis_oml.fom.attr.abis_ch.bts_port",
2210 FT_UINT8
, BASE_DEC
, NULL
, 0,
2213 { &hf_attr_ach_tslot
,
2214 { "E1 Timeslot", "gsm_abis_oml.fom.attr.abis_ch.timeslot",
2215 FT_UINT8
, BASE_DEC
, NULL
, 0,
2218 { &hf_attr_ach_sslot
,
2219 { "E1 Subslot", "gsm_abis_oml.fom.attr.abis_ch.subslot",
2220 FT_UINT8
, BASE_DEC
, NULL
, 0,
2223 { &hf_attr_gsm_time
,
2224 { "GSM Time", "gsm_abis_oml.fom.attr.gsm_time",
2225 FT_UINT16
, BASE_DEC
, NULL
, 0,
2228 { &hf_attr_chan_comb
,
2229 { "Channel Combination", "gsm_abis_oml.fom.attr.chan_comb",
2230 FT_UINT8
, BASE_HEX
, VALS(oml_chan_comb_vals
), 0,
2234 { "HSN", "gsm_abis_oml.fom.attr.hsn",
2235 FT_UINT8
, BASE_DEC
, NULL
, 0,
2236 "Hopping Sequence Number", HFILL
}
2239 { "MAIO", "gsm_abis_oml.fom.attr.maio",
2240 FT_UINT8
, BASE_DEC
, NULL
, 0,
2241 "Mobile Allocation Index Offset", HFILL
}
2243 { &hf_attr_list_req_attr
,
2244 { "List of required Attributes", "gsm_abis_oml.fom.attr.list_req_attr",
2245 FT_UINT8
, BASE_DEC
, VALS(oml_fom_attr_vals
), 0,
2248 { &hf_attr_ari_not_reported_cnt
,
2249 { "Count of not-reported attributes", "gsm_abis_oml.fom.attr.ari.not_reported_cnt",
2250 FT_UINT8
, BASE_DEC
, NULL
, 0,
2253 { &hf_attr_ari_not_reported_attr
,
2254 { "Not-reported attribute", "gsm_abis_oml.fom.attr.ari.not_reported",
2255 FT_UINT8
, BASE_DEC
, VALS(oml_fom_attr_vals
), 0,
2258 { &hf_attr_rf_max_pwr_red
,
2259 { "Max RF Power Reduction", "gsm_abis_oml.fom.attr.ari.max_rf_pwr_red",
2260 FT_UINT8
, BASE_DEC
| BASE_UNIT_STRING
, UNS(&units_decibels
), 0,
2263 { &hf_attr_interf_bound0
,
2264 { "Interf Boundary 0", "gsm_abis_oml.fom.attr.interf_bound0",
2265 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(format_interf_bound
), 0,
2268 { &hf_attr_interf_bound1
,
2269 { "Interf Boundary X1", "gsm_abis_oml.fom.attr.interf_bound1",
2270 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(format_interf_bound
), 0,
2273 { &hf_attr_interf_bound2
,
2274 { "Interf Boundary X2", "gsm_abis_oml.fom.attr.interf_bound2",
2275 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(format_interf_bound
), 0,
2278 { &hf_attr_interf_bound3
,
2279 { "Interf Boundary X3", "gsm_abis_oml.fom.attr.interf_bound3",
2280 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(format_interf_bound
), 0,
2283 { &hf_attr_interf_bound4
,
2284 { "Interf Boundary X4", "gsm_abis_oml.fom.attr.interf_bound4",
2285 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(format_interf_bound
), 0,
2288 { &hf_attr_interf_bound5
,
2289 { "Interf Boundary X5", "gsm_abis_oml.fom.attr.interf_bound5",
2290 FT_UINT8
, BASE_CUSTOM
, CF_FUNC(format_interf_bound
), 0,
2295 { &hf_oml_ipa_tres_attr_tag
,
2296 { "IPA Test Result Embedded IE",
2297 "gsm_abis_oml.fom.testrep.ipa_tag",
2298 FT_UINT8
, BASE_HEX
, VALS(ipacc_testres_ie_vals
), 0,
2299 "Information Element embedded into the Test Result "
2300 "of ip.access BTS", HFILL
},
2302 { &hf_oml_ipa_tres_attr_len
,
2303 { "IPA Test Result Embedded IE Length",
2304 "gsm_abis_oml.fom.testrep.ipa_len",
2305 FT_UINT16
, BASE_DEC
, NULL
, 0,
2306 "Length of ip.access Test Result Embedded IE", HFILL
}
2308 { &hf_attr_ipa_test_res
,
2309 { "IPA Test Result", "gsm_abis_oml.fom.testrep.result",
2310 FT_UINT8
, BASE_DEC
, VALS(ipacc_test_res_vals
), 0,
2313 { &hf_attr_ipa_tr_rxlev
,
2314 { "Rx Level", "gsm_abis_oml.fom.testrep.ipa_rxlev",
2315 FT_UINT16
, BASE_DEC
, NULL
, 0xfc00, NULL
, HFILL
}
2317 { &hf_attr_ipa_tr_b_rxlev
,
2318 { "Rx Level", "gsm_abis_oml.fom.testrep.ipa_rxlev_b",
2319 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2321 { &hf_attr_ipa_tr_arfcn
,
2322 { "ARFCN", "gsm_abis_oml.fom.testrep.ipa_arfcn",
2323 FT_UINT16
, BASE_DEC
, NULL
, 0x03ff, NULL
, HFILL
}
2325 { &hf_attr_ipa_tr_f_qual
,
2326 { "Frequency Quality", "gsm_abis_oml.fom.testrep.ipa.freq_qual",
2327 FT_UINT16
, BASE_DEC
, NULL
, 0x00fc, NULL
, HFILL
}
2329 { &hf_attr_ipa_tr_f_err
,
2330 { "Frequency Error", "gsm_abis_oml.fom.testrep.ipa.freq_err",
2331 FT_INT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2333 { &hf_attr_ipa_tr_rxqual
,
2334 { "Rx Quality", "gsm_abis_oml.fom.testrep.ipa.rx_qual",
2335 FT_UINT8
, BASE_DEC
, NULL
, 0x7, NULL
, HFILL
}
2337 { &hf_attr_ipa_tr_frame_offs
,
2338 { "Frame Offset", "gsm_abis_oml.fom.testrep.ipa.frame_offset",
2339 FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2341 { &hf_attr_ipa_tr_framenr_offs
,
2342 { "Frame Number Offset",
2343 "gsm_abis_oml.fom.testrep.ipa.framenr_offset",
2344 FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2346 { &hf_attr_ipa_tr_bsic
,
2347 { "BSIC", "gsm_abis_oml.fom.testrep.ipa.bsic",
2348 FT_UINT8
, BASE_DEC
, NULL
, 0x3f,
2349 "Base Station Identity Code", HFILL
}
2351 { &hf_attr_ipa_tr_cell_id
,
2352 { "Cell ID", "gsm_abis_oml.fom.testrep.ipa.cell_id",
2353 FT_UINT16
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}
2355 { &hf_attr_ipa_rsl_ip
,
2356 { "BSC RSL IP Address", "gsm_abis_oml.fom.attr.ipa.rsl_ip",
2357 FT_IPv4
, BASE_NONE
, NULL
, 0,
2358 "IP Address to which the BTS establishes "
2359 "the RSL link", HFILL
}
2361 { &hf_attr_ipa_rsl_port
,
2362 { "BSC RSL TCP Port", "gsm_abis_oml.fom.attr.ipa.rsl_port",
2363 FT_UINT16
, BASE_DEC
, NULL
, 0,
2364 "Port number to which the BST establishes "
2365 "the RSL link", HFILL
}
2367 { &hf_attr_ipa_prim_oml_ip
,
2368 { "Primary OML IP Address",
2369 "gsm_abis_oml.fom.attr.ipa.prim_oml_ip",
2370 FT_IPv4
, BASE_NONE
, NULL
, 0,
2371 "IP Address of the BSC for the primary OML link",
2374 { &hf_attr_ipa_prim_oml_port
,
2375 { "Primary OML TCP Port",
2376 "gsm_abis_oml.fom.attr.ipa.prim_oml_port",
2377 FT_UINT16
, BASE_DEC
, NULL
, 0,
2378 "TCP Port of the BSC for the primary OML link",
2381 { &hf_attr_ipa_location_name
,
2382 { "Location Name", "gsm_abis_oml.fom.attr.ipa.loc_name",
2383 FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}
2385 { &hf_attr_ipa_unit_name
,
2386 { "Unit Name", "gsm_abis_oml.fom.attr.ipa.unit_name",
2387 FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}
2389 { &hf_attr_ipa_unit_id
,
2390 { "Unit ID", "gsm_abis_oml.fom.attr.ipa.unit_id",
2391 FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}
2393 { &hf_attr_ipa_nv_flags
,
2394 { "NVRAM Config Flags", "gsm_abis_oml.fom.attr.ipa.nv_flags",
2395 FT_UINT16
, BASE_HEX
, NULL
, 0xffff, NULL
, HFILL
}
2397 { &hf_attr_ipa_nv_mask
,
2398 { "NVRAM Config Mask", "gsm_abis_oml.fom.attr.ipa.nv_mask",
2399 FT_UINT16
, BASE_HEX
, NULL
, 0xffff, NULL
, HFILL
}
2401 { &hf_attr_ipa_tr_si2
,
2402 { "System Information 2", "gsm_abis_oml.fom.attr.ipa.si2",
2403 FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}
2405 { &hf_attr_ipa_tr_si2bis
,
2406 { "System Information 2bis", "gsm_abis_oml.fom.attr.ipa.si2bis",
2407 FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}
2409 { &hf_attr_ipa_tr_si2ter
,
2410 { "System Information 2ter", "gsm_abis_oml.fom.attr.ipa.si2ter",
2411 FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}
2413 { &hf_attr_ipa_tr_chan_desc
,
2414 { "Cell Channel Description",
2415 "gsm_abis_oml.fom.attr.ipa.chan_desc",
2416 FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}
2418 { &hf_attr_ipa_nsl_sport
,
2419 { "NS Link IP Source Port",
2420 "gsm_abis_oml.fom.attr.ipa.nsl_sport",
2421 FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2423 { &hf_attr_ipa_nsl_daddr
,
2424 { "NS Link IP Destination Addr",
2425 "gsm_abis_oml.fom.attr.ipa.nsl_daddr",
2426 FT_IPv4
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}
2428 { &hf_attr_ipa_nsl_dport
,
2429 { "NS Link IP Destination Port",
2430 "gsm_abis_oml.fom.attr.ipa.nsl_dport",
2431 FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2433 { &hf_attr_ipa_nsei
,
2434 { "NSEI", "gsm_abis_oml.fom.attr.ipa.nsei",
2435 FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2437 { &hf_attr_ipa_nsvci
,
2438 { "NSVCI", "gsm_abis_oml.fom.attr.ipa.nsvci",
2439 FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2441 { &hf_attr_ipa_bvci
,
2442 { "BVCI", "gsm_abis_oml.fom.attr.ipa.bvci",
2443 FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2446 { "RAC", "gsm_abis_oml.fom.attr.ipa.rac",
2447 FT_UINT8
, BASE_HEX
, NULL
, 0,
2448 "Routing Area Code", HFILL
}
2450 { &hf_attr_ipa_ns_cfg_unblock_timer
,
2451 { "NS Unblock Timer",
2452 "gsm_abis_oml.fom.attr.ipa.ns_cfg_unblock_timer",
2453 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2455 { &hf_attr_ipa_ns_cfg_unblock_retries
,
2456 { "NS Unblock Retries",
2457 "gsm_abis_oml.fom.attr.ipa.ns_cfg_unblock_retries",
2458 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2460 { &hf_attr_ipa_ns_cfg_reset_timer
,
2462 "gsm_abis_oml.fom.attr.ipa.ns_cfg_reset_timer",
2463 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2465 { &hf_attr_ipa_ns_cfg_reset_retries
,
2466 { "NS Reset Retries",
2467 "gsm_abis_oml.fom.attr.ipa.ns_cfg_reset_retries",
2468 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2470 { &hf_attr_ipa_ns_cfg_test_timer
,
2472 "gsm_abis_oml.fom.attr.ipa.ns_cfg_test_timer",
2473 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2475 { &hf_attr_ipa_ns_cfg_alive_timer
,
2477 "gsm_abis_oml.fom.attr.ipa.ns_cfg_alive_timer",
2478 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2480 { &hf_attr_ipa_ns_cfg_alive_retries
,
2481 { "NS Alive Retries",
2482 "gsm_abis_oml.fom.attr.ipa.ns_cfg_alive_retries",
2483 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2485 { &hf_attr_ipa_gprs_paging_rep_time
,
2486 { "GPRS Paging Repeat Time",
2487 "gsm_abis_oml.fom.attr.ipa.gprs_paging_rep_time",
2488 FT_UINT8
, BASE_DEC
| BASE_UNIT_STRING
, UNS(&units_milliseconds
), 0,
2491 { &hf_attr_ipa_gprs_paging_rep_count
,
2492 { "GPRS Paging Repeat Count",
2493 "gsm_abis_oml.fom.attr.ipa.gprs_paging_rep_count",
2494 FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}
2496 { &hf_attr_ipa_rlc_cfg_t3142
,
2498 "gsm_abis_oml.fom.attr.ipa.rlc_cfg_t3142",
2499 FT_UINT8
, BASE_DEC
| BASE_UNIT_STRING
, UNS(&units_seconds
), 0,
2502 { &hf_attr_ipa_rlc_cfg_t3169
,
2504 "gsm_abis_oml.fom.attr.ipa.rlc_cfg_t3169",
2505 FT_UINT8
, BASE_DEC
| BASE_UNIT_STRING
, UNS(&units_seconds
), 0,
2508 { &hf_attr_ipa_rlc_cfg_t3191
,
2510 "gsm_abis_oml.fom.attr.ipa.rlc_cfg_t3191",
2511 FT_UINT8
, BASE_DEC
| BASE_UNIT_STRING
, UNS(&units_seconds
), 0,
2514 { &hf_attr_ipa_rlc_cfg_t3193
,
2516 "gsm_abis_oml.fom.attr.ipa.rlc_cfg_t3193",
2517 FT_UINT8
, BASE_DEC
| BASE_UNIT_STRING
, UNS(&units_milliseconds
), 0,
2520 { &hf_attr_ipa_rlc_cfg_t3195
,
2522 "gsm_abis_oml.fom.attr.ipa.rlc_cfg_t3195",
2523 FT_UINT8
, BASE_DEC
| BASE_UNIT_STRING
, UNS(&units_seconds
), 0,
2526 { &hf_attr_ipa_rlc_cfg_t3101
,
2528 "gsm_abis_oml.fom.attr.ipa.rlc_cfg_t3101",
2529 FT_UINT8
, BASE_DEC
| BASE_UNIT_STRING
, UNS(&units_seconds
), 0,
2532 { &hf_attr_ipa_rlc_cfg_t3103
,
2534 "gsm_abis_oml.fom.attr.ipa.rlc_cfg_t3103",
2535 FT_UINT8
, BASE_DEC
| BASE_UNIT_STRING
, UNS(&units_seconds
), 0,
2538 { &hf_attr_ipa_rlc_cfg_t3105
,
2540 "gsm_abis_oml.fom.attr.ipa.rlc_cfg_t3105",
2541 FT_UINT8
, BASE_DEC
| BASE_UNIT_STRING
, UNS(&units_seconds
), 0,
2544 { &hf_attr_ipa_rlc_cfg_countdown
,
2546 "gsm_abis_oml.fom.attr.ipa.rlc_cfg_countdown",
2547 FT_UINT8
, BASE_DEC
| BASE_UNIT_STRING
, UNS(&units_seconds
), 0,
2550 { &hf_attr_ipa_rlc_cfg2_t_dl_tbf_ext
,
2551 { "Downlink TBF Extension",
2552 "gsm_abis_oml.fom.attr.ipa.rlc_cfg2_t_dl_tbf_ext",
2553 FT_UINT16
, BASE_DEC
| BASE_UNIT_STRING
, UNS(&units_milliseconds
), 0,
2556 { &hf_attr_ipa_rlc_cfg2_t_ul_tbf_ext
,
2557 { "Uplink TBF Extension",
2558 "gsm_abis_oml.fom.attr.ipa.rlc_cfg2_t_ul_tbf_ext",
2559 FT_UINT16
, BASE_DEC
| BASE_UNIT_STRING
, UNS(&units_milliseconds
), 0,
2562 { &hf_attr_ipa_rlc_cfg2_init_cs
,
2563 { "Initial GPRS Coding Scheme",
2564 "gsm_abis_oml.fom.attr.ipa.rlc_cfg2_init_cs",
2565 FT_UINT8
, BASE_DEC
, VALS(rlc_cfg2_init_cs_vals
), 0,
2568 { &hf_attr_ipa_rlc_cfg2_init_mcs
,
2569 { "Initial EGPRS Coding Scheme",
2570 "gsm_abis_oml.fom.attr.ipa.rlc_cfg2_init_mcs",
2571 FT_UINT8
, BASE_DEC
, VALS(rlc_cfg2_init_mcs_vals
), 0,
2574 { &hf_attr_ipa_cs
[0],
2575 { "CS1", "gsm_abis_oml.fom.attr.ipa.cs1",
2576 FT_UINT16
, BASE_DEC
, NULL
, (1 << 0), NULL
, HFILL
}
2578 { &hf_attr_ipa_cs
[1],
2579 { "CS2", "gsm_abis_oml.fom.attr.ipa.cs2",
2580 FT_UINT16
, BASE_DEC
, NULL
, (1 << 1), NULL
, HFILL
}
2582 { &hf_attr_ipa_cs
[2],
2583 { "CS3", "gsm_abis_oml.fom.attr.ipa.cs3",
2584 FT_UINT16
, BASE_DEC
, NULL
, (1 << 2), NULL
, HFILL
}
2586 { &hf_attr_ipa_cs
[3],
2587 { "CS4", "gsm_abis_oml.fom.attr.ipa.cs4",
2588 FT_UINT16
, BASE_DEC
, NULL
, (1 << 3), NULL
, HFILL
}
2590 { &hf_attr_ipa_mcs
[0],
2591 { "MCS1", "gsm_abis_oml.fom.attr.ipa.mcs1",
2592 FT_UINT16
, BASE_DEC
, NULL
, (1 << 8), NULL
, HFILL
}
2594 { &hf_attr_ipa_mcs
[1],
2595 { "MCS2", "gsm_abis_oml.fom.attr.ipa.mcs2",
2596 FT_UINT16
, BASE_DEC
, NULL
, (1 << 9), NULL
, HFILL
}
2598 { &hf_attr_ipa_mcs
[2],
2599 { "MCS3", "gsm_abis_oml.fom.attr.ipa.mcs3",
2600 FT_UINT16
, BASE_DEC
, NULL
, (1 << 10), NULL
, HFILL
}
2602 { &hf_attr_ipa_mcs
[3],
2603 { "MCS4", "gsm_abis_oml.fom.attr.ipa.mcs4",
2604 FT_UINT16
, BASE_DEC
, NULL
, (1 << 11), NULL
, HFILL
}
2606 { &hf_attr_ipa_mcs
[4],
2607 { "MCS5", "gsm_abis_oml.fom.attr.ipa.mcs5",
2608 FT_UINT16
, BASE_DEC
, NULL
, (1 << 12), NULL
, HFILL
}
2610 { &hf_attr_ipa_mcs
[5],
2611 { "MCS6", "gsm_abis_oml.fom.attr.ipa.mcs6",
2612 FT_UINT16
, BASE_DEC
, NULL
, (1 << 13), NULL
, HFILL
}
2614 { &hf_attr_ipa_mcs
[6],
2615 { "MCS7", "gsm_abis_oml.fom.attr.ipa.mcs7",
2616 FT_UINT16
, BASE_DEC
, NULL
, (1 << 14), NULL
, HFILL
}
2618 { &hf_attr_ipa_mcs
[7],
2619 { "MCS8", "gsm_abis_oml.fom.attr.ipa.mcs8",
2620 FT_UINT16
, BASE_DEC
, NULL
, (1 << 15), NULL
, HFILL
}
2622 { &hf_attr_ipa_mcs
[8],
2623 { "MCS9", "gsm_abis_oml.fom.attr.ipa.mcs9",
2624 FT_UINT16
, BASE_DEC
, NULL
, (1 << 7), NULL
, HFILL
}
2627 static int *ett
[] = {
2633 static ei_register_info ei
[] = {
2634 { &ei_unknown_type
, { "gsm_abis_oml.expert.unknown_type", PI_PROTOCOL
, PI_NOTE
,
2635 "Unknown TLV type", EXPFILL
}},
2636 { &ei_unknown_manuf
, { "gsm_abis_oml.expert.unknown_manuf", PI_PROTOCOL
, PI_WARN
,
2637 "Unknown manufacturer ID", EXPFILL
}},
2638 { &ei_length_mismatch
, { "gsm_abis_oml.expert.length_mismatch", PI_PROTOCOL
, PI_WARN
,
2639 "Indicated length does not match the actual", EXPFILL
}},
2642 module_t
*oml_module
;
2644 expert_module_t
*expert_module
;
2646 #define NM_ATT_TLVDEF_BASE(_attr, _type, _fixed_len) \
2647 nm_att_tlvdef_base.def[_attr].type = _type; \
2648 nm_att_tlvdef_base.def[_attr].fixed_len = _fixed_len; \
2650 /* From openbsc/src/abis_nm.c, converted to support ANSI C. */
2651 NM_ATT_TLVDEF_BASE(NM_ATT_ABIS_CHANNEL
, TLV_TYPE_FIXED
, 3);
2652 NM_ATT_TLVDEF_BASE(NM_ATT_ADD_INFO
, TLV_TYPE_TL16V
, 0);
2653 NM_ATT_TLVDEF_BASE(NM_ATT_ADD_TEXT
, TLV_TYPE_TL16V
, 0);
2654 NM_ATT_TLVDEF_BASE(NM_ATT_ADM_STATE
, TLV_TYPE_TV
, 0);
2655 NM_ATT_TLVDEF_BASE(NM_ATT_ARFCN_LIST
, TLV_TYPE_TL16V
, 0);
2656 NM_ATT_TLVDEF_BASE(NM_ATT_AUTON_REPORT
, TLV_TYPE_TV
, 0);
2657 NM_ATT_TLVDEF_BASE(NM_ATT_AVAIL_STATUS
, TLV_TYPE_TL16V
, 0);
2658 NM_ATT_TLVDEF_BASE(NM_ATT_BCCH_ARFCN
, TLV_TYPE_FIXED
, 2);
2659 NM_ATT_TLVDEF_BASE(NM_ATT_BSIC
, TLV_TYPE_TV
, 0);
2660 NM_ATT_TLVDEF_BASE(NM_ATT_BTS_AIR_TIMER
, TLV_TYPE_TV
, 0);
2661 NM_ATT_TLVDEF_BASE(NM_ATT_CCCH_L_I_P
, TLV_TYPE_TV
, 0);
2662 NM_ATT_TLVDEF_BASE(NM_ATT_CCCH_L_T
, TLV_TYPE_TV
, 0);
2663 NM_ATT_TLVDEF_BASE(NM_ATT_CHAN_COMB
, TLV_TYPE_TV
, 0);
2664 NM_ATT_TLVDEF_BASE(NM_ATT_CONN_FAIL_CRIT
, TLV_TYPE_TL16V
, 0);
2665 NM_ATT_TLVDEF_BASE(NM_ATT_DEST
, TLV_TYPE_TL16V
, 0);
2666 NM_ATT_TLVDEF_BASE(NM_ATT_EVENT_TYPE
, TLV_TYPE_TV
, 0);
2667 NM_ATT_TLVDEF_BASE(NM_ATT_FILE_ID
, TLV_TYPE_TL16V
, 0);
2668 NM_ATT_TLVDEF_BASE(NM_ATT_FILE_VERSION
, TLV_TYPE_TL16V
, 0);
2669 NM_ATT_TLVDEF_BASE(NM_ATT_GSM_TIME
, TLV_TYPE_FIXED
, 2);
2670 NM_ATT_TLVDEF_BASE(NM_ATT_HSN
, TLV_TYPE_TV
, 0);
2671 NM_ATT_TLVDEF_BASE(NM_ATT_HW_CONFIG
, TLV_TYPE_TL16V
, 0);
2672 NM_ATT_TLVDEF_BASE(NM_ATT_HW_DESC
, TLV_TYPE_TLV
, 0);
2673 NM_ATT_TLVDEF_BASE(NM_ATT_INTAVE_PARAM
, TLV_TYPE_TV
, 0);
2674 NM_ATT_TLVDEF_BASE(NM_ATT_INTERF_BOUND
, TLV_TYPE_FIXED
, 6);
2675 NM_ATT_TLVDEF_BASE(NM_ATT_LIST_REQ_ATTR
, TLV_TYPE_TL16V
, 0);
2676 NM_ATT_TLVDEF_BASE(NM_ATT_MAIO
, TLV_TYPE_TV
, 0);
2677 NM_ATT_TLVDEF_BASE(NM_ATT_MANUF_STATE
, TLV_TYPE_TV
, 0);
2678 NM_ATT_TLVDEF_BASE(NM_ATT_MANUF_THRESH
, TLV_TYPE_TL16V
, 0);
2679 NM_ATT_TLVDEF_BASE(NM_ATT_MANUF_ID
, TLV_TYPE_TL16V
, 0);
2680 NM_ATT_TLVDEF_BASE(NM_ATT_MAX_TA
, TLV_TYPE_TV
, 0);
2681 NM_ATT_TLVDEF_BASE(NM_ATT_MDROP_LINK
, TLV_TYPE_FIXED
, 2);
2682 NM_ATT_TLVDEF_BASE(NM_ATT_MDROP_NEXT
, TLV_TYPE_FIXED
, 2);
2683 NM_ATT_TLVDEF_BASE(NM_ATT_NACK_CAUSES
, TLV_TYPE_TV
, 0);
2684 NM_ATT_TLVDEF_BASE(NM_ATT_NY1
, TLV_TYPE_TV
, 0);
2685 NM_ATT_TLVDEF_BASE(NM_ATT_OPER_STATE
, TLV_TYPE_TV
, 0);
2686 NM_ATT_TLVDEF_BASE(NM_ATT_OVERL_PERIOD
, TLV_TYPE_TL16V
, 0);
2687 NM_ATT_TLVDEF_BASE(NM_ATT_PHYS_CONF
, TLV_TYPE_TL16V
, 0);
2688 NM_ATT_TLVDEF_BASE(NM_ATT_POWER_CLASS
, TLV_TYPE_TV
, 0);
2689 NM_ATT_TLVDEF_BASE(NM_ATT_POWER_THRESH
, TLV_TYPE_FIXED
, 3);
2690 NM_ATT_TLVDEF_BASE(NM_ATT_PROB_CAUSE
, TLV_TYPE_FIXED
, 3);
2691 NM_ATT_TLVDEF_BASE(NM_ATT_RACH_B_THRESH
, TLV_TYPE_TV
, 0);
2692 NM_ATT_TLVDEF_BASE(NM_ATT_LDAVG_SLOTS
, TLV_TYPE_FIXED
, 2);
2693 NM_ATT_TLVDEF_BASE(NM_ATT_RAD_SUBC
, TLV_TYPE_TV
, 0);
2694 NM_ATT_TLVDEF_BASE(NM_ATT_RF_MAXPOWR_R
, TLV_TYPE_TV
, 0);
2695 NM_ATT_TLVDEF_BASE(NM_ATT_SITE_INPUTS
, TLV_TYPE_TL16V
, 0);
2696 NM_ATT_TLVDEF_BASE(NM_ATT_SITE_OUTPUTS
, TLV_TYPE_TL16V
, 0);
2697 NM_ATT_TLVDEF_BASE(NM_ATT_SOURCE
, TLV_TYPE_TL16V
, 0);
2698 NM_ATT_TLVDEF_BASE(NM_ATT_SPEC_PROB
, TLV_TYPE_TV
, 0);
2699 NM_ATT_TLVDEF_BASE(NM_ATT_START_TIME
, TLV_TYPE_FIXED
, 2);
2700 NM_ATT_TLVDEF_BASE(NM_ATT_T200
, TLV_TYPE_FIXED
, 7);
2701 NM_ATT_TLVDEF_BASE(NM_ATT_TEI
, TLV_TYPE_TV
, 0);
2702 NM_ATT_TLVDEF_BASE(NM_ATT_TEST_DUR
, TLV_TYPE_FIXED
, 2);
2703 NM_ATT_TLVDEF_BASE(NM_ATT_TEST_NO
, TLV_TYPE_TV
, 0);
2704 NM_ATT_TLVDEF_BASE(NM_ATT_TEST_REPORT
, TLV_TYPE_TL16V
, 0);
2705 NM_ATT_TLVDEF_BASE(NM_ATT_VSWR_THRESH
, TLV_TYPE_FIXED
, 2);
2706 NM_ATT_TLVDEF_BASE(NM_ATT_WINDOW_SIZE
, TLV_TYPE_TV
, 0);
2707 NM_ATT_TLVDEF_BASE(NM_ATT_TSC
, TLV_TYPE_TV
, 0);
2708 NM_ATT_TLVDEF_BASE(NM_ATT_SW_CONFIG
, TLV_TYPE_TL16V
, 0);
2709 NM_ATT_TLVDEF_BASE(NM_ATT_SW_DESCR
, TLV_TYPE_T
, 0);
2710 NM_ATT_TLVDEF_BASE(NM_ATT_SEVERITY
, TLV_TYPE_TV
, 0);
2711 NM_ATT_TLVDEF_BASE(NM_ATT_GET_ARI
, TLV_TYPE_TL16V
, 0);
2712 NM_ATT_TLVDEF_BASE(NM_ATT_HW_CONF_CHG
, TLV_TYPE_TL16V
, 0);
2713 NM_ATT_TLVDEF_BASE(NM_ATT_OUTST_ALARM
, TLV_TYPE_TV
, 0);
2714 NM_ATT_TLVDEF_BASE(NM_ATT_FILE_DATA
, TLV_TYPE_TL16V
, 0);
2715 NM_ATT_TLVDEF_BASE(NM_ATT_MEAS_RES
, TLV_TYPE_TL16V
, 0);
2717 /* BS 11 specifics */
2718 #define NM_ATT_TLVDEV_BS11(_attr, _type, _fixed_len) \
2719 nm_att_tlvdev_bs11.def[_attr].type = _type; \
2720 nm_att_tlvdev_bs11.def[_attr].fixed_len = _fixed_len; \
2722 /* different standard IEs */
2723 NM_ATT_TLVDEV_BS11(NM_ATT_OUTST_ALARM
, TLV_TYPE_TLV
, 0);
2724 NM_ATT_TLVDEV_BS11(NM_ATT_HW_DESC
, TLV_TYPE_TL16V
, 0);
2725 NM_ATT_TLVDEV_BS11(NM_ATT_ARFCN_LIST
, TLV_TYPE_TLV16
, 0);
2727 /* proprietary IEs */
2728 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_ABIS_EXT_TIME
, TLV_TYPE_TLV
, 0);
2729 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_OM_LAPD_REL_TIMER
, TLV_TYPE_FIXED
, 2);
2730 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_SH_LAPD_INT_TIMER
, TLV_TYPE_TLV
, 0);
2731 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_EMERG_TIMER1
, TLV_TYPE_TLV
, 0);
2732 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_EMERG_TIMER2
, TLV_TYPE_TLV
, 0);
2733 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_BTSLS_HOPPING
, TLV_TYPE_FIXED
, 1);
2734 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_CELL_ALLOC_NR
, TLV_TYPE_FIXED
, 1);
2735 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_ENA_INTERF_CLASS
, TLV_TYPE_FIXED
, 1);
2736 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_FACCH_QUAL
, TLV_TYPE_FIXED
, 1);
2737 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_TSYNC
, TLV_TYPE_FIXED
, 2);
2738 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_TTRAU
, TLV_TYPE_FIXED
, 2);
2739 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_EXCESSIVE_DISTANCE
,TLV_TYPE_TLV
, 1);
2740 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_HOPPING_MODE
, TLV_TYPE_TLV
, 1);
2741 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_RF_RES_IND_PER
, TLV_TYPE_FIXED
, 1);
2742 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_RADIO_MEAS_GRAN
, TLV_TYPE_TLV
, 0);
2743 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_RADIO_MEAS_REP
, TLV_TYPE_TLV
, 0);
2744 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_EMRG_CFG_MEMBER
, TLV_TYPE_TLV
, 0);
2745 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_TRX_AREA
, TLV_TYPE_TLV
, 0);
2746 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_ESN_FW_CODE_NO
, TLV_TYPE_TLV
, 0);
2747 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_ESN_HW_CODE_NO
, TLV_TYPE_TLV
, 0);
2748 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_ESN_PCB_SERIAL
, TLV_TYPE_TLV
, 0);
2749 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_BOOT_SW_VERS
, TLV_TYPE_TLV
, 0);
2750 NM_ATT_TLVDEV_BS11(0x59, TLV_TYPE_TLV
, 0);
2751 NM_ATT_TLVDEV_BS11(0xd5, TLV_TYPE_TLV
, 0);
2752 NM_ATT_TLVDEV_BS11(0xa8, TLV_TYPE_TLV
, 0);
2753 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_PASSWORD
, TLV_TYPE_TLV
, 0);
2754 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_TXPWR
, TLV_TYPE_TLV
, 0);
2755 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_RSSI_OFFS
, TLV_TYPE_TLV
, 0);
2756 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_LINE_CFG
, TLV_TYPE_TV
, 0);
2757 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_L1_PROT_TYPE
, TLV_TYPE_TV
, 0);
2758 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_BIT_ERR_THESH
, TLV_TYPE_FIXED
, 2);
2759 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_DIVERSITY
, TLV_TYPE_TLV
, 0);
2760 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_LMT_LOGON_SESSION
, TLV_TYPE_TLV
, 0);
2761 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_LMT_LOGIN_TIME
, TLV_TYPE_TLV
, 0);
2762 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_LMT_USER_ACC_LEV
, TLV_TYPE_TLV
, 0);
2763 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_LMT_USER_NAME
, TLV_TYPE_TLV
, 0);
2764 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_BTS_STATE
, TLV_TYPE_TLV
, 0);
2765 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_E1_STATE
, TLV_TYPE_TLV
, 0);
2766 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_PLL_MODE
, TLV_TYPE_TLV
, 0);
2767 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_PLL
, TLV_TYPE_TLV
, 0);
2768 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_CCLK_ACCURACY
, TLV_TYPE_TV
, 0);
2769 NM_ATT_TLVDEV_BS11(NM_ATT_BS11_CCLK_TYPE
, TLV_TYPE_TV
, 0);
2771 /* ip.access specifics */
2772 #define NM_ATT_TLVDEF_IPA(_attr, _type, _fixed_len) \
2773 nm_att_tlvdef_ipa.def[_attr].type = _type; \
2774 nm_att_tlvdef_ipa.def[_attr].fixed_len = _fixed_len; \
2776 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_DST_IP, TLV_TYPE_FIXED, 4);
2777 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_DST_IP_PORT
, TLV_TYPE_FIXED
, 2);
2778 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_PRIM_OML_CFG
, TLV_TYPE_TL16V
, 0);
2779 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_NV_FLAGS
, TLV_TYPE_TL16V
, 0);
2780 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_FREQ_CTRL
, TLV_TYPE_FIXED
, 2);
2781 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_SEC_OML_CFG
, TLV_TYPE_FIXED
, 6);
2782 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_IP_IF_CFG
, TLV_TYPE_FIXED
, 8);
2783 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_IP_GW_CFG
, TLV_TYPE_FIXED
, 12);
2784 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_LOCATION
, TLV_TYPE_TL16V
, 0);
2785 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_UNIT_ID
, TLV_TYPE_TL16V
, 0);
2786 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_UNIT_NAME
, TLV_TYPE_TL16V
, 0);
2787 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_SNMP_CFG
, TLV_TYPE_TL16V
, 0);
2788 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_PRIM_OML_CFG_LIST
, TLV_TYPE_TL16V
, 0);
2789 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_ALM_THRESH_LIST
, TLV_TYPE_TL16V
, 0);
2790 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_CUR_SW_CFG
, TLV_TYPE_TL16V
, 0);
2791 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_STREAM_ID
, TLV_TYPE_TV
, 0);
2792 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_RAC
, TLV_TYPE_TL16V
, 0);
2793 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_OBJ_VERSION
, TLV_TYPE_TL16V
, 0);
2794 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_GPRS_PAGING_CFG
, TLV_TYPE_TL16V
, 0);
2795 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_NSEI
, TLV_TYPE_TL16V
, 0);
2796 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_BVCI
, TLV_TYPE_TL16V
, 0);
2797 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_NSVCI
, TLV_TYPE_TL16V
, 0);
2798 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_NS_CFG
, TLV_TYPE_TL16V
, 0);
2799 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_BSSGP_CFG
, TLV_TYPE_TL16V
, 0);
2800 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_NS_LINK_CFG
, TLV_TYPE_TL16V
, 0);
2801 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_RLC_CFG
, TLV_TYPE_TL16V
, 0);
2802 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_SUPP_FEATURES
, TLV_TYPE_TL16V
, 0);
2803 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_CODING_SCHEMES
, TLV_TYPE_TL16V
, 0);
2804 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_RLC_CFG_2
, TLV_TYPE_TL16V
, 0);
2805 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_RLC_CFG_3
, TLV_TYPE_TL16V
, 0);
2806 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_PAGING_CFG
, TLV_TYPE_FIXED
, 2);
2807 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_FILE_DATA
, TLV_TYPE_TL16V
, 0);
2808 NM_ATT_TLVDEF_IPA(NM_ATT_IPACC_CGI
, TLV_TYPE_TL16V
, 0);
2810 /* assign our custom match functions */
2811 proto_abis_oml
= proto_register_protocol("GSM A-bis OML", "A-bis OML", "gsm_abis_oml");
2813 proto_register_field_array(proto_abis_oml
, hf
, array_length(hf
));
2815 proto_register_subtree_array(ett
, array_length(ett
));
2817 expert_module
= expert_register_protocol(proto_abis_oml
);
2818 expert_register_field_array(expert_module
, ei
, array_length(ei
));
2820 register_dissector("gsm_abis_oml", dissect_abis_oml
, proto_abis_oml
);
2822 oml_module
= prefs_register_protocol(proto_abis_oml
, NULL
);
2823 prefs_register_enum_preference(oml_module
, "oml_dialect",
2824 "A-bis OML dialect to be used",
2825 "Use ipaccess nanoBTS specific definitions for OML",
2826 &global_oml_dialect
, oml_dialect_enumvals
, true);
2829 /* This function is called once at startup and every time the user hits
2830 * 'apply' in the preferences dialogue */
2832 proto_reg_handoff_abis_oml(void)
2834 dissector_handle_t abis_oml_handle
;
2836 abis_oml_handle
= create_dissector_handle(dissect_abis_oml
,
2838 dissector_add_uint("lapd.gsm.sapi", LAPD_GSM_SAPI_OM_PROC
,
2841 sub_om2000
= find_dissector_add_dependency("gsm_abis_om2000", proto_abis_oml
);
2845 * Editor modelines - https://www.wireshark.org/tools/modelines.html
2850 * indent-tabs-mode: t
2853 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
2854 * :indentSize=8:tabSize=8:noTabs=false: