3 * Copyright 2003, Michael Lum <mlum [AT] telostech.com>
4 * In association with Telos Technology Inc.
6 * MUCH code modified from service_response_time_table.c.
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1998 Gerald Combs
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 * This TAP provides statistics for the GSM A-Interface:
40 #include "epan/packet_info.h"
41 #include "epan/epan.h"
42 #include "epan/value_string.h"
43 #include <epan/stat_cmd_args.h>
45 #include <epan/dissectors/packet-bssap.h>
46 #include <epan/dissectors/packet-gsm_a_common.h>
48 #include "../stat_menu.h"
49 #include "../simple_dialog.h"
51 #include "gtk/gui_stat_menu.h"
52 #include "gtk/dlg_utils.h"
53 #include "gtk/filter_dlg.h"
54 #include "gtk/gui_utils.h"
61 N_COLUMN /* The number of columns */
64 typedef struct _gsm_a_stat_dlg_t {
66 GtkWidget *scrolled_win;
70 typedef struct _gsm_a_stat_t {
71 int bssmap_message_type[0xff];
72 int dtap_mm_message_type[0xff];
73 int dtap_rr_message_type[0xff];
74 int dtap_cc_message_type[0xff];
75 int dtap_gmm_message_type[0xff];
76 int dtap_sms_message_type[0xff];
77 int dtap_sm_message_type[0xff];
78 int dtap_ss_message_type[0xff];
79 int dtap_tp_message_type[0xff];
80 int sacch_rr_message_type[0xff];
84 static gsm_a_stat_dlg_t dlg_bssmap;
85 static gsm_a_stat_dlg_t dlg_dtap_mm;
86 static gsm_a_stat_dlg_t dlg_dtap_rr;
87 static gsm_a_stat_dlg_t dlg_dtap_cc;
88 static gsm_a_stat_dlg_t dlg_dtap_gmm;
89 static gsm_a_stat_dlg_t dlg_dtap_sms;
90 static gsm_a_stat_dlg_t dlg_dtap_sm;
91 static gsm_a_stat_dlg_t dlg_dtap_ss;
92 static gsm_a_stat_dlg_t dlg_dtap_tp;
93 static gsm_a_stat_dlg_t dlg_sacch_rr;
94 static gsm_a_stat_t gsm_a_stat;
98 GtkWidget* create_list(void)
101 GtkListStore *list_store;
103 GtkTreeViewColumn *column;
104 GtkCellRenderer *renderer;
105 GtkTreeSortable *sortable;
106 GtkTreeView *list_view;
107 GtkTreeSelection *selection;
109 /* Create the store */
110 list_store = gtk_list_store_new(N_COLUMN, /* Total number of columns XXX*/
111 G_TYPE_UINT, /* IEI */
112 G_TYPE_STRING, /* Message Name */
113 G_TYPE_UINT); /* Count */
116 list = gtk_tree_view_new_with_model (GTK_TREE_MODEL (list_store));
118 list_view = GTK_TREE_VIEW(list);
119 sortable = GTK_TREE_SORTABLE(list_store);
121 #if GTK_CHECK_VERSION(2,6,0)
122 /* Speed up the list display */
123 gtk_tree_view_set_fixed_height_mode(list_view, TRUE);
126 /* Setup the sortable columns */
127 gtk_tree_sortable_set_sort_column_id(sortable, IEI_COLUMN, GTK_SORT_ASCENDING);
128 gtk_tree_view_set_headers_clickable(list_view, FALSE);
130 /* The view now holds a reference. We can get rid of our own reference */
131 g_object_unref (G_OBJECT (list_store));
134 * Create the first column packet, associating the "text" attribute of the
135 * cell_renderer to the first column of the model
137 renderer = gtk_cell_renderer_text_new ();
138 column = gtk_tree_view_column_new_with_attributes ("IEI", renderer,
142 /* gtk_tree_view_column_set_cell_data_func(column, renderer, present_as_hex_func,
143 GINT_TO_POINTER(IEI_COLUMN), NULL);
146 gtk_tree_view_column_set_sort_column_id(column, IEI_COLUMN);
147 gtk_tree_view_column_set_resizable(column, TRUE);
148 gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_FIXED);
149 gtk_tree_view_column_set_min_width(column, 50);
151 /* Add the column to the view. */
152 gtk_tree_view_append_column (list_view, column);
154 /* Second column.. Message Name. */
155 renderer = gtk_cell_renderer_text_new ();
156 column = gtk_tree_view_column_new_with_attributes ("Message Name", renderer,
157 "text", MSG_NAME_COLUMN,
159 gtk_tree_view_column_set_sort_column_id(column, MSG_NAME_COLUMN);
160 gtk_tree_view_column_set_resizable(column, TRUE);
161 gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_FIXED);
162 gtk_tree_view_column_set_min_width(column, 280);
163 gtk_tree_view_append_column (list_view, column);
165 /* Third column.. Count. */
166 renderer = gtk_cell_renderer_text_new ();
167 column = gtk_tree_view_column_new_with_attributes ("Count", renderer,
168 "text", COUNT_COLUMN,
172 gtk_tree_view_column_set_sort_column_id(column, COUNT_COLUMN);
173 gtk_tree_view_column_set_resizable(column, TRUE);
174 gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_FIXED);
175 gtk_tree_view_column_set_min_width(column, 50);
176 gtk_tree_view_append_column (list_view, column);
178 /* Now enable the sorting of each column */
179 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(list_view), TRUE);
180 gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(list_view), TRUE);
182 /* Setup the selection handler */
183 selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(list));
184 gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE);
193 gsm_a_stat_t *stat_p = tapdata;
195 memset(stat_p, 0, sizeof(gsm_a_stat_t));
202 packet_info *pinfo _U_,
203 epan_dissect_t *edt _U_,
206 gsm_a_stat_t *stat_p = tapdata;
207 const gsm_a_tap_rec_t *data_p = data;
209 switch (data_p->pdu_type)
211 case BSSAP_PDU_TYPE_BSSMAP:
212 stat_p->bssmap_message_type[data_p->message_type]++;
215 case BSSAP_PDU_TYPE_DTAP:
216 switch (data_p->protocol_disc)
219 stat_p->dtap_cc_message_type[data_p->message_type]++;
222 stat_p->dtap_mm_message_type[data_p->message_type]++;
225 stat_p->dtap_rr_message_type[data_p->message_type]++;
228 stat_p->dtap_gmm_message_type[data_p->message_type]++;
231 stat_p->dtap_sms_message_type[data_p->message_type]++;
234 stat_p->dtap_sm_message_type[data_p->message_type]++;
237 stat_p->dtap_ss_message_type[data_p->message_type]++;
240 stat_p->dtap_tp_message_type[data_p->message_type]++;
250 case GSM_A_PDU_TYPE_SACCH:
251 switch (data_p->protocol_disc)
254 stat_p->sacch_rr_message_type[data_p->message_type]++;
257 /* unknown Short PD */
264 * unknown PDU type !!!
275 gsm_a_stat_dlg_t *dlg_p,
277 const value_string *msg_strings)
279 GtkListStore *list_store;
284 if (dlg_p->win != NULL){
286 list_store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW (dlg_p->table))); /* Get store */
288 while (msg_strings[i].strptr){
289 /* Creates a new row at position. iter will be changed to point to this new row.
290 * If position is larger than the number of rows on the list, then the new row will be appended to the list.
291 * The row will be filled with the values given to this function.
293 * should generally be preferred when inserting rows in a sorted list store.
295 #if GTK_CHECK_VERSION(2,6,0)
296 gtk_list_store_insert_with_values( list_store , &iter, G_MAXINT,
298 gtk_list_store_append (list_store, &iter);
299 gtk_list_store_set (list_store, &iter,
301 IEI_COLUMN, msg_strings[i].value,
302 MSG_NAME_COLUMN, (char *)msg_strings[i].strptr,
303 COUNT_COLUMN, message_count[msg_strings[i].value],
314 gsm_a_stat_t *stat_p = tapdata;
316 if (!tapdata) return;
318 if (dlg_bssmap.win != NULL)
320 gsm_a_stat_draw_aux(&dlg_bssmap,
321 stat_p->bssmap_message_type,
322 gsm_a_bssmap_msg_strings);
325 if (dlg_dtap_mm.win != NULL)
327 gsm_a_stat_draw_aux(&dlg_dtap_mm,
328 stat_p->dtap_mm_message_type,
329 gsm_a_dtap_msg_mm_strings);
332 if (dlg_dtap_rr.win != NULL)
334 gsm_a_stat_draw_aux(&dlg_dtap_rr,
335 stat_p->dtap_rr_message_type,
336 gsm_a_dtap_msg_rr_strings);
339 if (dlg_dtap_cc.win != NULL)
341 gsm_a_stat_draw_aux(&dlg_dtap_cc,
342 stat_p->dtap_cc_message_type,
343 gsm_a_dtap_msg_cc_strings);
346 if (dlg_dtap_gmm.win != NULL)
348 gsm_a_stat_draw_aux(&dlg_dtap_gmm,
349 stat_p->dtap_gmm_message_type,
350 gsm_a_dtap_msg_gmm_strings);
353 if (dlg_dtap_sms.win != NULL)
355 gsm_a_stat_draw_aux(&dlg_dtap_sms,
356 stat_p->dtap_sms_message_type,
357 gsm_a_dtap_msg_sms_strings);
360 if (dlg_dtap_sm.win != NULL)
362 gsm_a_stat_draw_aux(&dlg_dtap_sm,
363 stat_p->dtap_sm_message_type,
364 gsm_a_dtap_msg_sm_strings);
367 if (dlg_dtap_ss.win != NULL)
369 gsm_a_stat_draw_aux(&dlg_dtap_ss,
370 stat_p->dtap_ss_message_type,
371 gsm_a_dtap_msg_ss_strings);
374 if (dlg_dtap_tp.win != NULL)
376 gsm_a_stat_draw_aux(&dlg_dtap_tp,
377 stat_p->dtap_tp_message_type,
378 gsm_a_dtap_msg_tp_strings);
381 if (dlg_sacch_rr.win != NULL)
383 gsm_a_stat_draw_aux(&dlg_sacch_rr,
384 stat_p->sacch_rr_message_type,
385 gsm_a_sacch_msg_rr_strings);
392 gsm_a_stat_gtk_win_destroy_cb(
396 memset((void *) user_data, 0, sizeof(gsm_a_stat_dlg_t));
401 gsm_a_stat_gtk_win_create(
402 gsm_a_stat_dlg_t *dlg_p,
410 dlg_p->win = dlg_window_new(title); /* transient_for top_level */
411 gtk_window_set_destroy_with_parent (GTK_WINDOW(dlg_p->win), TRUE);
412 gtk_window_set_default_size(GTK_WINDOW(dlg_p->win), 490, 500);
414 vbox = gtk_vbox_new(FALSE, 3);
415 gtk_container_add(GTK_CONTAINER(dlg_p->win), vbox);
416 gtk_container_set_border_width(GTK_CONTAINER(vbox), 12);
418 dlg_p->scrolled_win = scrolled_window_new(NULL, NULL);
419 gtk_box_pack_start(GTK_BOX(vbox), dlg_p->scrolled_win, TRUE, TRUE, 0);
421 dlg_p->table = create_list();
422 gtk_container_add(GTK_CONTAINER(dlg_p->scrolled_win), dlg_p->table);
425 bbox = dlg_button_row_new(GTK_STOCK_CLOSE, NULL);
426 gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 0);
428 bt_close = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_CLOSE);
429 window_set_cancel_button(dlg_p->win, bt_close, window_cancel_button_cb);
431 g_signal_connect(dlg_p->win, "delete_event", G_CALLBACK(window_delete_event_cb), NULL);
432 g_signal_connect(dlg_p->win, "destroy", G_CALLBACK(gsm_a_stat_gtk_win_destroy_cb), dlg_p);
434 gtk_widget_show_all(dlg_p->win);
435 window_present(dlg_p->win);
438 #ifdef MAIN_MENU_USE_UIMANAGER
439 void gsm_a_stat_gtk_bssmap_cb(GtkAction *action, gpointer user_data )
442 gsm_a_stat_gtk_bssmap_cb(
451 * if the window is already open, bring it to front
455 gdk_window_raise(dlg_bssmap.win->window);
459 gsm_a_stat_gtk_win_create(&dlg_bssmap, "GSM A-I/F BSSMAP Statistics");
460 gsm_a_stat_draw(&gsm_a_stat);
465 gsm_a_stat_gtk_bssmap_init(
466 const char *optarg _U_,
469 gsm_a_stat_gtk_bssmap_cb(NULL, NULL);
472 #ifdef MAIN_MENU_USE_UIMANAGER
474 gsm_a_stat_gtk_dtap_cb(
475 GtkAction *action _U_,
476 gpointer user_data _U_,
477 gsm_a_stat_dlg_t *dlg_dtap_p,
479 const value_string *dtap_msg_strings _U_)
482 gsm_a_stat_gtk_dtap_cb(
485 gsm_a_stat_dlg_t *dlg_dtap_p,
487 const value_string *dtap_msg_strings _U_)
492 * if the window is already open, bring it to front
496 gdk_window_raise(dlg_dtap_p->win->window);
500 gsm_a_stat_gtk_win_create(dlg_dtap_p, title);
502 gsm_a_stat_draw(&gsm_a_stat);
505 #ifdef MAIN_MENU_USE_UIMANAGER
507 gsm_a_stat_gtk_dtap_mm_cb(GtkAction *action, gpointer user_data )
509 gsm_a_stat_gtk_dtap_cb(action, user_data, &dlg_dtap_mm,
510 "GSM A-I/F DTAP Mobility Management Statistics",
511 gsm_a_dtap_msg_mm_strings);
515 gsm_a_stat_gtk_dtap_mm_cb(
519 gsm_a_stat_gtk_dtap_cb(w, d, &dlg_dtap_mm,
520 "GSM A-I/F DTAP Mobility Management Statistics",
521 gsm_a_dtap_msg_mm_strings);
525 gsm_a_stat_gtk_dtap_mm_init(const char *optarg _U_,
528 gsm_a_stat_gtk_dtap_mm_cb(NULL, NULL);
531 #ifdef MAIN_MENU_USE_UIMANAGER
533 gsm_a_stat_gtk_dtap_rr_cb(GtkAction *action, gpointer user_data )
535 gsm_a_stat_gtk_dtap_cb(action, user_data, &dlg_dtap_rr,
536 "GSM A-I/F DTAP Radio Resource Management Statistics",
537 gsm_a_dtap_msg_rr_strings);
541 gsm_a_stat_gtk_dtap_rr_cb(
545 gsm_a_stat_gtk_dtap_cb(w, d, &dlg_dtap_rr,
546 "GSM A-I/F DTAP Radio Resource Management Statistics",
547 gsm_a_dtap_msg_rr_strings);
553 gsm_a_stat_gtk_dtap_rr_init(const char *optarg _U_,
556 gsm_a_stat_gtk_dtap_rr_cb(NULL, NULL);
559 #ifdef MAIN_MENU_USE_UIMANAGER
561 gsm_a_stat_gtk_dtap_cc_cb(GtkAction *action, gpointer user_data )
563 gsm_a_stat_gtk_dtap_cb(action, user_data, &dlg_dtap_cc,
564 "GSM A-I/F DTAP Call Control Statistics",
565 gsm_a_dtap_msg_cc_strings);
569 gsm_a_stat_gtk_dtap_cc_cb(
573 gsm_a_stat_gtk_dtap_cb(w, d, &dlg_dtap_cc,
574 "GSM A-I/F DTAP Call Control Statistics",
575 gsm_a_dtap_msg_cc_strings);
580 gsm_a_stat_gtk_dtap_cc_init(const char *optarg _U_,
583 gsm_a_stat_gtk_dtap_cc_cb(NULL, NULL);
586 #ifdef MAIN_MENU_USE_UIMANAGER
588 gsm_a_stat_gtk_dtap_gmm_cb(GtkAction *action, gpointer user_data )
590 gsm_a_stat_gtk_dtap_cb(action, user_data, &dlg_dtap_gmm,
591 "GSM A-I/F DTAP GPRS Mobility Management Statistics",
592 gsm_a_dtap_msg_gmm_strings);
597 gsm_a_stat_gtk_dtap_gmm_cb(
601 gsm_a_stat_gtk_dtap_cb(w, d, &dlg_dtap_gmm,
602 "GSM A-I/F DTAP GPRS Mobility Management Statistics",
603 gsm_a_dtap_msg_gmm_strings);
608 gsm_a_stat_gtk_dtap_gmm_init(const char *optarg _U_,
611 gsm_a_stat_gtk_dtap_gmm_cb(NULL, NULL);
614 #ifdef MAIN_MENU_USE_UIMANAGER
616 gsm_a_stat_gtk_dtap_sms_cb(GtkAction *action, gpointer user_data )
618 gsm_a_stat_gtk_dtap_cb(action, user_data, &dlg_dtap_sms,
619 "GSM A-I/F DTAP Short Message Service Statistics",
620 gsm_a_dtap_msg_sms_strings);
624 gsm_a_stat_gtk_dtap_sms_cb(
628 gsm_a_stat_gtk_dtap_cb(w, d, &dlg_dtap_sms,
629 "GSM A-I/F DTAP Short Message Service Statistics",
630 gsm_a_dtap_msg_sms_strings);
635 gsm_a_stat_gtk_dtap_sms_init(const char *optarg _U_,
638 gsm_a_stat_gtk_dtap_sms_cb(NULL, NULL);
641 #ifdef MAIN_MENU_USE_UIMANAGER
643 gsm_a_stat_gtk_dtap_sm_cb(GtkAction *action, gpointer user_data )
645 gsm_a_stat_gtk_dtap_cb(action, user_data, &dlg_dtap_sm,
646 "GSM A-I/F DTAP GPRS Session Management Statistics",
647 gsm_a_dtap_msg_sm_strings);
651 gsm_a_stat_gtk_dtap_sm_cb(
655 gsm_a_stat_gtk_dtap_cb(w, d, &dlg_dtap_sm,
656 "GSM A-I/F DTAP GPRS Session Management Statistics",
657 gsm_a_dtap_msg_sm_strings);
662 gsm_a_stat_gtk_dtap_sm_init(const char *optarg _U_,
665 gsm_a_stat_gtk_dtap_sm_cb(NULL, NULL);
668 #ifdef MAIN_MENU_USE_UIMANAGER
670 gsm_a_stat_gtk_dtap_ss_cb(GtkAction *action, gpointer user_data )
672 gsm_a_stat_gtk_dtap_cb(action, user_data, &dlg_dtap_ss,
673 "GSM A-I/F DTAP Supplementary Services Statistics",
674 gsm_a_dtap_msg_ss_strings);
678 gsm_a_stat_gtk_dtap_ss_cb(
682 gsm_a_stat_gtk_dtap_cb(w, d, &dlg_dtap_ss,
683 "GSM A-I/F DTAP Supplementary Services Statistics",
684 gsm_a_dtap_msg_ss_strings);
689 gsm_a_stat_gtk_dtap_ss_init(
690 const char *optarg _U_,
693 gsm_a_stat_gtk_dtap_ss_cb(NULL, NULL);
696 #ifdef MAIN_MENU_USE_UIMANAGER
698 gsm_a_stat_gtk_dtap_tp_cb(GtkAction *action, gpointer user_data )
700 gsm_a_stat_gtk_dtap_cb(action, user_data, &dlg_dtap_tp,
701 "GSM A-I/F DTAP Special Conformance Testing Functions Statistics",
702 gsm_a_dtap_msg_tp_strings);
706 gsm_a_stat_gtk_dtap_tp_cb(
710 gsm_a_stat_gtk_dtap_cb(w, d, &dlg_dtap_tp,
711 "GSM A-I/F DTAP Special Conformance Testing Functions Statistics",
712 gsm_a_dtap_msg_tp_strings);
717 gsm_a_stat_gtk_dtap_tp_init(
718 const char *optarg _U_,
721 gsm_a_stat_gtk_dtap_tp_cb(NULL, NULL);
724 #ifdef MAIN_MENU_USE_UIMANAGER
726 gsm_a_stat_gtk_sacch_rr_cb(GtkAction *action _U_, gpointer user_data _U_ )
730 * if the window is already open, bring it to front
732 if (dlg_sacch_rr.win)
734 gdk_window_raise(dlg_sacch_rr.win->window);
738 gsm_a_stat_gtk_win_create(&dlg_sacch_rr, "GSM A-I/F SACCH Statistics");
739 gsm_a_stat_draw(&gsm_a_stat);
743 gsm_a_stat_gtk_sacch_rr_cb(
749 * if the window is already open, bring it to front
751 if (dlg_sacch_rr.win)
753 gdk_window_raise(dlg_sacch_rr.win->window);
757 gsm_a_stat_gtk_win_create(&dlg_sacch_rr, "GSM A-I/F SACCH Statistics");
758 gsm_a_stat_draw(&gsm_a_stat);
763 gsm_a_stat_gtk_sacch_rr_init(
764 const char *optarg _U_,
767 gsm_a_stat_gtk_sacch_rr_cb(NULL, NULL);
771 register_tap_listener_gtkgsm_a_stat(void)
776 memset((void *) &gsm_a_stat, 0, sizeof(gsm_a_stat_t));
779 register_tap_listener("gsm_a", &gsm_a_stat, NULL, 0,
786 simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", err_p->str);
787 g_string_free(err_p, TRUE);
792 #ifdef MAIN_MENU_USE_UIMANAGER
794 register_stat_menu_item("_GSM/A-Interface BSSMAP", REGISTER_STAT_GROUP_TELEPHONY,
795 gsm_a_stat_gtk_bssmap_cb, NULL, NULL, NULL);
796 register_stat_menu_item("_GSM/A-Interface DTAP/Mobility Management", REGISTER_STAT_GROUP_TELEPHONY,
797 gsm_a_stat_gtk_dtap_mm_cb, NULL, NULL, NULL);
798 register_stat_menu_item("_GSM/A-Interface DTAP/Radio Resource Management", REGISTER_STAT_GROUP_TELEPHONY,
799 gsm_a_stat_gtk_dtap_rr_cb, NULL, NULL, NULL);
800 register_stat_menu_item("_GSM/A-Interface DTAP/Call Control", REGISTER_STAT_GROUP_TELEPHONY,
801 gsm_a_stat_gtk_dtap_cc_cb, NULL, NULL, NULL);
802 register_stat_menu_item("_GSM/A-Interface DTAP/GPRS Mobility Management", REGISTER_STAT_GROUP_TELEPHONY,
803 gsm_a_stat_gtk_dtap_gmm_cb, NULL, NULL, NULL);
804 register_stat_menu_item("_GSM/A-Interface DTAP/Short Message Service", REGISTER_STAT_GROUP_TELEPHONY,
805 gsm_a_stat_gtk_dtap_sms_cb, NULL, NULL, NULL);
806 register_stat_menu_item("_GSM/A-Interface DTAP/GPRS Session Management", REGISTER_STAT_GROUP_TELEPHONY,
807 gsm_a_stat_gtk_dtap_sm_cb, NULL, NULL, NULL);
808 register_stat_menu_item("_GSM/A-Interface DTAP/Supplementary Services", REGISTER_STAT_GROUP_TELEPHONY,
809 gsm_a_stat_gtk_dtap_ss_cb, NULL, NULL, NULL);
810 register_stat_menu_item("_GSM/A-Interface DTAP/Special Conformance Testing Functions", REGISTER_STAT_GROUP_TELEPHONY,
811 gsm_a_stat_gtk_dtap_tp_cb, NULL, NULL, NULL);
812 register_stat_menu_item("_GSM/A-Interface SACCH", REGISTER_STAT_GROUP_TELEPHONY,
813 gsm_a_stat_gtk_sacch_rr_cb, NULL, NULL, NULL);
816 register_stat_cmd_arg("gsm_a,bssmap", gsm_a_stat_gtk_bssmap_init,NULL);
818 register_stat_cmd_arg("gsm_a,dtap_mm", gsm_a_stat_gtk_dtap_mm_init,NULL);
820 register_stat_cmd_arg("gsm_a,dtap_rr", gsm_a_stat_gtk_dtap_rr_init,NULL);
822 register_stat_cmd_arg("gsm_a,dtap_cc", gsm_a_stat_gtk_dtap_cc_init,NULL);
824 register_stat_cmd_arg("gsm_a,dtap_gmm", gsm_a_stat_gtk_dtap_gmm_init,NULL);
826 register_stat_cmd_arg("gsm_a,dtap_sms", gsm_a_stat_gtk_dtap_sms_init,NULL);
828 register_stat_cmd_arg("gsm_a,dtap_sm", gsm_a_stat_gtk_dtap_sm_init,NULL);
830 register_stat_cmd_arg("gsm_a,dtap_ss", gsm_a_stat_gtk_dtap_ss_init,NULL);
832 register_stat_cmd_arg("gsm_a,dtap_tp", gsm_a_stat_gtk_dtap_tp_init,NULL);
834 register_stat_cmd_arg("gsm_a,sacch", gsm_a_stat_gtk_sacch_rr_init,NULL);