diff options
Diffstat (limited to 'epan/dissectors/packet-gsm_a_common.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_common.c | 284 |
1 files changed, 142 insertions, 142 deletions
diff --git a/epan/dissectors/packet-gsm_a_common.c b/epan/dissectors/packet-gsm_a_common.c index 39b03fc406..84b7f4ba44 100644 --- a/epan/dissectors/packet-gsm_a_common.c +++ b/epan/dissectors/packet-gsm_a_common.c @@ -3598,78 +3598,78 @@ static void gsm_a_stat_init(new_stat_tap_ui* new_stat, new_stat_tap_gui_init_cb /* Add a row for each value type */ for (i = 0; i < 256; i++) { - const char *msg_str = try_val_to_str(i, msg_strings); - char *col_str; - if (msg_str) { - col_str = g_strdup(msg_str); - } else { - col_str = g_strdup_printf("Unknown message %d", i); - } + const char *msg_str = try_val_to_str(i, msg_strings); + char *col_str; + if (msg_str) { + col_str = g_strdup(msg_str); + } else { + col_str = g_strdup_printf("Unknown message %d", i); + } items[IEI_COLUMN].value.uint_value = i; - items[MSG_NAME_COLUMN].value.string_value = col_str; - new_stat_tap_init_table_row(table, i, num_fields, items); + items[MSG_NAME_COLUMN].value.string_value = col_str; + new_stat_tap_init_table_row(table, i, num_fields, items); } } static void gsm_a_bssmap_stat_init(new_stat_tap_ui* new_stat, new_stat_tap_gui_init_cb gui_callback, void* gui_data) { gsm_a_stat_init(new_stat, gui_callback, gui_data, - "GSM A-I/F BSSMAP Statistics", gsm_a_bssmap_msg_strings); + "GSM A-I/F BSSMAP Statistics", gsm_a_bssmap_msg_strings); } static void gsm_a_dtap_mm_stat_init(new_stat_tap_ui* new_stat, new_stat_tap_gui_init_cb gui_callback, void* gui_data) { gsm_a_stat_init(new_stat, gui_callback, gui_data, - "GSM A-I/F DTAP Mobility Management Statistics", gsm_a_dtap_msg_mm_strings); + "GSM A-I/F DTAP Mobility Management Statistics", gsm_a_dtap_msg_mm_strings); } static void gsm_a_dtap_rr_stat_init(new_stat_tap_ui* new_stat, new_stat_tap_gui_init_cb gui_callback, void* gui_data) { gsm_a_stat_init(new_stat, gui_callback, gui_data, - "GSM A-I/F DTAP Radio Resource Management Statistics", gsm_a_dtap_msg_rr_strings); + "GSM A-I/F DTAP Radio Resource Management Statistics", gsm_a_dtap_msg_rr_strings); } static void gsm_a_dtap_cc_stat_init(new_stat_tap_ui* new_stat, new_stat_tap_gui_init_cb gui_callback, void* gui_data) { gsm_a_stat_init(new_stat, gui_callback, gui_data, - "GSM A-I/F DTAP Call Control Statistics", gsm_a_dtap_msg_cc_strings); + "GSM A-I/F DTAP Call Control Statistics", gsm_a_dtap_msg_cc_strings); } static void gsm_a_dtap_gmm_stat_init(new_stat_tap_ui* new_stat, new_stat_tap_gui_init_cb gui_callback, void* gui_data) { gsm_a_stat_init(new_stat, gui_callback, gui_data, - "GSM A-I/F DTAP GPRS Mobility Management Statistics", gsm_a_dtap_msg_gmm_strings); + "GSM A-I/F DTAP GPRS Mobility Management Statistics", gsm_a_dtap_msg_gmm_strings); } static void gsm_a_dtap_sm_stat_init(new_stat_tap_ui* new_stat, new_stat_tap_gui_init_cb gui_callback, void* gui_data) { gsm_a_stat_init(new_stat, gui_callback, gui_data, - "GSM A-I/F DTAP GPRS Session Management Statistics", gsm_a_dtap_msg_sm_strings); + "GSM A-I/F DTAP GPRS Session Management Statistics", gsm_a_dtap_msg_sm_strings); } static void gsm_a_dtap_sms_stat_init(new_stat_tap_ui* new_stat, new_stat_tap_gui_init_cb gui_callback, void* gui_data) { gsm_a_stat_init(new_stat, gui_callback, gui_data, - "GSM A-I/F DTAP Short Message Service Statistics", gsm_a_dtap_msg_sms_strings); + "GSM A-I/F DTAP Short Message Service Statistics", gsm_a_dtap_msg_sms_strings); } static void gsm_a_dtap_tp_stat_init(new_stat_tap_ui* new_stat, new_stat_tap_gui_init_cb gui_callback, void* gui_data) { gsm_a_stat_init(new_stat, gui_callback, gui_data, - "GSM A-I/F DTAP Special Conformance Testing Functions", gsm_a_dtap_msg_tp_strings); + "GSM A-I/F DTAP Special Conformance Testing Functions", gsm_a_dtap_msg_tp_strings); } static void gsm_a_dtap_ss_stat_init(new_stat_tap_ui* new_stat, new_stat_tap_gui_init_cb gui_callback, void* gui_data) { gsm_a_stat_init(new_stat, gui_callback, gui_data, - "GSM A-I/F DTAP Supplementary Services Statistics", gsm_a_dtap_msg_ss_strings); + "GSM A-I/F DTAP Supplementary Services Statistics", gsm_a_dtap_msg_ss_strings); } static void gsm_a_sacch_rr_stat_init(new_stat_tap_ui* new_stat, new_stat_tap_gui_init_cb gui_callback, void* gui_data) { gsm_a_stat_init(new_stat, gui_callback, gui_data, - "GSM A-I/F SACCH Statistics", gsm_a_rr_short_pd_msg_strings); + "GSM A-I/F SACCH Statistics", gsm_a_rr_short_pd_msg_strings); } static gboolean @@ -3761,9 +3761,9 @@ gsm_a_stat_reset(new_stat_tap_table* table) for (element = 0; element < table->num_elements; element++) { - item_data = new_stat_tap_get_field_data(table, element, COUNT_COLUMN); - item_data->value.uint_value = 0; - new_stat_tap_set_field_data(table, element, COUNT_COLUMN, item_data); + item_data = new_stat_tap_get_field_data(table, element, COUNT_COLUMN); + item_data->value.uint_value = 0; + new_stat_tap_set_field_data(table, element, COUNT_COLUMN, item_data); } } @@ -4718,153 +4718,153 @@ proto_register_gsm_a_common(void) }; static new_stat_tap_ui gsm_a_bssmap_stat_table = { - REGISTER_STAT_GROUP_TELEPHONY_GSM, - "A-Interface BSSMAP", - "gsm_a", - "gsm_a,bssmap", - gsm_a_bssmap_stat_init, - gsm_a_bssmap_stat_packet, - gsm_a_stat_reset, - gsm_a_stat_free_table_item, - NULL, - sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, - sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + REGISTER_STAT_GROUP_TELEPHONY_GSM, + "A-Interface BSSMAP", + "gsm_a", + "gsm_a,bssmap", + gsm_a_bssmap_stat_init, + gsm_a_bssmap_stat_packet, + gsm_a_stat_reset, + gsm_a_stat_free_table_item, + NULL, + sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, + sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, + NULL }; static new_stat_tap_ui gsm_a_dtap_mm_stat_table = { - REGISTER_STAT_GROUP_TELEPHONY_GSM, - "A-Interface DTAP Mobility Management", - "gsm_a", - "gsm_a,dtap_mm", - gsm_a_dtap_mm_stat_init, - gsm_a_dtap_mm_stat_packet, - gsm_a_stat_reset, - NULL, - NULL, - sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, - sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + REGISTER_STAT_GROUP_TELEPHONY_GSM, + "A-Interface DTAP Mobility Management", + "gsm_a", + "gsm_a,dtap_mm", + gsm_a_dtap_mm_stat_init, + gsm_a_dtap_mm_stat_packet, + gsm_a_stat_reset, + NULL, + NULL, + sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, + sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, + NULL }; static new_stat_tap_ui gsm_a_dtap_rr_stat_table = { - REGISTER_STAT_GROUP_TELEPHONY_GSM, - "A-Interface DTAP Radio Resource Management", - "gsm_a", - "gsm_a,dtap_rr", - gsm_a_dtap_rr_stat_init, - gsm_a_dtap_rr_stat_packet, - gsm_a_stat_reset, - NULL, - NULL, - sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, - sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + REGISTER_STAT_GROUP_TELEPHONY_GSM, + "A-Interface DTAP Radio Resource Management", + "gsm_a", + "gsm_a,dtap_rr", + gsm_a_dtap_rr_stat_init, + gsm_a_dtap_rr_stat_packet, + gsm_a_stat_reset, + NULL, + NULL, + sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, + sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, + NULL }; static new_stat_tap_ui gsm_a_dtap_cc_stat_table = { - REGISTER_STAT_GROUP_TELEPHONY_GSM, - "A-Interface DTAP Call Control", - "gsm_a", - "gsm_a,dtap_cc", - gsm_a_dtap_cc_stat_init, - gsm_a_dtap_cc_stat_packet, - gsm_a_stat_reset, - NULL, - NULL, - sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, - sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + REGISTER_STAT_GROUP_TELEPHONY_GSM, + "A-Interface DTAP Call Control", + "gsm_a", + "gsm_a,dtap_cc", + gsm_a_dtap_cc_stat_init, + gsm_a_dtap_cc_stat_packet, + gsm_a_stat_reset, + NULL, + NULL, + sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, + sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, + NULL }; static new_stat_tap_ui gsm_a_dtap_gmm_stat_table = { - REGISTER_STAT_GROUP_TELEPHONY_GSM, - "A-Interface DTAP GPRS Mobility Management", - "gsm_a", - "gsm_a,dtap_gmm", - gsm_a_dtap_gmm_stat_init, - gsm_a_dtap_gmm_stat_packet, - gsm_a_stat_reset, - NULL, - NULL, - sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, - sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + REGISTER_STAT_GROUP_TELEPHONY_GSM, + "A-Interface DTAP GPRS Mobility Management", + "gsm_a", + "gsm_a,dtap_gmm", + gsm_a_dtap_gmm_stat_init, + gsm_a_dtap_gmm_stat_packet, + gsm_a_stat_reset, + NULL, + NULL, + sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, + sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, + NULL }; static new_stat_tap_ui gsm_a_dtap_sm_stat_table = { - REGISTER_STAT_GROUP_TELEPHONY_GSM, - "A-Interface DTAP GPRS Session Management", - "gsm_a", - "gsm_a,dtap_sm", - gsm_a_dtap_sm_stat_init, - gsm_a_dtap_sm_stat_packet, - gsm_a_stat_reset, - NULL, - NULL, - sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, - sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + REGISTER_STAT_GROUP_TELEPHONY_GSM, + "A-Interface DTAP GPRS Session Management", + "gsm_a", + "gsm_a,dtap_sm", + gsm_a_dtap_sm_stat_init, + gsm_a_dtap_sm_stat_packet, + gsm_a_stat_reset, + NULL, + NULL, + sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, + sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, + NULL }; static new_stat_tap_ui gsm_a_dtap_sms_stat_table = { - REGISTER_STAT_GROUP_TELEPHONY_GSM, - "A-Interface DTAP Short Message Service", - "gsm_a", - "gsm_a,dtap_sms", - gsm_a_dtap_sms_stat_init, - gsm_a_dtap_sms_stat_packet, - gsm_a_stat_reset, - NULL, - NULL, - sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, - sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + REGISTER_STAT_GROUP_TELEPHONY_GSM, + "A-Interface DTAP Short Message Service", + "gsm_a", + "gsm_a,dtap_sms", + gsm_a_dtap_sms_stat_init, + gsm_a_dtap_sms_stat_packet, + gsm_a_stat_reset, + NULL, + NULL, + sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, + sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, + NULL }; static new_stat_tap_ui gsm_a_dtap_tp_stat_table = { - REGISTER_STAT_GROUP_TELEPHONY_GSM, - "A-Interface DTAP Special Conformance Testing Functions", - "gsm_a", - "gsm_a,dtap_tp", - gsm_a_dtap_tp_stat_init, - gsm_a_dtap_tp_stat_packet, - gsm_a_stat_reset, - NULL, - NULL, - sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, - sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + REGISTER_STAT_GROUP_TELEPHONY_GSM, + "A-Interface DTAP Special Conformance Testing Functions", + "gsm_a", + "gsm_a,dtap_tp", + gsm_a_dtap_tp_stat_init, + gsm_a_dtap_tp_stat_packet, + gsm_a_stat_reset, + NULL, + NULL, + sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, + sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, + NULL }; static new_stat_tap_ui gsm_a_dtap_ss_stat_table = { - REGISTER_STAT_GROUP_TELEPHONY_GSM, - "A-Interface DTAP Supplementary Services", - "gsm_a", - "gsm_a,dtap_ss", - gsm_a_dtap_ss_stat_init, - gsm_a_dtap_ss_stat_packet, - gsm_a_stat_reset, - NULL, - NULL, - sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, - sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + REGISTER_STAT_GROUP_TELEPHONY_GSM, + "A-Interface DTAP Supplementary Services", + "gsm_a", + "gsm_a,dtap_ss", + gsm_a_dtap_ss_stat_init, + gsm_a_dtap_ss_stat_packet, + gsm_a_stat_reset, + NULL, + NULL, + sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, + sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, + NULL }; static new_stat_tap_ui gsm_a_sacch_rr_stat_table = { - REGISTER_STAT_GROUP_TELEPHONY_GSM, - "A-Interface SACCH", - "gsm_a", - "gsm_a,dtap_sacch", - gsm_a_sacch_rr_stat_init, - gsm_a_sacch_rr_stat_packet, - gsm_a_stat_reset, - NULL, - NULL, - sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, - sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + REGISTER_STAT_GROUP_TELEPHONY_GSM, + "A-Interface SACCH", + "gsm_a", + "gsm_a,dtap_sacch", + gsm_a_sacch_rr_stat_init, + gsm_a_sacch_rr_stat_packet, + gsm_a_stat_reset, + NULL, + NULL, + sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, + sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, + NULL }; last_offset = NUM_INDIVIDUAL_ELEMS; |