summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tn5250.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-tn5250.c')
-rw-r--r--epan/dissectors/packet-tn5250.c1490
1 files changed, 745 insertions, 745 deletions
diff --git a/epan/dissectors/packet-tn5250.c b/epan/dissectors/packet-tn5250.c
index c799dade..c97f3b9c 100644
--- a/epan/dissectors/packet-tn5250.c
+++ b/epan/dissectors/packet-tn5250.c
@@ -29,8 +29,8 @@ void proto_register_tn5250(void);
typedef struct tn5250_conv_info_t {
struct tn5250_conv_info_t *next;
- guint32 outbound_port;
- gint extended;
+ uint32_t outbound_port;
+ int extended;
} tn5250_conv_info_t;
/* 13.4 SNA LU 4 and LU 7 Negative Responses */
@@ -601,11 +601,11 @@ static const struct true_false_string tn5250_field_wdsf_cw_bp_flag1_1 = {
#define WTF_BITS 0xC0
static const value_string vals_tn5250_wdsf_cw_tf_flag_orientation[] = {
- { 0x00, "Window Title or Footer is Centered"},
- { 0x40, "Window Title or Footer is Right Justified"},
- { 0x80, "Window Title or Footer is Left Justified"},
- { 0xC0, "Reserved (Window Title or Footer is Centered)"},
- { 0x00, NULL }
+ { 0, "Window Title or Footer is Centered"},
+ { 1, "Window Title or Footer is Right Justified"},
+ { 2, "Window Title or Footer is Left Justified"},
+ { 3, "Reserved (Window Title or Footer is Centered)"},
+ { 0, NULL }
};
static const struct true_false_string tn5250_field_wdsf_cw_tf_flag_1 = {
@@ -651,11 +651,11 @@ static const value_string vals_tn5250_wdsf_ds_flag1_mouse_characteristics[] = {
#define DS_AUTO_ENTER_BITS 0x30
static const value_string vals_tn5250_wdsf_ds_flag1_auto_enter[] = {
- { 0x00, "Selection field is not auto-enter"},
- { 0x20, "Selection field is auto-enter on selection except if double-digit numeric selection is used."},
- { 0x10, "Selection field is auto-enter on selection or deselection except if double-digit numeric selection is used. "},
- { 0x30, "Selection field is auto-enter on selection except if single-digit or double-digit numeric selection is used."},
- { 0x00, NULL }
+ { 0, "Selection field is not auto-enter"},
+ { 2, "Selection field is auto-enter on selection except if double-digit numeric selection is used."},
+ { 1, "Selection field is auto-enter on selection or deselection except if double-digit numeric selection is used. "},
+ { 3, "Selection field is auto-enter on selection except if single-digit or double-digit numeric selection is used."},
+ { 0, NULL }
};
static const struct true_false_string tn5250_field_wdsf_ds_flag1_1 = {
@@ -752,9 +752,9 @@ static const value_string vals_tn5250_wdsf_ds_gdc_indicators[] = {
{ 0x00, NULL }
};
-#define DS_SELECTION_TECHNIQUES1 0x20
-#define DS_SELECTION_TECHNIQUES2 0x40
-#define DS_SELECTION_TECHNIQUES3 0xE0
+#define DS_SELECTION_TECHNIQUES1 0x1
+#define DS_SELECTION_TECHNIQUES2 0x2
+#define DS_SELECTION_TECHNIQUES3 0x7
#define DS_SELECTION_TECHNIQUES_BITS 0xE0
static const value_string vals_tn5250_wdsf_ds_gdc_selection_techniques[] = {
@@ -784,11 +784,11 @@ static const value_string vals_tn5250_wdsf_ds_nws_indicators[] = {
{ 0x00, NULL }
};
-#define DS_NWS_SELECTION_TECHNIQUES1 0x20
-#define DS_NWS_SELECTION_TECHNIQUES2 0x40
-#define DS_NWS_SELECTION_TECHNIQUES3 0x80
-#define DS_NWS_SELECTION_TECHNIQUES4 0xA0
-#define DS_NWS_SELECTION_TECHNIQUES5 0xE0
+#define DS_NWS_SELECTION_TECHNIQUES1 0x1
+#define DS_NWS_SELECTION_TECHNIQUES2 0x2
+#define DS_NWS_SELECTION_TECHNIQUES3 0x4
+#define DS_NWS_SELECTION_TECHNIQUES4 0x5
+#define DS_NWS_SELECTION_TECHNIQUES5 0x7
#define DS_NWS_SELECTION_TECHNIQUES_BITS 0xE0
static const value_string vals_tn5250_wdsf_ds_nws_selection_techniques[] = {
@@ -835,9 +835,9 @@ static const struct true_false_string tn5250_field_wdsf_ds_ct_flag1_5 = {
"No Action"
};
-#define DS_NUMERIC_SELECTION_NOT_INCLUDED 0x00
-#define DS_NUMERIC_SELECTION_SINGLE_DIGIT 0x40
-#define DS_NUMERIC_SELECTION_DOUBLE_DIGIT 0x80
+#define DS_NUMERIC_SELECTION_NOT_INCLUDED 0x0
+#define DS_NUMERIC_SELECTION_SINGLE_DIGIT 0x1
+#define DS_NUMERIC_SELECTION_DOUBLE_DIGIT 0x2
#define DS_NUMERIC_SELECTION_BITS 0xC0
static const value_string vals_tn5250_wdsf_ds_ct_flag1_numeric_selection[] = {
@@ -1495,12 +1495,12 @@ static const struct true_false_string tn5250_field_dtsf_flag2_3 = {
};
static const range_string vals_tn5250_dtsf_flag2_vals[] = {
- { 0x00, 0x70, "Reserved"},
- { 0x80, 0x80, "System Version 2 Release 2.0"},
- { 0x90, 0x90, "System Version 2 Release 3.0"},
- { 0xA0, 0xA0, "System Version 3 Release 0.5"},
- { 0xB0, 0xB0, "System Version 3 Release 1.0"},
- { 0xC0, 0xF0, "Reserved"},
+ { 0x0, 0x7, "Reserved"},
+ { 0x8, 0x8, "System Version 2 Release 2.0"},
+ { 0x9, 0x9, "System Version 2 Release 3.0"},
+ { 0xA, 0xA, "System Version 3 Release 0.5"},
+ { 0xB, 0xB, "System Version 3 Release 1.0"},
+ { 0xC, 0xF, "Reserved"},
{ 0, 0, NULL}
};
@@ -1999,7 +1999,7 @@ static const range_string vals_tn5250_attention_identification_bytes[] = {
{ AID_INBOUND_WRITE_STRUCTURED_FIELD , AID_INBOUND_WRITE_STRUCTURED_FIELD , "AID Inbound Write Structured Field"},
{ AID_IMAGE_FAX_REQUEST , AID_IMAGE_FAX_REQUEST , "Image/Fax Request Aid"},
{ AID_UNKNOWN_IMAGE_FAX_FORMAT , AID_UNKNOWN_IMAGE_FAX_FORMAT , "Unknown Image/Fax Format Aid"},
- { AID_IMAGE_FAX_ERROR , AID_IMAGE_FAX_ERROR , " Image/Fax Error Reporting Aid"},
+ { AID_IMAGE_FAX_ERROR , AID_IMAGE_FAX_ERROR , "Image/Fax Error Reporting Aid"},
{ 0x00, 0x00, NULL}
};
@@ -2071,9 +2071,9 @@ static const struct true_false_string tn5250_field_qr_flag1_7 = {
};
static const value_string vals_tn5250_qr_flag2_0to3[] = {
- { 0x10, "24 x 80 Screen Size"},
- { 0x30, "Capable of 24 x 80 and 27 x 132"},
- { 0x00, NULL }
+ { 0x1, "24 x 80 Screen Size"},
+ { 0x3, "Capable of 24 x 80 and 27 x 132"},
+ { 0, NULL }
};
static const struct true_false_string tn5250_field_qr_flag2_4 = {
@@ -2287,619 +2287,619 @@ static const range_string vals_tn5250_reserved[] = {
};
-static int proto_tn5250 = -1;
-static int hf_tn5250_aid = -1;
-static int hf_tn5250_attn_key = -1;
-static int hf_tn5250_attribute_type = -1;
-static int hf_tn5250_buffer_x = -1;
-static int hf_tn5250_buffer_y = -1;
-static int hf_tn5250_command_code = -1;
-static int hf_tn5250_ctp_lsid = -1;
-static int hf_tn5250_ctp_mlpp = -1;
-static int hf_tn5250_cua_parm = -1;
-static int hf_tn5250_dawt_char = -1;
-static int hf_tn5250_dawt_id = -1;
-static int hf_tn5250_dawt_length = -1;
-static int hf_tn5250_dawt_message = -1;
-static int hf_tn5250_dckf_function_code = -1;
-static int hf_tn5250_dckf_id = -1;
-static int hf_tn5250_dckf_key_code = -1;
-static int hf_tn5250_dckf_length = -1;
-static int hf_tn5250_dckf_prompt_text = -1;
-static int hf_tn5250_dfdpck_coreflag = -1;
-static int hf_tn5250_dfdpck_coreflag_0 = -1;
-static int hf_tn5250_dfdpck_coreflag_1 = -1;
-static int hf_tn5250_dfdpck_coreflag_2 = -1;
-static int hf_tn5250_dfdpck_coreflag_3 = -1;
-static int hf_tn5250_dfdpck_coreflag_4 = -1;
-static int hf_tn5250_dfdpck_coreflag_5 = -1;
-static int hf_tn5250_dfdpck_coreflag_6 = -1;
-static int hf_tn5250_dfdpck_coreflag_7 = -1;
-static int hf_tn5250_dfdpck_data_field = -1;
-static int hf_tn5250_dfdpck_partition = -1;
-static int hf_tn5250_dfdpck_toprowflag1 = -1;
-static int hf_tn5250_dfdpck_toprowflag1_0 = -1;
-static int hf_tn5250_dfdpck_toprowflag1_1 = -1;
-static int hf_tn5250_dfdpck_toprowflag1_2 = -1;
-static int hf_tn5250_dfdpck_toprowflag1_3 = -1;
-static int hf_tn5250_dfdpck_toprowflag1_4 = -1;
-static int hf_tn5250_dfdpck_toprowflag1_5 = -1;
-static int hf_tn5250_dfdpck_toprowflag1_6 = -1;
-static int hf_tn5250_dfdpck_toprowflag1_7 = -1;
-static int hf_tn5250_dfdpck_toprowflag2 = -1;
-static int hf_tn5250_dfdpck_toprowflag2_0 = -1;
-static int hf_tn5250_dfdpck_toprowflag2_1 = -1;
-static int hf_tn5250_dfdpck_toprowflag2_2 = -1;
-static int hf_tn5250_dfdpck_toprowflag2_3 = -1;
-static int hf_tn5250_dfdpck_toprowflag2_4 = -1;
-static int hf_tn5250_dfdpck_toprowflag2_5 = -1;
-static int hf_tn5250_dfdpck_toprowflag2_6 = -1;
-static int hf_tn5250_dfdpck_toprowflag2_7 = -1;
-static int hf_tn5250_dfdpck_toprowflag3 = -1;
-static int hf_tn5250_dfdpck_toprowflag3_0 = -1;
-static int hf_tn5250_dfdpck_toprowflag3_1 = -1;
-static int hf_tn5250_dfdpck_toprowflag3_2 = -1;
-static int hf_tn5250_dfdpck_toprowflag3_3 = -1;
-static int hf_tn5250_dfdpck_toprowflag3_4 = -1;
-static int hf_tn5250_dfdpck_toprowflag3_5 = -1;
-static int hf_tn5250_dfdpck_toprowflag3_6 = -1;
-static int hf_tn5250_dfdpck_toprowflag3_7 = -1;
-static int hf_tn5250_dorm_ec = -1;
-static int hf_tn5250_dorm_id = -1;
-static int hf_tn5250_dorm_length = -1;
-static int hf_tn5250_dorm_mt = -1;
-static int hf_tn5250_dpo_displace_characters = -1;
-static int hf_tn5250_dpo_flag1 = -1;
-static int hf_tn5250_dpo_flag1_0 = -1;
-static int hf_tn5250_dpo_flag1_1 = -1;
-static int hf_tn5250_dpo_flag1_2 = -1;
-static int hf_tn5250_dpo_flag1_3 = -1;
-static int hf_tn5250_dpo_flag1_4 = -1;
-static int hf_tn5250_dpo_flag1_5 = -1;
-static int hf_tn5250_dpo_flag1_6 = -1;
-static int hf_tn5250_dpo_flag1_7 = -1;
-static int hf_tn5250_dpo_flag2 = -1;
-static int hf_tn5250_dpo_flag2_0 = -1;
-static int hf_tn5250_dpo_flag2_reserved = -1;
-static int hf_tn5250_dpo_partition = -1;
-static int hf_tn5250_dpo_start_location_col = -1;
-static int hf_tn5250_dpo_start_location_row = -1;
-static int hf_tn5250_dpt_ec = -1;
-static int hf_tn5250_dpt_id = -1;
-static int hf_tn5250_ds_output_error = -1;
-static int hf_tn5250_dsc_ev = -1;
-static int hf_tn5250_dsc_partition = -1;
-static int hf_tn5250_dsc_sk = -1;
-static int hf_tn5250_dsl_flag1 = -1;
-static int hf_tn5250_dsl_flag1_0 = -1;
-static int hf_tn5250_dsl_flag1_1 = -1;
-static int hf_tn5250_dsl_flag1_2 = -1;
-static int hf_tn5250_dsl_flag1_reserved = -1;
-static int hf_tn5250_dsl_function = -1;
-static int hf_tn5250_dsl_id = -1;
-static int hf_tn5250_dsl_location = -1;
-static int hf_tn5250_dsl_offset = -1;
-static int hf_tn5250_dsl_partition = -1;
-static int hf_tn5250_dsl_rtl_offset = -1;
-static int hf_tn5250_dtsf_first_line = -1;
-static int hf_tn5250_dtsf_flag1 = -1;
-static int hf_tn5250_dtsf_flag1_0 = -1;
-static int hf_tn5250_dtsf_flag1_1 = -1;
-static int hf_tn5250_dtsf_flag1_2 = -1;
-static int hf_tn5250_dtsf_flag1_3 = -1;
-static int hf_tn5250_dtsf_flag1_4 = -1;
-static int hf_tn5250_dtsf_flag1_5 = -1;
-static int hf_tn5250_dtsf_flag1_6 = -1;
-static int hf_tn5250_dtsf_flag1_7 = -1;
-static int hf_tn5250_dtsf_flag2 = -1;
-static int hf_tn5250_dtsf_flag2_0 = -1;
-static int hf_tn5250_dtsf_flag2_1 = -1;
-static int hf_tn5250_dtsf_flag2_2 = -1;
-static int hf_tn5250_dtsf_flag2_3 = -1;
-static int hf_tn5250_dtsf_flag2_4to7 = -1;
-static int hf_tn5250_dtsf_line_cmd_field_size = -1;
-static int hf_tn5250_dtsf_location_of_pitch = -1;
-static int hf_tn5250_dtsf_partition = -1;
-static int hf_tn5250_dtsf_text_body_height = -1;
-static int hf_tn5250_dtsf_text_body_width = -1;
-static int hf_tn5250_soh_err = -1;
-static int hf_tn5250_error_code = -1;
-static int hf_tn5250_error_state = -1;
-static int hf_tn5250_escape_code = -1;
-static int hf_tn5250_fa_color = -1;
-static int hf_tn5250_fcw = -1;
-static int hf_tn5250_ffw = -1;
-static int hf_tn5250_ffw_adjust = -1;
-static int hf_tn5250_ffw_auto = -1;
-static int hf_tn5250_ffw_bypass = -1;
-static int hf_tn5250_ffw_dup = -1;
-static int hf_tn5250_ffw_fer = -1;
-static int hf_tn5250_ffw_id = -1;
-static int hf_tn5250_ffw_mdt = -1;
-static int hf_tn5250_ffw_me = -1;
-static int hf_tn5250_ffw_monocase = -1;
-static int hf_tn5250_ffw_res = -1;
-static int hf_tn5250_ffw_shift = -1;
-static int hf_tn5250_field_data = -1;
-static int hf_tn5250_foreground_color_attr = -1;
-static int hf_tn5250_header_flags = -1;
-static int hf_tn5250_ideographic_attr = -1;
-static int hf_tn5250_length = -1;
-static int hf_tn5250_length_twobyte = -1;
-static int hf_tn5250_logical_record_length = -1;
-static int hf_tn5250_operation_code = -1;
-static int hf_tn5250_order_code = -1;
-static int hf_tn5250_repeated_character = -1;
-static int hf_tn5250_reserved = -1;
-static int hf_tn5250_roll_bottom_line = -1;
-static int hf_tn5250_roll_flag1 = -1;
-static int hf_tn5250_roll_flag1_0 = -1;
-static int hf_tn5250_roll_flag1_lines = -1;
-static int hf_tn5250_roll_flag1_reserved = -1;
-static int hf_tn5250_roll_top_line = -1;
-static int hf_tn5250_rts_flag1 = -1;
-static int hf_tn5250_rts_flag1_0 = -1;
-static int hf_tn5250_rts_flag1_reserved = -1;
-static int hf_tn5250_rts_partition = -1;
-static int hf_tn5250_sf_attr_flag = -1;
-static int hf_tn5250_sf_class = -1;
-static int hf_tn5250_fa = -1;
-static int hf_tn5250_sf_length = -1;
-static int hf_tn5250_sf_type = -1;
-static int hf_tn5250_sna_record_type = -1;
-static int hf_tn5250_soh_cursor_direction = -1;
-static int hf_tn5250_soh_flags = -1;
-static int hf_tn5250_soh_input_capable_only = -1;
-static int hf_tn5250_soh_pf1 = -1;
-static int hf_tn5250_soh_pf10 = -1;
-static int hf_tn5250_soh_pf11 = -1;
-static int hf_tn5250_soh_pf12 = -1;
-static int hf_tn5250_soh_pf13 = -1;
-static int hf_tn5250_soh_pf14 = -1;
-static int hf_tn5250_soh_pf15 = -1;
-static int hf_tn5250_soh_pf16 = -1;
-static int hf_tn5250_soh_pf16to9 = -1;
-static int hf_tn5250_soh_pf17 = -1;
-static int hf_tn5250_soh_pf18 = -1;
-static int hf_tn5250_soh_pf19 = -1;
-static int hf_tn5250_soh_pf2 = -1;
-static int hf_tn5250_soh_pf20 = -1;
-static int hf_tn5250_soh_pf21 = -1;
-static int hf_tn5250_soh_pf22 = -1;
-static int hf_tn5250_soh_pf23 = -1;
-static int hf_tn5250_soh_pf24 = -1;
-static int hf_tn5250_soh_pf24to17 = -1;
-static int hf_tn5250_soh_pf3 = -1;
-static int hf_tn5250_soh_pf4 = -1;
-static int hf_tn5250_soh_pf5 = -1;
-static int hf_tn5250_soh_pf6 = -1;
-static int hf_tn5250_soh_pf7 = -1;
-static int hf_tn5250_soh_pf8 = -1;
-static int hf_tn5250_soh_pf8to1 = -1;
-static int hf_tn5250_soh_pf9 = -1;
-static int hf_tn5250_soh_resq = -1;
-static int hf_tn5250_soh_screen_reverse = -1;
-static int hf_tn5250_sps_flag1 = -1;
-static int hf_tn5250_sps_flag1_0 = -1;
-static int hf_tn5250_sps_flag1_reserved = -1;
-static int hf_tn5250_sps_left_column = -1;
-static int hf_tn5250_sps_top_row = -1;
-static int hf_tn5250_sps_window_depth = -1;
-static int hf_tn5250_sps_window_width = -1;
-static int hf_tn5250_sys_request_key = -1;
-static int hf_tn5250_test_request_key = -1;
-static int hf_tn5250_unknown_data = -1;
-static int hf_tn5250_variable_record_length = -1;
-static int hf_tn5250_wdsf_cw_bp_flag1_reserved = -1;
-static int hf_tn5250_wdsf_cw_tf_flag_reserved = -1;
-static int hf_tn5250_wdsf_deg_flag2_reserved = -1;
-static int hf_tn5250_wdsf_deg_ms_flag1_reserved = -1;
-static int hf_tn5250_wdsf_ds_ci_flag1_reserved = -1;
-static int hf_tn5250_wdsf_ds_cpda_flag1_reserved = -1;
-static int hf_tn5250_wdsf_ds_ct_flag3_reserved = -1;
-static int hf_tn5250_wdsf_ds_gdc_reserved = -1;
-static int hf_tn5250_wdsf_ds_nws_reserved = -1;
-static int hf_tn5250_wdsf_ds_sbi_flag1_reserved = -1;
-static int hf_tn5250_wdsf_dsb_flag1_reserved = -1;
-static int hf_tn5250_wdsf_pmb_flag1_reserved = -1;
-static int hf_tn5250_wdsf_wdf_flag1_reserved = -1;
-static int hf_tn5250_wdsf_cgl_partition = -1;
-static int hf_tn5250_wdsf_cgl_rectangle_height = -1;
-static int hf_tn5250_wdsf_cgl_rectangle_width = -1;
-static int hf_tn5250_wdsf_cgl_start_column = -1;
-static int hf_tn5250_wdsf_cgl_start_row = -1;
-static int hf_tn5250_wdsf_cw_bp_bbc = -1;
-static int hf_tn5250_wdsf_cw_bp_cba = -1;
-static int hf_tn5250_wdsf_cw_bp_flag1 = -1;
-static int hf_tn5250_wdsf_cw_bp_flag1_1 = -1;
-static int hf_tn5250_wdsf_cw_bp_lbc = -1;
-static int hf_tn5250_wdsf_cw_bp_llbc = -1;
-static int hf_tn5250_wdsf_cw_bp_lrbc = -1;
-static int hf_tn5250_wdsf_cw_bp_mba = -1;
-static int hf_tn5250_wdsf_cw_bp_rbc = -1;
-static int hf_tn5250_wdsf_cw_bp_tbc = -1;
-static int hf_tn5250_wdsf_cw_bp_ulbc = -1;
-static int hf_tn5250_wdsf_cw_bp_urbc = -1;
-static int hf_tn5250_wdsf_cw_flag1 = -1;
-static int hf_tn5250_wdsf_cw_flag1_1 = -1;
-static int hf_tn5250_wdsf_cw_flag1_2 = -1;
-static int hf_tn5250_wdsf_cw_flag1_reserved = -1;
-static int hf_tn5250_wdsf_cw_minor_type = -1;
-static int hf_tn5250_wdsf_cw_tf_cba = -1;
-static int hf_tn5250_wdsf_cw_tf_flag = -1;
-static int hf_tn5250_wdsf_cw_tf_flag_1 = -1;
-static int hf_tn5250_wdsf_cw_tf_flag_orientation = -1;
-static int hf_tn5250_wdsf_cw_tf_mba = -1;
-static int hf_tn5250_wdsf_cw_tf_text = -1;
-static int hf_tn5250_wdsf_cw_wd = -1;
-static int hf_tn5250_wdsf_cw_ww = -1;
-static int hf_tn5250_wdsf_deg_default_color = -1;
-static int hf_tn5250_wdsf_deg_default_line = -1;
-static int hf_tn5250_wdsf_deg_flag1 = -1;
-static int hf_tn5250_wdsf_deg_flag1_0 = -1;
-static int hf_tn5250_wdsf_deg_flag1_reserved = -1;
-static int hf_tn5250_wdsf_deg_flag2 = -1;
-static int hf_tn5250_wdsf_deg_flag2_0 = -1;
-static int hf_tn5250_wdsf_deg_minor_type = -1;
-static int hf_tn5250_wdsf_deg_ms_default_color = -1;
-static int hf_tn5250_wdsf_deg_ms_flag1 = -1;
-static int hf_tn5250_wdsf_deg_ms_flag1_0 = -1;
-static int hf_tn5250_wdsf_deg_ms_horizontal_dimension = -1;
-static int hf_tn5250_wdsf_deg_ms_line_interval = -1;
-static int hf_tn5250_wdsf_deg_ms_line_repeat = -1;
-static int hf_tn5250_wdsf_deg_ms_start_column = -1;
-static int hf_tn5250_wdsf_deg_ms_start_row = -1;
-static int hf_tn5250_wdsf_deg_ms_vertical_dimension = -1;
-static int hf_tn5250_wdsf_deg_partition = -1;
-static int hf_tn5250_wdsf_ds_cancel_aid = -1;
-static int hf_tn5250_wdsf_ds_ci_first_choice = -1;
-static int hf_tn5250_wdsf_ds_ci_flag1 = -1;
-static int hf_tn5250_wdsf_ds_ci_flag1_0 = -1;
-static int hf_tn5250_wdsf_ds_ci_left_push = -1;
-static int hf_tn5250_wdsf_ds_ci_right_push = -1;
-static int hf_tn5250_wdsf_ds_columns = -1;
-static int hf_tn5250_wdsf_ds_country_sel = -1;
-static int hf_tn5250_wdsf_ds_cpda_color_avail = -1;
-static int hf_tn5250_wdsf_ds_cpda_color_indicator = -1;
-static int hf_tn5250_wdsf_ds_cpda_color_sel_avail = -1;
-static int hf_tn5250_wdsf_ds_cpda_color_sel_selected = -1;
-static int hf_tn5250_wdsf_ds_cpda_color_sel_unavail = -1;
-static int hf_tn5250_wdsf_ds_cpda_color_selected = -1;
-static int hf_tn5250_wdsf_ds_cpda_color_unavail = -1;
-static int hf_tn5250_wdsf_ds_cpda_color_unavail_indicator = -1;
-static int hf_tn5250_wdsf_ds_cpda_flag1 = -1;
-static int hf_tn5250_wdsf_ds_cpda_flag1_0 = -1;
-static int hf_tn5250_wdsf_ds_cpda_flag1_1 = -1;
-static int hf_tn5250_wdsf_ds_cpda_flag1_2 = -1;
-static int hf_tn5250_wdsf_ds_cpda_monochrome_avail = -1;
-static int hf_tn5250_wdsf_ds_cpda_monochrome_indicator = -1;
-static int hf_tn5250_wdsf_ds_cpda_monochrome_sel_avail = -1;
-static int hf_tn5250_wdsf_ds_cpda_monochrome_sel_selected = -1;
-static int hf_tn5250_wdsf_ds_cpda_monochrome_sel_unavail = -1;
-static int hf_tn5250_wdsf_ds_cpda_monochrome_selected = -1;
-static int hf_tn5250_wdsf_ds_cpda_monochrome_unavail = -1;
-static int hf_tn5250_wdsf_ds_cpda_monochrome_unavail_indicator = -1;
-static int hf_tn5250_wdsf_ds_ct_aid = -1;
-static int hf_tn5250_wdsf_ds_ct_flag1 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag1_2 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag1_3 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag1_4 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag1_5 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag1_choice_state = -1;
-static int hf_tn5250_wdsf_ds_ct_flag1_numeric_selection = -1;
-static int hf_tn5250_wdsf_ds_ct_flag2 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag2_0 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag2_1 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag2_2 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag2_3 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag2_4 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag2_5 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag2_6 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag2_7 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag3 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag3_0 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag3_1 = -1;
-static int hf_tn5250_wdsf_ds_ct_flag3_2 = -1;
-static int hf_tn5250_wdsf_ds_ct_mnemonic_offset = -1;
-static int hf_tn5250_wdsf_ds_ct_numeric_onebyte = -1;
-static int hf_tn5250_wdsf_ds_ct_numeric_twobyte = -1;
-static int hf_tn5250_wdsf_ds_ct_text = -1;
-static int hf_tn5250_wdsf_ds_flag1 = -1;
-static int hf_tn5250_wdsf_ds_flag1_1 = -1;
-static int hf_tn5250_wdsf_ds_flag1_2 = -1;
-static int hf_tn5250_wdsf_ds_flag1_auto_enter = -1;
-static int hf_tn5250_wdsf_ds_flag1_mouse_characteristics = -1;
-static int hf_tn5250_wdsf_ds_flag1_reserved = -1;
-static int hf_tn5250_wdsf_ds_flag2 = -1;
-static int hf_tn5250_wdsf_ds_flag2_1 = -1;
-static int hf_tn5250_wdsf_ds_flag2_2 = -1;
-static int hf_tn5250_wdsf_ds_flag2_3 = -1;
-static int hf_tn5250_wdsf_ds_flag2_4 = -1;
-static int hf_tn5250_wdsf_ds_flag2_5 = -1;
-static int hf_tn5250_wdsf_ds_flag2_6 = -1;
-static int hf_tn5250_wdsf_ds_flag2_reserved = -1;
-static int hf_tn5250_wdsf_ds_flag3 = -1;
-static int hf_tn5250_wdsf_ds_flag3_1 = -1;
-static int hf_tn5250_wdsf_ds_flag3_reserved = -1;
-static int hf_tn5250_wdsf_ds_gdc = -1;
-static int hf_tn5250_wdsf_ds_gdc_indicators = -1;
-static int hf_tn5250_wdsf_ds_gdc_selection_techniques = -1;
-static int hf_tn5250_wdsf_ds_mbs_color_sep = -1;
-static int hf_tn5250_wdsf_ds_mbs_end_column = -1;
-static int hf_tn5250_wdsf_ds_mbs_flag = -1;
-static int hf_tn5250_wdsf_ds_mbs_flag_0 = -1;
-static int hf_tn5250_wdsf_ds_mbs_flag_1 = -1;
-static int hf_tn5250_wdsf_ds_mbs_flag_reserved = -1;
-static int hf_tn5250_wdsf_ds_mbs_monochrome_sep = -1;
-static int hf_tn5250_wdsf_ds_mbs_sep_char = -1;
-static int hf_tn5250_wdsf_ds_mbs_start_column = -1;
-static int hf_tn5250_wdsf_ds_minor_type = -1;
-static int hf_tn5250_wdsf_ds_numeric_sep = -1;
-static int hf_tn5250_wdsf_ds_nws = -1;
-static int hf_tn5250_wdsf_ds_nws_indicators = -1;
-static int hf_tn5250_wdsf_ds_nws_selection_techniques = -1;
-static int hf_tn5250_wdsf_ds_nws_wout = -1;
-static int hf_tn5250_wdsf_ds_padding = -1;
-static int hf_tn5250_wdsf_ds_rows = -1;
-static int hf_tn5250_wdsf_ds_sbi_bottom_character = -1;
-static int hf_tn5250_wdsf_ds_sbi_color_top_highlight = -1;
-static int hf_tn5250_wdsf_ds_sbi_color_top_highlight_shaft = -1;
-static int hf_tn5250_wdsf_ds_sbi_empty_character = -1;
-static int hf_tn5250_wdsf_ds_sbi_flag1 = -1;
-static int hf_tn5250_wdsf_ds_sbi_flag1_0 = -1;
-static int hf_tn5250_wdsf_ds_sbi_monochrome_top_highlight = -1;
-static int hf_tn5250_wdsf_ds_sbi_monochrome_top_highlight_shaft = -1;
-static int hf_tn5250_wdsf_ds_sbi_slider_character = -1;
-static int hf_tn5250_wdsf_ds_sbi_top_character = -1;
-static int hf_tn5250_wdsf_ds_sliderpos = -1;
-static int hf_tn5250_wdsf_ds_textsize = -1;
-static int hf_tn5250_wdsf_ds_totalrows = -1;
-static int hf_tn5250_wdsf_ds_type = -1;
-static int hf_tn5250_wdsf_dsb_flag1 = -1;
-static int hf_tn5250_wdsf_dsb_flag1_0 = -1;
-static int hf_tn5250_wdsf_dsb_flag1_1 = -1;
-static int hf_tn5250_wdsf_dsb_flag1_7 = -1;
-static int hf_tn5250_wdsf_pmb_first_mouse_event = -1;
-static int hf_tn5250_wdsf_pmb_flag1 = -1;
-static int hf_tn5250_wdsf_pmb_flag1_0 = -1;
-static int hf_tn5250_wdsf_pmb_flag1_1 = -1;
-static int hf_tn5250_wdsf_pmb_flag1_2 = -1;
-static int hf_tn5250_wdsf_pmb_flag1_3 = -1;
-static int hf_tn5250_wdsf_pmb_second_mouse_event = -1;
-static int hf_tn5250_wdsf_ragc_flag1 = -1;
-static int hf_tn5250_wdsf_ragc_flag1_0 = -1;
-static int hf_tn5250_wdsf_ragc_reserved = -1;
-static int hf_tn5250_wdsf_rgw_flag1 = -1;
-static int hf_tn5250_wdsf_rgw_flag1_0 = -1;
-static int hf_tn5250_wdsf_rgw_flag1_1 = -1;
-static int hf_tn5250_wdsf_rgw_reserved = -1;
-static int hf_tn5250_wdsf_sbi_rowscols = -1;
-static int hf_tn5250_wdsf_sbi_sliderpos = -1;
-static int hf_tn5250_wdsf_sbi_total_scroll = -1;
-static int hf_tn5250_wdsf_wdf_flag1 = -1;
-static int hf_tn5250_wdsf_wdf_flag1_0 = -1;
-static int hf_tn5250_wea_prim_attr = -1;
-static int hf_tn5250_wea_prim_attr_blink = -1;
-static int hf_tn5250_wea_prim_attr_col = -1;
-static int hf_tn5250_wea_prim_attr_flag = -1;
-static int hf_tn5250_wea_prim_attr_int = -1;
-static int hf_tn5250_wea_prim_attr_rev = -1;
-static int hf_tn5250_wea_prim_attr_und = -1;
-static int hf_tn5250_wectw_end_column = -1;
-static int hf_tn5250_wectw_start_column = -1;
-static int hf_tn5250_wsf_qss_flag1 = -1;
-static int hf_tn5250_wsf_qss_flag1_0 = -1;
-static int hf_tn5250_wsf_qss_flag1_reserved = -1;
-static int hf_tn5250_wsf_qss_flag2 = -1;
-static int hf_tn5250_wsf_qss_flag2_7 = -1;
-static int hf_tn5250_wsf_qss_flag2_reserved = -1;
-static int hf_tn5250_wssf_cc_flag1 = -1;
-static int hf_tn5250_wssf_cc_flag1_7 = -1;
-static int hf_tn5250_wssf_cc_flag1_reserved = -1;
-static int hf_tn5250_wssf_flag1 = -1;
-static int hf_tn5250_wssf_flag2 = -1;
-static int hf_tn5250_wssf_flag2_0 = -1;
-static int hf_tn5250_wssf_flag2_1 = -1;
-static int hf_tn5250_wssf_flag2_2 = -1;
-static int hf_tn5250_wssf_flag2_3 = -1;
-static int hf_tn5250_wssf_flag2_4 = -1;
-static int hf_tn5250_wssf_flag2_5 = -1;
-static int hf_tn5250_wssf_flag2_6 = -1;
-static int hf_tn5250_wssf_flag2_7 = -1;
-static int hf_tn5250_wssf_ifc_background_color = -1;
-static int hf_tn5250_wssf_ifc_flag1 = -1;
-static int hf_tn5250_wssf_ifc_flag1_0 = -1;
-static int hf_tn5250_wssf_ifc_flag1_1to3 = -1;
-static int hf_tn5250_wssf_ifc_flag1_4 = -1;
-static int hf_tn5250_wssf_ifc_flag1_5 = -1;
-static int hf_tn5250_wssf_ifc_flag1_6 = -1;
-static int hf_tn5250_wssf_ifc_flag1_7 = -1;
-static int hf_tn5250_wssf_ifc_flag2 = -1;
-static int hf_tn5250_wssf_ifc_flag2_0 = -1;
-static int hf_tn5250_wssf_ifc_flag2_1 = -1;
-static int hf_tn5250_wssf_ifc_flag2_7 = -1;
-static int hf_tn5250_wssf_ifc_flag2_reserved = -1;
-static int hf_tn5250_wssf_ifc_foreground_color = -1;
-static int hf_tn5250_wssf_ifc_image_format = -1;
-static int hf_tn5250_wssf_ifc_imagefax_name = -1;
-static int hf_tn5250_wssf_ifc_rotation = -1;
-static int hf_tn5250_wssf_ifc_scaling = -1;
-static int hf_tn5250_wssf_ifc_viewimage_location_col = -1;
-static int hf_tn5250_wssf_ifc_viewimage_location_row = -1;
-static int hf_tn5250_wssf_ifc_viewport_location_col = -1;
-static int hf_tn5250_wssf_ifc_viewport_location_row = -1;
-static int hf_tn5250_wssf_ifc_viewport_size_col = -1;
-static int hf_tn5250_wssf_ifc_viewport_size_row = -1;
-static int hf_tn5250_wssf_ifd_flag1 = -1;
-static int hf_tn5250_wssf_ifd_flag1_0 = -1;
-static int hf_tn5250_wssf_ifd_flag1_reserved = -1;
-static int hf_tn5250_wssf_ifd_imagefax_data = -1;
-static int hf_tn5250_wssf_ifd_imagefax_name = -1;
-static int hf_tn5250_wssf_kbc_flag1 = -1;
-static int hf_tn5250_wssf_kbc_flag1_5 = -1;
-static int hf_tn5250_wssf_kbc_flag1_6 = -1;
-static int hf_tn5250_wssf_kbc_flag1_7 = -1;
-static int hf_tn5250_wssf_kbc_flag1_reserved = -1;
-static int hf_tn5250_wssf_wsc_minor_type = -1;
-static int hf_tn5250_wtd_ccc1 = -1;
-static int hf_tn5250_wtd_ccc2 = -1;
-static int hf_tn5250_wtd_ccc2_alarm = -1;
-static int hf_tn5250_wtd_ccc2_cursor = -1;
-static int hf_tn5250_wtd_ccc2_off = -1;
-static int hf_tn5250_wtd_ccc2_on = -1;
-static int hf_tn5250_wtd_ccc2_res = -1;
-static int hf_tn5250_wtd_ccc2_reset = -1;
-static int hf_tn5250_wtd_ccc2_set = -1;
-static int hf_tn5250_wtd_ccc2_unlock = -1;
-static int hf_tn5250_wts_cld_flag1 = -1;
-static int hf_tn5250_wts_cld_flag1_0 = -1;
-static int hf_tn5250_wts_cld_flag1_1 = -1;
-static int hf_tn5250_wts_cld_flag1_2 = -1;
-static int hf_tn5250_wts_cld_flag1_3 = -1;
-static int hf_tn5250_wts_cld_flag1_4 = -1;
-static int hf_tn5250_wts_cld_flag1_5 = -1;
-static int hf_tn5250_wts_cld_flag1_6 = -1;
-static int hf_tn5250_wts_cld_flag1_7 = -1;
-static int hf_tn5250_wts_cld_flag2 = -1;
-static int hf_tn5250_wts_cld_flag2_0 = -1;
-static int hf_tn5250_wts_cld_flag2_1 = -1;
-static int hf_tn5250_wts_cld_flag2_2 = -1;
-static int hf_tn5250_wts_cld_flag2_3 = -1;
-static int hf_tn5250_wts_cld_flag2_4 = -1;
-static int hf_tn5250_wts_cld_flag2_line_spacing = -1;
-static int hf_tn5250_wts_cld_flag3 = -1;
-static int hf_tn5250_wts_cld_flag3_0 = -1;
-static int hf_tn5250_wts_cld_flag3_1 = -1;
-static int hf_tn5250_wts_cld_flag3_2 = -1;
-static int hf_tn5250_wts_cld_flag3_3 = -1;
-static int hf_tn5250_wts_cld_flag3_4 = -1;
-static int hf_tn5250_wts_cld_flag3_5 = -1;
-static int hf_tn5250_wts_cld_flag3_6 = -1;
-static int hf_tn5250_wts_cld_flag3_7 = -1;
-static int hf_tn5250_wts_cld_io = -1;
-static int hf_tn5250_wts_cld_li = -1;
-static int hf_tn5250_wts_cld_lmo = -1;
-static int hf_tn5250_wts_cld_page_num = -1;
-static int hf_tn5250_wts_cld_row = -1;
-static int hf_tn5250_wts_cld_sli = -1;
-static int hf_tn5250_wts_flag1 = -1;
-static int hf_tn5250_wts_flag1_0 = -1;
-static int hf_tn5250_wts_flag1_1 = -1;
-static int hf_tn5250_wts_flag1_2 = -1;
-static int hf_tn5250_wts_flag1_3 = -1;
-static int hf_tn5250_wts_flag1_reserved = -1;
-static int hf_tn5250_wts_flag2 = -1;
-static int hf_tn5250_wts_flag2_6 = -1;
-static int hf_tn5250_wts_flag2_reserved = -1;
-static int hf_tn5250_wts_flag2_reserved2 = -1;
-static int hf_tn5250_wts_flag3 = -1;
-static int hf_tn5250_wts_flag3_0 = -1;
-static int hf_tn5250_wts_flag3_1 = -1;
-static int hf_tn5250_wts_flag3_2 = -1;
-static int hf_tn5250_wts_flag3_3 = -1;
-static int hf_tn5250_wts_flag3_4 = -1;
-static int hf_tn5250_wts_flag3_5 = -1;
-static int hf_tn5250_wts_flag3_6 = -1;
-static int hf_tn5250_wts_flag3_7 = -1;
-static int hf_tn5250_wts_home_position_col = -1;
-static int hf_tn5250_wts_home_position_row = -1;
-static int hf_tn5250_wts_partition = -1;
-static int hf_tn5250_soh_length = -1;
-static int hf_tn5250_negative_response = -1;
-static int hf_tn5250_qr_ccl = -1;
-static int hf_tn5250_qr_chc= -1;
-static int hf_tn5250_qr_dm= -1;
-static int hf_tn5250_qr_dsn= -1;
-static int hf_tn5250_qr_dt= -1;
-static int hf_tn5250_qr_dtc= -1;
-static int hf_tn5250_qr_eki= -1;
-static int hf_tn5250_qr_flag= -1;
-static int hf_tn5250_qr_flag1= -1;
-static int hf_tn5250_qr_flag2= -1;
-static int hf_tn5250_qr_flag3= -1;
-static int hf_tn5250_qr_flag4= -1;
-static int hf_tn5250_qr_ki= -1;
-static int hf_tn5250_qr_flag1_0= -1;
-static int hf_tn5250_qr_flag1_1= -1;
-static int hf_tn5250_qr_flag1_2= -1;
-static int hf_tn5250_qr_flag1_3= -1;
-static int hf_tn5250_qr_flag1_4= -1;
-static int hf_tn5250_qr_flag1_5= -1;
-static int hf_tn5250_qr_flag1_6= -1;
-static int hf_tn5250_qr_flag1_7= -1;
-static int hf_tn5250_qr_flag2_0to3= -1;
-static int hf_tn5250_qr_flag2_4= -1;
-static int hf_tn5250_qr_flag2_5= -1;
-static int hf_tn5250_qr_flag2_6to7= -1;
-static int hf_tn5250_qr_flag_0= -1;
-static int hf_tn5250_qr_flag_reserved= -1;
-static int hf_tn5250_qr_mni= -1;
-static int hf_tn5250_image_fax_error = -1;
-static int hf_tn5250_vac_data = -1;
-static int hf_tn5250_vac_prefix = -1;
-static int hf_tn5250_wssf_ttw_flag = -1;
-static int hf_tn5250_wssf_ttw_data = -1;
-
-static gint ett_tn5250 = -1;
-static gint ett_tn5250_wcc = -1;
-static gint ett_sf = -1;
-static gint ett_tn5250_field_attribute = -1;
-static gint ett_tn5250_dfdpck_mask = -1;
-static gint ett_tn5250_field_validation = -1;
-static gint ett_tn5250_header_flags = -1;
-static gint ett_tn5250_roll_mask = -1;
-static gint ett_tn5250_soh_mask = -1;
-static gint ett_tn5250_soh_pf16to9_mask = -1;
-static gint ett_tn5250_soh_pf24to17_mask = -1;
-static gint ett_tn5250_soh_pf8to1_mask = -1;
-static gint ett_tn5250_sps_mask = -1;
-static gint ett_tn5250_wdsf_cw_bp_mask = -1;
-static gint ett_tn5250_wdsf_cw_mask = -1;
-static gint ett_tn5250_wdsf_cw_tf_mask = -1;
-static gint ett_tn5250_wdsf_deg_mask = -1;
-static gint ett_tn5250_wdsf_deg_ms_mask = -1;
-static gint ett_tn5250_wdsf_ds_ci_mask = -1;
-static gint ett_tn5250_wdsf_ds_cpda_mask = -1;
-static gint ett_tn5250_wdsf_ds_ct_mask = -1;
-static gint ett_tn5250_wdsf_ds_mask = -1;
-static gint ett_tn5250_wdsf_ds_mbs_mask = -1;
-static gint ett_tn5250_wdsf_ds_sbi_mask = -1;
-static gint ett_tn5250_wdsf_dsb_mask = -1;
-static gint ett_tn5250_wdsf_pmb_mask = -1;
-static gint ett_tn5250_wdsf_ragc_mask = -1;
-static gint ett_tn5250_wdsf_rgw_mask = -1;
-static gint ett_tn5250_wdsf_wdf_mask = -1;
-static gint ett_tn5250_wsf_dpo_mask = -1;
-static gint ett_tn5250_wsf_dsl_mask = -1;
-static gint ett_tn5250_wsf_dtsf_mask = -1;
-static gint ett_tn5250_wsf_qss_mask = -1;
-static gint ett_tn5250_wsf_rts_mask = -1;
-static gint ett_tn5250_wssf_cc_mask = -1;
-static gint ett_tn5250_wssf_ifc_mask = -1;
-static gint ett_tn5250_wssf_ifd_mask = -1;
-static gint ett_tn5250_wssf_kbc_mask = -1;
-static gint ett_tn5250_wssf_mask = -1;
-static gint ett_tn5250_wts_mask = -1;
-static gint ett_tn5250_qr_mask = -1;
-static gint ett_tn5250_wea_prim_attr = -1;
-static gint ett_cc = -1;
-
-static expert_field ei_tn5250_command_code = EI_INIT;
-
-static guint32 dissect_tn5250_orders_and_data(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset);
+static int proto_tn5250;
+static int hf_tn5250_aid;
+static int hf_tn5250_attn_key;
+static int hf_tn5250_attribute_type;
+static int hf_tn5250_buffer_x;
+static int hf_tn5250_buffer_y;
+static int hf_tn5250_command_code;
+static int hf_tn5250_ctp_lsid;
+static int hf_tn5250_ctp_mlpp;
+static int hf_tn5250_cua_parm;
+static int hf_tn5250_dawt_char;
+static int hf_tn5250_dawt_id;
+static int hf_tn5250_dawt_length;
+static int hf_tn5250_dawt_message;
+static int hf_tn5250_dckf_function_code;
+static int hf_tn5250_dckf_id;
+static int hf_tn5250_dckf_key_code;
+static int hf_tn5250_dckf_length;
+static int hf_tn5250_dckf_prompt_text;
+static int hf_tn5250_dfdpck_coreflag;
+static int hf_tn5250_dfdpck_coreflag_0;
+static int hf_tn5250_dfdpck_coreflag_1;
+static int hf_tn5250_dfdpck_coreflag_2;
+static int hf_tn5250_dfdpck_coreflag_3;
+static int hf_tn5250_dfdpck_coreflag_4;
+static int hf_tn5250_dfdpck_coreflag_5;
+static int hf_tn5250_dfdpck_coreflag_6;
+static int hf_tn5250_dfdpck_coreflag_7;
+static int hf_tn5250_dfdpck_data_field;
+static int hf_tn5250_dfdpck_partition;
+static int hf_tn5250_dfdpck_toprowflag1;
+static int hf_tn5250_dfdpck_toprowflag1_0;
+static int hf_tn5250_dfdpck_toprowflag1_1;
+static int hf_tn5250_dfdpck_toprowflag1_2;
+static int hf_tn5250_dfdpck_toprowflag1_3;
+static int hf_tn5250_dfdpck_toprowflag1_4;
+static int hf_tn5250_dfdpck_toprowflag1_5;
+static int hf_tn5250_dfdpck_toprowflag1_6;
+static int hf_tn5250_dfdpck_toprowflag1_7;
+static int hf_tn5250_dfdpck_toprowflag2;
+static int hf_tn5250_dfdpck_toprowflag2_0;
+static int hf_tn5250_dfdpck_toprowflag2_1;
+static int hf_tn5250_dfdpck_toprowflag2_2;
+static int hf_tn5250_dfdpck_toprowflag2_3;
+static int hf_tn5250_dfdpck_toprowflag2_4;
+static int hf_tn5250_dfdpck_toprowflag2_5;
+static int hf_tn5250_dfdpck_toprowflag2_6;
+static int hf_tn5250_dfdpck_toprowflag2_7;
+static int hf_tn5250_dfdpck_toprowflag3;
+static int hf_tn5250_dfdpck_toprowflag3_0;
+static int hf_tn5250_dfdpck_toprowflag3_1;
+static int hf_tn5250_dfdpck_toprowflag3_2;
+static int hf_tn5250_dfdpck_toprowflag3_3;
+static int hf_tn5250_dfdpck_toprowflag3_4;
+static int hf_tn5250_dfdpck_toprowflag3_5;
+static int hf_tn5250_dfdpck_toprowflag3_6;
+static int hf_tn5250_dfdpck_toprowflag3_7;
+static int hf_tn5250_dorm_ec;
+static int hf_tn5250_dorm_id;
+static int hf_tn5250_dorm_length;
+static int hf_tn5250_dorm_mt;
+static int hf_tn5250_dpo_displace_characters;
+static int hf_tn5250_dpo_flag1;
+static int hf_tn5250_dpo_flag1_0;
+static int hf_tn5250_dpo_flag1_1;
+static int hf_tn5250_dpo_flag1_2;
+static int hf_tn5250_dpo_flag1_3;
+static int hf_tn5250_dpo_flag1_4;
+static int hf_tn5250_dpo_flag1_5;
+static int hf_tn5250_dpo_flag1_6;
+static int hf_tn5250_dpo_flag1_7;
+static int hf_tn5250_dpo_flag2;
+static int hf_tn5250_dpo_flag2_0;
+static int hf_tn5250_dpo_flag2_reserved;
+static int hf_tn5250_dpo_partition;
+static int hf_tn5250_dpo_start_location_col;
+static int hf_tn5250_dpo_start_location_row;
+static int hf_tn5250_dpt_ec;
+static int hf_tn5250_dpt_id;
+static int hf_tn5250_ds_output_error;
+static int hf_tn5250_dsc_ev;
+static int hf_tn5250_dsc_partition;
+static int hf_tn5250_dsc_sk;
+static int hf_tn5250_dsl_flag1;
+static int hf_tn5250_dsl_flag1_0;
+static int hf_tn5250_dsl_flag1_1;
+static int hf_tn5250_dsl_flag1_2;
+static int hf_tn5250_dsl_flag1_reserved;
+static int hf_tn5250_dsl_function;
+static int hf_tn5250_dsl_id;
+static int hf_tn5250_dsl_location;
+static int hf_tn5250_dsl_offset;
+static int hf_tn5250_dsl_partition;
+static int hf_tn5250_dsl_rtl_offset;
+static int hf_tn5250_dtsf_first_line;
+static int hf_tn5250_dtsf_flag1;
+static int hf_tn5250_dtsf_flag1_0;
+static int hf_tn5250_dtsf_flag1_1;
+static int hf_tn5250_dtsf_flag1_2;
+static int hf_tn5250_dtsf_flag1_3;
+static int hf_tn5250_dtsf_flag1_4;
+static int hf_tn5250_dtsf_flag1_5;
+static int hf_tn5250_dtsf_flag1_6;
+static int hf_tn5250_dtsf_flag1_7;
+static int hf_tn5250_dtsf_flag2;
+static int hf_tn5250_dtsf_flag2_0;
+static int hf_tn5250_dtsf_flag2_1;
+static int hf_tn5250_dtsf_flag2_2;
+static int hf_tn5250_dtsf_flag2_3;
+static int hf_tn5250_dtsf_flag2_4to7;
+static int hf_tn5250_dtsf_line_cmd_field_size;
+static int hf_tn5250_dtsf_location_of_pitch;
+static int hf_tn5250_dtsf_partition;
+static int hf_tn5250_dtsf_text_body_height;
+static int hf_tn5250_dtsf_text_body_width;
+static int hf_tn5250_soh_err;
+static int hf_tn5250_error_code;
+static int hf_tn5250_error_state;
+static int hf_tn5250_escape_code;
+static int hf_tn5250_fa_color;
+static int hf_tn5250_fcw;
+static int hf_tn5250_ffw;
+static int hf_tn5250_ffw_adjust;
+static int hf_tn5250_ffw_auto;
+static int hf_tn5250_ffw_bypass;
+static int hf_tn5250_ffw_dup;
+static int hf_tn5250_ffw_fer;
+static int hf_tn5250_ffw_id;
+static int hf_tn5250_ffw_mdt;
+static int hf_tn5250_ffw_me;
+static int hf_tn5250_ffw_monocase;
+static int hf_tn5250_ffw_res;
+static int hf_tn5250_ffw_shift;
+static int hf_tn5250_field_data;
+static int hf_tn5250_foreground_color_attr;
+static int hf_tn5250_header_flags;
+static int hf_tn5250_ideographic_attr;
+static int hf_tn5250_length;
+static int hf_tn5250_length_twobyte;
+static int hf_tn5250_logical_record_length;
+static int hf_tn5250_operation_code;
+static int hf_tn5250_order_code;
+static int hf_tn5250_repeated_character;
+static int hf_tn5250_reserved;
+static int hf_tn5250_roll_bottom_line;
+static int hf_tn5250_roll_flag1;
+static int hf_tn5250_roll_flag1_0;
+static int hf_tn5250_roll_flag1_lines;
+static int hf_tn5250_roll_flag1_reserved;
+static int hf_tn5250_roll_top_line;
+static int hf_tn5250_rts_flag1;
+static int hf_tn5250_rts_flag1_0;
+static int hf_tn5250_rts_flag1_reserved;
+static int hf_tn5250_rts_partition;
+static int hf_tn5250_sf_attr_flag;
+static int hf_tn5250_sf_class;
+static int hf_tn5250_fa;
+static int hf_tn5250_sf_length;
+static int hf_tn5250_sf_type;
+static int hf_tn5250_sna_record_type;
+static int hf_tn5250_soh_cursor_direction;
+static int hf_tn5250_soh_flags;
+static int hf_tn5250_soh_input_capable_only;
+static int hf_tn5250_soh_pf1;
+static int hf_tn5250_soh_pf10;
+static int hf_tn5250_soh_pf11;
+static int hf_tn5250_soh_pf12;
+static int hf_tn5250_soh_pf13;
+static int hf_tn5250_soh_pf14;
+static int hf_tn5250_soh_pf15;
+static int hf_tn5250_soh_pf16;
+static int hf_tn5250_soh_pf16to9;
+static int hf_tn5250_soh_pf17;
+static int hf_tn5250_soh_pf18;
+static int hf_tn5250_soh_pf19;
+static int hf_tn5250_soh_pf2;
+static int hf_tn5250_soh_pf20;
+static int hf_tn5250_soh_pf21;
+static int hf_tn5250_soh_pf22;
+static int hf_tn5250_soh_pf23;
+static int hf_tn5250_soh_pf24;
+static int hf_tn5250_soh_pf24to17;
+static int hf_tn5250_soh_pf3;
+static int hf_tn5250_soh_pf4;
+static int hf_tn5250_soh_pf5;
+static int hf_tn5250_soh_pf6;
+static int hf_tn5250_soh_pf7;
+static int hf_tn5250_soh_pf8;
+static int hf_tn5250_soh_pf8to1;
+static int hf_tn5250_soh_pf9;
+static int hf_tn5250_soh_resq;
+static int hf_tn5250_soh_screen_reverse;
+static int hf_tn5250_sps_flag1;
+static int hf_tn5250_sps_flag1_0;
+static int hf_tn5250_sps_flag1_reserved;
+static int hf_tn5250_sps_left_column;
+static int hf_tn5250_sps_top_row;
+static int hf_tn5250_sps_window_depth;
+static int hf_tn5250_sps_window_width;
+static int hf_tn5250_sys_request_key;
+static int hf_tn5250_test_request_key;
+static int hf_tn5250_unknown_data;
+static int hf_tn5250_variable_record_length;
+static int hf_tn5250_wdsf_cw_bp_flag1_reserved;
+static int hf_tn5250_wdsf_cw_tf_flag_reserved;
+static int hf_tn5250_wdsf_deg_flag2_reserved;
+static int hf_tn5250_wdsf_deg_ms_flag1_reserved;
+static int hf_tn5250_wdsf_ds_ci_flag1_reserved;
+static int hf_tn5250_wdsf_ds_cpda_flag1_reserved;
+static int hf_tn5250_wdsf_ds_ct_flag3_reserved;
+static int hf_tn5250_wdsf_ds_gdc_reserved;
+static int hf_tn5250_wdsf_ds_nws_reserved;
+static int hf_tn5250_wdsf_ds_sbi_flag1_reserved;
+static int hf_tn5250_wdsf_dsb_flag1_reserved;
+static int hf_tn5250_wdsf_pmb_flag1_reserved;
+static int hf_tn5250_wdsf_wdf_flag1_reserved;
+static int hf_tn5250_wdsf_cgl_partition;
+static int hf_tn5250_wdsf_cgl_rectangle_height;
+static int hf_tn5250_wdsf_cgl_rectangle_width;
+static int hf_tn5250_wdsf_cgl_start_column;
+static int hf_tn5250_wdsf_cgl_start_row;
+static int hf_tn5250_wdsf_cw_bp_bbc;
+static int hf_tn5250_wdsf_cw_bp_cba;
+static int hf_tn5250_wdsf_cw_bp_flag1;
+static int hf_tn5250_wdsf_cw_bp_flag1_1;
+static int hf_tn5250_wdsf_cw_bp_lbc;
+static int hf_tn5250_wdsf_cw_bp_llbc;
+static int hf_tn5250_wdsf_cw_bp_lrbc;
+static int hf_tn5250_wdsf_cw_bp_mba;
+static int hf_tn5250_wdsf_cw_bp_rbc;
+static int hf_tn5250_wdsf_cw_bp_tbc;
+static int hf_tn5250_wdsf_cw_bp_ulbc;
+static int hf_tn5250_wdsf_cw_bp_urbc;
+static int hf_tn5250_wdsf_cw_flag1;
+static int hf_tn5250_wdsf_cw_flag1_1;
+static int hf_tn5250_wdsf_cw_flag1_2;
+static int hf_tn5250_wdsf_cw_flag1_reserved;
+static int hf_tn5250_wdsf_cw_minor_type;
+static int hf_tn5250_wdsf_cw_tf_cba;
+static int hf_tn5250_wdsf_cw_tf_flag;
+static int hf_tn5250_wdsf_cw_tf_flag_1;
+static int hf_tn5250_wdsf_cw_tf_flag_orientation;
+static int hf_tn5250_wdsf_cw_tf_mba;
+static int hf_tn5250_wdsf_cw_tf_text;
+static int hf_tn5250_wdsf_cw_wd;
+static int hf_tn5250_wdsf_cw_ww;
+static int hf_tn5250_wdsf_deg_default_color;
+static int hf_tn5250_wdsf_deg_default_line;
+static int hf_tn5250_wdsf_deg_flag1;
+static int hf_tn5250_wdsf_deg_flag1_0;
+static int hf_tn5250_wdsf_deg_flag1_reserved;
+static int hf_tn5250_wdsf_deg_flag2;
+static int hf_tn5250_wdsf_deg_flag2_0;
+static int hf_tn5250_wdsf_deg_minor_type;
+static int hf_tn5250_wdsf_deg_ms_default_color;
+static int hf_tn5250_wdsf_deg_ms_flag1;
+static int hf_tn5250_wdsf_deg_ms_flag1_0;
+static int hf_tn5250_wdsf_deg_ms_horizontal_dimension;
+static int hf_tn5250_wdsf_deg_ms_line_interval;
+static int hf_tn5250_wdsf_deg_ms_line_repeat;
+static int hf_tn5250_wdsf_deg_ms_start_column;
+static int hf_tn5250_wdsf_deg_ms_start_row;
+static int hf_tn5250_wdsf_deg_ms_vertical_dimension;
+static int hf_tn5250_wdsf_deg_partition;
+static int hf_tn5250_wdsf_ds_cancel_aid;
+static int hf_tn5250_wdsf_ds_ci_first_choice;
+static int hf_tn5250_wdsf_ds_ci_flag1;
+static int hf_tn5250_wdsf_ds_ci_flag1_0;
+static int hf_tn5250_wdsf_ds_ci_left_push;
+static int hf_tn5250_wdsf_ds_ci_right_push;
+static int hf_tn5250_wdsf_ds_columns;
+static int hf_tn5250_wdsf_ds_country_sel;
+static int hf_tn5250_wdsf_ds_cpda_color_avail;
+static int hf_tn5250_wdsf_ds_cpda_color_indicator;
+static int hf_tn5250_wdsf_ds_cpda_color_sel_avail;
+static int hf_tn5250_wdsf_ds_cpda_color_sel_selected;
+static int hf_tn5250_wdsf_ds_cpda_color_sel_unavail;
+static int hf_tn5250_wdsf_ds_cpda_color_selected;
+static int hf_tn5250_wdsf_ds_cpda_color_unavail;
+static int hf_tn5250_wdsf_ds_cpda_color_unavail_indicator;
+static int hf_tn5250_wdsf_ds_cpda_flag1;
+static int hf_tn5250_wdsf_ds_cpda_flag1_0;
+static int hf_tn5250_wdsf_ds_cpda_flag1_1;
+static int hf_tn5250_wdsf_ds_cpda_flag1_2;
+static int hf_tn5250_wdsf_ds_cpda_monochrome_avail;
+static int hf_tn5250_wdsf_ds_cpda_monochrome_indicator;
+static int hf_tn5250_wdsf_ds_cpda_monochrome_sel_avail;
+static int hf_tn5250_wdsf_ds_cpda_monochrome_sel_selected;
+static int hf_tn5250_wdsf_ds_cpda_monochrome_sel_unavail;
+static int hf_tn5250_wdsf_ds_cpda_monochrome_selected;
+static int hf_tn5250_wdsf_ds_cpda_monochrome_unavail;
+static int hf_tn5250_wdsf_ds_cpda_monochrome_unavail_indicator;
+static int hf_tn5250_wdsf_ds_ct_aid;
+static int hf_tn5250_wdsf_ds_ct_flag1;
+static int hf_tn5250_wdsf_ds_ct_flag1_2;
+static int hf_tn5250_wdsf_ds_ct_flag1_3;
+static int hf_tn5250_wdsf_ds_ct_flag1_4;
+static int hf_tn5250_wdsf_ds_ct_flag1_5;
+static int hf_tn5250_wdsf_ds_ct_flag1_choice_state;
+static int hf_tn5250_wdsf_ds_ct_flag1_numeric_selection;
+static int hf_tn5250_wdsf_ds_ct_flag2;
+static int hf_tn5250_wdsf_ds_ct_flag2_0;
+static int hf_tn5250_wdsf_ds_ct_flag2_1;
+static int hf_tn5250_wdsf_ds_ct_flag2_2;
+static int hf_tn5250_wdsf_ds_ct_flag2_3;
+static int hf_tn5250_wdsf_ds_ct_flag2_4;
+static int hf_tn5250_wdsf_ds_ct_flag2_5;
+static int hf_tn5250_wdsf_ds_ct_flag2_6;
+static int hf_tn5250_wdsf_ds_ct_flag2_7;
+static int hf_tn5250_wdsf_ds_ct_flag3;
+static int hf_tn5250_wdsf_ds_ct_flag3_0;
+static int hf_tn5250_wdsf_ds_ct_flag3_1;
+static int hf_tn5250_wdsf_ds_ct_flag3_2;
+static int hf_tn5250_wdsf_ds_ct_mnemonic_offset;
+static int hf_tn5250_wdsf_ds_ct_numeric_onebyte;
+static int hf_tn5250_wdsf_ds_ct_numeric_twobyte;
+static int hf_tn5250_wdsf_ds_ct_text;
+static int hf_tn5250_wdsf_ds_flag1;
+static int hf_tn5250_wdsf_ds_flag1_1;
+static int hf_tn5250_wdsf_ds_flag1_2;
+static int hf_tn5250_wdsf_ds_flag1_auto_enter;
+static int hf_tn5250_wdsf_ds_flag1_mouse_characteristics;
+static int hf_tn5250_wdsf_ds_flag1_reserved;
+static int hf_tn5250_wdsf_ds_flag2;
+static int hf_tn5250_wdsf_ds_flag2_1;
+static int hf_tn5250_wdsf_ds_flag2_2;
+static int hf_tn5250_wdsf_ds_flag2_3;
+static int hf_tn5250_wdsf_ds_flag2_4;
+static int hf_tn5250_wdsf_ds_flag2_5;
+static int hf_tn5250_wdsf_ds_flag2_6;
+static int hf_tn5250_wdsf_ds_flag2_reserved;
+static int hf_tn5250_wdsf_ds_flag3;
+static int hf_tn5250_wdsf_ds_flag3_1;
+static int hf_tn5250_wdsf_ds_flag3_reserved;
+static int hf_tn5250_wdsf_ds_gdc;
+static int hf_tn5250_wdsf_ds_gdc_indicators;
+static int hf_tn5250_wdsf_ds_gdc_selection_techniques;
+static int hf_tn5250_wdsf_ds_mbs_color_sep;
+static int hf_tn5250_wdsf_ds_mbs_end_column;
+static int hf_tn5250_wdsf_ds_mbs_flag;
+static int hf_tn5250_wdsf_ds_mbs_flag_0;
+static int hf_tn5250_wdsf_ds_mbs_flag_1;
+static int hf_tn5250_wdsf_ds_mbs_flag_reserved;
+static int hf_tn5250_wdsf_ds_mbs_monochrome_sep;
+static int hf_tn5250_wdsf_ds_mbs_sep_char;
+static int hf_tn5250_wdsf_ds_mbs_start_column;
+static int hf_tn5250_wdsf_ds_minor_type;
+static int hf_tn5250_wdsf_ds_numeric_sep;
+static int hf_tn5250_wdsf_ds_nws;
+static int hf_tn5250_wdsf_ds_nws_indicators;
+static int hf_tn5250_wdsf_ds_nws_selection_techniques;
+static int hf_tn5250_wdsf_ds_nws_wout;
+static int hf_tn5250_wdsf_ds_padding;
+static int hf_tn5250_wdsf_ds_rows;
+static int hf_tn5250_wdsf_ds_sbi_bottom_character;
+static int hf_tn5250_wdsf_ds_sbi_color_top_highlight;
+static int hf_tn5250_wdsf_ds_sbi_color_top_highlight_shaft;
+static int hf_tn5250_wdsf_ds_sbi_empty_character;
+static int hf_tn5250_wdsf_ds_sbi_flag1;
+static int hf_tn5250_wdsf_ds_sbi_flag1_0;
+static int hf_tn5250_wdsf_ds_sbi_monochrome_top_highlight;
+static int hf_tn5250_wdsf_ds_sbi_monochrome_top_highlight_shaft;
+static int hf_tn5250_wdsf_ds_sbi_slider_character;
+static int hf_tn5250_wdsf_ds_sbi_top_character;
+static int hf_tn5250_wdsf_ds_sliderpos;
+static int hf_tn5250_wdsf_ds_textsize;
+static int hf_tn5250_wdsf_ds_totalrows;
+static int hf_tn5250_wdsf_ds_type;
+static int hf_tn5250_wdsf_dsb_flag1;
+static int hf_tn5250_wdsf_dsb_flag1_0;
+static int hf_tn5250_wdsf_dsb_flag1_1;
+static int hf_tn5250_wdsf_dsb_flag1_7;
+static int hf_tn5250_wdsf_pmb_first_mouse_event;
+static int hf_tn5250_wdsf_pmb_flag1;
+static int hf_tn5250_wdsf_pmb_flag1_0;
+static int hf_tn5250_wdsf_pmb_flag1_1;
+static int hf_tn5250_wdsf_pmb_flag1_2;
+static int hf_tn5250_wdsf_pmb_flag1_3;
+static int hf_tn5250_wdsf_pmb_second_mouse_event;
+static int hf_tn5250_wdsf_ragc_flag1;
+static int hf_tn5250_wdsf_ragc_flag1_0;
+static int hf_tn5250_wdsf_ragc_reserved;
+static int hf_tn5250_wdsf_rgw_flag1;
+static int hf_tn5250_wdsf_rgw_flag1_0;
+static int hf_tn5250_wdsf_rgw_flag1_1;
+static int hf_tn5250_wdsf_rgw_reserved;
+static int hf_tn5250_wdsf_sbi_rowscols;
+static int hf_tn5250_wdsf_sbi_sliderpos;
+static int hf_tn5250_wdsf_sbi_total_scroll;
+static int hf_tn5250_wdsf_wdf_flag1;
+static int hf_tn5250_wdsf_wdf_flag1_0;
+static int hf_tn5250_wea_prim_attr;
+static int hf_tn5250_wea_prim_attr_blink;
+static int hf_tn5250_wea_prim_attr_col;
+static int hf_tn5250_wea_prim_attr_flag;
+static int hf_tn5250_wea_prim_attr_int;
+static int hf_tn5250_wea_prim_attr_rev;
+static int hf_tn5250_wea_prim_attr_und;
+static int hf_tn5250_wectw_end_column;
+static int hf_tn5250_wectw_start_column;
+static int hf_tn5250_wsf_qss_flag1;
+static int hf_tn5250_wsf_qss_flag1_0;
+static int hf_tn5250_wsf_qss_flag1_reserved;
+static int hf_tn5250_wsf_qss_flag2;
+static int hf_tn5250_wsf_qss_flag2_7;
+static int hf_tn5250_wsf_qss_flag2_reserved;
+static int hf_tn5250_wssf_cc_flag1;
+static int hf_tn5250_wssf_cc_flag1_7;
+static int hf_tn5250_wssf_cc_flag1_reserved;
+static int hf_tn5250_wssf_flag1;
+static int hf_tn5250_wssf_flag2;
+static int hf_tn5250_wssf_flag2_0;
+static int hf_tn5250_wssf_flag2_1;
+static int hf_tn5250_wssf_flag2_2;
+static int hf_tn5250_wssf_flag2_3;
+static int hf_tn5250_wssf_flag2_4;
+static int hf_tn5250_wssf_flag2_5;
+static int hf_tn5250_wssf_flag2_6;
+static int hf_tn5250_wssf_flag2_7;
+static int hf_tn5250_wssf_ifc_background_color;
+static int hf_tn5250_wssf_ifc_flag1;
+static int hf_tn5250_wssf_ifc_flag1_0;
+static int hf_tn5250_wssf_ifc_flag1_1to3;
+static int hf_tn5250_wssf_ifc_flag1_4;
+static int hf_tn5250_wssf_ifc_flag1_5;
+static int hf_tn5250_wssf_ifc_flag1_6;
+static int hf_tn5250_wssf_ifc_flag1_7;
+static int hf_tn5250_wssf_ifc_flag2;
+static int hf_tn5250_wssf_ifc_flag2_0;
+static int hf_tn5250_wssf_ifc_flag2_1;
+static int hf_tn5250_wssf_ifc_flag2_7;
+static int hf_tn5250_wssf_ifc_flag2_reserved;
+static int hf_tn5250_wssf_ifc_foreground_color;
+static int hf_tn5250_wssf_ifc_image_format;
+static int hf_tn5250_wssf_ifc_imagefax_name;
+static int hf_tn5250_wssf_ifc_rotation;
+static int hf_tn5250_wssf_ifc_scaling;
+static int hf_tn5250_wssf_ifc_viewimage_location_col;
+static int hf_tn5250_wssf_ifc_viewimage_location_row;
+static int hf_tn5250_wssf_ifc_viewport_location_col;
+static int hf_tn5250_wssf_ifc_viewport_location_row;
+static int hf_tn5250_wssf_ifc_viewport_size_col;
+static int hf_tn5250_wssf_ifc_viewport_size_row;
+static int hf_tn5250_wssf_ifd_flag1;
+static int hf_tn5250_wssf_ifd_flag1_0;
+static int hf_tn5250_wssf_ifd_flag1_reserved;
+static int hf_tn5250_wssf_ifd_imagefax_data;
+static int hf_tn5250_wssf_ifd_imagefax_name;
+static int hf_tn5250_wssf_kbc_flag1;
+static int hf_tn5250_wssf_kbc_flag1_5;
+static int hf_tn5250_wssf_kbc_flag1_6;
+static int hf_tn5250_wssf_kbc_flag1_7;
+static int hf_tn5250_wssf_kbc_flag1_reserved;
+static int hf_tn5250_wssf_wsc_minor_type;
+static int hf_tn5250_wtd_ccc1;
+static int hf_tn5250_wtd_ccc2;
+static int hf_tn5250_wtd_ccc2_alarm;
+static int hf_tn5250_wtd_ccc2_cursor;
+static int hf_tn5250_wtd_ccc2_off;
+static int hf_tn5250_wtd_ccc2_on;
+static int hf_tn5250_wtd_ccc2_res;
+static int hf_tn5250_wtd_ccc2_reset;
+static int hf_tn5250_wtd_ccc2_set;
+static int hf_tn5250_wtd_ccc2_unlock;
+static int hf_tn5250_wts_cld_flag1;
+static int hf_tn5250_wts_cld_flag1_0;
+static int hf_tn5250_wts_cld_flag1_1;
+static int hf_tn5250_wts_cld_flag1_2;
+static int hf_tn5250_wts_cld_flag1_3;
+static int hf_tn5250_wts_cld_flag1_4;
+static int hf_tn5250_wts_cld_flag1_5;
+static int hf_tn5250_wts_cld_flag1_6;
+static int hf_tn5250_wts_cld_flag1_7;
+static int hf_tn5250_wts_cld_flag2;
+static int hf_tn5250_wts_cld_flag2_0;
+static int hf_tn5250_wts_cld_flag2_1;
+static int hf_tn5250_wts_cld_flag2_2;
+static int hf_tn5250_wts_cld_flag2_3;
+static int hf_tn5250_wts_cld_flag2_4;
+static int hf_tn5250_wts_cld_flag2_line_spacing;
+static int hf_tn5250_wts_cld_flag3;
+static int hf_tn5250_wts_cld_flag3_0;
+static int hf_tn5250_wts_cld_flag3_1;
+static int hf_tn5250_wts_cld_flag3_2;
+static int hf_tn5250_wts_cld_flag3_3;
+static int hf_tn5250_wts_cld_flag3_4;
+static int hf_tn5250_wts_cld_flag3_5;
+static int hf_tn5250_wts_cld_flag3_6;
+static int hf_tn5250_wts_cld_flag3_7;
+static int hf_tn5250_wts_cld_io;
+static int hf_tn5250_wts_cld_li;
+static int hf_tn5250_wts_cld_lmo;
+static int hf_tn5250_wts_cld_page_num;
+static int hf_tn5250_wts_cld_row;
+static int hf_tn5250_wts_cld_sli;
+static int hf_tn5250_wts_flag1;
+static int hf_tn5250_wts_flag1_0;
+static int hf_tn5250_wts_flag1_1;
+static int hf_tn5250_wts_flag1_2;
+static int hf_tn5250_wts_flag1_3;
+static int hf_tn5250_wts_flag1_reserved;
+static int hf_tn5250_wts_flag2;
+static int hf_tn5250_wts_flag2_6;
+static int hf_tn5250_wts_flag2_reserved;
+static int hf_tn5250_wts_flag2_reserved2;
+static int hf_tn5250_wts_flag3;
+static int hf_tn5250_wts_flag3_0;
+static int hf_tn5250_wts_flag3_1;
+static int hf_tn5250_wts_flag3_2;
+static int hf_tn5250_wts_flag3_3;
+static int hf_tn5250_wts_flag3_4;
+static int hf_tn5250_wts_flag3_5;
+static int hf_tn5250_wts_flag3_6;
+static int hf_tn5250_wts_flag3_7;
+static int hf_tn5250_wts_home_position_col;
+static int hf_tn5250_wts_home_position_row;
+static int hf_tn5250_wts_partition;
+static int hf_tn5250_soh_length;
+static int hf_tn5250_negative_response;
+static int hf_tn5250_qr_ccl;
+static int hf_tn5250_qr_chc;
+static int hf_tn5250_qr_dm;
+static int hf_tn5250_qr_dsn;
+static int hf_tn5250_qr_dt;
+static int hf_tn5250_qr_dtc;
+static int hf_tn5250_qr_eki;
+static int hf_tn5250_qr_flag;
+static int hf_tn5250_qr_flag1;
+static int hf_tn5250_qr_flag2;
+static int hf_tn5250_qr_flag3;
+static int hf_tn5250_qr_flag4;
+static int hf_tn5250_qr_ki;
+static int hf_tn5250_qr_flag1_0;
+static int hf_tn5250_qr_flag1_1;
+static int hf_tn5250_qr_flag1_2;
+static int hf_tn5250_qr_flag1_3;
+static int hf_tn5250_qr_flag1_4;
+static int hf_tn5250_qr_flag1_5;
+static int hf_tn5250_qr_flag1_6;
+static int hf_tn5250_qr_flag1_7;
+static int hf_tn5250_qr_flag2_0to3;
+static int hf_tn5250_qr_flag2_4;
+static int hf_tn5250_qr_flag2_5;
+static int hf_tn5250_qr_flag2_6to7;
+static int hf_tn5250_qr_flag_0;
+static int hf_tn5250_qr_flag_reserved;
+static int hf_tn5250_qr_mni;
+static int hf_tn5250_image_fax_error;
+static int hf_tn5250_vac_data;
+static int hf_tn5250_vac_prefix;
+static int hf_tn5250_wssf_ttw_flag;
+static int hf_tn5250_wssf_ttw_data;
+
+static int ett_tn5250;
+static int ett_tn5250_wcc;
+static int ett_sf;
+static int ett_tn5250_field_attribute;
+static int ett_tn5250_dfdpck_mask;
+static int ett_tn5250_field_validation;
+static int ett_tn5250_header_flags;
+static int ett_tn5250_roll_mask;
+static int ett_tn5250_soh_mask;
+static int ett_tn5250_soh_pf16to9_mask;
+static int ett_tn5250_soh_pf24to17_mask;
+static int ett_tn5250_soh_pf8to1_mask;
+static int ett_tn5250_sps_mask;
+static int ett_tn5250_wdsf_cw_bp_mask;
+static int ett_tn5250_wdsf_cw_mask;
+static int ett_tn5250_wdsf_cw_tf_mask;
+static int ett_tn5250_wdsf_deg_mask;
+static int ett_tn5250_wdsf_deg_ms_mask;
+static int ett_tn5250_wdsf_ds_ci_mask;
+static int ett_tn5250_wdsf_ds_cpda_mask;
+static int ett_tn5250_wdsf_ds_ct_mask;
+static int ett_tn5250_wdsf_ds_mask;
+static int ett_tn5250_wdsf_ds_mbs_mask;
+static int ett_tn5250_wdsf_ds_sbi_mask;
+static int ett_tn5250_wdsf_dsb_mask;
+static int ett_tn5250_wdsf_pmb_mask;
+static int ett_tn5250_wdsf_ragc_mask;
+static int ett_tn5250_wdsf_rgw_mask;
+static int ett_tn5250_wdsf_wdf_mask;
+static int ett_tn5250_wsf_dpo_mask;
+static int ett_tn5250_wsf_dsl_mask;
+static int ett_tn5250_wsf_dtsf_mask;
+static int ett_tn5250_wsf_qss_mask;
+static int ett_tn5250_wsf_rts_mask;
+static int ett_tn5250_wssf_cc_mask;
+static int ett_tn5250_wssf_ifc_mask;
+static int ett_tn5250_wssf_ifd_mask;
+static int ett_tn5250_wssf_kbc_mask;
+static int ett_tn5250_wssf_mask;
+static int ett_tn5250_wts_mask;
+static int ett_tn5250_qr_mask;
+static int ett_tn5250_wea_prim_attr;
+static int ett_cc;
+
+static expert_field ei_tn5250_command_code;
+
+static uint32_t dissect_tn5250_orders_and_data(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset);
typedef struct hf_items {
int *phf;
- gint bitmask_ett;
+ int bitmask_ett;
int length;
int * const *bitmask;
- gint encoding;
+ int encoding;
} hf_items;
/* Utility Functions */
-static gint
-tn5250_is_valid_aid(gint aid)
+static int
+tn5250_is_valid_aid(int aid)
{
switch (aid) {
case AID_CLEAR:
@@ -2949,8 +2949,8 @@ tn5250_is_valid_aid(gint aid)
return 0;
}
-static guint32
-tn5250_add_hf_items(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset,
+static uint32_t
+tn5250_add_hf_items(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset,
const hf_items *fields)
{
int start=offset, byte;
@@ -2959,7 +2959,7 @@ tn5250_add_hf_items(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset,
for (i = 0; fields[i].phf; ++i) {
if (fields[i].bitmask == 0) {
/* Skip an 0xFF byte acting as an escape byte */
- byte = tvb_get_guint8(tvb,offset);
+ byte = tvb_get_uint8(tvb,offset);
if (byte == 0xFF) {
offset++;
}
@@ -2975,9 +2975,9 @@ tn5250_add_hf_items(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset,
return (offset - start);
}
-static guint32
-dissect_unknown_data(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset,
- gint start, gint sf_length)
+static uint32_t
+dissect_unknown_data(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset,
+ int start, int sf_length)
{
int len_left;
@@ -2991,8 +2991,8 @@ dissect_unknown_data(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset,
return 0;
}
-static guint32
-dissect_wcc(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_wcc(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
static int * const wcc_byte[] = {
@@ -3019,8 +3019,8 @@ dissect_wcc(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
}
-static guint32
-dissect_row_column(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_row_column(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
proto_tree_add_item(tn5250_tree, hf_tn5250_buffer_x, tvb, offset, 1, ENC_BIG_ENDIAN);
@@ -3037,15 +3037,15 @@ dissect_row_column(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
/* Start: Handle WCC, Orders and Data */
/* 15.6.8 Erase to Address Order */
-static guint32
-dissect_erase_to_address(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_erase_to_address(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
int i, length = 0;
dissect_row_column(tn5250_tree, tvb, offset);
- length = tvb_get_guint8(tvb, offset);
+ length = tvb_get_uint8(tvb, offset);
proto_tree_add_item(tn5250_tree, hf_tn5250_length, tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
@@ -3059,8 +3059,8 @@ dissect_erase_to_address(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
}
/* 15.6.9 Start of Header Order */
-static guint32
-dissect_start_of_header(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_start_of_header(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
@@ -3113,8 +3113,8 @@ dissect_start_of_header(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
}
/* 15.6.10 Transparent Data */
-static guint32
-dissect_twobyte_length_and_data(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_twobyte_length_and_data(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
int length = 0;
@@ -3136,8 +3136,8 @@ dissect_twobyte_length_and_data(proto_tree *tn5250_tree, tvbuff_t *tvb, gint off
}
/* 15.6.11 Write Extended Attribute Order */
-static guint32
-dissect_field_attribute_pair(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_field_attribute_pair(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
int attribute_type;
@@ -3149,7 +3149,7 @@ dissect_field_attribute_pair(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset
NULL
};
- attribute_type = tvb_get_guint8(tvb, offset);
+ attribute_type = tvb_get_uint8(tvb, offset);
proto_tree_add_item(tn5250_tree, hf_tn5250_attribute_type, tvb, offset, 1,
ENC_BIG_ENDIAN);
offset++;
@@ -3178,8 +3178,8 @@ dissect_field_attribute_pair(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset
}
/* 15.6.12 Start of Field Order */
-static guint32
-dissect_start_of_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_start_of_field(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
int done = 0;
@@ -3217,13 +3217,13 @@ dissect_start_of_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
{ NULL, 0, 0, 0, 0 }
};
- ffw = tvb_get_guint8(tvb, offset);
+ ffw = tvb_get_uint8(tvb, offset);
if (ffw & FFW_ID) {
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset,
outbound_text_header_fields);
while (tvb_reported_length_remaining(tvb, offset) > 0 && !done) {
- fcw = tvb_get_guint8(tvb, offset);
+ fcw = tvb_get_uint8(tvb, offset);
switch (fcw) {
case SELECTOR:
case IDEOGRAPHIC:
@@ -3246,7 +3246,7 @@ dissect_start_of_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
}
}
- fa = tvb_get_guint8(tvb, offset);
+ fa = tvb_get_uint8(tvb, offset);
if (fa & FA_ID) {
proto_tree_add_bitmask(tn5250_tree, tvb, offset, hf_tn5250_fa,
@@ -3265,8 +3265,8 @@ dissect_start_of_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
}
/* 15.6.13 Write To Display Structured Field Order */
-static guint32
-dissect_create_window(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_create_window(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
int length = 0;
@@ -3333,13 +3333,13 @@ dissect_create_window(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, cw_fields);
while (tvb_reported_length_remaining(tvb, offset) > 0 && !done) {
- minor_structure = tvb_get_guint8(tvb, offset+1);
+ minor_structure = tvb_get_uint8(tvb, offset+1);
switch (minor_structure) {
case CW_BORDER_PRESENTATION:
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, cwbp_fields);
break;
case CW_TITLE_FOOTER:
- length = tvb_get_guint8(tvb,offset);
+ length = tvb_get_uint8(tvb,offset);
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, cw_tf_fields);
if (length < 6) {
/* XXX - expert info on the length field */
@@ -3347,7 +3347,7 @@ dissect_create_window(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
}
proto_tree_add_item(tn5250_tree, hf_tn5250_wdsf_cw_tf_text, tvb, offset,
(length - 6), ENC_EBCDIC);
- offset += (guint32)((length - 6));
+ offset += (uint32_t)((length - 6));
break;
default:
done = 1;
@@ -3358,8 +3358,8 @@ dissect_create_window(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
return (offset - start);
}
-static guint32
-dissect_define_selection(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_define_selection(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
int length = 0;
@@ -3539,11 +3539,11 @@ dissect_define_selection(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, ds_fields);
while (tvb_reported_length_remaining(tvb, offset) > 0 && !done) {
- minor_structure = tvb_get_guint8(tvb, offset+1);
+ minor_structure = tvb_get_uint8(tvb, offset+1);
switch (minor_structure) {
case DS_CHOICE_TEXT:
- length = tvb_get_guint8(tvb, offset);
- digit_selection = tvb_get_guint8(tvb, offset+2);
+ length = tvb_get_uint8(tvb, offset);
+ digit_selection = tvb_get_uint8(tvb, offset+2);
/*
* XXX - the document says the AID field is present only if
* the "AID if selected" flag bit is set.
@@ -3566,7 +3566,7 @@ dissect_define_selection(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
proto_tree_add_item(tn5250_tree, hf_tn5250_wdsf_ds_ct_text, tvb, offset,
(length - (offset - minor_structure_start)),
ENC_EBCDIC);
- offset += (guint32)((length - (offset - minor_structure_start)));
+ offset += (uint32_t)((length - (offset - minor_structure_start)));
break;
case DS_MENU_BAR_SEPARATOR:
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, ds_mbs_fields);
@@ -3588,8 +3588,8 @@ dissect_define_selection(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
return (offset - start);
}
-static guint32
-dissect_define_scrollbar(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_define_scrollbar(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
int done = 0, minor_structure = 0;
@@ -3633,7 +3633,7 @@ dissect_define_scrollbar(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, dsb_fields);
while (tvb_reported_length_remaining(tvb, offset) > 0 && !done) {
- minor_structure = tvb_get_guint8(tvb, offset+1);
+ minor_structure = tvb_get_uint8(tvb, offset+1);
switch (minor_structure) {
case DS_SCROLLBAR_INDICATORS:
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, ds_sbi_fields);
@@ -3646,8 +3646,8 @@ dissect_define_scrollbar(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
return (offset - start);
}
-static guint32
-dissect_draw_erase_gridlines(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_draw_erase_gridlines(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
int done = 0, minor_structure=0;
@@ -3696,7 +3696,7 @@ dissect_draw_erase_gridlines(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, deg_fields);
while (tvb_reported_length_remaining(tvb, offset) > 0 && !done) {
- minor_structure = tvb_get_guint8(tvb, offset+1);
+ minor_structure = tvb_get_uint8(tvb, offset+1);
switch (minor_structure) {
case UPPER_HORIZONTAL_LINE:
case LOWER_HORIZONTAL_LINE:
@@ -3716,8 +3716,8 @@ dissect_draw_erase_gridlines(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset
return (offset - start);
}
-static guint32
-dissect_wdsf_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_wdsf_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
int minor_structure_start;
@@ -3795,7 +3795,7 @@ dissect_wdsf_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offse
};
length = tvb_get_ntohs(tvb,offset);
- type = tvb_get_guint8(tvb, offset+3);
+ type = tvb_get_uint8(tvb, offset+3);
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, standard_fields);
@@ -3833,7 +3833,7 @@ dissect_wdsf_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offse
}
proto_tree_add_item(tn5250_tree, hf_tn5250_field_data, tvb, offset,
(length - 6), ENC_EBCDIC);
- offset += (guint32)((length - 6));
+ offset += (uint32_t)((length - 6));
break;
case PROGRAMMABLE_MOUSE_BUTTONS:
minor_structure_start = start;
@@ -3870,14 +3870,14 @@ dissect_wdsf_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offse
/* 15.6 WRITE TO DISPLAY Command - Orders and Data */
-static guint32
-dissect_tn5250_ra_data(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_tn5250_ra_data(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
- gint order_code, done = 0;
- gint start = offset;
+ int order_code, done = 0;
+ int start = offset;
while (tvb_reported_length_remaining(tvb, offset) > 0 && !done) {
- order_code = tvb_get_guint8(tvb, offset);
+ order_code = tvb_get_uint8(tvb, offset);
switch (order_code) {
case TN5250_IC:
case TN5250_MC:
@@ -3906,18 +3906,18 @@ dissect_tn5250_ra_data(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
}
-static guint32
-dissect_tn5250_orders_and_data(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_tn5250_orders_and_data(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
- gint start = offset, done = 0;
- gint order_code;
+ int start = offset, done = 0;
+ int order_code;
proto_tree *cc_tree;
proto_item *ti;
/* Order Code */
while (tvb_reported_length_remaining(tvb, offset) > 0 && !done) {
- order_code = tvb_get_guint8(tvb, offset);
+ order_code = tvb_get_uint8(tvb, offset);
switch (order_code) {
case TN5250_IC:
case TN5250_MC:
@@ -3989,8 +3989,8 @@ dissect_tn5250_orders_and_data(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offs
}
/* 15.22 SAVE PARTIAL SCREEN Command */
-static guint32
-dissect_save_partial_screen(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_save_partial_screen(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
int length = 0;
@@ -4011,7 +4011,7 @@ dissect_save_partial_screen(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
{ NULL, 0, 0, 0, 0 }
};
- length = tvb_get_guint8(tvb, offset);
+ length = tvb_get_uint8(tvb, offset);
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset,
save_partial_screen_fields);
@@ -4022,8 +4022,8 @@ dissect_save_partial_screen(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
}
/* 15.25 ROLL Command */
-static guint32
-dissect_roll(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_roll(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
@@ -4048,9 +4048,9 @@ dissect_roll(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
}
/* 15.26 WRITE SINGLE STRUCTURED FIELD Command */
-static guint32
+static uint32_t
dissect_write_single_structured_field_minor_fields(proto_tree *tn5250_tree,
- tvbuff_t *tvb, gint offset)
+ tvbuff_t *tvb, int offset)
{
int start = offset;
@@ -4085,7 +4085,7 @@ dissect_write_single_structured_field_minor_fields(proto_tree *tn5250_tree,
};
while (tvb_reported_length_remaining(tvb, offset) > 0 && !done) {
- type = tvb_get_guint8(tvb, offset+1);
+ type = tvb_get_uint8(tvb, offset+1);
switch (type) {
case KEYSTROKE_BUFFERING_CONTROL:
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset,
@@ -4105,13 +4105,13 @@ dissect_write_single_structured_field_minor_fields(proto_tree *tn5250_tree,
}
-static guint32
+static uint32_t
dissect_write_single_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb,
- gint offset)
+ int offset)
{
int start = offset;
int length, type, done = 0;
- guint32 namelength;
+ uint32_t namelength;
static int * const byte[] = {
&hf_tn5250_wssf_flag2_0,
@@ -4192,7 +4192,7 @@ dissect_write_single_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb,
};
length = tvb_get_ntohs(tvb,offset);
- type = tvb_get_guint8(tvb, offset+3);
+ type = tvb_get_uint8(tvb, offset+3);
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, standard_fields);
@@ -4214,7 +4214,7 @@ dissect_write_single_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb,
proto_tree_add_item(tn5250_tree, hf_tn5250_wssf_ifc_imagefax_name, tvb, offset,
(length - (start + offset)), ENC_EBCDIC);
if (length > (start + offset))
- offset += (guint32)(length - (start + offset));
+ offset += (uint32_t)(length - (start + offset));
break;
case IMAGE_FAX_DOWNLOAD:
namelength = tvb_get_ntohs(tvb,offset+6);
@@ -4226,7 +4226,7 @@ dissect_write_single_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb,
proto_tree_add_item(tn5250_tree, hf_tn5250_wssf_ifd_imagefax_data, tvb, offset,
(length - (start + offset)), ENC_NA);
if (length > (start + offset))
- offset += (guint32)(length - (start + offset));
+ offset += (uint32_t)(length - (start + offset));
break;
case VIDEO_AUDIO_CONTROLS:
proto_tree_add_item(tn5250_tree, hf_tn5250_vac_prefix, tvb, offset,
@@ -4243,7 +4243,7 @@ dissect_write_single_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb,
proto_tree_add_item(tn5250_tree, hf_tn5250_wssf_ttw_data, tvb, offset,
(length - (start + offset)), ENC_NA);
if (length > (start + offset))
- offset += (guint32)(length - (start + offset));
+ offset += (uint32_t)(length - (start + offset));
break;
default:
done = 1;
@@ -4256,11 +4256,11 @@ dissect_write_single_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb,
}
/* 15.27 WRITE STRUCTURED FIELD Command */
-static guint32
-dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
- guint16 sf_length = 0;
+ uint16_t sf_length = 0;
int length, type, done = 0, used = 0;
hf_items standard_fields[] = {
@@ -4578,7 +4578,7 @@ dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offs
while (tvb_reported_length_remaining(tvb, offset) > 0 && !done) {
sf_length = tvb_get_ntohs(tvb,offset);
- type = tvb_get_guint8(tvb, offset+3);
+ type = tvb_get_uint8(tvb, offset+3);
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, standard_fields);
@@ -4586,7 +4586,7 @@ dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offs
case PASS_THROUGH:
proto_tree_add_item(tn5250_tree, hf_tn5250_field_data, tvb, offset,
(sf_length - (start + offset)), ENC_EBCDIC);
- offset += (guint32)(sf_length - (start + offset));
+ offset += (uint32_t)(sf_length - (start + offset));
break;
case TN5250_QUERY:
proto_tree_add_item(tn5250_tree, hf_tn5250_reserved, tvb, offset,
@@ -4601,7 +4601,7 @@ dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offs
1, ENC_BIG_ENDIAN);
offset += 1;
while ((offset - start) < sf_length) {
- length = tvb_get_guint8(tvb,offset);
+ length = tvb_get_uint8(tvb,offset);
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, dawt_fields);
if (length < 2) {
/* XXX - expert info on the length field */
@@ -4617,7 +4617,7 @@ dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offs
1, ENC_BIG_ENDIAN);
offset++;
while ((offset - start) < sf_length) {
- length = tvb_get_guint8(tvb,offset);
+ length = tvb_get_uint8(tvb,offset);
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset,
dckf_fields);
if (length < 2) {
@@ -4642,14 +4642,14 @@ dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offs
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, dsl_fields);
while ((offset - start) < sf_length) {
/* XXX length unused
- length = tvb_get_guint8(tvb,offset); */
+ length = tvb_get_uint8(tvb,offset); */
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, dsl_fields2);
}
break;
case WRITE_TEXT_SCREEN:
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset,
wts_fields);
- length = tvb_get_guint8(tvb,offset);
+ length = tvb_get_uint8(tvb,offset);
used = tn5250_add_hf_items(tn5250_tree, tvb, offset,
wts_line_data_fields);
offset += used;
@@ -4669,7 +4669,7 @@ dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offs
1, ENC_BIG_ENDIAN);
offset++;
while ((offset - start) < sf_length) {
- length = tvb_get_guint8(tvb,offset);
+ length = tvb_get_uint8(tvb,offset);
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset,
dorm_fields);
if (length < 2) {
@@ -4704,8 +4704,8 @@ dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offs
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset,
dfdpck_fields);
while ((offset - start) < sf_length) {
- length = tvb_get_guint8(tvb,offset);
- type = tvb_get_guint8(tvb,offset+1);
+ length = tvb_get_uint8(tvb,offset);
+ type = tvb_get_uint8(tvb,offset+1);
if (type == CORE_AREA_COMMAND_KEYS) {
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset,
dfdpck_core_area_fields);
@@ -4713,7 +4713,7 @@ dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offs
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset,
dfdpck_top_row_fields);
} else {
- guint32 step;
+ uint32_t step;
step = dissect_unknown_data(tn5250_tree, tvb, offset, start, length);
if (step==0)
@@ -4735,8 +4735,8 @@ dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offs
/* 15.27.2 5250 Query Command - Response */
/*TN5250 - RFC1205 - Query Reply Fields */
-static guint32
-dissect_query_reply(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_query_reply(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start = offset;
@@ -4824,8 +4824,8 @@ dissect_query_reply(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
/* End: Handle WCC, Orders and Data */
-static guint32
-dissect_tn5250_header(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static uint32_t
+dissect_tn5250_header(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
int start=offset;
@@ -4851,7 +4851,7 @@ dissect_tn5250_header(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
{ NULL, 0, 0, 0, 0 }
};
- error_flag = tvb_get_guint8(tvb, offset+8);
+ error_flag = tvb_get_uint8(tvb, offset+8);
offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, fields);
@@ -4865,14 +4865,14 @@ dissect_tn5250_header(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
#if 0
/* XXX - unused */
/* Detect and Handle Direction of Stream */
-static gint
-dissect_tn5250_data_until_next_command(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset)
+static int
+dissect_tn5250_data_until_next_command(proto_tree *tn5250_tree, tvbuff_t *tvb, int offset)
{
- gint order_code, done = 0;
- gint start = offset;
+ int order_code, done = 0;
+ int start = offset;
while (tvb_reported_length_remaining(tvb, offset) > 0 && !done) {
- order_code = tvb_get_guint8(tvb, offset);
+ order_code = tvb_get_uint8(tvb, offset);
switch (order_code) {
case CLEAR_UNIT:
case CLEAR_FORMAT_TABLE:
@@ -4916,12 +4916,12 @@ dissect_tn5250_data_until_next_command(proto_tree *tn5250_tree, tvbuff_t *tvb, g
}
#endif
-static guint32
+static uint32_t
// NOLINTNEXTLINE(misc-no-recursion)
-dissect_outbound_stream(proto_tree *tn5250_tree, packet_info *pinfo, tvbuff_t *tvb, gint offset)
+dissect_outbound_stream(proto_tree *tn5250_tree, packet_info *pinfo, tvbuff_t *tvb, int offset)
{
- gint command_code;
- gint start = offset, length = 0;
+ int command_code;
+ int start = offset, length = 0;
proto_tree *cc_tree;
proto_item *ti, *item;
@@ -4932,7 +4932,7 @@ dissect_outbound_stream(proto_tree *tn5250_tree, packet_info *pinfo, tvbuff_t *t
cc_tree = proto_item_add_subtree(ti, ett_cc);
/* Command Code*/
- command_code = tvb_get_guint8(tvb, offset);
+ command_code = tvb_get_uint8(tvb, offset);
item = proto_tree_add_item(cc_tree, hf_tn5250_command_code, tvb, offset, 1,
ENC_BIG_ENDIAN);
offset++;
@@ -4959,7 +4959,7 @@ dissect_outbound_stream(proto_tree *tn5250_tree, packet_info *pinfo, tvbuff_t *t
proto_tree_add_item(cc_tree, hf_tn5250_field_data, tvb, offset,
tvb_reported_length_remaining(tvb, offset) - 1,
ENC_EBCDIC);
- offset += (guint32)(tvb_reported_length_remaining(tvb, offset) - 1);
+ offset += (uint32_t)(tvb_reported_length_remaining(tvb, offset) - 1);
proto_tree_add_item(cc_tree, hf_tn5250_fa, tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
break;
@@ -5030,11 +5030,11 @@ dissect_outbound_stream(proto_tree *tn5250_tree, packet_info *pinfo, tvbuff_t *t
return (offset - start);
}
-static guint32
-dissect_inbound_stream(proto_tree *tn5250_tree, packet_info *pinfo, tvbuff_t *tvb, gint offset, gint sna_flag)
+static uint32_t
+dissect_inbound_stream(proto_tree *tn5250_tree, packet_info *pinfo, tvbuff_t *tvb, int offset, int sna_flag)
{
- gint start = offset, aid;
- guint32 commands;
+ int start = offset, aid;
+ uint32_t commands;
if (sna_flag & 0x01) { /* Stream contains error code */
@@ -5049,7 +5049,7 @@ dissect_inbound_stream(proto_tree *tn5250_tree, packet_info *pinfo, tvbuff_t *tv
return (offset - start);
}
- aid = tvb_get_guint8(tvb,offset+2);
+ aid = tvb_get_uint8(tvb,offset+2);
if (tn5250_is_valid_aid(aid)) {
switch(aid) {
case AID_IMAGE_FAX_REQUEST:
@@ -5077,7 +5077,7 @@ dissect_inbound_stream(proto_tree *tn5250_tree, packet_info *pinfo, tvbuff_t *tv
} else {
/* FIXME: need to know when escape/commands are expected. */
/* Check the response data for commands */
- if (tvb_get_guint8(tvb,offset) == TN5250_ESCAPE) {
+ if (tvb_get_uint8(tvb,offset) == TN5250_ESCAPE) {
commands = dissect_outbound_stream(tn5250_tree, pinfo, tvb, offset);
/* It if contained commands then we're done. Anything else is unexpected data */
if (commands) {
@@ -5108,7 +5108,7 @@ dissect_tn5250(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _
{
proto_tree *tn5250_tree;
proto_item *ti;
- gint offset = 0;
+ int offset = 0;
conversation_t *conversation;
tn5250_conv_info_t *tn5250_info = NULL;
int sna_flag;
@@ -7473,7 +7473,7 @@ proto_register_tn5250(void)
};
- static gint *ett[] = {
+ static int *ett[] = {
&ett_tn5250,
&ett_sf,
&ett_tn5250_wcc,