-
Notifications
You must be signed in to change notification settings - Fork 38
/
packet-sapdiag.c
3768 lines (3408 loc) · 216 KB
/
packet-sapdiag.c
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
/*
# SAP Dissector Plugin for Wireshark
#
# SECUREAUTH LABS. Copyright (C) 2022 SecureAuth Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Author:
# Martin Gallo (@martingalloar) from SecureAuth's Innovation Labs team.
#
*/
#include <epan/packet.h>
#include <epan/prefs.h>
#include <epan/expert.h>
#include <wsutil/wmem/wmem.h>
/* Common helpers for adding items */
#include "saphelpers.h"
/* SAP Decompression routine */
#include "sapdecompress.h"
/* Define default ports. It could be 3200-3299, but 3298 it's usually
* used for the niping tool and 3299 is associated to SAP Router. */
#define SAPDIAG_PORT_RANGE "3200-3297"
/* SAP Diag Header Communication Flag values */
#define SAPDIAG_COM_FLAG_TERM_EOS 0x01
#define SAPDIAG_COM_FLAG_TERM_EOC 0x02
#define SAPDIAG_COM_FLAG_TERM_NOP 0x04
#define SAPDIAG_COM_FLAG_TERM_EOP 0x08
#define SAPDIAG_COM_FLAG_TERM_INI 0x10
#define SAPDIAG_COM_FLAG_TERM_CAS 0x20
#define SAPDIAG_COM_FLAG_TERM_NNM 0x40
#define SAPDIAG_COM_FLAG_TERM_GRA 0x80
/* SAP Diag Header Compression field values */
static const value_string sapdiag_compress_vals[] = {
{ 0x0, "Compression switched off" },
{ 0x1, "Compression switched on" },
{ 0x2, "Data encrypted" },
{ 0x3, "Data encrypted wrap" },
/* NULL */
{ 0x0, NULL }
};
/* SAP Diag Header Algorithm field values */
static const value_string sapdiag_algorithm_vals[] = {
{ 0x10, "LZC" },
{ 0x12, "LZH" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag DP Header Request ID values */
static const value_string sapdiag_dp_request_id_vals[] = {
{ 0x00000000, "NOWP" },
{ 0x00000001, "DIA" },
{ 0x00000002, "DUPD" },
{ 0x00000003, "DENQ" },
{ 0x00000004, "DBTC" },
{ 0x00000005, "DSPO" },
{ 0x00000006, "DUP2" },
/* NULL */
{ 0x00000000, NULL}
};
/* SAP Diag DP Header Sender ID values */
static const value_string sapdiag_dp_sender_id_vals[] = {
{ 0x01, "DISPATCHER" },
{ 0x02, "WORK_PROCESS" },
{ 0x04, "REMOTE_TERMINAL" },
{ 0x20, "APPC_TERMINAL" },
{ 0x40, "APPC_GATEWAY" },
{ 0xC8, "ICMAN" },
{ 0xC9, "IC_MONITOR" },
{ 0xCB, "LCOM" },
/* NULL */
{ 0x00, NULL}
};
/* SAP Diag DP Header Action Type values */
static const value_string sapdiag_dp_action_type_vals[] = {
{ 0x01, "SEND_TO_DP" },
{ 0x02, "SEND_TO_WP" },
{ 0x03, "SEND_TO_TM" },
{ 0x04, "SEND_TO_APPC" },
{ 0x05, "SEND_TO_APPCTM" },
{ 0x06, "SEND_MSG_TYPE" },
{ 0x07, "SEND_MSG_REQUES" },
{ 0x08, "SEND_MSG_REPLY" },
{ 0x09, "SEND_MSG_ONEWAY" },
{ 0x0A, "SEND_MSG_ADMIN" },
{ 0x0B, "WAKE_UP_WPS" },
{ 0x0C, "SET_TIMEOUT" },
{ 0x0D, "DEL_SCHEDULE" },
{ 0x0E, "ADD_SOFT_SERV" },
{ 0x0F, "SUB_SOFT_SERV" },
{ 0x10, "SHUTDOWN" },
{ 0x11, "SEND_TO_MSGSERV" },
{ 0x12, "SEND_TO_PLUGIN" },
/* NULL */
{ 0x00, NULL}
};
/* SAP Diag DP Header Request Info Flag constants */
#define SAPDIAG_DP_REQ_INFO_UNDEFINED 0x00
#define SAPDIAG_DP_REQ_INFO_LOGIN 0x01
#define SAPDIAG_DP_REQ_INFO_LOGOFF 0x02
#define SAPDIAG_DP_REQ_INFO_SHUTDOWN 0x04
#define SAPDIAG_DP_REQ_INFO_GRAPHIC_TM 0x08
#define SAPDIAG_DP_REQ_INFO_ALPHA_TM 0x10
#define SAPDIAG_DP_REQ_INFO_ERROR_FROM_APPC 0x20
#define SAPDIAG_DP_REQ_INFO_CANCELMODE 0x40
#define SAPDIAG_DP_REQ_INFO_MSG_WITH_REQ_BUF 0x80
#define SAPDIAG_DP_REQ_INFO_MSG_WITH_OH 0x01
#define SAPDIAG_DP_REQ_INFO_BUFFER_REFRESH 0x02
#define SAPDIAG_DP_REQ_INFO_BTC_SCHEDULER 0x04
#define SAPDIAG_DP_REQ_INFO_APPC_SERVER_DOWN 0x08
#define SAPDIAG_DP_REQ_INFO_MS_ERROR 0x10
#define SAPDIAG_DP_REQ_INFO_SET_SYSTEM_USER 0x20
#define SAPDIAG_DP_REQ_INFO_DP_CANT_HANDLE_REQ 0x40
#define SAPDIAG_DP_REQ_INFO_DP_AUTO_ABAP 0x80
#define SAPDIAG_DP_REQ_INFO_DP_APPL_SERV_INFO 0x01
#define SAPDIAG_DP_REQ_INFO_DP_ADMIN 0x02
#define SAPDIAG_DP_REQ_INFO_DP_SPOOL_ALRM 0x04
#define SAPDIAG_DP_REQ_INFO_DP_HAND_SHAKE 0x08
#define SAPDIAG_DP_REQ_INFO_DP_CANCEL_PRIV 0x10
#define SAPDIAG_DP_REQ_INFO_DP_RAISE_TIMEOUT 0x20
#define SAPDIAG_DP_REQ_INFO_DP_NEW_MODE 0x40
#define SAPDIAG_DP_REQ_INFO_DP_SOFT_CANCEL 0x80
#define SAPDIAG_DP_REQ_INFO_DP_TM_INPUT 0x01
#define SAPDIAG_DP_REQ_INFO_DP_TM_OUTPUT 0x02
#define SAPDIAG_DP_REQ_INFO_DP_ASYNC_RFC 0x04
#define SAPDIAG_DP_REQ_INFO_DP_ICM_EVENT 0x08
#define SAPDIAG_DP_REQ_INFO_DP_AUTO_TH 0x10
#define SAPDIAG_DP_REQ_INFO_DP_RFC_CANCEL 0x20
#define SAPDIAG_DP_REQ_INFO_DP_MS_ADM 0x40
/* SAP Diag Support Bits */
#define SAPDIAG_SUPPORT_BIT_PROGRESS_INDICATOR 0x01 /* 0 */
#define SAPDIAG_SUPPORT_BIT_SAPGUI_LABELS 0x02 /* 1 */
#define SAPDIAG_SUPPORT_BIT_SAPGUI_DIAGVERSION 0x04 /* 2 */
#define SAPDIAG_SUPPORT_BIT_SAPGUI_SELECT_RECT 0x08 /* 3 */
#define SAPDIAG_SUPPORT_BIT_SAPGUI_SYMBOL_RIGHT 0x10 /* 4 */
#define SAPDIAG_SUPPORT_BIT_SAPGUI_FONT_METRIC 0x20 /* 5 */
#define SAPDIAG_SUPPORT_BIT_SAPGUI_COMPR_ENHANCED 0x40 /* 6 */
#define SAPDIAG_SUPPORT_BIT_SAPGUI_IMODE 0x80 /* 7 */
#define SAPDIAG_SUPPORT_BIT_SAPGUI_LONG_MESSAGE 0x01 /* 8 */
#define SAPDIAG_SUPPORT_BIT_SAPGUI_TABLE 0x02 /* 9 */
#define SAPDIAG_SUPPORT_BIT_SAPGUI_FOCUS_1 0x04 /* 10 */
#define SAPDIAG_SUPPORT_BIT_SAPGUI_PUSHBUTTON_1 0x08 /* 11 */
#define SAPDIAG_SUPPORT_BIT_UPPERCASE 0x10 /* 12 */
#define SAPDIAG_SUPPORT_BIT_SAPGUI_TABPROPERTY 0x20 /* 13 */
#define SAPDIAG_SUPPORT_BIT_INPUT_UPPERCASE 0x40 /* 14 */
#define SAPDIAG_SUPPORT_BIT_RFC_DIALOG 0x80 /* 15 */
#define SAPDIAG_SUPPORT_BIT_LIST_HOTSPOT 0x01 /* 16 */
#define SAPDIAG_SUPPORT_BIT_FKEY_TABLE 0x02 /* 17 */
#define SAPDIAG_SUPPORT_BIT_MENU_SHORTCUT 0x04 /* 18 */
#define SAPDIAG_SUPPORT_BIT_STOP_TRANS 0x08 /* 19 */
#define SAPDIAG_SUPPORT_BIT_FULL_MENU 0x10 /* 20 */
#define SAPDIAG_SUPPORT_BIT_OBJECT_NAMES 0x20 /* 21 */
#define SAPDIAG_SUPPORT_BIT_CONTAINER_TYPE 0x40 /* 22 */
#define SAPDIAG_SUPPORT_BIT_DLGH_FLAGS 0x80 /* 23 */
#define SAPDIAG_SUPPORT_BIT_APPL_MNU 0x01 /* 24 */
#define SAPDIAG_SUPPORT_BIT_MESSAGE_INFO 0x02 /* 25 */
#define SAPDIAG_SUPPORT_BIT_MESDUM_FLAG1 0x04 /* 26 */
#define SAPDIAG_SUPPORT_BIT_TABSEL_ATTRIB 0x08 /* 27 */
#define SAPDIAG_SUPPORT_BIT_GUIAPI 0x10 /* 28 */
#define SAPDIAG_SUPPORT_BIT_NOGRAPH 0x20 /* 29 */
#define SAPDIAG_SUPPORT_BIT_NOMESSAGES 0x40 /* 30 */
#define SAPDIAG_SUPPORT_BIT_NORABAX 0x80 /* 31 */
#define SAPDIAG_SUPPORT_BIT_NOSYSMSG 0x01 /* 32 */
#define SAPDIAG_SUPPORT_BIT_NOSAPSCRIPT 0x02 /* 33 */
#define SAPDIAG_SUPPORT_BIT_NORFC 0x04 /* 34 */
#define SAPDIAG_SUPPORT_BIT_NEW_BSD_JUSTRIGHT 0x08 /* 35 */
#define SAPDIAG_SUPPORT_BIT_MESSAGE_VARS 0x10 /* 36 */
#define SAPDIAG_SUPPORT_BIT_OCX_SUPPORT 0x20 /* 37 */
#define SAPDIAG_SUPPORT_BIT_SCROLL_INFOS 0x40 /* 38 */
#define SAPDIAG_SUPPORT_BIT_TABLE_SIZE_OK 0x80 /* 39 */
#define SAPDIAG_SUPPORT_BIT_MESSAGE_INFO2 0x01 /* 40 */
#define SAPDIAG_SUPPORT_BIT_VARINFO_OKCODE 0x02 /* 41 */
#define SAPDIAG_SUPPORT_BIT_CURR_TCODE 0x04 /* 42 */
#define SAPDIAG_SUPPORT_BIT_CONN_WSIZE 0x08 /* 43 */
#define SAPDIAG_SUPPORT_BIT_PUSHBUTTON_2 0x10 /* 44 */
#define SAPDIAG_SUPPORT_BIT_TABSTRIP 0x20 /* 45 */
#define SAPDIAG_SUPPORT_BIT_UNKNOWN_1 0x40 /* 46 (Unknown support bit) */
#define SAPDIAG_SUPPORT_BIT_TABSCROLL_INFOS 0x80 /* 47 */
#define SAPDIAG_SUPPORT_BIT_TABLE_FIELD_NAMES 0x01 /* 48 */
#define SAPDIAG_SUPPORT_BIT_NEW_MODE_REQUEST 0x02 /* 49 */
#define SAPDIAG_SUPPORT_BIT_RFCBLOB_DIAG_PARSER 0x04 /* 50 */
#define SAPDIAG_SUPPORT_BIT_MULTI_LOGIN_USER 0x08 /* 51 */
#define SAPDIAG_SUPPORT_BIT_CONTROL_CONTAINER 0x10 /* 52 */
#define SAPDIAG_SUPPORT_BIT_APPTOOLBAR_FIXED 0x20 /* 53 */
#define SAPDIAG_SUPPORT_BIT_R3INFO_USER_CHECKED 0x40 /* 54 */
#define SAPDIAG_SUPPORT_BIT_NEED_STDDYNPRO 0x80 /* 55 */
#define SAPDIAG_SUPPORT_BIT_TYPE_SERVER 0x01 /* 56 */
#define SAPDIAG_SUPPORT_BIT_COMBOBOX 0x02 /* 57 */
#define SAPDIAG_SUPPORT_BIT_INPUT_REQUIRED 0x04 /* 58 */
#define SAPDIAG_SUPPORT_BIT_ISO_LANGUAGE 0x08 /* 59 */
#define SAPDIAG_SUPPORT_BIT_COMBOBOX_TABLE 0x10 /* 60 */
#define SAPDIAG_SUPPORT_BIT_R3INFO_FLAGS 0x20 /* 61 */
#define SAPDIAG_SUPPORT_BIT_CHECKRADIO_EVENTS 0x40 /* 62 */
#define SAPDIAG_SUPPORT_BIT_R3INFO_USERID 0x80 /* 63 */
#define SAPDIAG_SUPPORT_BIT_R3INFO_ROLLCOUNT 0x01 /* 64 */
#define SAPDIAG_SUPPORT_BIT_USER_TURNTIME2 0x02 /* 65 */
#define SAPDIAG_SUPPORT_BIT_NUM_FIELD 0x04 /* 66 */
#define SAPDIAG_SUPPORT_BIT_WIN16 0x08 /* 67 */
#define SAPDIAG_SUPPORT_BIT_CONTEXT_MENU 0x10 /* 68 */
#define SAPDIAG_SUPPORT_BIT_SCROLLABLE_TABSTRIP_PAGE 0x20 /* 69 */
#define SAPDIAG_SUPPORT_BIT_EVENT_DESCRIPTION 0x40 /* 70 */
#define SAPDIAG_SUPPORT_BIT_LABEL_OWNER 0x80 /* 71 */
#define SAPDIAG_SUPPORT_BIT_CLICKABLE_FIELD 0x01 /* 72 */
#define SAPDIAG_SUPPORT_BIT_PROPERTY_BAG 0x02 /* 73 */
#define SAPDIAG_SUPPORT_BIT_UNUSED_1 0x04 /* 74 */
#define SAPDIAG_SUPPORT_BIT_TABLE_ROW_REFERENCES_2 0x08 /* 75 */
#define SAPDIAG_SUPPORT_BIT_PROPFONT_VALID 0x10 /* 76 */
#define SAPDIAG_SUPPORT_BIT_VARINFO_CONTAINER 0x20 /* 77 */
#define SAPDIAG_SUPPORT_BIT_R3INFO_IMODEUUID 0x40 /* 78 */
#define SAPDIAG_SUPPORT_BIT_NOTGUI 0x80 /* 79 */
#define SAPDIAG_SUPPORT_BIT_WAN 0x01 /* 80 */
#define SAPDIAG_SUPPORT_BIT_XML_BLOBS 0x02 /* 81 */
#define SAPDIAG_SUPPORT_BIT_RFC_QUEUE 0x04 /* 82 */
#define SAPDIAG_SUPPORT_BIT_RFC_COMPRESS 0x08 /* 83 */
#define SAPDIAG_SUPPORT_BIT_JAVA_BEANS 0x10 /* 84 */
#define SAPDIAG_SUPPORT_BIT_DPLOADONDEMAND 0x20 /* 85 */
#define SAPDIAG_SUPPORT_BIT_CTL_PROPCACHE 0x40 /* 86 */
#define SAPDIAG_SUPPORT_BIT_ENJOY_IMODEUUID 0x80 /* 87 */
#define SAPDIAG_SUPPORT_BIT_RFC_ASYNC_BLOB 0x01 /* 88 */
#define SAPDIAG_SUPPORT_BIT_KEEP_SCROLLPOS 0x02 /* 89 */
#define SAPDIAG_SUPPORT_BIT_UNUSED_2 0x04 /* 90 */
#define SAPDIAG_SUPPORT_BIT_UNUSED_3 0x08 /* 91 */
#define SAPDIAG_SUPPORT_BIT_XML_PROPERTIES 0x10 /* 92 */
#define SAPDIAG_SUPPORT_BIT_UNUSED_4 0x20 /* 93 */
#define SAPDIAG_SUPPORT_BIT_HEX_FIELD 0x40 /* 94 */
#define SAPDIAG_SUPPORT_BIT_HAS_CACHE 0x80 /* 95 */
#define SAPDIAG_SUPPORT_BIT_XML_PROP_TABLE 0x01 /* 96 */
#define SAPDIAG_SUPPORT_BIT_UNUSED_5 0x02 /* 97 */
#define SAPDIAG_SUPPORT_BIT_ENJOY_IMODEUUID2 0x04 /* 98 */
#define SAPDIAG_SUPPORT_BIT_ITS 0x08 /* 99 */
#define SAPDIAG_SUPPORT_BIT_NO_EASYACCESS 0x10 /* 100 */
#define SAPDIAG_SUPPORT_BIT_PROPERTYPUMP 0x20 /* 101 */
#define SAPDIAG_SUPPORT_BIT_COOKIE 0x40 /* 102 */
#define SAPDIAG_SUPPORT_BIT_UNUSED_6 0x80 /* 103 */
#define SAPDIAG_SUPPORT_BIT_SUPPBIT_AREA_SIZE 0x01 /* 104 */
#define SAPDIAG_SUPPORT_BIT_DPLOADONDEMAND_WRITE 0x02 /* 105 */
#define SAPDIAG_SUPPORT_BIT_CONTROL_FOCUS 0x04 /* 106 */
#define SAPDIAG_SUPPORT_BIT_ENTRY_HISTORY 0x08 /* 107 */
#define SAPDIAG_SUPPORT_BIT_AUTO_CODEPAGE 0x10 /* 108 */
#define SAPDIAG_SUPPORT_BIT_CACHED_VSETS 0x20 /* 109 */
#define SAPDIAG_SUPPORT_BIT_EMERGENCY_REPAIR 0x40 /* 110 */
#define SAPDIAG_SUPPORT_BIT_AREA2FRONT 0x80 /* 111 */
#define SAPDIAG_SUPPORT_BIT_SCROLLBAR_WIDTH 0x01 /* 112 */
#define SAPDIAG_SUPPORT_BIT_AUTORESIZE 0x02 /* 113 */
#define SAPDIAG_SUPPORT_BIT_EDIT_VARLEN 0x04 /* 114 */
#define SAPDIAG_SUPPORT_BIT_WORKPLACE 0x08 /* 115 */
#define SAPDIAG_SUPPORT_BIT_PRINTDATA 0x10 /* 116 */
#define SAPDIAG_SUPPORT_BIT_UNKNOWN_2 0x20 /* 117 (Unknown support bit) */
#define SAPDIAG_SUPPORT_BIT_SINGLE_SESSION 0x40 /* 118 */
#define SAPDIAG_SUPPORT_BIT_NOTIFY_NEWMODE 0x80 /* 119 */
#define SAPDIAG_SUPPORT_BIT_TOOLBAR_HEIGHT 0x01 /* 120 */
#define SAPDIAG_SUPPORT_BIT_XMLPROP_CONTAINER 0x02 /* 121 */
#define SAPDIAG_SUPPORT_BIT_XMLPROP_DYNPRO 0x04 /* 122 */
#define SAPDIAG_SUPPORT_BIT_DP_HTTP_PUT 0x08 /* 123 */
#define SAPDIAG_SUPPORT_BIT_DYNAMIC_PASSPORT 0x10 /* 124 */
#define SAPDIAG_SUPPORT_BIT_WEBGUI 0x20 /* 125 */
#define SAPDIAG_SUPPORT_BIT_WEBGUI_HELPMODE 0x40 /* 126 */
#define SAPDIAG_SUPPORT_BIT_CONTROL_FOCUS_ON_LIST 0x80 /* 127 */
#define SAPDIAG_SUPPORT_BIT_CBU_RBUDUMMY_2 0x01 /* 128 */
#define SAPDIAG_SUPPORT_BIT_EOKDUMMY_1 0x02 /* 129 */
#define SAPDIAG_SUPPORT_BIT_GUI_USER_SCRIPTING 0x04 /* 130 */
#define SAPDIAG_SUPPORT_BIT_SLC 0x08 /* 131 */
#define SAPDIAG_SUPPORT_BIT_ACCESSIBILITY 0x10 /* 132 */
#define SAPDIAG_SUPPORT_BIT_ECATT 0x20 /* 133 */
#define SAPDIAG_SUPPORT_BIT_ENJOY_IMODEUUID3 0x40 /* 134 */
#define SAPDIAG_SUPPORT_BIT_ENABLE_UTF8 0x80 /* 135 */
#define SAPDIAG_SUPPORT_BIT_R3INFO_AUTOLOGOUT_TIME 0x01 /* 136 */
#define SAPDIAG_SUPPORT_BIT_VARINFO_ICON_TITLE_LIST 0x02 /* 137 */
#define SAPDIAG_SUPPORT_BIT_ENABLE_UTF16BE 0x04 /* 138 */
#define SAPDIAG_SUPPORT_BIT_ENABLE_UTF16LE 0x08 /* 139 */
#define SAPDIAG_SUPPORT_BIT_R3INFO_CODEPAGE_APP 0x10 /* 140 */
#define SAPDIAG_SUPPORT_BIT_ENABLE_APPL4 0x20 /* 141 */
#define SAPDIAG_SUPPORT_BIT_GUIPATCHLEVEL 0x40 /* 142 */
#define SAPDIAG_SUPPORT_BIT_CBURBU_NEW_STATE 0x80 /* 143 */
#define SAPDIAG_SUPPORT_BIT_BINARY_EVENTID 0x01 /* 144 */
#define SAPDIAG_SUPPORT_BIT_GUI_THEME 0x02 /* 145 */
#define SAPDIAG_SUPPORT_BIT_TOP_WINDOW 0x04 /* 146 */
#define SAPDIAG_SUPPORT_BIT_EVENT_DESCRIPTION_1 0x08 /* 147 */
#define SAPDIAG_SUPPORT_BIT_SPLITTER 0x10 /* 148 */
#define SAPDIAG_SUPPORT_BIT_VALUE_4_HISTORY 0x20 /* 149 */
#define SAPDIAG_SUPPORT_BIT_ACC_LIST 0x40 /* 150 */
#define SAPDIAG_SUPPORT_BIT_GUI_USER_SCRIPTING_INFO 0x80 /* 151 */
#define SAPDIAG_SUPPORT_BIT_TEXTEDIT_STREAM 0x01 /* 152 */
#define SAPDIAG_SUPPORT_BIT_DYNT_NOFOCUS 0x02 /* 153 */
#define SAPDIAG_SUPPORT_BIT_R3INFO_CODEPAGE_APP_1 0x04 /* 154 */
#define SAPDIAG_SUPPORT_BIT_FRAME_1 0x08 /* 155 */
#define SAPDIAG_SUPPORT_BIT_TICKET4GUI 0x10 /* 156 */
#define SAPDIAG_SUPPORT_BIT_ACC_LIST_PROPS 0x20 /* 157 */
#define SAPDIAG_SUPPORT_BIT_TABSEL_ATTRIB_INPUT 0x40 /* 158 */
#define SAPDIAG_SUPPORT_BIT_DEFAULT_TOOLTIP 0x80 /* 159 */
#define SAPDIAG_SUPPORT_BIT_XML_PROP_TABLE_2 0x01 /* 160 */
#define SAPDIAG_SUPPORT_BIT_CBU_RBUDUMMY_3 0x02 /* 161 */
#define SAPDIAG_SUPPORT_BIT_CELLINFO 0x04 /* 162 */
#define SAPDIAG_SUPPORT_BIT_CONTROL_FOCUS_ON_LIST_2 0x08 /* 163 */
#define SAPDIAG_SUPPORT_BIT_TABLE_COLUMNWIDTH_INPUT 0x10 /* 164 */
#define SAPDIAG_SUPPORT_BIT_ITS_PLUGIN 0x20 /* 165 */
#define SAPDIAG_SUPPORT_BIT_OBJECT_NAMES_4_LOGIN_PROCESS 0x40 /* 166 */
#define SAPDIAG_SUPPORT_BIT_RFC_SERVER_4_GUI 0x80 /* 167 */
#define SAPDIAG_SUPPORT_BIT_R3INFO_FLAGS_2 0x01 /* 168 */
#define SAPDIAG_SUPPORT_BIT_RCUI 0x02 /* 169 */
#define SAPDIAG_SUPPORT_BIT_MENUENTRY_WITH_FCODE 0x04 /* 170 */
#define SAPDIAG_SUPPORT_BIT_WEBSAPCONSOLE 0x08 /* 171 */
#define SAPDIAG_SUPPORT_BIT_R3INFO_KERNEL_VERSION 0x10 /* 172 */
#define SAPDIAG_SUPPORT_BIT_VARINFO_CONTAINER_LOOP 0x20 /* 173 */
#define SAPDIAG_SUPPORT_BIT_EOKDUMMY_2 0x40 /* 174 */
#define SAPDIAG_SUPPORT_BIT_MESSAGE_INFO3 0x80 /* 175 */
#define SAPDIAG_SUPPORT_BIT_SBA2 0x01 /* 176 */
#define SAPDIAG_SUPPORT_BIT_MAINAREA_SIZE 0x02 /* 177 */
#define SAPDIAG_SUPPORT_BIT_GUIPATCHLEVEL_2 0x04 /* 178 */
#define SAPDIAG_SUPPORT_BIT_DISPLAY_SIZE 0x08 /* 179 */
#define SAPDIAG_SUPPORT_BIT_GUI_PACKET 0x10 /* 180 */
#define SAPDIAG_SUPPORT_BIT_DIALOG_STEP_NUMBER 0x20 /* 181 */
#define SAPDIAG_SUPPORT_BIT_TC_KEEP_SCROLL_POSITION 0x40 /* 182 */
#define SAPDIAG_SUPPORT_BIT_MESSAGE_SERVICE_REQUEST 0x80 /* 183 */
#define SAPDIAG_SUPPORT_BIT_DYNT_FOCUS_FRAME 0x01 /* 184 */
#define SAPDIAG_SUPPORT_BIT_MAX_STRING_LEN 0x02 /* 185 */
#define SAPDIAG_SUPPORT_BIT_VARINFO_CONTAINER_1 0x04 /* 186 */
#define SAPDIAG_SUPPORT_BIT_STD_TOOLBAR_ITEMS 0x08 /* 187 */
#define SAPDIAG_SUPPORT_BIT_XMLPROP_LIST_DYNPRO 0x10 /* 188 */
#define SAPDIAG_SUPPORT_BIT_TRACE_GUI_CONNECT 0x20 /* 189 */
#define SAPDIAG_SUPPORT_BIT_LIST_FULLWIDTH 0x40 /* 190 */
#define SAPDIAG_SUPPORT_BIT_ALLWAYS_SEND_CLIENT 0x80 /* 191 */
#define SAPDIAG_SUPPORT_BIT_UNKNOWN_3 0x01 /* 192 (Unknown support bit) */
#define SAPDIAG_SUPPORT_BIT_GUI_SIGNATURE_COLOR 0x02 /* 193 */
#define SAPDIAG_SUPPORT_BIT_MAX_WSIZE 0x04 /* 194 */
#define SAPDIAG_SUPPORT_BIT_SAP_PERSONAS 0x08 /* 195 */
#define SAPDIAG_SUPPORT_BIT_IDA_ALV 0x10 /* 196 */
#define SAPDIAG_SUPPORT_BIT_IDA_ALV_FRAGMENTS 0x20 /* 197 */
#define SAPDIAG_SUPPORT_BIT_AMC 0x40 /* 198 */
#define SAPDIAG_SUPPORT_BIT_EXTMODE_FONT_METRIC 0x80 /* 199 */
#define SAPDIAG_SUPPORT_BIT_GROUPBOX 0x01 /* 200 */
#define SAPDIAG_SUPPORT_BIT_AGI_ID_TS_BUTTON 0x02 /* 201 */
#define SAPDIAG_SUPPORT_BIT_NO_FOCUS_ON_LIST 0x04 /* 202 */
#define SAPDIAG_SUPPORT_BIT_FIORI_MODE 0x08 /* 203 */
#define SAPDIAG_SUPPORT_BIT_CONNECT_CHECK_DONE 0x10 /* 204 */
#define SAPDIAG_SUPPORT_BIT_MSGINFO_WITH_CODEPAGE 0x20 /* 205 */
#define SAPDIAG_SUPPORT_BIT_AGI_ID 0x40 /* 206 */
#define SAPDIAG_SUPPORT_BIT_AGI_ID_TC 0x80 /* 207 */
#define SAPDIAG_SUPPORT_BIT_FIORI_TOOLBARS 0x01 /* 208 */
#define SAPDIAG_SUPPORT_BIT_OBJECT_NAMES_ENFORCE 0x02 /* 209 */
#define SAPDIAG_SUPPORT_BIT_MESDUMMY_FLAGS_2_3 0x04 /* 210 */
#define SAPDIAG_SUPPORT_BIT_NWBC 0x08 /* 211 */
#define SAPDIAG_SUPPORT_BIT_CONTAINER_LIST 0x10 /* 212 */
#define SAPDIAG_SUPPORT_BIT_GUI_SYSTEM_COLOR 0x20 /* 213 */
#define SAPDIAG_SUPPORT_BIT_GROUPBOX_WITHOUT_BOTTOMLINE 0x40 /* 214 */
/* SAP Diag DP Header New Status values */
static const value_string sapdiag_dp_new_stat_vals[] = {
{ 0x00, "NO_CHANGE" },
{ 0x01, "WP_SLOT_FREE" },
{ 0x02, "WP_WAIT" },
{ 0x04, "WP_RUN" },
{ 0x08, "WP_HOLD" },
{ 0x10, "WP_KILLED" },
{ 0x20, "WP_SHUTDOWN" },
{ 0x40, "WP_RESTRICTED" },
{ 0x80, "WP_NEW" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item Type values */
static const value_string sapdiag_item_type_vals[] = {
{ 0x01, "SES" },
{ 0x02, "ICO" },
{ 0x03, "TIT" },
{ 0x07, "DiagMessage (old format)" },
{ 0x08, "OKC" },
{ 0x09, "CHL" },
{ 0x0a, "SFE" },
{ 0x0b, "SBA" },
{ 0x0c, "EOM" },
{ 0x10, "APPL" },
{ 0x11, "DIAG_XMLBLOB" },
{ 0x12, "APPL4" },
{ 0x13, "SLC" },
{ 0x15, "SBA2" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 ID values */
static const value_string sapdiag_item_id_vals[] = {
{ 0x01, "SCRIPT" },
{ 0x02, "GRAPH" },
{ 0x03, "IXOS" },
{ 0x04, "ST_USER" },
{ 0x05, "DYNN" },
{ 0x06, "ST_R3INFO" },
{ 0x07, "POPU" },
{ 0x08, "RFC_TR" },
{ 0x09, "DYNT" },
{ 0x0a, "CONTAINER" },
{ 0x0b, "MNUENTRY" },
{ 0x0c, "VARINFO" },
{ 0x0e, "CONTROL" },
{ 0x0f, "UI_EVENT" },
{ 0x12, "ACC_LIST" },
{ 0x13, "RCUI" },
{ 0x14, "GUI_PACKET" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 SCRIPT SID values */
static const value_string sapdiag_item_appl_script_vals[] = {
/* SCRIPT */
{ 0x01, "SCRIPT_OTF" },
{ 0x02, "SCRIPT_SCREEN" },
{ 0x03, "SCRIPT_POSTSCRIPT" },
{ 0x04, "SCRIPT_ITF" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 GRAPH SID values */
static const value_string sapdiag_item_appl_graph_vals[] = {
/* GRAPH */
{ 0x03, "GRAPH RELEASE 3" },
{ 0x05, "GRAPH RELEASE 5" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 IXOS SID values */
static const value_string sapdiag_item_appl_ixos_vals[] = {
/* IXOS */
{ 0x01, "ABLAGE" },
{ 0x02, "ANZEIGE" },
{ 0x03, "IXOS_COMMAND" },
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 ST_USER SID values */
static const value_string sapdiag_item_appl_st_user_vals[] = {
/* ST_USER */
{ 0x01, "V1" },
{ 0x02, "CONNECT" },
{ 0x03, "SELECTEDRECT" },
{ 0x04, "FONTMETRIC" },
{ 0x05, "TABLEMETRIC" },
{ 0x06, "GUITIME" },
{ 0x07, "GUITIMEZONE" },
{ 0x08, "TURNTIME" },
{ 0x09, "GUIVERSION" },
{ 0x0b, "SUPPORTDATA" },
{ 0x0c, "RFC_CONNECT" },
{ 0x0d, "WSIZE" },
{ 0x0e, "V2" },
{ 0x0f, "TURNTIME2" },
{ 0x10, "RFC_PARENT_UUID" },
{ 0x11, "RFC_NEW_UUID" },
{ 0x12, "RFC_UUIDS" },
{ 0x13, "RFC_UUIDS2" },
{ 0x14, "XML_LOGIN" },
{ 0x15, "XML_TRANSACTION" },
{ 0x16, "SCROLLBAR_WIDTH" },
{ 0x17, "TOOLBAR_HEIGHT" },
{ 0x18, "PASSPORT_DATA" },
{ 0x19, "GUI_STATE" },
{ 0x1a, "DECIMALPOINT" },
{ 0x1b, "LANGUAGE" },
{ 0x1c, "USERNAME" },
{ 0x1d, "GUIPATCHLEVEL" },
{ 0x1e, "WSIZE_PIXEL" },
{ 0x1f, "GUI_OS_VERSION" },
{ 0x20, "BROWSER_VERSION" },
{ 0x21, "OFFICE_VERSION" },
{ 0x22, "JDK_VERSION" },
{ 0x23, "GUIXT_VERSION" },
{ 0x24, "DISPLAY_SIZE" },
{ 0x25, "GUI_TYPE" },
{ 0x26, "DIALOG_STEP_NUMBER" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 DYNN SID values */
static const value_string sapdiag_item_appl_dynn_vals[] = {
/* DYNN */
{ 0x01, "CHL" },
{ 0x03, "XMLPROP DYNPRO" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 ST_R3INFO SID values */
static const value_string sapdiag_item_appl_st_r3info_vals[] = {
/* ST_R3INFO */
{ 0x01, "MODENUMBER" },
{ 0x02, "DBNAME" },
{ 0x03, "CPUNAME" },
{ 0x04, "RFC_TRIGGER" },
{ 0x05, "GUI_LABEL" },
{ 0x06, "DIAGVERSION" },
{ 0x07, "TCODE" },
{ 0x08, "RFC_WAITING" },
{ 0x09, "RFC_REFRESH" },
{ 0x0a, "IMODENUMBER" },
{ 0x0b, "MESSAGE" },
{ 0x0c, "CLIENT" },
{ 0x0d, "DYNPRONAME" },
{ 0x0e, "DYNPRONUMBER" },
{ 0x0f, "CUANAME" },
{ 0x10, "CUASTATUS" },
{ 0x11, "SUPPORTDATA" },
{ 0x12, "RFC_CONNECT_OK" },
{ 0x13, "GUI_FKEY" },
{ 0x14, "GUI_FKEYT" },
{ 0x15, "STOP_TRANS" },
{ 0x16, "RFC_DIAG_BLOCK_SIZE" },
{ 0x17, "USER_CHECKED" },
{ 0x18, "FLAGS" },
{ 0x19, "USERID" },
{ 0x1a, "ROLLCOUNT" },
{ 0x1b, "GUI_XT_VAR" },
{ 0x1c, "IMODEUUID" },
{ 0x1d, "IMODEUUID_INVALIDATE" },
{ 0x1e, "IMODEUUIDS" },
{ 0x1f, "IMODEUUIDS2" },
{ 0x20, "CODEPAGE" },
{ 0x21, "CONTEXTID" },
{ 0x22, "AUTOLOGOUT_TIME" },
{ 0x23, "CODEPAGE_DIAG_GUI" },
{ 0x24, "CODEPAGE_APP_SERVER" },
{ 0x25, "GUI_THEME" },
{ 0x26, "GUI_USER_SCRIPTING" },
{ 0x27, "CODEPAGE_APP_SERVER_1" },
{ 0x28, "TICKET4GUI" },
{ 0x29, "KERNEL_VERSION" },
{ 0x2a, "STD_TOOLBAR_ITEMS" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 POPU SID values */
static const value_string sapdiag_item_appl_popu_vals[] = {
/* POPU */
{ 0x02, "DEST" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 RFC_TR SID values */
static const value_string sapdiag_item_appl_rfc_tr_vals[] = {
/* RFC_TR */
{ 0x00, "RFC_TR_REQ" },
{ 0x01, "RFC_TR_RET" },
{ 0x02, "RFC_TR_ERR" },
{ 0x03, "RFC_TR_RQT" },
{ 0x04, "RFC_TR_MOR" },
{ 0x05, "RFC_TR_MOB" },
{ 0x06, "RFC_TR_RNB" },
{ 0x07, "RFC_TR_RNT" },
{ 0x08, "RFC_TR_DIS" },
{ 0x09, "RFC_TR_CALL" },
{ 0x0a, "RFC_TR_CALL_END" },
{ 0x0b, "RFC_TR_RES" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 DYNT SID values */
static const value_string sapdiag_item_appl_dynt_vals[] = {
/* DYNT */
{ 0x01, "DYNT_FOCUS" },
{ 0x02, "DYNT_ATOM" },
{ 0x03, "DYNT_EVENT_UNUSED" },
{ 0x04, "TABLE_ROW_REFERENCE" },
{ 0x05, "TABLE_ROW_DAT_INPUT_DUMMY" },
{ 0x06, "TABLE_INPUT_HEADER" },
{ 0x07, "TABLE_OUTPUT_HEADER" },
{ 0x08, "TABLE_ROW_DATA_INPUT" },
{ 0x09, "TABLE_ROW_DATA_OUTPUT" },
{ 0x0a, "DYNT_NOFOCUS" },
{ 0x0b, "DYNT_FOCUS_1" },
{ 0x0c, "TABLE_ROW_REFERENCE_1" },
{ 0x0d, "TABLE_FIELD_NAMES" },
{ 0x0e, "TABLE_HEADER" },
{ 0x0f, "DYNT_TABSTRIP_HEADER" },
{ 0x10, "DYNT_TABSTRIP_BUTTONS" },
{ 0x11, "TABLE_ROW_REFERENCE_2" },
{ 0x12, "DYNT_CONTROL_FOCUS" },
{ 0x13, "TABLE_FIELD_XMLPROP" },
{ 0x14, "DYNT_SPLITTER_HEADER" },
{ 0x15, "DYNT_TC_COLUMN_TITLE_XMLP" },
{ 0x16, "DYNT_TC_ROW_SELECTOR_NAME" },
{ 0x17, "DYNT_FOCUS_FRAME" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 CONTAINER SID values */
static const value_string sapdiag_item_appl_container_vals[] = {
/* CONTAINTER */
{ 0x01, "RESET" },
{ 0x02, "DEFAULT" },
{ 0x03, "SUBSCREEN" },
{ 0x04, "LOOP" },
{ 0x05, "TABLE" },
{ 0x06, "NAME" },
{ 0x08, "TABSTRIP" },
{ 0x09, "TABSTRIP_PAGE" },
{ 0x0a, "CONTROL" },
{ 0x0c, "XMLPROP" },
{ 0x0d, "SPLITTER" },
{ 0x0e, "SPLITTER_CELL" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 MNUENTRY SID values */
static const value_string sapdiag_item_appl_mnuentry_vals[] = {
/* MNUENTRY */
{ 0x01, "MENU_ACT" },
{ 0x02, "MENU_MNU" },
{ 0x03, "MENU_PFK" },
{ 0x04, "MENU_KYB" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 VARINFO SID values */
static const value_string sapdiag_item_appl_varinfo_vals[] = {
/* VARINFO */
{ 0x01, "MESTYPE" },
{ 0x02, "SCROLL_INFOS" },
{ 0x03, "MESTYPE2" },
{ 0x04, "OKCODE" },
{ 0x05, "CONTAINER" },
{ 0x06, "SCROLL_INFOS2" },
{ 0x07, "AREASIZE" },
{ 0x08, "AREA_PIXELSIZE" },
{ 0x09, "SESSION_TITLE" },
{ 0x0a, "SESSION_ICON" },
{ 0x0b, "LIST_CELL_TEXT" },
{ 0x0c, "CONTAINER_LOOP" },
{ 0x0d, "LIST_FOCUS" },
{ 0x0e, "MAINAREA_PIXELSIZE" },
{ 0x0f, "SERVICE_REQUEST" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 CONTROl SID values */
static const value_string sapdiag_item_appl_control_vals[] = {
/* CONTROL */
{ 0x01, "CONTROL_PROPERTIES" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 UI_EVENT SID values */
static const value_string sapdiag_item_appl_ui_event_vals[] = {
/* UI_EVENT */
{ 0x01, "UI_EVENT_SOURCE" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 ACC_LIST SID values */
static const value_string sapdiag_item_appl_acc_list_vals[] = {
/* ACC_LIST */
{ 0x01, "ACC_LIST_INFO4FIELD" },
{ 0x02, "ACC_LIST_CONTAINER" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 RCUI SID values */
static const value_string sapdiag_item_appl_rcui_vals[] = {
/* RCUI */
{ 0x01, "RCUI_STREAM" },
{ 0x02, "RCUI_SYSTEM_ERROR" },
{ 0x03, "RCUI_SPAGPA" },
{ 0x04, "RCUI_MEMORYID" },
{ 0x05, "RCUI_TXOPTION" },
{ 0x06, "RCUI_VALUE" },
{ 0x07, "RCUI_COMMAND" },
{ 0x08, "RCUI_BDCMSG" },
{ 0x09, "RCUI_CONNECT_DATA" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Item APPL/APPL4 GUI_PACKET SID values */
static const value_string sapdiag_item_appl_gui_packet_vals[] = {
/* GUI_PACKET */
{ 0x01, "GUI_PACKET_STATE" },
{ 0x02, "GUI_PACKET_DATA" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Dynt Atom Etype values */
static const value_string sapdiag_item_dynt_atom_item_etype_vals[] = {
{ 101, "DIAG_DGOTYP_EFIELD" },
{ 102, "DIAG_DGOTYP_OFIELD" },
{ 103, "DIAG_DGOTYP_KEYWORD" },
{ 104, "DIAG_DGOTYP_CHECKBUTTON_4" },
{ 105, "DIAG_DGOTYP_RADIOBUTTON_0" },
{ 106, "DIAG_DGOTYP_PUSHBUTTON_3" },
{ 107, "DIAG_DGOTYP_FRAME_3" },
{ 108, "DIAG_DGOTYP_LOOP_6" },
{ 109, "DIAG_DGOTYP_SUBSCREEN" },
{ 111, "DIAG_DGOTYP_PROPERTY" },
{ 112, "DIAG_DGOTYP_ICON_0" },
{ 113, "DIAG_DGOTYP_PUSHBUTTON_1" },
{ 114, "DIAG_DGOTYP_FNAME" },
{ 115, "DIAG_DGOTYP_PUSHBUTTON_2" },
{ 116, "DIAG_DGOTYP_TABSTRIP_BUTTON" },
{ 117, "DIAG_DGOTYP_COMBOBOX" },
{ 118, "DIAG_DGOTYP_CHECKBUTTON_1" },
{ 119, "DIAG_DGOTYP_RADIOBUTTON_1" },
{ 120, "DIAG_DGOTYP_XMLPROP" },
{ 121, "DIAG_DGOTYP_EFIELD_1" },
{ 122, "DIAG_DGOTYP_OFIELD_1" },
{ 123, "DIAG_DGOTYP_KEYWORD_1_1" },
{ 124, "DIAG_DGOTYP_CHECKBUTTON_2" },
{ 125, "DIAG_DGOTYP_RADIOBUTTON__0" },
{ 126, "DIAG_DGOTYP_COMBOBOX_1" },
{ 127, "DIAG_DGOTYP_FRAME_1" },
{ 128, "DIAG_DGOTYP_CHECKBUTTON_3" },
{ 129, "DIAG_DGOTYP_RADIOBUTTON_3" },
{ 130, "DIAG_DGOTYP_EFIELD_2" },
{ 131, "DIAG_DGOTYP_OFIELD_2" },
{ 132, "DIAG_DGOTYP_KEYWORD_2" },
/* NULL */
{ 000, NULL }
};
/* SAP Diag UI Event Source Event Type Values */
static const value_string sapdiag_item_ui_event_event_type_vals[] = {
{ 0x01, "SELECT" },
{ 0x02, "HE" },
{ 0x03, "VALUEHELP" },
{ 0x06, "RESIZE" },
{ 0x07, "FUNCTIONKEY" },
{ 0x08, "SCROLL" },
{ 0x09, "BUTTONPRESSED" },
{ 0x0a, "VALUECHANGED" },
{ 0x0b, "STATECHANGED" },
{ 0x0c, "NAVIGATION" },
/* NULL */
{ 0x00, NULL }
};
static const value_string sapdiag_item_ui_event_control_type_vals[] = {
{ 0x00, "NONE" },
{ 0x01, "FIELD" },
{ 0x02, "RADIOBUTTON" },
{ 0x03, "CHECKBUTTON" },
{ 0x04, "MENUBUTTON" },
{ 0x05, "TOOLBARBUTTON" },
{ 0x06, "STANDARDTOOLBARBUTTON" },
{ 0x07, "PUSHBUTTON" },
{ 0x08, "TABLEVIEW" },
{ 0x09, "TABSTRIP" },
{ 0x0a, "DYNPRO" },
{ 0x0b, "CUSTOM_CONTROL" },
{ 0x0d, "FRAME" },
{ 0x0e, "TABLEVIEW_COLSEL_BUTTON" },
{ 0x0f, "TABLEVIEW_ROWSEL_BUTTON" },
{ 0x10, "TABLEVIEW_CELL" },
{ 0x11, "CONTEXTMENU" },
{ 0x12, "SPLITTER" },
{ 0x13, "MESSAGE" },
{ 0x14, "OKCODE" },
{ 0x15, "ACC_CONTAINER" },
/* NULL */
{ 0x00, NULL }
};
static const value_string sapdiag_item_ui_event_navigation_data_vals[] = {
{ 0x01, "TAB" },
{ 0x02, "TAB_BACK" },
{ 0x03, "JUMP_OVER" },
{ 0x04, "JUMP_OVER_BACK" },
{ 0x05, "JUMP_OUT" },
{ 0x06, "JUMP_OUT_BACK" },
{ 0x07, "JUMP_SECTION" },
{ 0x08, "JUMP_SECTION_BACK" },
{ 0x09, "FIRST_FIELD" },
{ 0x0a, "LAST_FIELD" },
/* NULL */
{ 0x00, NULL }
};
static const value_string sapdiag_item_control_properties_id_vals[] = {
{ 0x01, "CONTROL_AREA" },
{ 0x02, "CONTROL_ID" },
{ 0x03, "CONTROL_VISIBLE" },
{ 0x04, "CONTROL_ROW" },
{ 0x05, "CONTROL_COLUMN" },
{ 0x06, "CONTROL_ROWS" },
{ 0x07, "CONTROL_COLUMNS" },
/* NULL */
{ 0x00, NULL }
};
/* SAP Diag Dynt Atom Attr flags */
#define SAPDIAG_ATOM_ATTR_DIAG_BSD_PROTECTED 0x01
#define SAPDIAG_ATOM_ATTR_DIAG_BSD_INVISIBLE 0x02
#define SAPDIAG_ATOM_ATTR_DIAG_BSD_INTENSIFY 0x04
#define SAPDIAG_ATOM_ATTR_DIAG_BSD_JUSTRIGHT 0x08
#define SAPDIAG_ATOM_ATTR_DIAG_BSD_MATCHCODE 0x10
#define SAPDIAG_ATOM_ATTR_DIAG_BSD_PROPFONT 0x20
#define SAPDIAG_ATOM_ATTR_DIAG_BSD_YES3D 0x40
#define SAPDIAG_ATOM_ATTR_DIAG_BSD_COMBOSTYLE 0x80
/* SAP Diag UI Event Source flags */
#define SAPDIAG_UI_EVENT_VALID_FLAG_MENU_POS 0x01
#define SAPDIAG_UI_EVENT_VALID_FLAG_CONTROL_POS 0x02
#define SAPDIAG_UI_EVENT_VALID_FLAG_NAVIGATION_DATA 0x04
#define SAPDIAG_UI_EVENT_VALID_FLAG_FUNCTIONKEY_DATA 0x08
static int proto_sapdiag = -1;
static int hf_sapdiag_dp = -1;
static int hf_sapdiag_header = -1;
static int hf_sapdiag_payload = -1;
/* Diag Header */
static int hf_sapdiag_mode = -1;
static int hf_sapdiag_com_flag = -1;
static int hf_sapdiag_com_flag_TERM_EOS = -1;
static int hf_sapdiag_com_flag_TERM_EOC = -1;
static int hf_sapdiag_com_flag_TERM_NOP = -1;
static int hf_sapdiag_com_flag_TERM_EOP = -1;
static int hf_sapdiag_com_flag_TERM_INI = -1;
static int hf_sapdiag_com_flag_TERM_CAS = -1;
static int hf_sapdiag_com_flag_TERM_NNM = -1;
static int hf_sapdiag_com_flag_TERM_GRA = -1;
static int hf_sapdiag_mode_stat = -1;
static int hf_sapdiag_err_no = -1;
static int hf_sapdiag_msg_type = -1;
static int hf_sapdiag_msg_info = -1;
static int hf_sapdiag_msg_rc = -1;
static int hf_sapdiag_compress = -1;
/* Error messages */
static int hf_sapdiag_error_message = -1;
/* Compression header */
static int hf_sapdiag_compress_header = -1;
static int hf_sapdiag_uncomplength = -1;
static int hf_sapdiag_algorithm = -1;
static int hf_sapdiag_magic = -1;
static int hf_sapdiag_special = -1;
static int hf_sapdiag_decompress_return_code = -1;
/* Message Data */
static int hf_sapdiag_item = -1;
static int hf_sapdiag_item_type = -1;
static int hf_sapdiag_item_id = -1;
static int hf_sapdiag_item_sid = -1;
static int hf_sapdiag_item_length = -1;
static int hf_sapdiag_item_value = -1;
/* Message DP Header */
static int hf_sapdiag_dp_request_id = -1;
static int hf_sapdiag_dp_retcode = -1;
static int hf_sapdiag_dp_sender_id = -1;
static int hf_sapdiag_dp_action_type = -1;
static int hf_sapdiag_dp_req_info = -1;
static int hf_sapdiag_dp_req_info_LOGIN = -1;
static int hf_sapdiag_dp_req_info_LOGOFF = -1;
static int hf_sapdiag_dp_req_info_SHUTDOWN = -1;
static int hf_sapdiag_dp_req_info_GRAPHIC_TM = -1;
static int hf_sapdiag_dp_req_info_ALPHA_TM = -1;
static int hf_sapdiag_dp_req_info_ERROR_FROM_APPC = -1;
static int hf_sapdiag_dp_req_info_CANCELMODE = -1;
static int hf_sapdiag_dp_req_info_MSG_WITH_REQ_BUF = -1;
static int hf_sapdiag_dp_req_info_MSG_WITH_OH = -1;
static int hf_sapdiag_dp_req_info_BUFFER_REFRESH = -1;
static int hf_sapdiag_dp_req_info_BTC_SCHEDULER = -1;
static int hf_sapdiag_dp_req_info_APPC_SERVER_DOWN = -1;
static int hf_sapdiag_dp_req_info_MS_ERROR = -1;
static int hf_sapdiag_dp_req_info_SET_SYSTEM_USER = -1;
static int hf_sapdiag_dp_req_info_DP_CANT_HANDLE_REQ = -1;
static int hf_sapdiag_dp_req_info_DP_AUTO_ABAP = -1;
static int hf_sapdiag_dp_req_info_DP_APPL_SERV_INFO = -1;
static int hf_sapdiag_dp_req_info_DP_ADMIN = -1;
static int hf_sapdiag_dp_req_info_DP_SPOOL_ALRM = -1;
static int hf_sapdiag_dp_req_info_DP_HAND_SHAKE = -1;
static int hf_sapdiag_dp_req_info_DP_CANCEL_PRIV = -1;
static int hf_sapdiag_dp_req_info_DP_RAISE_TIMEOUT = -1;
static int hf_sapdiag_dp_req_info_DP_NEW_MODE = -1;
static int hf_sapdiag_dp_req_info_DP_SOFT_CANCEL = -1;
static int hf_sapdiag_dp_req_info_DP_TM_INPUT = -1;
static int hf_sapdiag_dp_req_info_DP_TM_OUTPUT = -1;
static int hf_sapdiag_dp_req_info_DP_ASYNC_RFC = -1;
static int hf_sapdiag_dp_req_info_DP_ICM_EVENT = -1;
static int hf_sapdiag_dp_req_info_DP_AUTO_TH = -1;
static int hf_sapdiag_dp_req_info_DP_RFC_CANCEL = -1;
static int hf_sapdiag_dp_req_info_DP_MS_ADM = -1;
static int hf_sapdiag_dp_tid = -1;
static int hf_sapdiag_dp_uid = -1;
static int hf_sapdiag_dp_mode = -1;
static int hf_sapdiag_dp_wp_id = -1;
static int hf_sapdiag_dp_wp_ca_blk = -1;
static int hf_sapdiag_dp_appc_ca_blk = -1;
static int hf_sapdiag_dp_len = -1; /* Length of the SAP Diag Items in the login */
static int hf_sapdiag_dp_new_stat = -1;
static int hf_sapdiag_dp_rq_id = -1;
static int hf_sapdiag_dp_terminal = -1;
/* Dynt Atom */
static int hf_sapdiag_item_dynt_atom = -1;
static int hf_sapdiag_item_dynt_atom_item = -1;
static int hf_sapdiag_item_dynt_atom_item_etype = -1;
static int hf_sapdiag_item_dynt_atom_item_attr = -1;
static int hf_sapdiag_item_dynt_atom_item_attr_DIAG_BSD_COMBOSTYLE = -1;
static int hf_sapdiag_item_dynt_atom_item_attr_DIAG_BSD_YES3D = -1;
static int hf_sapdiag_item_dynt_atom_item_attr_DIAG_BSD_PROPFONT = -1;
static int hf_sapdiag_item_dynt_atom_item_attr_DIAG_BSD_MATCHCODE = -1;
static int hf_sapdiag_item_dynt_atom_item_attr_DIAG_BSD_JUSTRIGHT = -1;
static int hf_sapdiag_item_dynt_atom_item_attr_DIAG_BSD_INTENSIFY = -1;
static int hf_sapdiag_item_dynt_atom_item_attr_DIAG_BSD_INVISIBLE = -1;
static int hf_sapdiag_item_dynt_atom_item_attr_DIAG_BSD_PROTECTED = -1;
/* Control properties */
static int hf_sapdiag_item_control_properties_id = -1;
static int hf_sapdiag_item_control_properties_value = -1;
/* UI Event Source */
static int ht_sapdiag_item_ui_event_event_type = -1;
static int ht_sapdiag_item_ui_event_control_type = -1;
static int ht_sapdiag_item_ui_event_valid = -1;
static int ht_sapdiag_item_ui_event_valid_MENU_POS = -1;
static int ht_sapdiag_item_ui_event_valid_CONTROL_POS = -1;
static int ht_sapdiag_item_ui_event_valid_NAVIGATION_DATA = -1;
static int ht_sapdiag_item_ui_event_valid_FUNCTIONKEY_DATA = -1;
static int ht_sapdiag_item_ui_event_control_row = -1;
static int ht_sapdiag_item_ui_event_control_col = -1;
static int ht_sapdiag_item_ui_event_data = -1;
static int ht_sapdiag_item_ui_event_navigation_data = -1;
static int ht_sapdiag_item_ui_event_container_nrs = -1;
static int ht_sapdiag_item_ui_event_container = -1;
/* Menu Entries */
static int hf_sapdiag_item_menu_entry = -1;
/* Diag Support Bits */
static int hf_SAPDIAG_SUPPORT_BIT_PROGRESS_INDICATOR = -1;
static int hf_SAPDIAG_SUPPORT_BIT_SAPGUI_LABELS = -1;