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
|
/* packet-ehs.c
* Routines for "Enhanced HOSC System" (EHS) dissection
* Copyright 2000, Scott Hovis scott.hovis@ums.msfc.nasa.gov
* Enhanced 2008, Matt Dunkle Matthew.L.Dunkle@nasa.gov
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.com>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include <epan/packet.h>
#include <epan/tfs.h>
void proto_register_ehs(void);
void proto_reg_handoff_ehs(void);
/* Initialize the protocol and registered fields */
static int proto_ehs;
static int hf_ehs_ph_version;
static int hf_ehs_ph_project;
static int hf_ehs_ph_support_mode;
static int hf_ehs_ph_data_mode;
static int hf_ehs_ph_mission;
static int hf_ehs_ph_protocol;
static int hf_ehs_ph_year; /* numeric year as years since 1900 */
static int hf_ehs_ph_jday; /* julian day of year */
static int hf_ehs_ph_hour;
static int hf_ehs_ph_minute;
static int hf_ehs_ph_second;
static int hf_ehs_ph_tenths;
static int hf_ehs_ph_new_data_flag; /* indicates the time has changed */
/* static int hf_ehs_ph_pad1; */
static int hf_ehs_ph_hold_flag; /* indicates a hold condition */
static int hf_ehs_ph_sign_flag; /* indicates pre-mission, i.e. countdown, time */
/* static int hf_ehs_ph_pad2; */
/* static int hf_ehs_ph_pad3; */
/* static int hf_ehs_ph_pad4; */
static int hf_ehs_ph_hosc_packet_size;
/* generic ehs secondary header values */
static int hf_ehs_sh_version;
static int hf_ehs_sh_data_status_bit_5;
static int hf_ehs_sh_data_status_bit_4;
static int hf_ehs_sh_data_status_bit_3;
static int hf_ehs_sh_data_status_bit_2;
static int hf_ehs_sh_data_status_bit_1;
static int hf_ehs_sh_data_status_bit_0;
/* other common remappings of the data status bits specific to certain secondary ehs header values */
static int hf_ehs_sh_parent_stream_error; /* data status bit 3 */
static int hf_ehs_sh_vcdu_sequence_error; /* data status bit 2 */
static int hf_ehs_sh_packet_sequence_error; /* data status bit 1 */
/* common ehs secondary header values */
static int hf_ehs_sh_vcdu_sequence_number;
static int hf_ehs_sh_data_stream_id;
/* static int hf_ehs_sh_pdss_reserved_1; */
/* static int hf_ehs_sh_pdss_reserved_2; */
/* static int hf_ehs_sh_pdss_reserved_3; */
static int hf_ehs_sh_gse_pkt_id;
static int hf_ehs_sh_payload_vs_core_id;
static int hf_ehs_sh_apid;
static int hf_ehs_sh_virtual_channel;
static int hf_ehs_sh_pdss_reserved_sync;
/* tdm ehs secondary header values */
static int hf_ehs_sh_tdm_secondary_header_length;
static int hf_ehs_sh_tdm_extra_data_packet;
static int hf_ehs_sh_tdm_backup_stream_id_number;
static int hf_ehs_sh_tdm_end_of_data_flag;
static int hf_ehs_sh_tdm_parent_frame_error;
static int hf_ehs_sh_tdm_checksum_error;
static int hf_ehs_sh_tdm_fixed_value_error;
static int hf_ehs_sh_tdm_minor_frame_counter_error;
static int hf_ehs_sh_tdm_format_id_error;
static int hf_ehs_sh_tdm_bit_slip_error;
static int hf_ehs_sh_tdm_sync_error;
static int hf_ehs_sh_tdm_aoslos_flag;
static int hf_ehs_sh_tdm_override_errors_flag;
static int hf_ehs_sh_tdm_data_status;
static int hf_ehs_sh_tdm_idq;
static int hf_ehs_sh_tdm_cdq;
static int hf_ehs_sh_tdm_adq;
static int hf_ehs_sh_tdm_data_dq;
/* static int hf_ehs_sh_tdm_unused; */
static int hf_ehs_sh_tdm_format_id;
static int hf_ehs_sh_tdm_major_frame_packet_index;
static int hf_ehs_sh_tdm_numpkts_per_major_frame;
static int hf_ehs_sh_tdm_num_minor_frames_per_packet;
static int hf_ehs_sh_tdm_cntmet_present;
static int hf_ehs_sh_tdm_obt_present;
static int hf_ehs_sh_tdm_major_frame_status_present;
/* static int hf_ehs_sh_tdm_reserved; */
static int hf_ehs_sh_tdm_cnt_year; /* numeric year as years since 1900 */
static int hf_ehs_sh_tdm_cnt_jday; /* julian day of year */
static int hf_ehs_sh_tdm_cnt_hour;
static int hf_ehs_sh_tdm_cnt_minute;
static int hf_ehs_sh_tdm_cnt_second;
static int hf_ehs_sh_tdm_cnt_tenths;
static int hf_ehs_sh_tdm_obt_year; /* numeric year as years since 1900 */
static int hf_ehs_sh_tdm_obt_jday; /* julian day of year */
static int hf_ehs_sh_tdm_obt_hour;
static int hf_ehs_sh_tdm_obt_minute;
static int hf_ehs_sh_tdm_obt_second;
static int hf_ehs_sh_tdm_obt_tenths;
static int hf_ehs_sh_tdm_obt_delta_time_flag;
static int hf_ehs_sh_tdm_obt_computed_flag;
static int hf_ehs_sh_tdm_obt_not_retrieved_flag;
/* static int hf_ehs_sh_tdm_obt_reserved; */
static int hf_ehs_sh_tdm_obt_source_apid;
static int hf_ehs_sh_tdm_num_major_frame_status_words;
/* static int hf_ehs_sh_tdm_mjfs_reserved; */
static int hf_ehs_sh_tdm_mjfs_parent_frame_error;
static int hf_ehs_sh_tdm_mjfs_checksum_error;
static int hf_ehs_sh_tdm_mjfs_fixed_value_error;
static int hf_ehs_sh_tdm_mnfs_parent_frame_error;
static int hf_ehs_sh_tdm_mnfs_data_not_available;
static int hf_ehs_sh_tdm_mnfs_checksum_error;
static int hf_ehs_sh_tdm_mnfs_fixed_value_error;
static int hf_ehs_sh_tdm_mnfs_counter_error;
static int hf_ehs_sh_tdm_mnfs_format_id_error;
static int hf_ehs_sh_tdm_mnfs_bit_slip_error;
static int hf_ehs_sh_tdm_mnfs_sync_error;
/* pseudo ehs secondary header values */
/* static int hf_ehs_sh_pseudo_unused; */
static int hf_ehs_sh_pseudo_workstation_id;
static int hf_ehs_sh_pseudo_user_id;
static int hf_ehs_sh_pseudo_comp_id;
/* data zone values for well known protocol AOS/LOS */
static int hf_ehs_dz_aoslos_indicator;
/* data zone values for well known protocol UDSM */
static int hf_ehs_dz_udsm_ccsds_vs_bpdu;
/* static int hf_ehs_dz_udsm_unused1; */
/* static int hf_ehs_dz_udsm_unused2; */
/* static int hf_ehs_dz_udsm_unused3; */
static int hf_ehs_dz_udsm_gse_pkt_id;
static int hf_ehs_dz_udsm_payload_vs_core;
static int hf_ehs_dz_udsm_apid;
static int hf_ehs_dz_udsm_start_time_year;
static int hf_ehs_dz_udsm_start_time_jday;
static int hf_ehs_dz_udsm_start_time_hour;
static int hf_ehs_dz_udsm_start_time_minute;
static int hf_ehs_dz_udsm_start_time_second;
static int hf_ehs_dz_udsm_stop_time_year;
static int hf_ehs_dz_udsm_stop_time_jday;
static int hf_ehs_dz_udsm_stop_time_hour;
static int hf_ehs_dz_udsm_stop_time_minute;
static int hf_ehs_dz_udsm_stop_time_second;
/* static int hf_ehs_dz_udsm_unused4; */
static int hf_ehs_dz_udsm_num_pkts_xmtd;
static int hf_ehs_dz_udsm_num_vcdu_seqerrs;
static int hf_ehs_dz_udsm_num_pkt_seqerrs;
static int hf_ehs_dz_udsm_num_pktlen_errors;
static int hf_ehs_dz_udsm_event;
static int hf_ehs_dz_udsm_num_pkts_xmtd_rollover;
static dissector_handle_t ehs_handle;
/* handle to ccsds packet dissector */
static dissector_handle_t ccsds_handle;
/* Initialize the subtree pointers */
static int ett_ehs;
static int ett_ehs_primary_header;
static int ett_ehs_secondary_header;
static int ett_ehs_data_zone;
static int ett_ehs_cnt_time;
static int ett_ehs_obt_time;
static int ett_ehs_udsm_start_time;
static int ett_ehs_udsm_stop_time;
static int ett_ehs_ground_receipt_time;
static int ett_ehs_major_frame;
static int ett_ehs_minor_frame;
/* EHS protocol types */
typedef enum EHS_Protocol_Type
{
EHS_PROTOCOL__ALL_PROTOCOLS,
EHS_PROTOCOL__TDM_TELEMETRY,
EHS_PROTOCOL__NASCOM_TELEMETRY,
EHS_PROTOCOL__PSEUDO_TELEMETRY,
EHS_PROTOCOL__TDS_DATA,
EHS_PROTOCOL__TEST_DATA,
EHS_PROTOCOL__GSE_DATA,
EHS_PROTOCOL__CUSTOM_DATA,
EHS_PROTOCOL__HDRS_DQ,
EHS_PROTOCOL__CSS,
EHS_PROTOCOL__AOS_LOS,
EHS_PROTOCOL__PDSS_PAYLOAD_CCSDS_PACKET,
EHS_PROTOCOL__PDSS_CORE_CCSDS_PACKET,
EHS_PROTOCOL__PDSS_PAYLOAD_BPDU,
EHS_PROTOCOL__PDSS_UDSM,
EHS_PROTOCOL__PDSS_RPSM,
NUMBER_PROTOCOLS = 15
} EHS_Protocol_Type_t;
/* some basic sizing parameters */
enum
{
IP_HEADER_LENGTH = 48,
CCSDS_PRIMARY_HEADER_LENGTH = 6,
CCSDS_SECONDARY_HEADER_LENGTH = 10,
EHS_PRIMARY_HEADER_SIZE = 16,
EHS_SECONDARY_HEADER_SIZE = 12
};
/* determine if a ccsds primary header indicates a secondary exists */
#define HDR_SECHDR 0x0800
static const value_string ehs_primary_header_project[] =
{
{ 0, "All" },
{ 1, "STS" },
{ 2, "SL" },
{ 3, "ISS" },
{ 4, "AXAF" },
{ 0, NULL }
};
static const value_string ehs_primary_header_support_mode[] =
{
{ 0, "All" },
{ 1, "Flight" },
{ 2, "Test" },
{ 3, "Sim" },
{ 4, "Validation" },
{ 5, "Development" },
{ 6, "Training" },
{ 7, "Offline" },
{ 0, NULL }
};
static const value_string ehs_primary_header_data_mode[] =
{
{ 0, "Unused" },
{ 1, "Realtime" },
{ 2, "Dump1" },
{ 3, "Dump2" },
{ 4, "Dump3" },
{ 5, "Playback1" },
{ 6, "Playback2" },
{ 7, "Playback3" },
{ 8, "Playback4" },
{ 9, "Playback5" },
{ 10, "Playback6" },
{ 11, "Playback7" },
{ 12, "Playback8" },
{ 13, "Playback9" },
{ 14, "Playback10" },
{ 15, "Playback11" },
{ 16, "Mode Independent" },
{ 0, NULL }
};
static const value_string ehs_primary_header_protocol[] =
{
{ 0, "All" },
{ 1, "TDM" },
{ 2, "NASCOM" },
{ 3, "PSEUDO" },
{ 4, "Time" },
{ 5, "Test" },
{ 6, "GSE" },
{ 7, "Custom_Data" },
{ 8, "HDRS_DQ" },
{ 9, "CSS" },
{ 10, "AOS_LOS" },
{ 11, "PDSS_PAYLOAD_CCSDS" },
{ 12, "PDSS_CORE_CCSDS" },
{ 13, "PDSS_PAYLOAD_BPDU" },
{ 14, "PDSS_UDSM" },
{ 15, "PDSS_RPSM" },
{ 0, NULL }
};
static const value_string ehs_secondary_header_data_stream_id[] =
{
{ 0, "CCSDS" },
{ 1, "BPDU" },
{ 0, NULL }
};
static const value_string ehs_secondary_header_payload_vs_core_id[] =
{
{ 0, "Core" },
{ 1, "Payload" },
{ 0, NULL }
};
static const value_string ehs_secondary_header_tdm_backup_stream_id[] =
{
{ 0, "Stream A / KMTS-A" },
{ 1, "Stream B / KMTS-B" },
{ 2, "SKR" },
{ 0, NULL }
};
static const value_string ehs_secondary_header_tdm_end_of_data_flag[] =
{
{ 0, "OK" },
{ 1, "Loss of Clock" },
{ 2, "Watchdog Timeout" },
{ 3, "Loss of Sync" },
{ 0, NULL }
};
static const true_false_string ehs_tfs_secondary_header_tdm_aoslos_flag =
{
"AOS" ,
"LOS"
};
static const value_string ehs_secondary_header_tdm_data_status[] =
{
{ 0, "OK" },
{ 1, "Suspect" },
{ 2, "DQ Failed" },
{ 3, "No Data" },
{ 0, NULL }
};
static const value_string ehs_data_zone_aoslos_indicator[] =
{
{ 0, "S-band LOS" },
{ 1, "S-band AOS" },
{ 2, "Ku-band LOS" },
{ 3, "Ku-band AOS" },
{ 0, NULL }
};
static const value_string ehs_data_zone_udsm_ccsds_vs_bpdu[] =
{
{ 0, "CCSDS" },
{ 1, "BPDU" },
{ 0, NULL }
};
static const value_string ehs_data_zone_udsm_payload_vs_core[] =
{
{ 0, "Core" },
{ 1, "Payload" },
{ 0, NULL }
};
static const value_string ehs_data_zone_udsm_event[] =
{
{ 0, "Undefined" },
{ 1, "Actual LOS" },
{ 2, "Scheduled End of Data" },
{ 3, "Operator Requested" },
{ 0, NULL }
};
/* function to return EHS secondary header size according to protocol.
* the buffer pointer tvb should be pointing to the packets ehs primary
* header, and the offset should be set to the start of the ehs secondary
* header on input.
*/
static int
ehs_secondary_header_size ( int protocol, tvbuff_t* tvb, int offset )
{
/* for most protocols the ehs secondary header is a standard size */
int size = EHS_SECONDARY_HEADER_SIZE;
switch ( protocol )
{
case EHS_PROTOCOL__TDM_TELEMETRY:
/* the TDM secondary header size is variable. its value is actually
* contained in the first two bytes of the secondary header itself.
*/
size = tvb_get_ntohs ( tvb, offset );
break;
case EHS_PROTOCOL__NASCOM_TELEMETRY:
break;
case EHS_PROTOCOL__PSEUDO_TELEMETRY:
size = 8;
break;
case EHS_PROTOCOL__TDS_DATA:
break;
case EHS_PROTOCOL__TEST_DATA:
break;
case EHS_PROTOCOL__GSE_DATA:
size = 16;
break;
case EHS_PROTOCOL__CUSTOM_DATA:
break;
case EHS_PROTOCOL__HDRS_DQ:
break;
case EHS_PROTOCOL__CSS:
break;
case EHS_PROTOCOL__AOS_LOS:
break;
case EHS_PROTOCOL__PDSS_PAYLOAD_CCSDS_PACKET:
break;
case EHS_PROTOCOL__PDSS_CORE_CCSDS_PACKET:
break;
case EHS_PROTOCOL__PDSS_PAYLOAD_BPDU:
break;
case EHS_PROTOCOL__PDSS_UDSM:
break;
case EHS_PROTOCOL__PDSS_RPSM:
break;
default:
break;
}
return size;
}
/* common EHS secondary header dissector */
static void
common_secondary_header_dissector ( proto_tree* ehs_secondary_header_tree, tvbuff_t* tvb, int* offset )
{
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_vcdu_sequence_number, tvb, *offset, 3, ENC_BIG_ENDIAN );
*offset += 3;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_stream_id, tvb, *offset, 1, ENC_BIG_ENDIAN );
/* proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_pdss_reserved_1, tvb, *offset, 1, ENC_BIG_ENDIAN ); */
++(*offset);
/* proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_pdss_reserved_2, tvb, *offset, 1, ENC_BIG_ENDIAN ); */
++(*offset);
/* proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_pdss_reserved_3, tvb, *offset, 2, ENC_BIG_ENDIAN ); */
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_gse_pkt_id, tvb, *offset, 2, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_payload_vs_core_id, tvb, *offset, 2, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_apid, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_virtual_channel, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_pdss_reserved_sync, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
}
/* AOS/LOS EHS secondary header dissector */
static void
aoslos_secondary_header_dissector ( proto_tree* ehs_secondary_header_tree, tvbuff_t* tvb, int* offset )
{
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_version, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_5, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_4, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_3, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_2, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_1, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_0, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
common_secondary_header_dissector ( ehs_secondary_header_tree, tvb, offset );
}
/* payload ccsds secondary header dissector */
static void
payload_ccsds_secondary_header_dissector ( proto_tree* ehs_secondary_header_tree, tvbuff_t* tvb, int* offset )
{
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_version, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_5, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_4, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_3, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_vcdu_sequence_error, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_packet_sequence_error, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_0, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
common_secondary_header_dissector ( ehs_secondary_header_tree, tvb, offset );
}
/* core ccsds secondary header dissector */
static void
core_ccsds_secondary_header_dissector ( proto_tree* ehs_secondary_header_tree, tvbuff_t* tvb, int* offset )
{
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_version, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_5, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_4, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_parent_stream_error, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_vcdu_sequence_error, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_packet_sequence_error, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_0, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
common_secondary_header_dissector ( ehs_secondary_header_tree, tvb, offset );
}
/* payload bpdu secondary header dissector */
static void
payload_bpdu_secondary_header_dissector ( proto_tree* ehs_secondary_header_tree, tvbuff_t* tvb, int* offset )
{
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_version, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_5, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_4, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_3, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_vcdu_sequence_error, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_1, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_0, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
common_secondary_header_dissector ( ehs_secondary_header_tree, tvb, offset );
}
/* udsm secondary header dissector */
static void
udsm_secondary_header_dissector ( proto_tree* ehs_secondary_header_tree, tvbuff_t* tvb, int* offset )
{
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_version, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_5, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_4, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_3, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_2, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_1, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_data_status_bit_0, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
common_secondary_header_dissector ( ehs_secondary_header_tree, tvb, offset );
}
/* tdm secondary header dissector */
static void
tdm_secondary_header_dissector ( proto_tree* ehs_secondary_header_tree, tvbuff_t* tvb, int* offset )
{
int j;
int num_major_frames = 0;
int num_minor_frames = 0;
int cntmet_present = 0;
int obt_present = 0;
int mjfs_present = 0;
proto_tree* time_tree;
proto_item* time_item;
int year, jday, hour, minute, second, tenths;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_secondary_header_length, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_extra_data_packet, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_backup_stream_id_number, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_end_of_data_flag, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_parent_frame_error, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_checksum_error, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_fixed_value_error, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_minor_frame_counter_error, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_format_id_error, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_bit_slip_error, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_sync_error, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_aoslos_flag, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_override_errors_flag, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_data_status, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_idq, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_cdq, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_adq, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_data_dq, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
/* proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_unused, tvb, *offset, 2, ENC_BIG_ENDIAN ); */
*offset += 2;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_format_id, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_major_frame_packet_index, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_numpkts_per_major_frame, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
num_minor_frames = 1 + tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_num_minor_frames_per_packet, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
cntmet_present = tvb_get_uint8 ( tvb, *offset ) & 0x80;
obt_present = tvb_get_uint8 ( tvb, *offset ) & 0x40;
mjfs_present = tvb_get_uint8 ( tvb, *offset ) & 0x20;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_cntmet_present, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_obt_present, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_major_frame_status_present, tvb, *offset, 1, ENC_BIG_ENDIAN );
/* proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_reserved, tvb, *offset, 1, ENC_BIG_ENDIAN ); */
++(*offset);
if ( cntmet_present )
{
time_tree = proto_tree_add_subtree(ehs_secondary_header_tree, tvb, *offset, 7, ett_ehs_cnt_time, &time_item, "CNT/MET Time: ");
year = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_sh_tdm_cnt_year, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
jday = tvb_get_ntohs ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_sh_tdm_cnt_jday, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
hour = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_sh_tdm_cnt_hour, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
minute = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_sh_tdm_cnt_minute, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
second = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_sh_tdm_cnt_second, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
tenths = tvb_get_uint8 ( tvb, *offset ) >> 4;
proto_tree_add_item ( time_tree, hf_ehs_sh_tdm_cnt_tenths, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
/* format a more readable time */
proto_item_append_text(time_item, "%04d/%03d:%02d:%02d:%02d.%1d", year + 1900, jday, hour, minute, second, tenths );
}
if ( obt_present )
{
time_tree = proto_tree_add_subtree(ehs_secondary_header_tree, tvb, *offset, 7, ett_ehs_obt_time, &time_item, "OBT Time: ");
year = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_sh_tdm_obt_year, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
jday = tvb_get_ntohs ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_sh_tdm_obt_jday, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
hour = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_sh_tdm_obt_hour, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
minute = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_sh_tdm_obt_minute, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
second = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_sh_tdm_obt_second, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
tenths = tvb_get_uint8 ( tvb, *offset ) >> 4;
proto_tree_add_item ( time_tree, hf_ehs_sh_tdm_obt_tenths, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
/* format a more readable time */
proto_item_append_text ( time_item, "%04d/%03d:%02d:%02d:%02d.%1d", year + 1900, jday, hour, minute, second, tenths );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_obt_delta_time_flag, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_obt_computed_flag, tvb, *offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_obt_not_retrieved_flag, tvb, *offset, 1, ENC_BIG_ENDIAN );
/* proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_obt_reserved, tvb, *offset, 1, ENC_BIG_ENDIAN ); */
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_obt_source_apid, tvb, *offset, 1, ENC_BIG_ENDIAN );
}
if ( mjfs_present )
{
num_major_frames = 1 + tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_tdm_num_major_frame_status_words, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
for ( j=0; j < num_major_frames; ++j )
{
proto_tree* major_tree;
static int * const major_fields[] = {
/* &hf_ehs_sh_tdm_mjfs_reserved, */
&hf_ehs_sh_tdm_mjfs_parent_frame_error,
&hf_ehs_sh_tdm_mjfs_checksum_error,
&hf_ehs_sh_tdm_mjfs_fixed_value_error,
NULL
};
major_tree = proto_tree_add_subtree_format( ehs_secondary_header_tree, tvb, *offset, 1, ett_ehs_major_frame, NULL, "Major Frame Status Byte# %d", j );
proto_tree_add_bitmask_list(major_tree, tvb, *offset, 1, major_fields, ENC_BIG_ENDIAN);
++(*offset);
}
}
for ( j=0; j < num_minor_frames; ++j )
{
proto_tree* minor_tree;
static int * const minor_fields[] = {
&hf_ehs_sh_tdm_mnfs_parent_frame_error,
&hf_ehs_sh_tdm_mnfs_data_not_available,
&hf_ehs_sh_tdm_mnfs_checksum_error,
&hf_ehs_sh_tdm_mnfs_fixed_value_error,
&hf_ehs_sh_tdm_mnfs_counter_error,
&hf_ehs_sh_tdm_mnfs_format_id_error,
&hf_ehs_sh_tdm_mnfs_bit_slip_error,
&hf_ehs_sh_tdm_mnfs_sync_error,
NULL
};
minor_tree = proto_tree_add_subtree_format( ehs_secondary_header_tree, tvb, *offset, 1, ett_ehs_minor_frame, NULL, "Minor Frame Status Byte# %d", j );
proto_tree_add_bitmask_list(minor_tree, tvb, *offset, 1, minor_fields, ENC_BIG_ENDIAN);
++(*offset);
}
}
/* pseudo secondary header dissector */
static void
pseudo_secondary_header_dissector ( proto_tree* ehs_secondary_header_tree, tvbuff_t* tvb, int* offset )
{
/* proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_pseudo_unused, tvb, *offset, 2, ENC_BIG_ENDIAN ); */
*offset += 2;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_pseudo_workstation_id, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_pseudo_user_id, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
proto_tree_add_item ( ehs_secondary_header_tree, hf_ehs_sh_pseudo_comp_id, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
}
/* EHS secondary header dissector */
static void
ehs_secondary_header_dissector ( int protocol, proto_tree* ehs_secondary_header_tree, tvbuff_t* tvb, int* offset )
{
/* the ehs secondary header structure is potentially different for each and every
* protocol type, including its size. we support certain protocols but not all.
* for those protocols which are not supported we simply increment the offset
* and return. support for these other protocols can easily be added at a later
* time if and when it becomes necessary to do so. but for right now, we're only
* going to dissect those protocols that we work with on a regular basis in pdss.
*/
switch ( protocol )
{
case EHS_PROTOCOL__TDM_TELEMETRY:
tdm_secondary_header_dissector ( ehs_secondary_header_tree, tvb, offset );
break;
case EHS_PROTOCOL__NASCOM_TELEMETRY:
*offset += ehs_secondary_header_size ( protocol, tvb, *offset );
break;
case EHS_PROTOCOL__PSEUDO_TELEMETRY:
pseudo_secondary_header_dissector ( ehs_secondary_header_tree, tvb, offset );
break;
case EHS_PROTOCOL__TDS_DATA:
*offset += ehs_secondary_header_size ( protocol, tvb, *offset );
break;
case EHS_PROTOCOL__TEST_DATA:
*offset += ehs_secondary_header_size ( protocol, tvb, *offset );
break;
case EHS_PROTOCOL__GSE_DATA:
*offset += ehs_secondary_header_size ( protocol, tvb, *offset );
break;
case EHS_PROTOCOL__CUSTOM_DATA:
*offset += ehs_secondary_header_size ( protocol, tvb, *offset );
break;
case EHS_PROTOCOL__HDRS_DQ:
*offset += ehs_secondary_header_size ( protocol, tvb, *offset );
break;
case EHS_PROTOCOL__CSS:
*offset += ehs_secondary_header_size ( protocol, tvb, *offset );
break;
case EHS_PROTOCOL__AOS_LOS:
aoslos_secondary_header_dissector ( ehs_secondary_header_tree, tvb, offset );
break;
case EHS_PROTOCOL__PDSS_PAYLOAD_CCSDS_PACKET:
payload_ccsds_secondary_header_dissector ( ehs_secondary_header_tree, tvb, offset );
break;
case EHS_PROTOCOL__PDSS_CORE_CCSDS_PACKET:
core_ccsds_secondary_header_dissector ( ehs_secondary_header_tree, tvb, offset );
break;
case EHS_PROTOCOL__PDSS_PAYLOAD_BPDU:
payload_bpdu_secondary_header_dissector ( ehs_secondary_header_tree, tvb, offset );
break;
case EHS_PROTOCOL__PDSS_UDSM:
udsm_secondary_header_dissector ( ehs_secondary_header_tree, tvb, offset );
break;
case EHS_PROTOCOL__PDSS_RPSM:
*offset += ehs_secondary_header_size ( protocol, tvb, *offset );
break;
default:
*offset += ehs_secondary_header_size ( protocol, tvb, *offset );
break;
}
}
/* AOS/LOS data zone dissector */
static void
aoslos_data_zone_dissector ( proto_tree* ehs_tree, tvbuff_t* tvb, int* offset, packet_info* pinfo _U_)
{
proto_tree *ehs_data_zone_tree;
/* create the data zone tree */
ehs_data_zone_tree = proto_tree_add_subtree( ehs_tree, tvb, *offset, tvb_reported_length(tvb) - *offset,
ett_ehs_data_zone, NULL, "AOS/LOS Data Zone" );
/* since the aos/los EHS packet data zone is well known, format it for display as well
*
* The AOS/LOS packet data zone is only 2 bytes in
* length and only 2 bits in the first byte are
* meaningful -- Ku band or S band and AOS or LOS
*
* 7-2 - unused
* 1-0 - band + AOS/LOS indicator
*
* bit 1 - 0=sband 1=kuband
* bit 0 - 0=LOS 1=AOS
*
* 0 00 - sband LOS
* 1 01 - sband AOS
* 2 10 - kuband LOS
* 3 11 - kuband AOS
*/
proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_aoslos_indicator, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
}
/* UDSM data zone dissector */
static void
udsm_data_zone_dissector ( proto_tree* ehs_tree, tvbuff_t* tvb, int* offset, packet_info* pinfo _U_)
{
proto_tree *ehs_data_zone_tree;
proto_tree* time_tree;
proto_item* time_item;
int year, jday, hour, minute, second;
/* create the data zone tree */
ehs_data_zone_tree = proto_tree_add_subtree( ehs_tree, tvb, *offset, tvb_reported_length(tvb) - *offset,
ett_ehs_data_zone, NULL, "UDSM Data Zone" );
proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_ccsds_vs_bpdu, tvb, *offset, 1, ENC_BIG_ENDIAN );
/* proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_unused1, tvb, *offset, 1, ENC_BIG_ENDIAN ); */
++(*offset);
/* proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_unused2, tvb, *offset, 1, ENC_BIG_ENDIAN ); */
++(*offset);
/* proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_unused3, tvb, *offset, 2, ENC_BIG_ENDIAN ); */
proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_gse_pkt_id, tvb, *offset, 2, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_payload_vs_core, tvb, *offset, 2, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_apid, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
time_tree = proto_tree_add_subtree(ehs_data_zone_tree, tvb, *offset, 7, ett_ehs_udsm_start_time, &time_item, "UDSM Start Time: ");
year = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_dz_udsm_start_time_year, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
jday = tvb_get_ntohs ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_dz_udsm_start_time_jday, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
hour = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_dz_udsm_start_time_hour, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
minute = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_dz_udsm_start_time_minute, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
second = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_dz_udsm_start_time_second, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
/* format a more readable time */
proto_item_append_text( time_item, "%04d/%03d:%02d:%02d:%02d = UDSM Start Time", year + 1900, jday, hour, minute, second );
time_tree = proto_tree_add_subtree(ehs_data_zone_tree, tvb, *offset, 7, ett_ehs_udsm_stop_time, &time_item, "UDSM Stop Time: ");
year = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_dz_udsm_stop_time_year, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
jday = tvb_get_ntohs ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_dz_udsm_stop_time_jday, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
hour = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_dz_udsm_stop_time_hour, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
minute = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_dz_udsm_stop_time_minute, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
second = tvb_get_uint8 ( tvb, *offset );
proto_tree_add_item ( time_tree, hf_ehs_dz_udsm_stop_time_second, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
/* format a more readable time */
proto_item_append_text ( time_item, "%04d/%03d:%02d:%02d:%02d", year + 1900, jday, hour, minute, second );
/* proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_unused4, tvb, *offset, 2, ENC_BIG_ENDIAN ); */
*offset += 2;
proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_num_pkts_xmtd, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_num_vcdu_seqerrs, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_num_pkt_seqerrs, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_num_pktlen_errors, tvb, *offset, 2, ENC_BIG_ENDIAN );
*offset += 2;
proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_event, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
proto_tree_add_item ( ehs_data_zone_tree, hf_ehs_dz_udsm_num_pkts_xmtd_rollover, tvb, *offset, 1, ENC_BIG_ENDIAN );
++(*offset);
}
/* data zone dissector */
static void
ehs_data_zone_dissector ( int protocol, proto_tree* ehs_tree, tvbuff_t* tvb, int* offset, packet_info* pinfo )
{
/* the data zone of certain protocols such as AOS/LOS and UDSM is well known.
*/
switch ( protocol )
{
case EHS_PROTOCOL__TDM_TELEMETRY:
break;
case EHS_PROTOCOL__NASCOM_TELEMETRY:
break;
case EHS_PROTOCOL__PSEUDO_TELEMETRY:
break;
case EHS_PROTOCOL__TDS_DATA:
break;
case EHS_PROTOCOL__TEST_DATA:
break;
case EHS_PROTOCOL__GSE_DATA:
break;
case EHS_PROTOCOL__CUSTOM_DATA:
break;
case EHS_PROTOCOL__HDRS_DQ:
break;
case EHS_PROTOCOL__CSS:
break;
case EHS_PROTOCOL__AOS_LOS:
aoslos_data_zone_dissector ( ehs_tree, tvb, offset, pinfo );
break;
case EHS_PROTOCOL__PDSS_PAYLOAD_CCSDS_PACKET:
break;
case EHS_PROTOCOL__PDSS_CORE_CCSDS_PACKET:
break;
case EHS_PROTOCOL__PDSS_PAYLOAD_BPDU:
break;
case EHS_PROTOCOL__PDSS_UDSM:
udsm_data_zone_dissector ( ehs_tree, tvb, offset, pinfo );
break;
case EHS_PROTOCOL__PDSS_RPSM:
break;
default:
break;
}
}
/* Code to actually dissect the packets */
static int
dissect_ehs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
int offset = 0;
uint16_t first_word;
tvbuff_t *new_tvb;
proto_item *ehs_packet;
proto_tree *ehs_tree;
proto_tree* time_tree;
proto_item* time_item;
proto_tree *ehs_primary_header_tree;
proto_tree *ehs_secondary_header_tree;
int protocol;
int year, jday, hour, minute, second, tenths;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "EHS");
col_set_str(pinfo->cinfo, COL_INFO, "EHS");
ehs_packet = proto_tree_add_item ( tree, proto_ehs, tvb, 0, -1, ENC_NA );
ehs_tree = proto_item_add_subtree ( ehs_packet, ett_ehs );
/* build the ehs primary header tree */
ehs_primary_header_tree = proto_tree_add_subtree( ehs_tree, tvb, offset, EHS_PRIMARY_HEADER_SIZE,
ett_ehs_primary_header, NULL, "Primary EHS Header" );
proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_version, tvb, offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_project, tvb, offset, 1, ENC_BIG_ENDIAN );
++offset;
proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_support_mode, tvb, offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_data_mode, tvb, offset, 1, ENC_BIG_ENDIAN );
++offset;
proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_mission, tvb, offset, 1, ENC_BIG_ENDIAN );
++offset;
/* save protocol for use later on */
protocol = tvb_get_uint8 ( tvb, offset );
proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_protocol, tvb, offset, 1, ENC_BIG_ENDIAN );
++offset;
time_tree = proto_tree_add_subtree(ehs_primary_header_tree, tvb, offset, 7, ett_ehs_ground_receipt_time, &time_item, "EHS Ground Receipt Time: ");
year = tvb_get_uint8 ( tvb, offset );
proto_tree_add_item ( time_tree, hf_ehs_ph_year, tvb, offset, 1, ENC_BIG_ENDIAN );
++offset;
jday = tvb_get_ntohs ( tvb, offset );
proto_tree_add_item ( time_tree, hf_ehs_ph_jday, tvb, offset, 2, ENC_BIG_ENDIAN );
offset += 2;
hour = tvb_get_uint8 ( tvb, offset );
proto_tree_add_item ( time_tree, hf_ehs_ph_hour, tvb, offset, 1, ENC_BIG_ENDIAN );
++offset;
minute = tvb_get_uint8 ( tvb, offset );
proto_tree_add_item ( time_tree, hf_ehs_ph_minute, tvb, offset, 1, ENC_BIG_ENDIAN );
++offset;
second = tvb_get_uint8 ( tvb, offset );
proto_tree_add_item ( time_tree, hf_ehs_ph_second, tvb, offset, 1, ENC_BIG_ENDIAN );
++offset;
tenths = tvb_get_uint8 ( tvb, offset ) >> 4;
proto_tree_add_item ( time_tree, hf_ehs_ph_tenths, tvb, offset, 1, ENC_BIG_ENDIAN );
/* format a more readable ground receipt time string */
proto_item_append_text ( time_item, "%04d/%03d:%02d:%02d:%02d.%1d", year + 1900, jday, hour, minute, second, tenths );
proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_new_data_flag, tvb, offset, 1, ENC_BIG_ENDIAN );
/* proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_pad1, tvb, offset, 1, ENC_BIG_ENDIAN ); */
proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_hold_flag, tvb, offset, 1, ENC_BIG_ENDIAN );
proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_sign_flag, tvb, offset, 1, ENC_BIG_ENDIAN );
++offset;
/* proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_pad2, tvb, offset, 1, ENC_BIG_ENDIAN ); */
++offset;
/* proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_pad3, tvb, offset, 1, ENC_BIG_ENDIAN ); */
++offset;
/* proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_pad4, tvb, offset, 1, ENC_BIG_ENDIAN ); */
++offset;
proto_tree_add_item ( ehs_primary_header_tree, hf_ehs_ph_hosc_packet_size, tvb, offset, 2, ENC_BIG_ENDIAN );
offset += 2;
/* build the ehs secondary header tree */
ehs_secondary_header_tree = proto_tree_add_subtree( ehs_tree, tvb, offset, ehs_secondary_header_size ( protocol, tvb, offset ),
ett_ehs_secondary_header, NULL, "Secondary EHS Header" );
/* since each protocol can have a different ehs secondary header structure, we will offload
* this processing to lower levels of code so we don't have to insert all of that complexity
* directly inline here, which would no doubt make this difficult to read at best.
*/
ehs_secondary_header_dissector ( protocol, ehs_secondary_header_tree, tvb, &offset );
/* for ccsds protocol types pass the remaining packet off to the ccsds packet dissector */
switch ( protocol )
{
case EHS_PROTOCOL__TDM_TELEMETRY:
case EHS_PROTOCOL__PSEUDO_TELEMETRY:
case EHS_PROTOCOL__AOS_LOS:
case EHS_PROTOCOL__PDSS_PAYLOAD_CCSDS_PACKET:
case EHS_PROTOCOL__PDSS_CORE_CCSDS_PACKET:
case EHS_PROTOCOL__PDSS_UDSM:
new_tvb = tvb_new_subset_remaining ( tvb, offset);
call_dissector ( ccsds_handle, new_tvb, pinfo, ehs_tree );
/* bump the offset to the data zone area */
first_word = tvb_get_ntohs ( tvb, offset );
offset += CCSDS_PRIMARY_HEADER_LENGTH;
if ( first_word & HDR_SECHDR ) offset += CCSDS_SECONDARY_HEADER_LENGTH;
break;
default:
break;
}
/* build the ehs data zone tree for well known protocols such as AOS/LOS and UDSM */
ehs_data_zone_dissector ( protocol, ehs_tree, tvb, &offset, pinfo );
return tvb_captured_length(tvb);
}
/* Register the protocol with Wireshark
* this format is require because a script is used to build the C function
* that calls all the protocol registration.
*/
void
proto_register_ehs(void)
{
/* Setup list of header fields See Section 1.6.1 for details*/
static hf_register_info hf[] =
{
/* primary ehs header */
{ &hf_ehs_ph_version,
{ "Version", "ehs.version",
FT_UINT8, BASE_DEC, NULL, 0xf0,
NULL, HFILL }
},
{ &hf_ehs_ph_project,
{ "Project", "ehs.project",
FT_UINT8, BASE_DEC, VALS(ehs_primary_header_project), 0x0f,
NULL, HFILL }
},
{ &hf_ehs_ph_support_mode,
{ "Support Mode", "ehs.support_mode",
FT_UINT8, BASE_DEC, VALS(ehs_primary_header_support_mode), 0xf0,
NULL, HFILL }
},
{ &hf_ehs_ph_data_mode,
{ "Data Mode", "ehs.data_mode",
FT_UINT8, BASE_DEC, VALS(ehs_primary_header_data_mode), 0x0f,
NULL, HFILL }
},
{ &hf_ehs_ph_mission,
{ "Mission", "ehs.mission",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_ph_protocol,
{ "Protocol", "ehs.protocol",
FT_UINT8, BASE_DEC, VALS(ehs_primary_header_protocol), 0x0,
NULL, HFILL }
},
{ &hf_ehs_ph_year,
{ "Years since 1900", "ehs.year",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_ph_jday,
{ "Julian Day of Year", "ehs.jday",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_ph_hour,
{ "Hour", "ehs.hour",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_ph_minute,
{ "Minute", "ehs.minute",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_ph_second,
{ "Second", "ehs.second",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_ph_tenths,
{ "Tenths", "ehs.tenths",
FT_UINT8, BASE_DEC, NULL, 0xf0,
NULL, HFILL }
},
{ &hf_ehs_ph_new_data_flag,
{ "New Data Flag", "ehs.new_data_flag",
FT_BOOLEAN, 8, NULL, 0x08,
NULL, HFILL }
},
#if 0
{ &hf_ehs_ph_pad1,
{ "Pad1", "ehs.pad1",
FT_UINT8, BASE_DEC, NULL, 0x04,
NULL, HFILL }
},
#endif
{ &hf_ehs_ph_hold_flag,
{ "Hold Flag", "ehs.hold_flag",
FT_BOOLEAN, 8, NULL, 0x02,
NULL, HFILL }
},
{ &hf_ehs_ph_sign_flag,
{ "Sign Flag (1->CDT)", "ehs.sign_flag",
FT_UINT8, BASE_DEC, NULL, 0x01,
NULL, HFILL }
},
#if 0
{ &hf_ehs_ph_pad2,
{ "Pad2", "ehs.pad2",
FT_UINT8, BASE_DEC, NULL, 0xff,
NULL, HFILL }
},
{ &hf_ehs_ph_pad3,
{ "Pad3", "ehs.pad3",
FT_UINT8, BASE_DEC, NULL, 0xff,
NULL, HFILL }
},
{ &hf_ehs_ph_pad4,
{ "Pad4", "ehs.pad4",
FT_UINT8, BASE_DEC, NULL, 0xff,
NULL, HFILL }
},
#endif
{ &hf_ehs_ph_hosc_packet_size,
{ "HOSC Packet Size", "ehs.hosc_packet_size",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
/* secondary ehs header */
{ &hf_ehs_sh_version,
{ "Version", "ehs2.version",
FT_UINT8, BASE_DEC, NULL, 0xc0,
NULL, HFILL }
},
{ &hf_ehs_sh_data_status_bit_5,
{ "Data Status Bit 5", "ehs2.data_status_bit_5",
FT_UINT8, BASE_DEC, NULL, 0x20,
NULL, HFILL }
},
{ &hf_ehs_sh_data_status_bit_4,
{ "Data Status Bit 4", "ehs2.data_status_bit_4",
FT_UINT8, BASE_DEC, NULL, 0x10,
NULL, HFILL }
},
{ &hf_ehs_sh_data_status_bit_3,
{ "Data Status Bit 3", "ehs2.data_status_bit_3",
FT_UINT8, BASE_DEC, NULL, 0x08,
NULL, HFILL }
},
{ &hf_ehs_sh_data_status_bit_2,
{ "Data Status Bit 2", "ehs2.data_status_bit_2",
FT_UINT8, BASE_DEC, NULL, 0x04,
NULL, HFILL }
},
{ &hf_ehs_sh_data_status_bit_1,
{ "Data Status Bit 1", "ehs2.data_status_bit_1",
FT_UINT8, BASE_DEC, NULL, 0x02,
NULL, HFILL }
},
{ &hf_ehs_sh_data_status_bit_0,
{ "Data Status Bit 0", "ehs2.data_status_bit_0",
FT_UINT8, BASE_DEC, NULL, 0x01,
NULL, HFILL }
},
/* other common remappings of the data status bits specific to certain secondary ehs header values */
{ &hf_ehs_sh_parent_stream_error,
{ "Parent Stream Error", "ehs2.parent_stream_error",
FT_BOOLEAN, 8, NULL, 0x08,
NULL, HFILL }
},
{ &hf_ehs_sh_vcdu_sequence_error,
{ "VCDU Sequence Error", "ehs2.vcdu_sequence_error",
FT_BOOLEAN, 8, NULL, 0x04,
NULL, HFILL }
},
{ &hf_ehs_sh_packet_sequence_error,
{ "Packet Sequence Error", "ehs2.packet_sequence_error",
FT_UINT8, BASE_DEC, NULL, 0x02,
NULL, HFILL }
},
/* common ehs secondary header values */
{ &hf_ehs_sh_vcdu_sequence_number,
{ "VCDU Sequence Number", "ehs2.vcdu_seqno",
FT_UINT24, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_data_stream_id,
{ "Data Stream ID", "ehs2.data_stream_id",
FT_UINT8, BASE_DEC, VALS(ehs_secondary_header_data_stream_id), 0x80,
NULL, HFILL }
},
#if 0
{ &hf_ehs_sh_pdss_reserved_1,
{ "Pdss Reserved 1", "ehs2.pdss_reserved_1",
FT_UINT8, BASE_DEC, NULL, 0x7f,
NULL, HFILL }
},
{ &hf_ehs_sh_pdss_reserved_2,
{ "Pdss Reserved 2", "ehs2.pdss_reserved_2",
FT_UINT8, BASE_DEC, NULL, 0xff,
NULL, HFILL }
},
{ &hf_ehs_sh_pdss_reserved_3,
{ "Pdss Reserved 3", "ehs2.pdss_reserved_3",
FT_UINT16, BASE_DEC, NULL, 0xe000,
NULL, HFILL }
},
#endif
{ &hf_ehs_sh_gse_pkt_id,
{ "GSE Packet ID (1=GSE)", "ehs2.gse_pkt_id",
FT_UINT16, BASE_DEC, NULL, 0x1000,
NULL, HFILL }
},
{ &hf_ehs_sh_payload_vs_core_id,
{ "Payload vs Core ID", "ehs2.payload_vs_core_id",
FT_UINT16, BASE_DEC, VALS(ehs_secondary_header_payload_vs_core_id), 0x0800,
NULL, HFILL }
},
{ &hf_ehs_sh_apid,
{ "APID", "ehs2.apid",
FT_UINT16, BASE_DEC, NULL, 0x07ff,
NULL, HFILL }
},
{ &hf_ehs_sh_virtual_channel,
{ "Virtual Channel", "ehs2.vcid",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_pdss_reserved_sync,
{ "Pdss Reserved Sync", "ehs2.sync",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
/* tdm ehs secondary header values */
{ &hf_ehs_sh_tdm_secondary_header_length,
{ "Secondary Header Length", "ehs2.tdm_secondary_header_length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_extra_data_packet,
{ "Extra Data Packet", "ehs2.tdm_extra_data_packet",
FT_BOOLEAN, 8, NULL, 0x80,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_backup_stream_id_number,
{ "Backup Stream ID Number", "ehs2.tdm_backup_stream_id_number",
FT_UINT8, BASE_DEC, VALS(ehs_secondary_header_tdm_backup_stream_id), 0x60,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_end_of_data_flag,
{ "End of Data Flag", "ehs2.tdm_end_of_data_flag",
FT_UINT8, BASE_DEC, VALS(ehs_secondary_header_tdm_end_of_data_flag), 0x18,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_parent_frame_error,
{ "Parent Frame Error", "ehs2.tdm_parent_frame_error",
FT_BOOLEAN, 8, NULL, 0x04,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_checksum_error,
{ "Checksum Error", "ehs2.tdm_checksum_error",
FT_BOOLEAN, 8, NULL, 0x02,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_fixed_value_error,
{ "Fixed Value Error", "ehs2.tdm_fixed_value_error",
FT_BOOLEAN, 8, NULL, 0x01,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_minor_frame_counter_error,
{ "Minor Frame Counter Error", "ehs2.tdm_minor_frame_counter_error",
FT_BOOLEAN, 8, NULL, 0x80,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_format_id_error,
{ "Format ID Error", "ehs2.tdm_format_id_error",
FT_BOOLEAN, 8, NULL, 0x40,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_bit_slip_error,
{ "Bit Slip Error", "ehs2.tdm_bit_slip_error",
FT_BOOLEAN, 8, NULL, 0x20,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_sync_error,
{ "Sync Error", "ehs2.tdm_sync_error",
FT_BOOLEAN, 8, NULL, 0x10,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_aoslos_flag,
{ "AOS/LOS Flag", "ehs2.tdm_aoslos_flag",
FT_BOOLEAN, 8, TFS(&ehs_tfs_secondary_header_tdm_aoslos_flag), 0x08,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_override_errors_flag,
{ "Override Errors", "ehs2.tdm_override_errors_flag",
FT_BOOLEAN, 8, NULL, 0x04,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_data_status,
{ "Data Status", "ehs2.tdm_data_status",
FT_UINT8, BASE_DEC, VALS(ehs_secondary_header_tdm_data_status), 0x03,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_idq,
{ "IDQ", "ehs2.tdm_idq",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_cdq,
{ "CDQ", "ehs2.tdm_cdq",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_adq,
{ "ADQ", "ehs2.tdm_adq",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_data_dq,
{ "Data DQ", "ehs2.tdm_data_dq",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
#if 0
{ &hf_ehs_sh_tdm_unused,
{ "Unused", "ehs2.tdm_unused",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
#endif
{ &hf_ehs_sh_tdm_format_id,
{ "Format ID", "ehs2.tdm_format_id",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_major_frame_packet_index,
{ "Major Frame Packet Index", "ehs2.tdm_major_frame_packet_index",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_numpkts_per_major_frame,
{ "Num Packets per Major Frame", "ehs2.tdm_numpkts_per_major_frame",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_num_minor_frames_per_packet,
{ "Num Minor Frames per Packet", "ehs2.tdm_num_minor_frame_per_packet",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_cntmet_present,
{ "CNT or MET Present", "ehs2.tdm_cntmet_present",
FT_BOOLEAN, 8, NULL, 0x80,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_obt_present,
{ "OBT Present", "ehs2.tdm_obt_present",
FT_BOOLEAN, 8, NULL, 0x40,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_major_frame_status_present,
{ "Major Frame Status Present", "ehs2.tdm_major_frame_status_present",
FT_BOOLEAN, 8, NULL, 0x20,
NULL, HFILL }
},
#if 0
{ &hf_ehs_sh_tdm_reserved,
{ "Reserved", "ehs2.tdm_reserved",
FT_UINT8, BASE_DEC, NULL, 0x1f,
NULL, HFILL }
},
#endif
{ &hf_ehs_sh_tdm_cnt_year,
{ "CNT Years since 1900", "ehs2.tdm_cnt_year",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_cnt_jday,
{ "CNT Julian Day of Year", "ehs2.tdm_cnt_jday",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_cnt_hour,
{ "CNT Hour", "ehs2.tdm_cnt_hour",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_cnt_minute,
{ "CNT Minute", "ehs2.tdm_cnt_minute",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_cnt_second,
{ "CNT Second", "ehs2.tdm_cnt_second",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_cnt_tenths,
{ "CNT Tenths", "ehs2.tdm_cnt_tenths",
FT_UINT8, BASE_DEC, NULL, 0xf0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_obt_year,
{ "OBT Years since 1900", "ehs2.tdm_cnt_year",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_obt_jday,
{ "OBT Julian Day of Year", "ehs2.tdm_cnt_jday",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_obt_hour,
{ "OBT Hour", "ehs2.tdm_cnt_hour",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_obt_minute,
{ "OBT Minute", "ehs2.tdm_cnt_minute",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_obt_second,
{ "OBT Second", "ehs2.tdm_cnt_second",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_obt_tenths,
{ "OBT Tenths", "ehs2.tdm_cnt_tenths",
FT_UINT8, BASE_DEC, NULL, 0xf0,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_obt_delta_time_flag,
{ "OBT is Delta Time Instead of GMT", "ehs2.tdm_obt_delta_time_flag",
FT_BOOLEAN, 16, NULL, 0x8000,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_obt_computed_flag,
{ "OBT Computed", "ehs2.tdm_obt_computed_flag",
FT_BOOLEAN, 16, NULL, 0x4000,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_obt_not_retrieved_flag,
{ "OBT Not Retrieved", "ehs2.tdm_obt_not_retrieved_flag",
FT_BOOLEAN, 16, NULL, 0x2000,
NULL, HFILL }
},
#if 0
{ &hf_ehs_sh_tdm_obt_reserved,
{ "OBT Reserved", "ehs2.tdm_obt_reserved",
FT_BOOLEAN, 16, NULL, 0x1800,
NULL, HFILL }
},
#endif
{ &hf_ehs_sh_tdm_obt_source_apid,
{ "OBT Source APID", "ehs2.tdm_obt_source_apid",
FT_UINT16, BASE_DEC, NULL, 0x07ff,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_num_major_frame_status_words,
{ "Number of Major Frame Status Words", "ehs2.tdm_num_major_frame_status_words",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
#if 0
{ &hf_ehs_sh_tdm_mjfs_reserved,
{ "Reserved", "ehs2.tdm_mjfs_reserved",
FT_UINT8, BASE_DEC, NULL, 0xf8,
NULL, HFILL }
},
#endif
{ &hf_ehs_sh_tdm_mjfs_parent_frame_error,
{ "Parent Frame Error", "ehs2.tdm_mjfs_parent_frame_error",
FT_BOOLEAN, 8, NULL, 0x04,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_mjfs_checksum_error,
{ "Checksum Error", "ehs2.tdm_mjfs_checksum_error",
FT_BOOLEAN, 8, NULL, 0x02,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_mjfs_fixed_value_error,
{ "Fixed Value Error", "ehs2.tdm_mjfs_fixed_value_error",
FT_BOOLEAN, 8, NULL, 0x01,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_mnfs_parent_frame_error,
{ "Parent Frame Error", "ehs2.tdm_mnfs_parent_frame_error",
FT_BOOLEAN, 8, NULL, 0x80,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_mnfs_data_not_available,
{ "Data Not Available", "ehs2.tdm_mnfs_data_not_available",
FT_BOOLEAN, 8, NULL, 0x40,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_mnfs_checksum_error,
{ "Checksum Error", "ehs2.tdm_mnfs_checksum_error",
FT_BOOLEAN, 8, NULL, 0x20,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_mnfs_fixed_value_error,
{ "Fixed Value Error", "ehs2.tdm_mnfs_fixed_value_error",
FT_BOOLEAN, 8, NULL, 0x10,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_mnfs_counter_error,
{ "Counter Error", "ehs2.tdm_mnfs_counter_error",
FT_BOOLEAN, 8, NULL, 0x08,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_mnfs_format_id_error,
{ "Format ID Error", "ehs2.tdm_mnfs_format_id_error",
FT_BOOLEAN, 8, NULL, 0x04,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_mnfs_bit_slip_error,
{ "Bit Slip Error", "ehs2.tdm_mnfs_bit_slip_error",
FT_BOOLEAN, 8, NULL, 0x02,
NULL, HFILL }
},
{ &hf_ehs_sh_tdm_mnfs_sync_error,
{ "Sync Error", "ehs2.tdm_mnfs_sync_error",
FT_BOOLEAN, 8, NULL, 0x01,
NULL, HFILL }
},
/* pseudo secondary header */
#if 0
{ &hf_ehs_sh_pseudo_unused,
{ "Unused", "ehs2.pseudo_unused",
FT_UINT16, BASE_DEC, NULL, 0xffff,
NULL, HFILL }
},
#endif
{ &hf_ehs_sh_pseudo_workstation_id,
{ "Workstation ID", "ehs2.pseudo_workstation_id",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_pseudo_user_id,
{ "User ID", "ehs2.pseudo_user_id",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_sh_pseudo_comp_id,
{ "Comp ID", "ehs2.pseudo_comp_id",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
/* aos/los protocol data zone */
{ &hf_ehs_dz_aoslos_indicator,
{ "AOS/LOS Indicator", "ehs.dz.aoslos_indicator",
FT_UINT8, BASE_DEC, VALS(ehs_data_zone_aoslos_indicator), 0x03,
NULL, HFILL }
},
/* udsm protocol data zone */
{ &hf_ehs_dz_udsm_ccsds_vs_bpdu,
{ "CCSDS vs BPDU", "ehs.dz.udsm_ccsds_vs_bpdu",
FT_UINT8, BASE_DEC, VALS(ehs_data_zone_udsm_ccsds_vs_bpdu), 0x80,
NULL, HFILL }
},
#if 0
{ &hf_ehs_dz_udsm_unused1,
{ "Unused 1", "ehs.dz.udsm_unused1",
FT_UINT8, BASE_DEC, NULL, 0x7f,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_unused2,
{ "Unused 2", "ehs.dz.udsm_unused2",
FT_UINT8, BASE_DEC, NULL, 0xff,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_unused3,
{ "Unused 3", "ehs.dz.udsm_unused3",
FT_UINT16, BASE_DEC, NULL, 0xe000,
NULL, HFILL }
},
#endif
{ &hf_ehs_dz_udsm_gse_pkt_id,
{ "GSE Pkt ID", "ehs.dz.udsm_gse_pkt_id",
FT_BOOLEAN, 16, NULL, 0x1000,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_payload_vs_core,
{ "Payload vs Core", "ehs.dz.udsm_payload_vs_core",
FT_UINT16, BASE_DEC, VALS(ehs_data_zone_udsm_payload_vs_core), 0x0800,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_apid,
{ "APID", "ehs.dz.udsm_apid",
FT_UINT16, BASE_DEC, NULL, 0x07ff,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_start_time_year,
{ "Start Time Years since 1900", "ehs.dz.udsm_start_time_year",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_start_time_jday,
{ "Start Time Julian Day", "ehs.dz.udsm_start_time_jday",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_start_time_hour,
{ "Start Time Hour", "ehs.dz.udsm_start_time_hour",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_start_time_minute,
{ "Start Time Minute", "ehs.dz.udsm_start_time_minute",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_start_time_second,
{ "Start Time Second", "ehs.dz.udsm_start_time_second",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_stop_time_year,
{ "Stop Time Years since 1900", "ehs.dz.udsm_stop_time_year",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_stop_time_jday,
{ "Stop Time Julian Day", "ehs.dz.udsm_stop_time_jday",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_stop_time_hour,
{ "Stop Time Hour", "ehs.dz.udsm_stop_time_hour",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_stop_time_minute,
{ "Stop Time Minute", "ehs.dz.udsm_stop_time_minute",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_stop_time_second,
{ "Stop Time Second", "ehs.dz.udsm_stop_time_second",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
#if 0
{ &hf_ehs_dz_udsm_unused4,
{ "Unused 4", "ehs.dz.udsm_unused4",
FT_UINT16, BASE_DEC, NULL, 0xffff,
NULL, HFILL }
},
#endif
{ &hf_ehs_dz_udsm_num_pkts_xmtd,
{ "Num Pkts Transmitted", "ehs.dz.udsm_num_pkts_xmtd",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_num_vcdu_seqerrs,
{ "Num VCDU Sequence Errors", "ehs.dz.udsm_num_vcdu_seqerrs",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_num_pkt_seqerrs,
{ "Num Packet Sequence Errors", "ehs.dz.udsm_num_pkt_seqerrs",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_num_pktlen_errors,
{ "Num Pkt Length Errors", "ehs.dz.udsm_num_pktlen_errors",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_event,
{ "UDSM Event Code", "ehs.dz.udsm_event",
FT_UINT8, BASE_DEC, VALS(ehs_data_zone_udsm_event), 0x0,
NULL, HFILL }
},
{ &hf_ehs_dz_udsm_num_pkts_xmtd_rollover,
{ "Num Pkts Transmitted Rollover Counter", "ehs.dz.udsm_num_pkts_xmtd_rollover",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
};
/* Setup protocol subtree array */
static int *ett[] = {
&ett_ehs,
&ett_ehs_primary_header,
&ett_ehs_secondary_header,
&ett_ehs_data_zone,
&ett_ehs_cnt_time,
&ett_ehs_obt_time,
&ett_ehs_udsm_start_time,
&ett_ehs_udsm_stop_time,
&ett_ehs_ground_receipt_time,
&ett_ehs_major_frame,
&ett_ehs_minor_frame,
};
/* Register the protocol name and description */
proto_ehs = proto_register_protocol("EHS", "EHS", "ehs");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_ehs, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
/* XX: Does this dissector need to be publicly registered ?? */
ehs_handle = register_dissector ( "ehs", dissect_ehs, proto_ehs );
}
void
proto_reg_handoff_ehs(void)
{
dissector_add_for_decode_as_with_preference( "udp.port", ehs_handle );
ccsds_handle = find_dissector_add_dependency ( "ccsds", proto_ehs );
}
/*
* Editor modelines - https://www.wireshark.org/tools/modelines.html
*
* Local Variables:
* c-basic-offset: 2
* tab-width: 8
* indent-tabs-mode: nil
* End:
*
* ex: set shiftwidth=2 tabstop=8 expandtab:
* :indentSize=2:tabSize=8:noTabs=true:
*/
|