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