diff options
Diffstat (limited to 'epan/dissectors/asn1/h225/packet-h225-template.c')
-rw-r--r-- | epan/dissectors/asn1/h225/packet-h225-template.c | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/epan/dissectors/asn1/h225/packet-h225-template.c b/epan/dissectors/asn1/h225/packet-h225-template.c index cb504f0744..2f34962cf7 100644 --- a/epan/dissectors/asn1/h225/packet-h225-template.c +++ b/epan/dissectors/asn1/h225/packet-h225-template.c @@ -103,20 +103,20 @@ static next_tvb_list_t *h245_list; static next_tvb_list_t *tp_list; /* Initialize the protocol and registered fields */ -static int h225_tap = -1; -static int proto_h225 = -1; +static int h225_tap; +static int proto_h225; -static int hf_h221Manufacturer = -1; -static int hf_h225_ras_req_frame = -1; -static int hf_h225_ras_rsp_frame = -1; -static int hf_h225_ras_dup = -1; -static int hf_h225_ras_deltatime = -1; -static int hf_h225_debug_dissector_try_string = -1; +static int hf_h221Manufacturer; +static int hf_h225_ras_req_frame; +static int hf_h225_ras_rsp_frame; +static int hf_h225_ras_dup; +static int hf_h225_ras_deltatime; +static int hf_h225_debug_dissector_try_string; #include "packet-h225-hf.c" /* Initialize the subtree pointers */ -static gint ett_h225 = -1; +static gint ett_h225; #include "packet-h225-ett.c" /* Preferences */ @@ -175,7 +175,7 @@ typedef enum _ras_category { #define NUM_RAS_STATS 7 static tap_packet_status -h225rassrt_packet(void *phs, packet_info *pinfo _U_, epan_dissect_t *edt _U_, const void *phi) +h225rassrt_packet(void *phs, packet_info *pinfo _U_, epan_dissect_t *edt _U_, const void *phi, tap_flags_t flags _U_) { rtd_data_t* rtd_data = (rtd_data_t*)phs; rtd_stat_table* rs = &rtd_data->stat_table; @@ -463,6 +463,7 @@ static void h225_stat_init(stat_tap_table_ui* new_stat) return; } + memset(items, 0x0, sizeof(items)); table = stat_tap_init_table(table_name, num_fields, 0, NULL); stat_tap_add_table(new_stat, table); @@ -675,7 +676,7 @@ static void h225_stat_init(stat_tap_table_ui* new_stat) } static tap_packet_status -h225_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_, const void *hpi_ptr) +h225_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_, const void *hpi_ptr, tap_flags_t flags _U_) { stat_data_t* stat_data = (stat_data_t*)tapdata; const h225_packet_info *hpi = (const h225_packet_info *)hpi_ptr; @@ -765,12 +766,12 @@ h225_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_, if (tag_idx >= 0) { stat_tap_table*table = g_array_index(stat_data->stat_tap_data->tables, stat_tap_table*, 0); - stat_tap_table_item_type* msg_data = stat_tap_get_field_data(table, tag_idx, COUNT_COLUMN);; + stat_tap_table_item_type* msg_data = stat_tap_get_field_data(table, tag_idx, COUNT_COLUMN); msg_data->value.uint_value++; stat_tap_set_field_data(table, tag_idx, COUNT_COLUMN, msg_data); if (reason_idx >= 0) { - msg_data = stat_tap_get_field_data(table, reason_idx, COUNT_COLUMN);; + msg_data = stat_tap_get_field_data(table, reason_idx, COUNT_COLUMN); msg_data->value.uint_value++; stat_tap_set_field_data(table, reason_idx, COUNT_COLUMN, msg_data); } @@ -888,11 +889,11 @@ void proto_register_h225(void) { register_dissector("h323ui",dissect_h225_H323UserInformation, proto_h225); h225ras_handle = register_dissector("h225.ras", dissect_h225_h225_RasMessage, proto_h225); - nsp_object_dissector_table = register_dissector_table("h225.nsp.object", "H.225 NonStandardParameter Object", proto_h225, FT_STRING, BASE_NONE); + nsp_object_dissector_table = register_dissector_table("h225.nsp.object", "H.225 NonStandardParameter Object", proto_h225, FT_STRING, STRING_CASE_SENSITIVE); nsp_h221_dissector_table = register_dissector_table("h225.nsp.h221", "H.225 NonStandardParameter h221", proto_h225, FT_UINT32, BASE_HEX); - tp_dissector_table = register_dissector_table("h225.tp", "H.225 Tunnelled Protocol", proto_h225, FT_STRING, BASE_NONE); - gef_name_dissector_table = register_dissector_table("h225.gef.name", "H.225 Generic Extensible Framework Name", proto_h225, FT_STRING, BASE_NONE); - gef_content_dissector_table = register_dissector_table("h225.gef.content", "H.225 Generic Extensible Framework Content", proto_h225, FT_STRING, BASE_NONE); + tp_dissector_table = register_dissector_table("h225.tp", "H.225 Tunnelled Protocol", proto_h225, FT_STRING, STRING_CASE_SENSITIVE); + gef_name_dissector_table = register_dissector_table("h225.gef.name", "H.225 Generic Extensible Framework Name", proto_h225, FT_STRING, STRING_CASE_SENSITIVE); + gef_content_dissector_table = register_dissector_table("h225.gef.content", "H.225 Generic Extensible Framework Content", proto_h225, FT_STRING, STRING_CASE_SENSITIVE); for(i=0;i<7;i++) { ras_calls[i] = wmem_map_new_autoreset(wmem_epan_scope(), wmem_file_scope(), h225ras_call_hash, h225ras_call_equal); |