aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_a_common.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2015-08-08 16:52:38 +0200
committerAnders Broman <a.broman58@gmail.com>2015-08-10 08:31:18 +0000
commit7fb514fe4d2da9a3898c27a2d689baf3ae4136df (patch)
tree0884e3c81ac5d3bebe67774040113f6881ca6cfe /epan/dissectors/packet-gsm_a_common.c
parent76d4b80b8ed2b9589a3bc153abecfa47da9016fb (diff)
GSM (a_common): fix indent (replace tab by 8 spaces)
Change-Id: Id1d6bfcb04ac75d767fe6f09454dc8235de7bc75 Reviewed-on: https://code.wireshark.org/review/9928 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-gsm_a_common.c')
-rw-r--r--epan/dissectors/packet-gsm_a_common.c284
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;