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
|
/* packet-q2931.c
* Routines for Q.2931 frame disassembly
* Guy Harris <guy@alum.mit.edu>
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include <epan/packet.h>
#include <epan/tfs.h>
#include <epan/unit_strings.h>
#include <epan/oui.h>
#include <epan/nlpid.h>
#include <epan/etypes.h>
#include <epan/expert.h>
#include "packet-q931.h"
#include "packet-arp.h"
/*
* See
*
* http://web.archive.org/web/20150408122122/http://www.protocols.com/pbook/atmsig.htm
*
* for some information on Q.2931, although, alas, not the actual message
* type and information element values - those I got from the FreeBSD 3.2
* ATM code, and from Q.2931 (and Q.931) itself.
*/
void proto_register_q2931(void);
static int proto_q2931;
static int hf_q2931_discriminator;
static int hf_q2931_call_ref_len;
static int hf_q2931_call_ref_flag;
static int hf_q2931_call_ref;
static int hf_q2931_message_type;
static int hf_q2931_message_type_ext;
static int hf_q2931_message_flag;
static int hf_q2931_message_action_indicator;
static int hf_q2931_message_len;
static int hf_q2931_ie_handling_instructions;
static int hf_q2931_ie_coding_standard;
static int hf_q2931_ie_action_indicator;
/* Generated from convert_proto_tree_add_text.pl */
static int hf_q2931_number_bytes;
static int hf_q2931_conn_id_vci;
static int hf_q2931_restart_indicator;
static int hf_q2931_conn_id_vpci;
static int hf_q2931_bband_low_layer_info_mode;
static int hf_q2931_cause_rejection_insufficient_information_element;
static int hf_q2931_bband_low_layer_info_user_info_l3_proto;
static int hf_q2931_number_string;
static int hf_q2931_aal1_backward_max_cpcs_sdu_size;
static int hf_q2931_user_plane_connection_configuration;
static int hf_q2931_party_subaddr_subaddress;
static int hf_q2931_aal1_mode;
static int hf_q2931_cause_location;
static int hf_q2931_bband_low_layer_info_user_specified_l2_proto;
static int hf_q2931_information_element;
static int hf_q2931_conn_id_preferred_exclusive;
static int hf_q2931_cause_vci;
static int hf_q2931_cause_information_element;
static int hf_q2931_oam_traffic_descriptor_backward_f5_flow_indicator;
static int hf_q2931_cause_rejection_reason;
static int hf_q2931_ethernet_type;
static int hf_q2931_cause_value;
static int hf_q2931_information_element_length;
static int hf_q2931_cause_rejection_user_specific_diagnostic;
static int hf_q2931_transit_network_sel_type;
static int hf_q2931_user_defined_aal_information;
static int hf_q2931_aal1_forward_max_cpcs_sdu_size;
static int hf_q2931_atm_transfer_capability;
static int hf_q2931_aal1_subtype;
static int hf_q2931_information_element_extension;
static int hf_q2931_party_subaddr_type_of_subaddress;
static int hf_q2931_number_plan;
static int hf_q2931_aal1_error_correction_method;
static int hf_q2931_call_state;
static int hf_q2931_bearer_class;
static int hf_q2931_protocol_id;
static int hf_q2931_information_element_data;
static int hf_q2931_aal1_partially_filled_cells_method;
static int hf_q2931_lane_protocol_id;
static int hf_q2931_party_subaddr_odd_even_indicator;
static int hf_q2931_qos_class_backward;
static int hf_q2931_cause_rejection_condition;
static int hf_q2931_aal1_source_clock_frequency_recovery_method;
static int hf_q2931_broadband_repeat_indicator;
static int hf_q2931_cause_rejection_missing_information_element;
static int hf_q2931_e2e_transit_delay_maximum_end_to_end;
static int hf_q2931_endpoint_reference_flag;
static int hf_q2931_endpoint_reference_identifier_value;
static int hf_q2931_cause_vpci;
static int hf_q2931_endpoint_state;
static int hf_q2931_high_layer_information_type;
static int hf_q2931_transit_network_sel_network_id;
static int hf_q2931_aal1_sscs_type;
static int hf_q2931_bband_low_layer_info_packet_window_size;
static int hf_q2931_aal1_structured_data_transfer_block_size;
static int hf_q2931_cause_timer;
static int hf_q2931_cause_message_type;
static int hf_q2931_e2e_transit_delay_cumulative;
static int hf_q2931_oam_traffic_descriptor_shaping_indicator;
static int hf_q2931_oam_end_to_end_f5_flow;
static int hf_q2931_oam_traffic_descriptor_forward_f5_flow_indicator;
static int hf_q2931_organization_code;
static int hf_q2931_bband_low_layer_info_additional_l3_proto;
static int hf_q2931_transit_network_sel_plan;
static int hf_q2931_bband_low_layer_info_user_info_l2_proto;
static int hf_q2931_aal1_multiplier;
static int hf_q2931_aal_type;
static int hf_q2931_aal1_cbr_rate;
static int hf_q2931_number_type;
static int hf_q2931_cause_rejection_diagnostic;
static int hf_q2931_bband_low_layer_info_default_packet_size;
static int hf_q2931_susceptibility_to_clipping;
static int hf_q2931_oam_traffic_descriptor_management_indicator;
static int hf_q2931_qos_class_forward;
static int hf_q2931_endpoint_reference_type;
static int hf_q2931_number_presentation_indicator;
static int hf_q2931_bband_low_layer_info_user_info_l1_proto;
static int hf_q2931_number_screening_indicator;
static int hf_q2931_bband_low_layer_info_window_size;
static int hf_q2931_conn_id_vp_associated_signalling;
static int hf_q2931_cause_cell_rate_subfield_identifier;
static int hf_q2931_frame_discard_forward_dir;
static int hf_q2931_frame_discard_backward_dir;
static int hf_q2931_tagging_backward_dir;
static int hf_q2931_tagging_forward_dir;
static int hf_q2931_midrange;
static int hf_q2931_cause_network_service;
static int hf_q2931_cause_network_behavior;
static int hf_q2931_nsap_address_number_short;
static int hf_q2931_atm_identifier;
static int hf_q2931_atm_identifier_value;
static int hf_q2931_aal_parameter_identifier;
static int hf_q2931_e2e_transit_delay_identifier;
static int hf_q2931_bband_sending_complete_id;
static int hf_q2931_bband_sending_complete;
static int hf_q2931_locking_codeset;
static int ett_q2931;
static int ett_q2931_ext;
static int ett_q2931_ie;
static int ett_q2931_ie_ext;
static int ett_q2931_nsap;
static expert_field ei_q2931_atm_identifier;
static expert_field ei_q2931_aal_parameter_identifier;
static expert_field ei_q2931_e2e_transit_delay_identifier;
static expert_field ei_q2931_bband_sending_complete_id;
static void dissect_q2931_ie(tvbuff_t *tvb, packet_info* pinfo, int offset, int len,
proto_tree *tree, uint8_t info_element, uint8_t info_element_ext);
/*
* Q.2931 message types.
*/
#define Q2931_ALERTING 0x01
#define Q2931_CALL_PROCEEDING 0x02
#define Q2931_PROGRESS 0x03
#define Q2931_SETUP 0x05
#define Q2931_CONNECT 0x07
#define Q2931_SETUP_ACK 0x0B
#define Q2931_CONNECT_ACK 0x0F
#define Q2931_RESTART 0x46
#define Q2931_RELEASE 0x4D
#define Q2931_RESTART_ACK 0x4E
#define Q2931_RELEASE_COMPLETE 0x5A
#define Q2931_NOTIFY 0x6E
#define Q2931_STATUS_ENQUIRY 0x75
#define Q2931_INFORMATION 0x7B
#define Q2931_STATUS 0x7D
#define Q2931_ADD_PARTY 0x80
#define Q2931_ADD_PARTY_ACK 0x81
#define Q2931_ADD_PARTY_REJ 0x82
#define Q2931_DROP_PARTY 0x83
#define Q2931_DROP_PARTY_ACK 0x84
#define Q2931_LEAF_SETUP_FAIL 0x90
#define Q2931_LEAF_SETUP_REQ 0x91
static const value_string q2931_message_type_vals[] = {
{ Q2931_ALERTING, "ALERTING" },
{ Q2931_CALL_PROCEEDING, "CALL PROCEEDING" },
{ Q2931_PROGRESS, "PROGRESS" },
{ Q2931_SETUP, "SETUP" },
{ Q2931_CONNECT, "CONNECT" },
{ Q2931_SETUP_ACK, "SETUP ACKNOWLEDGE" },
{ Q2931_CONNECT_ACK, "CONNECT ACKNOWLEDGE" },
{ Q2931_RESTART, "RESTART" },
{ Q2931_RELEASE, "RELEASE" },
{ Q2931_RESTART_ACK, "RESTART ACKNOWLEDGE" },
{ Q2931_RELEASE_COMPLETE, "RELEASE COMPLETE" },
{ Q2931_NOTIFY, "NOTIFY" },
{ Q2931_STATUS_ENQUIRY, "STATUS ENQUIRY" },
{ Q2931_INFORMATION, "INFORMATION" },
{ Q2931_STATUS, "STATUS" },
{ Q2931_ADD_PARTY, "ADD PARTY" },
{ Q2931_ADD_PARTY_ACK, "ADD PARTY ACKNOWLEDGE" },
{ Q2931_ADD_PARTY_REJ, "ADD PARTY REJECT" },
{ Q2931_DROP_PARTY, "DROP PARTY" },
{ Q2931_DROP_PARTY_ACK, "DROP PARTY ACKNOWLEDGE" },
{ Q2931_LEAF_SETUP_FAIL, "LEAF SETUP FAILURE" },
{ Q2931_LEAF_SETUP_REQ, "LEAF SETUP REQUEST" },
{ 0, NULL }
};
static value_string_ext q2931_message_type_vals_ext = VALUE_STRING_EXT_INIT(q2931_message_type_vals);
static const true_false_string tfs_call_ref_flag = {
"Message sent to originating side",
"Message sent from originating side"
};
/*
* Bits in the message type extension.
*/
#define Q2931_MSG_TYPE_EXT_FOLLOW_INST 0x10 /* follow instructions in action indicator */
#define Q2931_MSG_TYPE_EXT_ACTION_IND 0x03 /* said instructions */
static const true_false_string tos_msg_flag = {
"Regular error handling procedures apply",
"Follow explicit error handling instructions"
};
static const value_string msg_action_ind_vals[] = {
{ 0x00, "Clear call" },
{ 0x01, "Discard and ignore" },
{ 0x02, "Discard and report status" },
{ 0x00, NULL }
};
/*
* Bits in the compatibility instruction indicator octet of an
* information element.
*/
#define Q2931_IE_COMPAT_CODING_STD 0x60 /* Coding standard */
#define Q2931_IE_COMPAT_FOLLOW_INST 0x10 /* follow instructions in action indicator */
#define Q2931_IE_COMPAT_ACTION_IND 0x07
/*
* ITU-standardized coding.
*/
#define Q2931_ITU_STANDARDIZED_CODING 0x00
static const value_string coding_std_vals[] = {
{ 0x00, "ITU-T standardized coding" },
{ 0x01, "ISO/IEC standard" },
{ 0x02, "National standard" },
{ 0x03, "Standard defined for the network" },
{ 0, NULL }
};
static const value_string ie_action_ind_vals[] = {
{ 0x00, "Clear call" },
{ 0x01, "Discard information element and proceed" },
{ 0x02, "Discard information element, proceed, and report status" },
{ 0x05, "Discard message, and ignore" },
{ 0x06, "Discard message, and report status" },
{ 0x00, NULL }
};
/*
* Information elements.
*/
#define Q2931_IE_EXTENSION 0x80 /* Extension flag */
#define Q2931_IE_NBAND_BEARER_CAP 0x04 /* Narrowband bearer capability */
#define Q2931_IE_CAUSE 0x08
#define Q2931_IE_CALL_STATE 0x14
#define Q2931_IE_PROGRESS_INDICATOR 0x1E
#define Q2931_IE_NOTIFICATION_INDICATOR 0x27
#define Q2931_IE_E2E_TRANSIT_DELAY 0x42 /* End-to-end Transit Delay */
#define Q2931_IE_ENDPOINT_REFERENCE 0x54
#define Q2931_IE_ENDPOINT_STATE 0x55
#define Q2931_IE_AAL_PARAMETERS 0x58 /* ATM adaptation layer parameters */
#define Q2931_IE_ATM_USER_CELL_RATE 0x59 /* ATM traffic descriptor */
#define Q2931_IE_CONNECTION_IDENTIFIER 0x5A
#define Q2931_IE_OAM_TRAFFIC_DESCRIPTOR 0x5B
#define Q2931_IE_QOS_PARAMETER 0x5C /* Quality of Service parameter */
#define Q2931_IE_BBAND_HI_LAYER_INFO 0x5D /* Broadband high-layer information */
#define Q2931_IE_BBAND_BEARER_CAP 0x5E /* Broadband bearer capability */
#define Q2931_IE_BBAND_LOW_LAYER_INFO 0x5F /* Broadband low-layer information */
#define Q2931_IE_BBAND_LOCKING_SHIFT 0x60 /* Broadband locking shift */
#define Q2931_IE_BBAND_NLOCKING_SHIFT 0x61 /* Broadband non-locking shift */
#define Q2931_IE_BBAND_SENDING_COMPL 0x62 /* Broadband sending complete */
#define Q2931_IE_BBAND_RPT_INDICATOR 0x63 /* Broadband repeat indicator */
#define Q2931_IE_CALLING_PARTY_NUMBER 0x6C /* Calling Party Number */
#define Q2931_IE_CALLING_PARTY_SUBADDR 0x6D /* Calling Party Subaddress */
#define Q2931_IE_CALLED_PARTY_NUMBER 0x70 /* Called Party Number */
#define Q2931_IE_CALLED_PARTY_SUBADDR 0x71 /* Called Party Subaddress */
#define Q2931_IE_TRANSIT_NETWORK_SEL 0x78 /* Transit Network Selection */
#define Q2931_IE_RESTART_INDICATOR 0x79
#define Q2931_IE_NBAND_LOW_LAYER_COMPAT 0x7C /* Narrowband Low-Layer Compatibility */
#define Q2931_IE_NBAND_HIGH_LAYER_COMPAT 0x7D /* Narrowband High-Layer Compatibility */
#define Q2931_IE_GENERIC_IDENT_TRANSPORT 0x7F /* Generic identifier transport */
static const value_string q2931_info_element_vals[] = {
{ Q2931_IE_NBAND_BEARER_CAP, "Narrowband bearer capability" },
{ Q2931_IE_CAUSE, "Cause" },
{ Q2931_IE_CALL_STATE, "Call state" },
{ Q2931_IE_PROGRESS_INDICATOR, "Progress indicator" },
{ Q2931_IE_NOTIFICATION_INDICATOR, "Notification indicator" },
{ Q2931_IE_E2E_TRANSIT_DELAY, "End-to-end transit delay" },
{ Q2931_IE_ENDPOINT_REFERENCE, "Endpoint reference" },
{ Q2931_IE_ENDPOINT_STATE, "Endpoint state" },
{ Q2931_IE_AAL_PARAMETERS, "AAL parameters" },
{ Q2931_IE_ATM_USER_CELL_RATE, "ATM user cell rate" },
{ Q2931_IE_CONNECTION_IDENTIFIER, "Connection identifier" },
{ Q2931_IE_OAM_TRAFFIC_DESCRIPTOR, "OAM traffic descriptor" },
{ Q2931_IE_QOS_PARAMETER, "Quality of service parameter" },
{ Q2931_IE_BBAND_HI_LAYER_INFO, "Broadband high-layer information" },
{ Q2931_IE_BBAND_BEARER_CAP, "Broadband bearer capability" },
{ Q2931_IE_BBAND_LOW_LAYER_INFO, "Broadband low-layer information" },
{ Q2931_IE_BBAND_LOCKING_SHIFT, "Broadband locking shift" },
{ Q2931_IE_BBAND_NLOCKING_SHIFT, "Broadband non-locking shift" },
{ Q2931_IE_BBAND_SENDING_COMPL, "Broadband sending complete" },
{ Q2931_IE_BBAND_RPT_INDICATOR, "Broadband repeat indicator" },
{ Q2931_IE_CALLING_PARTY_NUMBER, "Calling party number" },
{ Q2931_IE_CALLING_PARTY_SUBADDR, "Calling party subaddress" },
{ Q2931_IE_CALLED_PARTY_NUMBER, "Called party number" },
{ Q2931_IE_CALLED_PARTY_SUBADDR, "Called party subaddress" },
{ Q2931_IE_TRANSIT_NETWORK_SEL, "Transit network selection" },
{ Q2931_IE_RESTART_INDICATOR, "Restart indicator" },
{ Q2931_IE_NBAND_LOW_LAYER_COMPAT, "Narrowband low-layer compatibility" },
{ Q2931_IE_NBAND_HIGH_LAYER_COMPAT, "Narrowband high-layer compatibility" },
{ Q2931_IE_GENERIC_IDENT_TRANSPORT, "Generic identifier transport" },
{ 0, NULL }
};
static value_string_ext q2931_info_element_vals_ext = VALUE_STRING_EXT_INIT(q2931_info_element_vals);
/*
* Dissect a locking or non-locking shift information element.
*/
static const value_string q2931_codeset_vals[] = {
{ 0x00, "Q.2931 information elements" },
{ 0x04, "Information elements for ISO/IEC use" },
{ 0x05, "Information elements for national use" },
{ 0x06, "Information elements specific to the local network" },
{ 0x07, "User-specific information elements" },
{ 0x00, NULL },
};
static const true_false_string tfs_q2931_handling_instructions = { "Follow explicit error handling instructions",
"Regular error handling procedures apply" };
static void
dissect_q2931_shift_ie(tvbuff_t *tvb, int offset, int len,
proto_tree *tree, uint8_t info_element)
{
bool non_locking_shift;
uint8_t codeset;
if (len == 0)
return;
non_locking_shift = (info_element == Q2931_IE_BBAND_NLOCKING_SHIFT);
codeset = tvb_get_uint8(tvb, offset) & 0x07;
proto_tree_add_uint_format(tree, hf_q2931_locking_codeset, tvb, offset, 1, codeset,
"%s shift to codeset %u: %s",
(non_locking_shift ? "Non-locking" : "Locking"),
codeset, val_to_str(codeset, q2931_codeset_vals, "Unknown (0x%02X)"));
}
/*
* Dissect an ATM adaptation layer parameters information element.
*/
#define Q2931_AAL_VOICE 0x00
#define Q2931_AAL1 0x01
#define Q2931_AAL2 0x02
#define Q2931_AAL3_4 0x03
#define Q2931_AAL5 0x05
#define Q2931_USER_DEFINED_AAL 0x10
static const value_string q9231_aal_type_vals[] = {
{ 0x00, "AAL for voice" },
{ 0x01, "AAL type 1" },
{ 0x02, "AAL type 2" },
{ 0x03, "AAL type 3/4" },
{ 0x05, "AAL type 5" },
{ 0x10, "User-defined AAL" },
{ 0, NULL }
};
static const value_string q9231_aal1_subtype_vals[] = {
{ 0x00, "Null" },
{ 0x01, "64 kbit/s voice-band signal transport (G.711/G.722)" },
{ 0x02, "Circuit transport (I.363)" },
{ 0x03, "Circuit emulation (asynchronous)" },
{ 0x04, "High-quality audio signal transport (I.363)" },
{ 0x05, "Video signal transport (I.363)" },
{ 0x00, NULL }
};
#define Q2931_AAL1_nx64_KBIT_S 0x40
#define Q2931_AAL1_nx8_KBIT_S 0x41
static const value_string q9231_aal1_cbr_rate_vals[] = {
{ 0x01, "64 kbit/s" },
{ 0x04, "1544 kbit/s" },
{ 0x05, "6312 kbit/s" },
{ 0x06, "32064 kbit/s" },
{ 0x07, "44736 kbit/s" },
{ 0x08, "97728 kbit/s" },
{ 0x10, "2048 kbit/s" },
{ 0x11, "8448 kibt/s" },
{ 0x12, "34368 kbit/s" },
{ 0x13, "139264 kbit/s" },
{ Q2931_AAL1_nx64_KBIT_S, "nx64 kbit/s" },
{ Q2931_AAL1_nx8_KBIT_S, "nx8 kbit/s" },
{ 0x00, NULL }
};
static const value_string q2931_aal1_src_clk_rec_meth_vals[] = {
{ 0x00, "Null (synchronous circuit transport)" },
{ 0x01, "SRTS method (asynchronous circuit transport" },
{ 0x02, "Adaptive clock method" },
{ 0x00, NULL }
};
static const value_string q2931_aal1_err_correction_method_vals[] = {
{ 0x00, "Null" },
{ 0x01, "FEC method for less sensitive signal transport" },
{ 0x02, "FEC method for delay-sensitive signal transport" },
{ 0x00, NULL }
};
static const value_string q2931_aal_mode_vals[] = {
{ 0x01, "Message" },
{ 0x02, "Streaming" },
{ 0x00, NULL }
};
static const value_string q2931_sscs_type_vals[] = {
{ 0x00, "Null" },
{ 0x01, "Data SSCS based on SSCOP (assured operation)" },
{ 0x02, "Data SSCS based on SSCOP (non-assured operation)" },
{ 0x04, "Frame relay SSCS" },
{ 0x00, NULL }
};
static void
dissect_q2931_aal_parameters_ie(tvbuff_t *tvb, packet_info* pinfo, int offset, int len,
proto_tree *tree)
{
uint8_t aal_type;
uint8_t identifier;
uint32_t value;
uint32_t low_mid, high_mid;
proto_item* ti;
if (len == 0)
return;
aal_type = tvb_get_uint8(tvb, offset);
proto_tree_add_item(tree, hf_q2931_aal_type, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
/*
* Now get the rest of the IE.
*/
if (aal_type == 0x40) {
/*
* User-defined AAL.
*/
if (len > 4)
len = 4;
proto_tree_add_item(tree, hf_q2931_user_defined_aal_information, tvb, offset, len, ENC_NA);
return;
}
while (len >= 0) {
identifier = tvb_get_uint8(tvb, offset);
ti = proto_tree_add_item(tree, hf_q2931_aal_parameter_identifier, tvb, offset, 1, ENC_NA);
offset++;
len--;
switch (identifier) {
case 0x85: /* Subtype identifier for AAL1 */
if (len < 1)
return;
proto_tree_add_item(tree, hf_q2931_aal1_subtype, tvb, offset, 1, ENC_NA);
offset++;
len--;
break;
case 0x86: /* CBR identifier for AAL1 */
if (len < 1)
return;
proto_tree_add_item(tree, hf_q2931_aal1_cbr_rate, tvb, offset, 1, ENC_NA);
offset++;
len--;
break;
case 0x87: /* Multiplier identifier for AAL1 */
if (len < 2)
return;
proto_tree_add_item(tree, hf_q2931_aal1_multiplier, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
len -= 2;
break;
case 0x88: /* Source clock frequency recovery method identifier for AAL1 */
if (len < 1)
return;
proto_tree_add_item(tree, hf_q2931_aal1_source_clock_frequency_recovery_method, tvb, offset, 1, ENC_NA);
offset++;
len--;
break;
case 0x89: /* Error correction method identifier for AAL1 */
if (len < 1)
return;
proto_tree_add_item(tree, hf_q2931_aal1_error_correction_method, tvb, offset, 1, ENC_NA);
offset++;
len--;
break;
case 0x8A: /* Structured data transfer block size identifier for AAL1 */
if (len < 2)
return;
proto_tree_add_item(tree, hf_q2931_aal1_structured_data_transfer_block_size, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
len -= 2;
break;
case 0x8B: /* Partially filled cells identifier for AAL1 */
if (len < 1)
return;
value = tvb_get_uint8(tvb, offset);
proto_tree_add_uint_format_value(tree, hf_q2931_aal1_partially_filled_cells_method, tvb, offset, 1,
value, "%u octets", value);
offset++;
len--;
break;
case 0x8C: /* Forward maximum CPCS-SDU size identifier for AAL3/4 and AAL5 */
if (len < 2)
return;
proto_tree_add_item(tree, hf_q2931_aal1_forward_max_cpcs_sdu_size, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
len -= 2;
break;
case 0x81: /* Backward maximum CPCS-SDU size identifier for AAL3/4 and AAL5 */
if (len < 2)
return;
proto_tree_add_item(tree, hf_q2931_aal1_backward_max_cpcs_sdu_size, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
len -= 2;
break;
case 0x82: /* MID range identifier for AAL3/4 */
if (len < 4)
return;
low_mid = tvb_get_ntohs(tvb, offset);
high_mid = tvb_get_ntohs(tvb, offset + 2);
proto_tree_add_uint_format_value(tree, hf_q2931_midrange, tvb, offset, 4, tvb_get_ntohl(tvb, offset),
"%u - %u", low_mid, high_mid);
offset += 4;
len -= 4;
break;
case 0x83: /* Mode identifier for AAL3/4 and AAL5 */
if (len < 1)
return;
proto_tree_add_item(tree, hf_q2931_aal1_mode, tvb, offset, 1, ENC_NA);
offset++;
len--;
break;
case 0x84: /* SSCS type identifier for AAL3/4 and AAL5 */
if (len < 1)
return;
proto_tree_add_item(tree, hf_q2931_aal1_sscs_type, tvb, offset, 1, ENC_NA);
offset++;
len--;
break;
default: /* unknown AAL parameter */
expert_add_info(pinfo, ti, &ei_q2931_aal_parameter_identifier);
return; /* give up */
}
}
}
/*
* Dissect an ATM traffic descriptor information element.
*/
#define Q2931_ATM_CR_FW_PEAK_CLP_0 0x82 /* Forward peak cell rate (CLP = 0) */
#define Q2931_ATM_CR_BW_PEAK_CLP_0 0x83 /* Backward peak cell rate (CLP = 0) */
#define Q2931_ATM_CR_FW_PEAK_CLP_0_1 0x84 /* Forward peak cell rate (CLP = 0 + 1) */
#define Q2931_ATM_CR_BW_PEAK_CLP_0_1 0x85 /* Backward peak cell rate (CLP = 0 + 1) */
#define Q2931_ATM_CR_FW_SUST_CLP_0 0x88 /* Forward sustainable cell rate (CLP = 0) */
#define Q2931_ATM_CR_BW_SUST_CLP_0 0x89 /* Backward sustainable cell rate (CLP = 0) */
#define Q2931_ATM_CR_FW_SUST_CLP_0_1 0x90 /* Forward sustainable cell rate (CLP = 0 + 1) */
#define Q2931_ATM_CR_BW_SUST_CLP_0_1 0x91 /* Backward sustainable cell rate (CLP = 0 + 1) */
#define Q2931_ATM_CR_FW_MAXB_CLP_0 0xA0 /* Forward maximum burst size (CLP = 0) */
#define Q2931_ATM_CR_BW_MAXB_CLP_0 0xA1 /* Backward maximum burst size (CLP = 0) */
#define Q2931_ATM_CR_FW_MAXB_CLP_0_1 0xB0 /* Forward maximum burst size (CLP = 0 + 1) */
#define Q2931_ATM_CR_BW_MAXB_CLP_0_1 0xB1 /* Backward maximum burst size (CLP = 0 + 1) */
#define Q2931_ATM_CR_BEST_EFFORT_IND 0xBE /* Best effort indicator */
#define Q2931_ATM_CR_TRAFFIC_MGMT_OPT 0xBF /* Traffic management options */
static const value_string q2931_atm_td_subfield_vals[] = {
{ Q2931_ATM_CR_FW_PEAK_CLP_0, "Forward peak cell rate (CLP = 0)" },
{ Q2931_ATM_CR_BW_PEAK_CLP_0, "Backward peak cell rate (CLP = 0)" },
{ Q2931_ATM_CR_FW_PEAK_CLP_0_1, "Forward peak cell rate (CLP = 0 + 1)" },
{ Q2931_ATM_CR_BW_PEAK_CLP_0_1, "Backward peak cell rate (CLP = 0 + 1)" },
{ Q2931_ATM_CR_FW_SUST_CLP_0, "Forward sustainable cell rate (CLP = 0)" },
{ Q2931_ATM_CR_BW_SUST_CLP_0, "Backward sustainable cell rate (CLP = 0)" },
{ Q2931_ATM_CR_FW_SUST_CLP_0_1, "Forward sustainable cell rate (CLP = 0 + 1)" },
{ Q2931_ATM_CR_BW_SUST_CLP_0_1, "Backward sustainable cell rate (CLP = 0 + 1)" },
{ Q2931_ATM_CR_FW_MAXB_CLP_0, "Forward maximum burst size (CLP = 0)" },
{ Q2931_ATM_CR_BW_MAXB_CLP_0, "Backward maximum burst size (CLP = 0)" },
{ Q2931_ATM_CR_FW_MAXB_CLP_0_1, "Forward maximum burst size (CLP = 0 + 1)" },
{ Q2931_ATM_CR_BW_MAXB_CLP_0_1, "Backward maximum burst size (CLP = 0 + 1)" },
{ Q2931_ATM_CR_BEST_EFFORT_IND, "Best effort indicator" },
{ Q2931_ATM_CR_TRAFFIC_MGMT_OPT,"Traffic management options" },
{ 0x0, NULL }
};
static const unit_name_string units_cells_s = { " cell/s", " cells/s" };
static void
dissect_q2931_atm_cell_rate_ie(tvbuff_t *tvb, packet_info* pinfo, int offset, int len,
proto_tree *tree)
{
uint8_t identifier;
uint32_t value;
proto_item* ti;
while (len >= 0) {
identifier = tvb_get_uint8(tvb, offset);
ti = proto_tree_add_item(tree, hf_q2931_atm_identifier, tvb, offset, 1, ENC_NA);
switch (identifier) {
case Q2931_ATM_CR_FW_PEAK_CLP_0:
case Q2931_ATM_CR_BW_PEAK_CLP_0:
case Q2931_ATM_CR_FW_PEAK_CLP_0_1:
case Q2931_ATM_CR_BW_PEAK_CLP_0_1:
case Q2931_ATM_CR_FW_SUST_CLP_0:
case Q2931_ATM_CR_BW_SUST_CLP_0:
case Q2931_ATM_CR_FW_SUST_CLP_0_1:
case Q2931_ATM_CR_BW_SUST_CLP_0_1:
case Q2931_ATM_CR_FW_MAXB_CLP_0:
case Q2931_ATM_CR_BW_MAXB_CLP_0:
case Q2931_ATM_CR_FW_MAXB_CLP_0_1:
case Q2931_ATM_CR_BW_MAXB_CLP_0_1:
if (len < 4)
return;
value = tvb_get_ntoh24(tvb, offset + 1);
proto_tree_add_uint(tree, hf_q2931_atm_identifier_value, tvb, offset+3, 3, value);
offset += 4;
len -= 4;
break;
case Q2931_ATM_CR_BEST_EFFORT_IND:
/* Yes, its value *IS* 0xBE.... */
offset += 1;
len -= 1;
break;
case Q2931_ATM_CR_TRAFFIC_MGMT_OPT:
if (len < 2)
return;
proto_tree_add_item(tree, hf_q2931_frame_discard_forward_dir, tvb, offset + 1, 1, ENC_NA);
proto_tree_add_item(tree, hf_q2931_frame_discard_backward_dir, tvb, offset + 1, 1, ENC_NA);
proto_tree_add_item(tree, hf_q2931_tagging_backward_dir, tvb, offset + 1, 1, ENC_NA);
proto_tree_add_item(tree, hf_q2931_tagging_forward_dir, tvb, offset + 1, 1, ENC_NA);
offset += 2;
len -= 2;
break;
default: /* unknown ATM traffic descriptor element */
expert_add_info(pinfo, ti, &ei_q2931_atm_identifier);
return; /* give up */
}
}
}
/*
* Dissect a broadband bearer capability information element.
*/
static const value_string q2931_bearer_class_vals[] = {
{ 0x01, "BCOB-A" },
{ 0x03, "BCOB-C" },
{ 0x10, "BCOB-X" },
{ 0x18, "Transparent VP Service" },
{ 0x00, NULL }
};
static const value_string q2931_transfer_capability_vals[] = {
{ 0x00, "No bit rate indication" },
{ 0x01, "No bit rate indication, end-to-end timing required" },
{ 0x02, "No bit rate indication, end-to-end timing not required" },
{ 0x04, "CBR" },
{ 0x05, "CBR, end-to-end timing required" },
{ 0x06, "CBR, end-to-end timing not required" },
{ 0x07, "CBR with CLR commitment on CLP=0+1" },
{ 0x08, "VBR, no timing requirements indication" },
{ 0x09, "Real time VBR" },
{ 0x0A, "Non-real time VBR" },
{ 0x0B, "Non-real time VBR with CLR commitment on CLP=0+1" },
{ 0x0C, "ABR" },
{ 0x00, NULL }
};
static const value_string q2931_susc_clip_vals[] = {
{ 0, "Not susceptible to clipping" },
{ 1, "Susceptible to clipping" },
{ 0, NULL }
};
static const value_string q2931_up_conn_config_vals[] = {
{ 0x00, "Point-to-point" },
{ 0x01, "Point-to-multipoint" },
{ 0x00, NULL }
};
static void
dissect_q2931_bband_bearer_cap_ie(tvbuff_t *tvb, int offset, int len,
proto_tree *tree)
{
uint8_t octet;
if (len == 0)
return;
octet = tvb_get_uint8(tvb, offset);
proto_tree_add_item(tree, hf_q2931_bearer_class, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (len == 0)
return;
if (!(octet & Q2931_IE_EXTENSION)) {
proto_tree_add_item(tree, hf_q2931_atm_transfer_capability, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
}
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_susceptibility_to_clipping, tvb, offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_q2931_user_plane_connection_configuration, tvb, offset, 1, ENC_BIG_ENDIAN);
}
/*
* Dissect a broadband high layer information information element.
*/
static const value_string q2931_hi_layer_info_type_vals[] = {
{ 0x00, "ISO/IEC" },
{ 0x01, "User-specific" },
{ 0x03, "Vendor-specific" },
{ 0x04, "ITU-T SG 1 B-ISDN teleservice recommendation" },
{ 0x00, NULL }
};
static void
dissect_q2931_bband_hi_layer_info_ie(tvbuff_t *tvb, int offset, int len,
proto_tree *tree)
{
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_high_layer_information_type, tvb, offset, 1, ENC_BIG_ENDIAN);
/*offset += 1; */
/* len -= 1; */
}
/*
* Dissect a Bearer capability or Low-layer compatibility information element.
*/
#define Q2931_UIL2_USER_SPEC 0x10
static const value_string q2931_uil2_vals[] = {
{ 0x01, "Basic mode ISO 1745" },
{ 0x02, "Q.921/I.441" }, /* LAPD */
{ 0x06, "X.25, link layer" }, /* LAPB */
{ 0x07, "X.25 multilink" }, /* or 0x0F? */
{ 0x08, "T.71 Extended LAPB" },
{ 0x09, "HDLC ARM" },
{ 0x0A, "HDLC NRM" },
{ 0x0B, "HDLC ABM" },
{ 0x0C, "ISO 8802/2 LLC" },
{ 0x0D, "X.75 Single Link Procedure" },
{ 0x0E, "Q.922" },
{ Q2931_UIL2_USER_SPEC, "User-specified" },
{ 0x11, "ISO 7776 DTE-DTE operation" },
{ 0, NULL }
};
static const value_string q2931_mode_vals[] = {
{ 1, "Normal mode" },
{ 2, "Extended mode" },
{ 0, NULL }
};
#define Q2931_UIL3_X25_PL 0x06
#define Q2931_UIL3_ISO_8208 0x07 /* X.25-based */
#define Q2931_UIL3_X223 0x08 /* X.25-based */
#define Q2931_UIL3_TR_9577 0x0B
#define Q2931_UIL3_USER_SPEC 0x10
static const value_string q2931_uil3_vals[] = {
{ Q2931_UIL3_X25_PL, "X.25, packet layer" },
{ Q2931_UIL3_ISO_8208, "ISO/IEC 8208" },
{ Q2931_UIL3_X223, "X.223/ISO 8878" },
{ 0x09, "ISO/IEC 8473" },
{ 0x0A, "T.70" },
{ Q2931_UIL3_TR_9577, "ISO/IEC TR 9577" },
{ Q2931_UIL3_USER_SPEC, "User-specified" },
{ 0, NULL }
};
static const value_string lane_pid_vals[] = {
{ 0x0001, "LE Configuration Direct/Control Direct/Control Distribute" },
{ 0x0002, "Ethernet/IEEE 002.3 LE Data Direct" },
{ 0x0003, "IEEE 802.5 LE Data Direct" },
{ 0x0004, "Ethernet/IEEE 802.3 LE Multicast Send/Multicast Forward" },
{ 0x0005, "IEEE 802.5 LE Multicast Send/Multicast Forward" },
{ 0, NULL },
};
/*
* Dissect a broadband low layer information information element.
*/
static void
dissect_q2931_bband_low_layer_info_ie(tvbuff_t *tvb, int offset, int len,
proto_tree *tree)
{
uint8_t octet;
uint8_t uil2_protocol;
uint8_t uil3_protocol;
uint8_t add_l3_info;
uint32_t organization_code;
if (len == 0)
return;
octet = tvb_get_uint8(tvb, offset);
if ((octet & 0x60) == 0x20) {
/*
* Layer 1 information.
*/
proto_tree_add_item(tree, hf_q2931_bband_low_layer_info_user_info_l1_proto, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
}
if (len == 0)
return;
octet = tvb_get_uint8(tvb, offset);
if ((octet & 0x60) == 0x40) {
/*
* Layer 2 information.
*/
uil2_protocol = octet & 0x1F;
proto_tree_add_item(tree, hf_q2931_bband_low_layer_info_user_info_l2_proto, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (octet & Q2931_IE_EXTENSION)
goto l2_done;
if (len == 0)
return;
octet = tvb_get_uint8(tvb, offset);
if (uil2_protocol == Q2931_UIL2_USER_SPEC) {
proto_tree_add_item(tree, hf_q2931_bband_low_layer_info_user_specified_l2_proto, tvb, offset, 1, ENC_BIG_ENDIAN);
} else {
proto_tree_add_item(tree, hf_q2931_bband_low_layer_info_mode, tvb, offset, 1, ENC_BIG_ENDIAN);
}
offset += 1;
len -= 1;
if (octet & Q2931_IE_EXTENSION)
goto l2_done;
if (len == 0)
return;
octet = tvb_get_uint8(tvb, offset);
proto_tree_add_uint_format_value(tree, hf_q2931_bband_low_layer_info_window_size, tvb, offset, 1,
octet & 0x7F, "%u k", octet & 0x7F);
offset += 1;
len -= 1;
}
l2_done:
;
if (len == 0)
return;
octet = tvb_get_uint8(tvb, offset);
if ((octet & 0x60) == 0x60) {
/*
* Layer 3 information.
*/
uil3_protocol = octet & 0x1F;
proto_tree_add_item(tree, hf_q2931_bband_low_layer_info_user_info_l3_proto, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
/*
* XXX - only in Low-layer compatibility information element.
*/
if (octet & Q2931_IE_EXTENSION)
goto l3_done;
if (len == 0)
return;
octet = tvb_get_uint8(tvb, offset);
switch (uil3_protocol) {
case Q2931_UIL3_X25_PL:
case Q2931_UIL3_ISO_8208:
case Q2931_UIL3_X223:
proto_tree_add_item(tree, hf_q2931_bband_low_layer_info_mode, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (octet & Q2931_IE_EXTENSION)
goto l3_done;
if (len == 0)
return;
octet = tvb_get_uint8(tvb, offset);
proto_tree_add_item(tree, hf_q2931_bband_low_layer_info_default_packet_size, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (octet & Q2931_IE_EXTENSION)
goto l3_done;
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_bband_low_layer_info_packet_window_size, tvb, offset, 1, ENC_BIG_ENDIAN);
/*offset += 1;*/
/*len -= 1;*/
break;
case Q2931_UIL3_USER_SPEC:
proto_tree_add_uint(tree, hf_q2931_bband_low_layer_info_default_packet_size, tvb, offset, 1, 1 << (octet & 0x0F));
/*offset += 1;*/
/*len -= 1;*/
break;
case Q2931_UIL3_TR_9577:
add_l3_info = (octet & 0x7F) << 1;
if (octet & Q2931_IE_EXTENSION)
goto l3_done;
if (len < 2)
return;
add_l3_info |= (tvb_get_uint8(tvb, offset + 1) & 0x40) >> 6;
proto_tree_add_uint(tree, hf_q2931_bband_low_layer_info_additional_l3_proto, tvb, offset, 2, add_l3_info);
offset += 2;
len -= 2;
if (add_l3_info == NLPID_SNAP) {
if (len < 6)
return;
offset += 1;
/*len -= 1;*/
organization_code = tvb_get_ntoh24(tvb, offset);
proto_tree_add_item(tree, hf_q2931_organization_code, tvb, offset, 3, ENC_BIG_ENDIAN);
offset += 3;
/*len -= 3;*/
switch (organization_code) {
case OUI_ENCAP_ETHER:
proto_tree_add_item(tree, hf_q2931_ethernet_type, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OUI_ATM_FORUM:
proto_tree_add_item(tree, hf_q2931_lane_protocol_id, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
default:
proto_tree_add_item(tree, hf_q2931_protocol_id, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
}
}
break;
}
}
l3_done:
;
}
/*
* Dissect a Cause information element.
*/
static const value_string q2931_cause_location_vals[] = {
{ 0x00, "User (U)" },
{ 0x01, "Private network serving the local user (LPN)" },
{ 0x02, "Public network serving the local user (LN)" },
{ 0x03, "Transit network (TN)" },
{ 0x04, "Public network serving the remote user (RLN)" },
{ 0x05, "Private network serving the remote user (RPN)" },
{ 0x07, "International network (INTL)" },
{ 0x0A, "Network beyond interworking point (BI)" },
{ 0, NULL }
};
/*
* Cause codes for Cause.
*/
#define Q2931_CAUSE_UNALLOC_NUMBER 0x01
#define Q2931_CAUSE_NO_ROUTE_TO_DEST 0x03
#define Q2931_CAUSE_CALL_REJECTED 0x15
#define Q2931_CAUSE_NUMBER_CHANGED 0x16
#define Q2931_CAUSE_CELL_RATE_UNAVAIL 0x25
#define Q2931_CAUSE_ACCESS_INFO_DISC 0x2B
#define Q2931_CAUSE_QOS_UNAVAILABLE 0x31
#define Q2931_CAUSE_CHAN_NONEXISTENT 0x52
#define Q2931_CAUSE_INCOMPATIBLE_DEST 0x58
#define Q2931_CAUSE_MAND_IE_MISSING 0x60
#define Q2931_CAUSE_MT_NONEX_OR_UNIMPL 0x61
#define Q2931_CAUSE_IE_NONEX_OR_UNIMPL 0x63
#define Q2931_CAUSE_INVALID_IE_CONTENTS 0x64
#define Q2931_CAUSE_MSG_INCOMPAT_W_CS 0x65
#define Q2931_CAUSE_REC_TIMER_EXP 0x66
static const value_string q2931_cause_code_vals[] = {
{ Q2931_CAUSE_UNALLOC_NUMBER, "Unallocated (unassigned) number" },
{ 0x02, "No route to specified transit network" },
{ Q2931_CAUSE_NO_ROUTE_TO_DEST, "No route to destination" },
{ 0x04, "Send special information tone" },
{ 0x05, "Misdialled trunk prefix" },
{ 0x06, "Channel unacceptable" },
{ 0x07, "Call awarded and being delivered in an established channel" },
{ 0x08, "Preemption" },
{ 0x09, "Preemption - circuit reserved for reuse" },
{ 0x0E, "QoR: ported number" },
{ 0x10, "Normal call clearing" },
{ 0x11, "User busy" },
{ 0x12, "No user responding" },
{ 0x13, "No answer from user (user alerted)" },
{ 0x14, "Subscriber absent" },
{ Q2931_CAUSE_CALL_REJECTED, "Call rejected" },
{ Q2931_CAUSE_NUMBER_CHANGED, "Number changed" },
{ 0x17, "Redirection to new destination" },
{ 0x18, "Call rejected due to feature at the destination" },
{ 0x19, "Exchange routing error" },
{ 0x1A, "Non-selected user clearing" },
{ 0x1B, "Destination out of order" },
{ 0x1C, "Invalid number format (incomplete number)" },
{ 0x1E, "Response to STATUS ENQUIRY" },
{ 0x1F, "Normal unspecified" },
{ 0x20, "Too many pending add party request" },
{ 0x23, "Requested VPCI/VCI not available" },
{ 0x24, "VPCI/VCI assignment failure" },
{ Q2931_CAUSE_CELL_RATE_UNAVAIL,"User cell rate not available" },
{ 0x26, "Network out of order" },
{ 0x27, "Permanent frame mode connection out of service" },
{ 0x28, "Permanent frame mode connection operational" },
{ 0x29, "Temporary failure" },
{ 0x2A, "Switching equipment congestion" },
{ Q2931_CAUSE_ACCESS_INFO_DISC, "Access information discarded" },
{ 0x2C, "Requested circuit/channel not available" },
{ 0x2D, "No VPCI/VCI available" },
{ 0x2F, "Resources unavailable, unspecified" },
{ Q2931_CAUSE_QOS_UNAVAILABLE, "Quality of service unavailable" },
{ 0x32, "Requested facility not subscribed" },
{ 0x35, "Outgoing calls barred within CUG" },
{ 0x37, "Incoming calls barred within CUG" },
{ 0x39, "Bearer capability not authorized" },
{ 0x3A, "Bearer capability not presently available" },
{ 0x3E, "Inconsistency in designated outgoing access information and subscriber class" },
{ 0x3F, "Service or option not available, unspecified" },
{ 0x41, "Bearer capability not implemented" },
{ 0x42, "Channel type not implemented" },
{ 0x45, "Requested facility not implemented" },
{ 0x46, "Only restricted digital information bearer capability is available" },
{ 0x49, "Unsupported combination of traffic parameters" },
{ 0x4E, "AAL parameters cannot be supported" },
{ 0x4F, "Service or option not implemented, unspecified" },
{ 0x51, "Invalid call reference value" },
{ Q2931_CAUSE_CHAN_NONEXISTENT, "Identified channel does not exist" },
{ 0x53, "Call identity does not exist for suspended call" },
{ 0x54, "Call identity in use" },
{ 0x55, "No call suspended" },
{ 0x56, "Call having the requested call identity has been cleared" },
{ 0x57, "Called user not member of CUG" },
{ Q2931_CAUSE_INCOMPATIBLE_DEST,"Incompatible destination" },
{ 0x59, "Invalid endpoint reference" },
{ 0x5A, "Non-existent CUG" },
{ 0x5B, "Invalid transit network selection" },
{ 0x5C, "Too many pending ADD PARTY requests" },
{ 0x5D, "AAL parameters cannot be supported" },
{ 0x5F, "Invalid message, unspecified" },
{ Q2931_CAUSE_MAND_IE_MISSING, "Mandatory information element is missing" },
{ Q2931_CAUSE_MT_NONEX_OR_UNIMPL,"Message type non-existent or not implemented" },
{ 0x62, "Message not compatible with call state or message type non-existent or not implemented" },
{ Q2931_CAUSE_IE_NONEX_OR_UNIMPL,"Information element non-existent or not implemented" },
{ Q2931_CAUSE_INVALID_IE_CONTENTS,"Invalid information element contents" },
{ Q2931_CAUSE_MSG_INCOMPAT_W_CS,"Message not compatible with call state" },
{ Q2931_CAUSE_REC_TIMER_EXP, "Recovery on timer expiry" },
{ 0x67, "Parameter non-existent or not implemented - passed on" },
{ 0x68, "Incorrect message length" },
{ 0x6E, "Message with unrecognized parameter discarded" },
{ 0x6F, "Protocol error, unspecified" },
{ 0x7F, "Internetworking, unspecified" },
{ 0, NULL }
};
static value_string_ext q2931_cause_code_vals_ext = VALUE_STRING_EXT_INIT(q2931_cause_code_vals);
static const value_string q2931_cause_condition_vals[] = {
{ 0x00, "Unknown" },
{ 0x01, "Permanent" },
{ 0x02, "Transient" },
{ 0x00, NULL }
};
#define Q2931_REJ_USER_SPECIFIC 0x00
#define Q2931_REJ_IE_MISSING 0x04
#define Q2931_REJ_IE_INSUFFICIENT 0x08
static const value_string q2931_rejection_reason_vals[] = {
{ 0x00, "User specific" },
{ 0x04, "Information element missing" },
{ 0x08, "Information element contents are not sufficient" },
{ 0x00, NULL }
};
static const true_false_string tfs_abnormal_normal = { "Abnormal", "Normal" };
static void
// NOLINTNEXTLINE(misc-no-recursion)
dissect_q2931_cause_ie(tvbuff_t *tvb, packet_info* pinfo, int offset, int len,
proto_tree *tree)
{
uint8_t octet;
uint8_t cause_value;
uint8_t rejection_reason;
uint8_t info_element;
uint8_t info_element_ext;
uint16_t info_element_len;
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_cause_location, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (len == 0)
return;
octet = tvb_get_uint8(tvb, offset);
cause_value = octet & 0x7F;
proto_tree_add_item(tree, hf_q2931_cause_value, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (len == 0)
return;
switch (cause_value) {
case Q2931_CAUSE_UNALLOC_NUMBER:
case Q2931_CAUSE_NO_ROUTE_TO_DEST:
case Q2931_CAUSE_QOS_UNAVAILABLE:
proto_tree_add_item(tree, hf_q2931_cause_network_service, tvb, offset, 1, ENC_NA);
proto_tree_add_item(tree, hf_q2931_cause_network_behavior, tvb, offset, 1, ENC_NA);
proto_tree_add_item(tree, hf_q2931_cause_rejection_condition, tvb, offset, 1, ENC_NA);
break;
case Q2931_CAUSE_CALL_REJECTED:
rejection_reason = octet & 0x7C;
proto_tree_add_item(tree, hf_q2931_cause_rejection_reason, tvb, offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_q2931_cause_rejection_condition, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (len == 0)
return;
switch (rejection_reason) {
case Q2931_REJ_USER_SPECIFIC:
proto_tree_add_item(tree, hf_q2931_cause_rejection_user_specific_diagnostic, tvb, offset, len, ENC_NA);
break;
case Q2931_REJ_IE_MISSING:
proto_tree_add_item(tree, hf_q2931_cause_rejection_missing_information_element, tvb, offset, 1, ENC_BIG_ENDIAN);
break;
case Q2931_REJ_IE_INSUFFICIENT:
proto_tree_add_item(tree, hf_q2931_cause_rejection_insufficient_information_element, tvb, offset, 1, ENC_BIG_ENDIAN);
break;
default:
proto_tree_add_item(tree, hf_q2931_cause_rejection_diagnostic, tvb, offset, len, ENC_NA);
break;
}
break;
case Q2931_CAUSE_NUMBER_CHANGED:
/*
* UNI 3.1 claims this "is formatted as the called party
* number information element, including information
* element identifier.
*/
info_element = tvb_get_uint8(tvb, offset);
info_element_ext = tvb_get_uint8(tvb, offset + 1);
info_element_len = tvb_get_ntohs(tvb, offset + 2);
// We recurse here, but we'll run out of packet before we run out of stack.
dissect_q2931_ie(tvb, pinfo, offset, info_element_len, tree,
info_element, info_element_ext);
break;
case Q2931_CAUSE_ACCESS_INFO_DISC:
case Q2931_CAUSE_INCOMPATIBLE_DEST:
case Q2931_CAUSE_MAND_IE_MISSING:
case Q2931_CAUSE_IE_NONEX_OR_UNIMPL:
case Q2931_CAUSE_INVALID_IE_CONTENTS:
do {
proto_tree_add_item(tree, hf_q2931_cause_information_element, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
} while (len >= 0);
break;
case Q2931_CAUSE_CELL_RATE_UNAVAIL:
do {
proto_tree_add_item(tree, hf_q2931_cause_cell_rate_subfield_identifier, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
} while (len >= 0);
break;
case Q2931_CAUSE_CHAN_NONEXISTENT:
if (len < 2)
return;
proto_tree_add_item(tree, hf_q2931_cause_vpci, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
len -= 2;
if (len < 2)
return;
proto_tree_add_item(tree, hf_q2931_cause_vci, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case Q2931_CAUSE_MT_NONEX_OR_UNIMPL:
case Q2931_CAUSE_MSG_INCOMPAT_W_CS:
proto_tree_add_item(tree, hf_q2931_cause_message_type, tvb, offset, 1, ENC_BIG_ENDIAN);
break;
case Q2931_CAUSE_REC_TIMER_EXP:
if (len < 3)
return;
proto_tree_add_item(tree, hf_q2931_cause_timer, tvb, offset, 3, ENC_ASCII);
break;
default:
proto_tree_add_item(tree, hf_q2931_cause_rejection_diagnostic, tvb, offset, len, ENC_NA);
}
}
/*
* Dissect a Call state information element.
*/
static const value_string q2931_call_state_vals[] = {
{ 0x00, "Null" },
{ 0x01, "Call initiated" },
{ 0x02, "Overlap sending" },
{ 0x03, "Outgoing call proceeding" },
{ 0x04, "Call delivered" },
{ 0x06, "Call present" },
{ 0x07, "Call received" },
{ 0x09, "Connect request" },
{ 0x0A, "Incoming call proceeding" },
{ 0x0B, "Active" },
{ 0x0C, "Disconnect request" },
{ 0x0F, "Disconnect indication" },
{ 0x11, "Suspend request" },
{ 0x13, "Resume request" },
{ 0x16, "Release request" },
{ 0x19, "Overlap receiving" },
{ 0x3D, "Restart request" },
{ 0x3E, "Restart" },
{ 0, NULL }
};
static void
dissect_q2931_call_state_ie(tvbuff_t *tvb, int offset, int len,
proto_tree *tree)
{
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_call_state, tvb, offset, 1, ENC_BIG_ENDIAN);
}
/*
* Dissect a (phone) number information element.
*/
static const value_string q2931_number_type_vals[] = {
{ 0x0, "Unknown" },
{ 0x1, "International number" },
{ 0x2, "National number" },
{ 0x3, "Network specific number" },
{ 0x4, "Subscriber number" },
{ 0x6, "Abbreviated number" },
{ 0, NULL }
};
#define Q2931_ISDN_NUMBERING 0x01
#define Q2931_NSAP_ADDRESSING 0x02
static const value_string q2931_numbering_plan_vals[] = {
{ 0x00, "Unknown" },
{ Q2931_ISDN_NUMBERING, "E.164 ISDN/telephony numbering" },
{ Q2931_NSAP_ADDRESSING, "ISO/IEC 8348 NSAP addressing" },
{ 0x09, "Private numbering" },
{ 0, NULL }
};
static const value_string q2931_presentation_indicator_vals[] = {
{ 0, "Presentation allowed" },
{ 1, "Presentation restricted" },
{ 2, "Number not available" },
{ 0, NULL }
};
static const value_string q2931_screening_indicator_vals[] = {
{ 0x00, "User-provided, not screened" },
{ 0x01, "User-provided, verified and passed" },
{ 0x02, "User-provided, verified and failed" },
{ 0x03, "Network-provided" },
{ 0, NULL }
};
static void
dissect_q2931_number_ie(tvbuff_t *tvb, packet_info* pinfo, int offset, int len,
proto_tree *tree)
{
uint8_t octet;
uint8_t numbering_plan;
proto_tree *nsap_tree;
if (len == 0)
return;
octet = tvb_get_uint8(tvb, offset);
proto_tree_add_item(tree, hf_q2931_number_type, tvb, offset, 1, ENC_BIG_ENDIAN);
numbering_plan = octet & 0x0F;
proto_tree_add_item(tree, hf_q2931_number_plan, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (!(octet & Q2931_IE_EXTENSION)) {
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_number_presentation_indicator, tvb, offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_q2931_number_screening_indicator, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
}
if (len == 0)
return;
switch (numbering_plan) {
case Q2931_ISDN_NUMBERING:
proto_tree_add_item(tree, hf_q2931_number_string, tvb, offset, len, ENC_ASCII);
break;
case Q2931_NSAP_ADDRESSING:
if (len < 20) {
proto_tree_add_item(tree, hf_q2931_nsap_address_number_short, tvb, offset, len, ENC_NA);
return;
}
nsap_tree = proto_tree_add_subtree(tree, tvb, offset, len, ett_q2931_nsap, NULL, "Number");
dissect_atm_nsap(tvb, pinfo, offset, len, nsap_tree);
break;
default:
proto_tree_add_item(tree, hf_q2931_number_bytes, tvb, offset, len, ENC_NA);
break;
}
}
/*
* Dissect a party subaddress information element.
*/
static const value_string q2931_subaddress_type_vals[] = {
{ 0, "X.213/ISO 8348 NSAP" },
{ 1, "User-specified ATM endsystem address" },
{ 2, "User-specified" },
{ 0, NULL }
};
static const value_string q2931_odd_even_indicator_vals[] = {
{ 0, "Even number of address signals" },
{ 1, "Odd number of address signals" },
{ 0, NULL }
};
static void
dissect_q2931_party_subaddr_ie(tvbuff_t *tvb, int offset, int len,
proto_tree *tree)
{
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_party_subaddr_type_of_subaddress, tvb, offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_q2931_party_subaddr_odd_even_indicator, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_party_subaddr_subaddress, tvb, offset, len, ENC_NA);
}
/*
* Dissect a connection identifier information element.
*/
static const value_string q2931_vp_associated_signalling_vals[] = {
{ 0, "Yes" },
{ 1, "No - explicit indication of VPCI" },
{ 0, NULL }
};
static const value_string q2931_preferred_exclusive_vals[] = {
{ 0x00, "Exclusive VPCI; exclusive VCI" },
{ 0x01, "Exclusive VPCI; any VCI" },
{ 0x04, "Exclusive VPCI; no VCI" },
{ 0x00, NULL }
};
static void
dissect_q2931_connection_identifier_ie(tvbuff_t *tvb, int offset, int len,
proto_tree *tree)
{
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_conn_id_vp_associated_signalling, tvb, offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_q2931_conn_id_preferred_exclusive, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (len < 2)
return;
proto_tree_add_item(tree, hf_q2931_conn_id_vpci, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
len -= 2;
if (len < 2)
return;
proto_tree_add_item(tree, hf_q2931_conn_id_vci, tvb, offset, 2, ENC_BIG_ENDIAN);
}
/*
* Dissect an End-to-end transit delay information element.
*/
static void
dissect_q2931_e2e_transit_delay_ie(tvbuff_t *tvb, packet_info* pinfo, int offset, int len, proto_tree *tree)
{
uint8_t identifier;
uint16_t value;
proto_item* ti;
while (len >= 3) {
ti = proto_tree_add_item(tree, hf_q2931_e2e_transit_delay_identifier, tvb, offset, 1, ENC_BIG_ENDIAN);
identifier = tvb_get_uint8(tvb, offset);
offset++;
value = tvb_get_ntohs(tvb, offset);
len -=3;
switch (identifier) {
case 0x01: /* Cumulative transit delay identifier */
proto_tree_add_uint(tree, hf_q2931_e2e_transit_delay_cumulative, tvb, offset, 2, value);
break;
case 0x03: /* Maximum transit delay identifier */
if (value == 0xFFFF) {
proto_tree_add_uint_format_value(tree, hf_q2931_e2e_transit_delay_maximum_end_to_end, tvb, offset, 2,
value, "Any end-to-end transit delay value acceptable");
} else {
proto_tree_add_uint_format_value(tree, hf_q2931_e2e_transit_delay_maximum_end_to_end, tvb, offset, 2,
value, "%u ms", value);
}
break;
default: /* Unknown transit delay identifier */
expert_add_info(pinfo, ti, &ei_q2931_e2e_transit_delay_identifier);
return; /* give up */
}
}
}
/*
* Dissect a Quality of Service parameter information element.
*/
static const value_string q2931_qos_parameter_vals[] = {
{ 0x00, "Unspecified QOS class" },
{ 0x00, NULL }
};
static void
dissect_q2931_qos_parameter_ie(tvbuff_t *tvb, int offset, int len,
proto_tree *tree)
{
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_qos_class_forward, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_qos_class_backward, tvb, offset, 1, ENC_BIG_ENDIAN);
}
/*
* Dissect a broadband repeat indicator.
*/
static const value_string q2931_bband_rpt_indicator_vals[] = {
{ 0x02, "Prioritized list for selecting one possibility (descending order)" },
{ 0x00, NULL }
};
static void
dissect_q2931_bband_rpt_indicator(tvbuff_t *tvb, int offset, int len,
proto_tree *tree)
{
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_broadband_repeat_indicator, tvb, offset, 1, ENC_BIG_ENDIAN);
}
/*
* Dissect a restart indicator.
*/
static const value_string q2931_class_vals[] = {
{ 0x00, "Indicated VC" },
{ 0x01, "All VC's in the indicated VPC controlled via this channel" },
{ 0x02, "All VC's controlled by the L3 entity that sent this message" },
{ 0x00, NULL }
};
static void
dissect_q2931_restart_indicator(tvbuff_t *tvb, int offset, int len,
proto_tree *tree)
{
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_restart_indicator, tvb, offset, 1, ENC_BIG_ENDIAN);
}
/*
* Dissect an broadband sending complete information element.
*/
static void
dissect_q2931_bband_sending_compl_ie(tvbuff_t *tvb, packet_info* pinfo, int offset, int len,
proto_tree *tree)
{
uint8_t identifier;
proto_item* ti;
while (len >= 0) {
ti = proto_tree_add_item(tree, hf_q2931_bband_sending_complete_id, tvb, offset, 1, ENC_BIG_ENDIAN);
identifier = tvb_get_uint8(tvb, offset);
switch (identifier) {
case 0xA1: /* Sending complete indication */
proto_tree_add_item(tree, hf_q2931_bband_sending_complete, tvb, offset, 1, ENC_NA);
offset += 1;
len -= 1;
break;
default: /* unknown broadband sending complete element */
expert_add_info(pinfo, ti, &ei_q2931_bband_sending_complete_id);
return; /* give up */
}
}
}
/*
* Dissect a Transit network selection information element.
*/
static const value_string q2931_netid_type_vals[] = {
{ 0, "User specified" },
{ 2, "National network identification" },
{ 3, "International network identification" },
{ 0, NULL }
};
static const value_string q2931_netid_plan_vals[] = {
{ 0x00, "Unknown" },
{ 0x01, "Carrier Identification Code" },
{ 0x03, "X.121 data network identification code" },
{ 0, NULL }
};
static void
dissect_q2931_transit_network_sel_ie(tvbuff_t *tvb, int offset, int len,
proto_tree *tree)
{
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_transit_network_sel_type, tvb, offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_q2931_transit_network_sel_plan, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_transit_network_sel_network_id, tvb, offset, len, ENC_NA|ENC_ASCII);
}
/*
* Dissect an OAM traffic descriptor information element.
*/
static const value_string q2931_shaping_indicator_vals[] = {
{ 0, "No user specified requirement" },
{ 1, "Aggregate shaping of user and OAM cells not allowed" },
{ 0, NULL }
};
static const value_string q2931_user_net_fault_mgmt_vals[] = {
{ 0, "No user-originated fault management indications" },
{ 1, "User-originated fault management indications, cell rate 1 cell/s" },
{ 0, NULL }
};
static const value_string q2931_fwd_e2e_oam_f5_flow_indicator_vals[] = {
{ 0x00, "0% of the forward cell rate" },
{ 0x10, "0.1% of the forward cell rate" },
{ 0x40, "1% of the forward cell rate" },
{ 0x0, NULL }
};
static const value_string q2931_bwd_e2e_oam_f5_flow_indicator_vals[] = {
{ 0x00, "0% of the backward cell rate" },
{ 0x01, "0.1% of the backward cell rate" },
{ 0x04, "1% of the backward cell rate" },
{ 0x0, NULL }
};
static const true_false_string tfs_mandatory_optional = { "Mandatory", "Optional" };
static void
dissect_q2931_oam_traffic_descriptor_ie(tvbuff_t *tvb, int offset, int len,
proto_tree *tree)
{
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_oam_traffic_descriptor_shaping_indicator, tvb, offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_q2931_oam_end_to_end_f5_flow, tvb, offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_q2931_oam_traffic_descriptor_management_indicator, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_oam_traffic_descriptor_forward_f5_flow_indicator, tvb, offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_q2931_oam_traffic_descriptor_backward_f5_flow_indicator, tvb, offset, 1, ENC_BIG_ENDIAN);
}
/*
* Dissect an Endpoint reference information element.
*/
static const value_string q2931_endpoint_reference_type_vals[] = {
{ 0x00, "Locally defined integer" },
{ 0, NULL }
};
static const true_false_string tfs_endpoint_reference_flag = { "Message sent to side that originates the endpoint reference",
"Message sent from side that originates the endpoint reference" };
static void
dissect_q2931_endpoint_reference_ie(tvbuff_t *tvb, int offset, int len,
proto_tree *tree)
{
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_endpoint_reference_type, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
len -= 1;
if (len < 2)
return;
proto_tree_add_item(tree, hf_q2931_endpoint_reference_flag, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_q2931_endpoint_reference_identifier_value, tvb, offset, 2, ENC_BIG_ENDIAN);
}
/*
* Dissect an Endpoint state information element.
*/
static const value_string q2931_endpoint_reference_party_state_vals[] = {
{ 0x00, "Null" },
{ 0x01, "ADD PARTY initiated" },
{ 0x06, "ADD PARTY received" },
{ 0x0B, "DROP PARTY initiated" },
{ 0x0C, "DROP PARTY received" },
{ 0x0A, "Active" },
{ 0, NULL }
};
static void
dissect_q2931_endpoint_state_ie(tvbuff_t *tvb, int offset, int len,
proto_tree *tree)
{
if (len == 0)
return;
proto_tree_add_item(tree, hf_q2931_endpoint_state, tvb, offset, 1, ENC_BIG_ENDIAN);
}
static void
// NOLINTNEXTLINE(misc-no-recursion)
dissect_q2931_ie_contents(tvbuff_t *tvb, packet_info* pinfo, int offset, int len,
proto_tree *tree, uint8_t info_element)
{
switch (info_element) {
case Q2931_IE_BBAND_LOCKING_SHIFT:
case Q2931_IE_BBAND_NLOCKING_SHIFT:
dissect_q2931_shift_ie(tvb, offset, len, tree, info_element);
break;
case Q2931_IE_NBAND_BEARER_CAP:
case Q2931_IE_NBAND_LOW_LAYER_COMPAT:
dissect_q931_bearer_capability_ie(tvb, offset, len, tree);
break;
case Q2931_IE_NBAND_HIGH_LAYER_COMPAT:
dissect_q931_high_layer_compat_ie(tvb, offset, len, tree);
break;
case Q2931_IE_PROGRESS_INDICATOR:
dissect_q931_progress_indicator_ie(tvb, offset, len, tree);
break;
case Q2931_IE_AAL_PARAMETERS:
dissect_q2931_aal_parameters_ie(tvb, pinfo, offset, len, tree);
break;
case Q2931_IE_ATM_USER_CELL_RATE:
dissect_q2931_atm_cell_rate_ie(tvb, pinfo, offset, len, tree);
break;
case Q2931_IE_BBAND_BEARER_CAP:
dissect_q2931_bband_bearer_cap_ie(tvb, offset, len, tree);
break;
case Q2931_IE_BBAND_HI_LAYER_INFO:
dissect_q2931_bband_hi_layer_info_ie(tvb, offset, len, tree);
break;
case Q2931_IE_BBAND_LOW_LAYER_INFO:
dissect_q2931_bband_low_layer_info_ie(tvb, offset, len, tree);
break;
case Q2931_IE_CALL_STATE:
dissect_q2931_call_state_ie(tvb, offset, len, tree);
break;
case Q2931_IE_CALLED_PARTY_NUMBER:
case Q2931_IE_CALLING_PARTY_NUMBER:
dissect_q2931_number_ie(tvb, pinfo, offset, len, tree);
break;
case Q2931_IE_CALLED_PARTY_SUBADDR:
case Q2931_IE_CALLING_PARTY_SUBADDR:
dissect_q2931_party_subaddr_ie(tvb, offset, len, tree);
break;
case Q2931_IE_CAUSE:
// We recurse here, but we'll run out of packet before we run out of stack.
dissect_q2931_cause_ie(tvb, pinfo, offset, len, tree);
break;
case Q2931_IE_CONNECTION_IDENTIFIER:
dissect_q2931_connection_identifier_ie(tvb, offset, len, tree);
break;
case Q2931_IE_E2E_TRANSIT_DELAY:
dissect_q2931_e2e_transit_delay_ie(tvb, pinfo, offset, len, tree);
break;
case Q2931_IE_QOS_PARAMETER:
dissect_q2931_qos_parameter_ie(tvb, offset, len, tree);
break;
case Q2931_IE_BBAND_RPT_INDICATOR:
dissect_q2931_bband_rpt_indicator(tvb, offset, len, tree);
break;
case Q2931_IE_RESTART_INDICATOR:
dissect_q2931_restart_indicator(tvb, offset, len, tree);
break;
case Q2931_IE_BBAND_SENDING_COMPL:
dissect_q2931_bband_sending_compl_ie(tvb, pinfo, offset, len, tree);
break;
case Q2931_IE_TRANSIT_NETWORK_SEL:
dissect_q2931_transit_network_sel_ie(tvb, offset, len, tree);
break;
case Q2931_IE_OAM_TRAFFIC_DESCRIPTOR:
dissect_q2931_oam_traffic_descriptor_ie(tvb, offset, len, tree);
break;
case Q2931_IE_ENDPOINT_REFERENCE:
dissect_q2931_endpoint_reference_ie(tvb, offset, len, tree);
break;
case Q2931_IE_ENDPOINT_STATE:
dissect_q2931_endpoint_state_ie(tvb, offset, len, tree);
break;
}
}
static void
// NOLINTNEXTLINE(misc-no-recursion)
dissect_q2931_ie(tvbuff_t *tvb, packet_info* pinfo, int offset, int len, proto_tree *tree,
uint8_t info_element, uint8_t info_element_ext)
{
proto_item *ti;
proto_tree *ie_tree;
proto_tree *ie_ext_tree;
ie_tree = proto_tree_add_subtree(tree, tvb, offset, 1+1+2+len, ett_q2931_ie, NULL,
val_to_str_ext(info_element, &q2931_info_element_vals_ext,
"Unknown information element (0x%02X)"));
proto_tree_add_uint(ie_tree, hf_q2931_information_element, tvb, offset, 1, info_element);
ti = proto_tree_add_uint(ie_tree, hf_q2931_information_element_extension, tvb, offset + 1, 1, info_element_ext);
ie_ext_tree = proto_item_add_subtree(ti, ett_q2931_ie_ext);
proto_tree_add_item(ie_ext_tree, hf_q2931_ie_coding_standard, tvb, offset+1, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(ie_ext_tree, hf_q2931_ie_handling_instructions, tvb, offset+1, 1, ENC_BIG_ENDIAN);
if (info_element_ext & Q2931_IE_COMPAT_FOLLOW_INST) {
proto_tree_add_item(ie_ext_tree, hf_q2931_ie_action_indicator, tvb, offset+1, 1, ENC_BIG_ENDIAN);
}
proto_tree_add_uint(ie_tree, hf_q2931_information_element_length, tvb, offset + 2, 2, len);
if ((info_element_ext & Q2931_IE_COMPAT_CODING_STD)
== Q2931_ITU_STANDARDIZED_CODING) {
// We recurse here, but we'll run out of packet before we run out of stack.
dissect_q2931_ie_contents(tvb, pinfo, offset + 4,
len, ie_tree, info_element);
} else {
/*
* We don't know how it's encoded, so just
* dump it as data and be done with it.
*/
proto_tree_add_item(ie_tree, hf_q2931_information_element_data, tvb, offset + 4, len, ENC_NA);
}
}
static int
dissect_q2931(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
int offset = 0;
proto_tree *q2931_tree;
proto_item *ti;
uint32_t call_ref_len;
uint8_t call_ref[16];
uint8_t message_type;
uint8_t message_type_ext;
uint16_t message_len;
uint8_t info_element;
uint8_t info_element_ext;
uint16_t info_element_len;
#if 0
int codeset;
bool non_locking_shift;
#endif
static int * const ext_flags[] = {
&hf_q2931_message_flag,
NULL
};
static int * const ext_flags_follow_inst[] = {
&hf_q2931_message_flag,
&hf_q2931_message_action_indicator,
NULL
};
col_set_str(pinfo->cinfo, COL_PROTOCOL, "Q.2931");
ti = proto_tree_add_item(tree, proto_q2931, tvb, offset, -1, ENC_NA);
q2931_tree = proto_item_add_subtree(ti, ett_q2931);
proto_tree_add_item(q2931_tree, hf_q2931_discriminator, tvb, offset, 1, ENC_NA);
offset += 1;
proto_tree_add_item_ret_uint(q2931_tree, hf_q2931_call_ref_len, tvb, offset, 1, ENC_NA, &call_ref_len);
offset += 1;
if (call_ref_len != 0) {
tvb_memcpy(tvb, call_ref, offset, call_ref_len);
proto_tree_add_boolean(q2931_tree, hf_q2931_call_ref_flag,
tvb, offset, 1, (call_ref[0] & 0x80) != 0);
call_ref[0] &= 0x7F;
proto_tree_add_bytes(q2931_tree, hf_q2931_call_ref, tvb, offset, call_ref_len, call_ref);
offset += call_ref_len;
}
message_type = tvb_get_uint8(tvb, offset);
col_add_str(pinfo->cinfo, COL_INFO,
val_to_str_ext(message_type, &q2931_message_type_vals_ext,
"Unknown message type (0x%02X)"));
proto_tree_add_uint(q2931_tree, hf_q2931_message_type, tvb, offset, 1, message_type);
offset += 1;
message_type_ext = tvb_get_uint8(tvb, offset);
if (message_type_ext & Q2931_MSG_TYPE_EXT_FOLLOW_INST) {
proto_tree_add_bitmask(q2931_tree, tvb, offset, hf_q2931_message_type_ext, ett_q2931_ext, ext_flags_follow_inst, ENC_NA);
} else {
proto_tree_add_bitmask(q2931_tree, tvb, offset, hf_q2931_message_type_ext, ett_q2931_ext, ext_flags, ENC_NA);
}
offset += 1;
message_len = tvb_get_ntohs(tvb, offset);
if (q2931_tree != NULL)
proto_tree_add_uint(q2931_tree, hf_q2931_message_len, tvb, offset, 2, message_len);
offset += 2;
/*
* And now for the information elements....
*/
#if 0
codeset = 0; /* start out in codeset 0 */
non_locking_shift = true;
#endif
while (tvb_reported_length_remaining(tvb, offset) > 0) {
info_element = tvb_get_uint8(tvb, offset);
info_element_ext = tvb_get_uint8(tvb, offset + 1);
info_element_len = tvb_get_ntohs(tvb, offset + 2);
if (q2931_tree != NULL) {
dissect_q2931_ie(tvb, pinfo, offset, info_element_len,
q2931_tree, info_element, info_element_ext);
}
#if 0 /* XXX: Is codeset & etc supposed to be used somehow ? */
if (non_locking_shift)
codeset = 0;
/*
* Handle shifts.
*/
switch (info_element) {
case Q2931_IE_BBAND_LOCKING_SHIFT:
if (info_element_len >= 1) {
non_locking_shift = false;
codeset = tvb_get_uint8(tvb, offset + 4) & 0x07;
}
break;
case Q2931_IE_BBAND_NLOCKING_SHIFT:
if (info_element_len >= 1) {
non_locking_shift = true;
codeset = tvb_get_uint8(tvb, offset + 4) & 0x07;
}
break;
}
#endif
offset += 1 + 1 + 2 + info_element_len;
}
return tvb_captured_length(tvb);
}
void
proto_register_q2931(void)
{
static hf_register_info hf[] = {
{ &hf_q2931_discriminator,
{ "Protocol discriminator", "q2931.disc",
FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_call_ref_len,
{ "Call reference value length", "q2931.call_ref_len",
FT_UINT8, BASE_DEC, NULL, 0x0F,
NULL, HFILL }
},
{ &hf_q2931_call_ref_flag,
{ "Call reference flag", "q2931.call_ref_flag",
FT_BOOLEAN, BASE_NONE, TFS(&tfs_call_ref_flag), 0x0,
NULL, HFILL }
},
{ &hf_q2931_call_ref,
{ "Call reference value", "q2931.call_ref",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_message_type,
{ "Message type", "q2931.message_type",
FT_UINT8, BASE_HEX|BASE_EXT_STRING, &q2931_message_type_vals_ext, 0x0,
NULL, HFILL }
},
{ &hf_q2931_message_type_ext,
{ "Message type extension", "q2931.message_type_ext",
FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_message_flag,
{ "Flag", "q2931.message_flag",
FT_BOOLEAN, 8, TFS(&tos_msg_flag), Q2931_MSG_TYPE_EXT_FOLLOW_INST,
NULL, HFILL }
},
{ &hf_q2931_message_action_indicator,
{ "Action indicator", "q2931.message_action_indicator",
FT_UINT8, BASE_DEC, VALS(msg_action_ind_vals), Q2931_MSG_TYPE_EXT_ACTION_IND,
NULL, HFILL }
},
{ &hf_q2931_message_len,
{ "Message length", "q2931.message_len",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_ie_handling_instructions,
{ "Handling Instructions", "q2931.ie_handling_instructions",
FT_BOOLEAN, 8, TFS(&tfs_q2931_handling_instructions), Q2931_IE_COMPAT_FOLLOW_INST,
NULL, HFILL }
},
{ &hf_q2931_ie_coding_standard,
{ "Coding standard", "q2931.ie_coding_standard",
FT_UINT8, BASE_DEC, VALS(coding_std_vals), Q2931_IE_COMPAT_CODING_STD,
NULL, HFILL }
},
{ &hf_q2931_ie_action_indicator,
{ "Action indicator", "q2931.ie_action_indicator",
FT_UINT8, BASE_DEC, VALS(ie_action_ind_vals), Q2931_IE_COMPAT_ACTION_IND,
NULL, HFILL }
},
/* Generated from convert_proto_tree_add_text.pl */
{ &hf_q2931_aal_type,
{ "AAL type", "q2931.aal_type",
FT_UINT8, BASE_HEX, VALS(q9231_aal_type_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_user_defined_aal_information,
{ "User defined AAL information", "q2931.user_defined_aal_information",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_aal1_subtype,
{ "Subtype", "q2931.aal1.subtype",
FT_UINT8, BASE_HEX, VALS(q9231_aal1_subtype_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_aal1_cbr_rate,
{ "CBR rate", "q2931.aal1.cbr_rate",
FT_UINT8, BASE_HEX, VALS(q9231_aal1_cbr_rate_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_aal1_multiplier,
{ "Multiplier", "q2931.aal1.multiplier",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_aal1_source_clock_frequency_recovery_method,
{ "Source clock frequency recovery method", "q2931.aal1.source_clock_frequency_recovery_method",
FT_UINT8, BASE_HEX, VALS(q2931_aal1_src_clk_rec_meth_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_aal1_error_correction_method,
{ "Error correction method", "q2931.aal1.error_correction_method",
FT_UINT8, BASE_HEX, VALS(q2931_aal1_err_correction_method_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_aal1_structured_data_transfer_block_size,
{ "Structured data transfer block size", "q2931.aal1.structured_data_transfer_block_size",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_aal1_partially_filled_cells_method,
{ "Partially filled cells method", "q2931.aal1.partially_filled_cells_method",
FT_UINT8, BASE_DEC|BASE_UNIT_STRING, UNS(&units_octet_octets), 0x0,
NULL, HFILL }
},
{ &hf_q2931_aal1_forward_max_cpcs_sdu_size,
{ "Forward maximum CPCS-SDU size", "q2931.aal1.forward_max_cpcs_sdu_size",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_aal1_backward_max_cpcs_sdu_size,
{ "Backward maximum CPCS-SDU size", "q2931.aal1.backward_max_cpcs_sdu_size",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_aal1_mode,
{ "Mode", "q2931.aal1.mode",
FT_UINT8, BASE_HEX, VALS(q2931_aal_mode_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_aal1_sscs_type,
{ "SSCS type", "q2931.aal1.sscs_type",
FT_UINT8, BASE_HEX, VALS(q2931_sscs_type_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_bearer_class,
{ "Bearer class", "q2931.bearer_class",
FT_UINT8, BASE_HEX, VALS(q2931_bearer_class_vals), 0x1F,
NULL, HFILL }
},
{ &hf_q2931_atm_transfer_capability,
{ "ATM Transfer Capability", "q2931.atm_transfer_capability",
FT_UINT8, BASE_HEX, VALS(q2931_transfer_capability_vals), 0x1F,
NULL, HFILL }
},
{ &hf_q2931_susceptibility_to_clipping,
{ "Susceptibility to clipping", "q2931.susceptibility_to_clipping",
FT_UINT8, BASE_HEX, VALS(q2931_susc_clip_vals), 0x60,
NULL, HFILL }
},
{ &hf_q2931_user_plane_connection_configuration,
{ "User-plane connection configuration", "q2931.user_plane_connection_configuration",
FT_UINT8, BASE_HEX, VALS(q2931_up_conn_config_vals), 0x03,
NULL, HFILL }
},
{ &hf_q2931_high_layer_information_type,
{ "High layer information type", "q2931.high_layer_information_type",
FT_UINT8, BASE_HEX, VALS(q2931_hi_layer_info_type_vals), 0x7F,
NULL, HFILL }
},
{ &hf_q2931_bband_low_layer_info_user_info_l1_proto,
{ "User information layer 1 protocol", "q2931.bband_low_layer_info.user_info_l1_proto",
FT_UINT8, BASE_HEX, NULL, 0x1F,
NULL, HFILL }
},
{ &hf_q2931_bband_low_layer_info_user_info_l2_proto,
{ "User information layer 2 protocol", "q2931.bband_low_layer_info.user_info_l2_proto",
FT_UINT8, BASE_HEX, VALS(q2931_uil2_vals), 0x1F,
NULL, HFILL }
},
{ &hf_q2931_bband_low_layer_info_user_specified_l2_proto,
{ "User-specified layer 2 protocol information", "q2931.bband_low_layer_info.user_specified_l2_proto",
FT_UINT8, BASE_HEX, NULL, 0x7F,
NULL, HFILL }
},
{ &hf_q2931_bband_low_layer_info_mode,
{ "Mode", "q2931.bband_low_layer_info.mode",
FT_UINT8, BASE_HEX, VALS(q2931_mode_vals), 0x60,
NULL, HFILL }
},
{ &hf_q2931_bband_low_layer_info_window_size,
{ "Window size", "q2931.bband_low_layer_info.window_size",
FT_UINT8, BASE_DEC, NULL, 0x7F,
NULL, HFILL }
},
{ &hf_q2931_bband_low_layer_info_user_info_l3_proto,
{ "User information layer 3 protocol", "q2931.bband_low_layer_info.user_info_l3_proto",
FT_UINT8, BASE_HEX, VALS(q2931_uil3_vals), 0x1F,
NULL, HFILL }
},
{ &hf_q2931_bband_low_layer_info_default_packet_size,
{ "Default packet size", "q2931.bband_low_layer_info.default_packet_size",
FT_UINT8, BASE_DEC|BASE_UNIT_STRING, UNS(&units_octet_octets), 0x0F,
NULL, HFILL }
},
{ &hf_q2931_bband_low_layer_info_packet_window_size,
{ "Packet window size", "q2931.bband_low_layer_info.packet_window_size",
FT_UINT8, BASE_DEC, NULL, 0x7F,
NULL, HFILL }
},
{ &hf_q2931_bband_low_layer_info_additional_l3_proto,
{ "Additional layer 3 protocol information", "q2931.bband_low_layer_info.additional_l3_proto",
FT_UINT8, BASE_HEX, VALS(nlpid_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_organization_code,
{ "Organization Code", "q2931.bband_low_layer_info.organization_code",
FT_UINT24, BASE_OUI, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_ethernet_type,
{ "Ethernet type", "q2931.bband_low_layer_info.ethernet_type",
FT_UINT16, BASE_HEX, VALS(etype_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_lane_protocol_id,
{ "LANE Protocol ID", "q2931.bband_low_layer_info.lane_protocol_id",
FT_UINT16, BASE_HEX, VALS(lane_pid_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_protocol_id,
{ "Protocol ID", "q2931.bband_low_layer_info.protocol_id",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_cause_location,
{ "Location", "q2931.cause.location",
FT_UINT8, BASE_HEX, VALS(q2931_cause_location_vals), 0x0F,
NULL, HFILL }
},
{ &hf_q2931_cause_value,
{ "Cause value", "q2931.cause.value",
FT_UINT8, BASE_HEX|BASE_EXT_STRING, &q2931_cause_code_vals_ext, 0x7F,
NULL, HFILL }
},
{ &hf_q2931_cause_rejection_reason,
{ "Rejection reason", "q2931.cause.rejection.reason",
FT_UINT8, BASE_HEX, VALS(q2931_rejection_reason_vals), 0x7C,
NULL, HFILL }
},
{ &hf_q2931_cause_rejection_condition,
{ "Condition", "q2931.cause.rejection.condition",
FT_UINT8, BASE_HEX, VALS(q2931_cause_condition_vals), 0x03,
NULL, HFILL }
},
{ &hf_q2931_cause_rejection_user_specific_diagnostic,
{ "User specific diagnostic", "q2931.cause.rejection.user_specific_diagnostic",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_cause_rejection_missing_information_element,
{ "Missing information element", "q2931.cause.rejection.missing_information_element",
FT_UINT8, BASE_HEX|BASE_EXT_STRING, &q2931_info_element_vals_ext, 0x0,
NULL, HFILL }
},
{ &hf_q2931_cause_rejection_insufficient_information_element,
{ "Insufficient information element", "q2931.cause.rejection.insufficient_information_element",
FT_UINT8, BASE_HEX|BASE_EXT_STRING, &q2931_info_element_vals_ext, 0x0,
NULL, HFILL }
},
{ &hf_q2931_cause_rejection_diagnostic,
{ "Diagnostic", "q2931.cause.rejection.diagnostic",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_cause_information_element,
{ "Information element", "q2931.cause.information_element",
FT_UINT8, BASE_HEX|BASE_EXT_STRING, &q2931_info_element_vals_ext, 0x0,
NULL, HFILL }
},
{ &hf_q2931_cause_cell_rate_subfield_identifier,
{ "Cell rate subfield identifier", "q2931.cause.cell_rate_subfield_identifier",
FT_UINT8, BASE_HEX, VALS(q2931_atm_td_subfield_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_cause_vpci,
{ "VPCI", "q2931.cause.vpci",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_cause_vci,
{ "VCI", "q2931.cause.vci",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_cause_message_type,
{ "Message type", "q2931.cause.message_type",
FT_UINT8, BASE_HEX|BASE_EXT_STRING, &q2931_message_type_vals_ext, 0x0,
NULL, HFILL }
},
{ &hf_q2931_cause_timer,
{ "Timer", "q2931.cause.timer",
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_call_state,
{ "Call state", "q2931.call_state",
FT_UINT8, BASE_HEX, VALS(q2931_call_state_vals), 0x3F,
NULL, HFILL }
},
{ &hf_q2931_number_type,
{ "Type of number", "q2931.number.type",
FT_UINT8, BASE_HEX, VALS(q2931_number_type_vals), 0x70,
NULL, HFILL }
},
{ &hf_q2931_number_plan,
{ "Numbering plan", "q2931.number.plan",
FT_UINT8, BASE_HEX, VALS(q2931_numbering_plan_vals), 0x0F,
NULL, HFILL }
},
{ &hf_q2931_number_presentation_indicator,
{ "Presentation indicator", "q2931.number.presentation_indicator",
FT_UINT8, BASE_HEX, VALS(q2931_presentation_indicator_vals), 0x60,
NULL, HFILL }
},
{ &hf_q2931_number_screening_indicator,
{ "Screening indicator", "q2931.number.screening_indicator",
FT_UINT8, BASE_HEX, VALS(q2931_screening_indicator_vals), 0x03,
NULL, HFILL }
},
{ &hf_q2931_number_string,
{ "Number", "q2931.number.string",
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_number_bytes,
{ "Number", "q2931.number.bytes",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_party_subaddr_type_of_subaddress,
{ "Type of subaddress", "q2931.party_subaddr.type_of_subaddress",
FT_UINT8, BASE_HEX, VALS(q2931_subaddress_type_vals), 0x70,
NULL, HFILL }
},
{ &hf_q2931_party_subaddr_odd_even_indicator,
{ "Odd/even indicator", "q2931.party_subaddr.odd_even_indicator",
FT_UINT8, BASE_HEX, VALS(q2931_odd_even_indicator_vals), 0x10,
NULL, HFILL }
},
{ &hf_q2931_party_subaddr_subaddress,
{ "Subaddress", "q2931.party_subaddr.subaddress",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_conn_id_vp_associated_signalling,
{ "VP-associated signalling", "q2931.conn_id.vp_associated_signalling",
FT_UINT8, BASE_HEX, VALS(q2931_vp_associated_signalling_vals), 0x18,
NULL, HFILL }
},
{ &hf_q2931_conn_id_preferred_exclusive,
{ "Preferred/exclusive", "q2931.conn_id.preferred_exclusive",
FT_UINT8, BASE_HEX, VALS(q2931_preferred_exclusive_vals), 0x07,
NULL, HFILL }
},
{ &hf_q2931_conn_id_vpci,
{ "VPCI", "q2931.conn_id.vpci",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_conn_id_vci,
{ "VCI", "q2931.conn_id.vci",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_e2e_transit_delay_cumulative,
{ "Cumulative transit delay", "q2931.e2e_transit_delay.cumulative",
FT_UINT16, BASE_DEC|BASE_UNIT_STRING, UNS(&units_milliseconds), 0x0,
NULL, HFILL }
},
{ &hf_q2931_e2e_transit_delay_maximum_end_to_end,
{ "Maximum end-to-end transit delay", "q2931.e2e_transit_delay.maximum_end_to_end",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_qos_class_forward,
{ "QOS class forward", "q2931.qos_class_forward",
FT_UINT8, BASE_HEX, VALS(q2931_qos_parameter_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_qos_class_backward,
{ "QOS class backward", "q2931.qos_class_backward",
FT_UINT8, BASE_HEX, VALS(q2931_qos_parameter_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_broadband_repeat_indicator,
{ "Broadband repeat indicator", "q2931.broadband_repeat_indicator",
FT_UINT8, BASE_HEX, VALS(q2931_bband_rpt_indicator_vals), 0x0F,
NULL, HFILL }
},
{ &hf_q2931_restart_indicator,
{ "Restart indicator", "q2931.restart_indicator",
FT_UINT8, BASE_HEX, VALS(q2931_class_vals), 0x07,
NULL, HFILL }
},
{ &hf_q2931_transit_network_sel_type,
{ "Type of network identification", "q2931.transit_network_sel.type",
FT_UINT8, BASE_HEX, VALS(q2931_netid_type_vals), 0x70,
NULL, HFILL }
},
{ &hf_q2931_transit_network_sel_plan,
{ "Network identification plan", "q2931.transit_network_sel.plan",
FT_UINT8, BASE_HEX, VALS(q2931_netid_plan_vals), 0x0F,
NULL, HFILL }
},
{ &hf_q2931_transit_network_sel_network_id,
{ "Network identification", "q2931.transit_network_sel.network_identification",
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_oam_traffic_descriptor_shaping_indicator,
{ "Shaping indicator", "q2931.oam_traffic_descriptor.shaping_indicator",
FT_UINT8, BASE_HEX, VALS(q2931_shaping_indicator_vals), 0x60,
NULL, HFILL }
},
{ &hf_q2931_oam_end_to_end_f5_flow,
{ "Use of end-to-end OAM F5 flow", "q2931.oam_end_to_end_f5_flow",
FT_BOOLEAN, 8, TFS(&tfs_mandatory_optional), 0x10,
NULL, HFILL }
},
{ &hf_q2931_oam_traffic_descriptor_management_indicator,
{ "User-Network fault management indicator", "q2931.oam_traffic_descriptor.management_indicator",
FT_UINT8, BASE_HEX, VALS(q2931_user_net_fault_mgmt_vals), 0x07,
NULL, HFILL }
},
{ &hf_q2931_oam_traffic_descriptor_forward_f5_flow_indicator,
{ "Forward end-to-end OAM F5 flow indicator", "q2931.oam_traffic_descriptor.forward_f5_flow_indicator",
FT_UINT8, BASE_HEX, VALS(q2931_fwd_e2e_oam_f5_flow_indicator_vals), 0x70,
NULL, HFILL }
},
{ &hf_q2931_oam_traffic_descriptor_backward_f5_flow_indicator,
{ "Backward end-to-end OAM F5 flow indicator", "q2931.oam_traffic_descriptor.backward_f5_flow_indicator",
FT_UINT8, BASE_HEX, VALS(q2931_bwd_e2e_oam_f5_flow_indicator_vals), 0x07,
NULL, HFILL }
},
{ &hf_q2931_endpoint_reference_type,
{ "Endpoint reference type", "q2931.endpoint_reference.type",
FT_UINT8, BASE_HEX, VALS(q2931_endpoint_reference_type_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_endpoint_reference_flag,
{ "Endpoint reference identifier value", "q2931.endpoint_reference.flag",
FT_BOOLEAN, 16, TFS(&tfs_endpoint_reference_flag), 0x8000,
NULL, HFILL }
},
{ &hf_q2931_endpoint_reference_identifier_value,
{ "Endpoint reference identifier value", "q2931.endpoint_reference.identifier_value",
FT_UINT16, BASE_DEC, NULL, 0x7FFF,
NULL, HFILL }
},
{ &hf_q2931_endpoint_state,
{ "Endpoint reference party-state", "q2931.endpoint_state",
FT_UINT8, BASE_HEX, VALS(q2931_endpoint_reference_party_state_vals), 0x3F,
NULL, HFILL }
},
{ &hf_q2931_information_element,
{ "Information element", "q2931.information_element",
FT_UINT8, BASE_HEX|BASE_EXT_STRING, &q2931_info_element_vals_ext, 0x0,
NULL, HFILL }
},
{ &hf_q2931_information_element_extension,
{ "Information element extension", "q2931.information_element.extension",
FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_information_element_length,
{ "Length", "q2931.information_element.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_information_element_data,
{ "Data", "q2931.information_element.data",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_frame_discard_forward_dir,
{ "Frame discard in forward direction", "q2931.frame_discard_forward_dir",
FT_BOOLEAN, 8, TFS(&tfs_allowed_not_allowed), 0x80,
NULL, HFILL }
},
{ &hf_q2931_frame_discard_backward_dir,
{ "Frame discard in backward direction", "q2931.frame_discard_backward_dir",
FT_BOOLEAN, 8, TFS(&tfs_allowed_not_allowed), 0x40,
NULL, HFILL }
},
{ &hf_q2931_tagging_backward_dir,
{ "Tagging in backward direction", "q2931.tagging_backward_dir",
FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x02,
NULL, HFILL }
},
{ &hf_q2931_tagging_forward_dir,
{ "Tagging in forward direction", "q2931.tagging_forward_dir",
FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x01,
NULL, HFILL }
},
{ &hf_q2931_midrange,
{ "MID range", "q2931.midrange",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_cause_network_service,
{ "Network service", "q2931.cause.network_service",
FT_BOOLEAN, 8, TFS(&tfs_user_provider), 0x80,
NULL, HFILL }
},
{ &hf_q2931_cause_network_behavior,
{ "Network behavior", "q2931.cause.network_behavior",
FT_BOOLEAN, 8, TFS(&tfs_abnormal_normal), 0x40,
NULL, HFILL }
},
{ &hf_q2931_nsap_address_number_short,
{ "Number (too short)", "q2931.nsap_address.number_short",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_atm_identifier,
{ "Identifier", "q2931.atm_identifier",
FT_UINT8, BASE_HEX, VALS(q2931_atm_td_subfield_vals), 0x0,
NULL, HFILL }
},
{ &hf_q2931_atm_identifier_value,
{ "Value", "q2931.atm_identifier_value",
FT_UINT24, BASE_DEC|BASE_UNIT_STRING, UNS(&units_cells_s), 0x0,
NULL, HFILL }
},
{ &hf_q2931_aal_parameter_identifier,
{ "Identifier", "q2931.aal.parameter_identifier",
FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_e2e_transit_delay_identifier,
{ "Identifier", "q2931.transit_delay.identifier",
FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_bband_sending_complete_id,
{ "Identifier", "q2931.bband_sending_complete.id",
FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_bband_sending_complete,
{ "Broadband sending complete indication", "q2931.bband_sending_complete",
FT_NONE, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_q2931_locking_codeset,
{ "Locking codeset", "q2931.locking_codeset",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
};
static int *ett[] = {
&ett_q2931,
&ett_q2931_ext,
&ett_q2931_ie,
&ett_q2931_ie_ext,
&ett_q2931_nsap,
};
static ei_register_info ei[] = {
{ &ei_q2931_atm_identifier, { "q2931.atm_identifier.unknown", PI_PROTOCOL, PI_WARN, "Unknown ATM traffic descriptor element", EXPFILL }},
{ &ei_q2931_aal_parameter_identifier, { "q2931.aal.parameter_identifier.unknown", PI_PROTOCOL, PI_WARN, "Unknown AAL parameter", EXPFILL }},
{ &ei_q2931_e2e_transit_delay_identifier, { "q2931.transit_delay.parameter_identifier.unknown", PI_PROTOCOL, PI_WARN, "Unknown transit delay identifier", EXPFILL }},
{ &ei_q2931_bband_sending_complete_id, { "q2931.bband_sending_complete.id.unknown", PI_PROTOCOL, PI_WARN, "Unknown broadband sending complete element", EXPFILL }},
};
expert_module_t* expert_q2931;
proto_q2931 = proto_register_protocol("Q.2931", "Q.2931", "q2931");
proto_register_field_array (proto_q2931, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
expert_q2931 = expert_register_protocol(proto_q2931);
expert_register_field_array(expert_q2931, ei, array_length(ei));
register_dissector("q2931", dissect_q2931, proto_q2931);
}
/*
* 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:
*/
|