From a36ef87b8e650fb4fd260764db1c94f3919d1b0d Mon Sep 17 00:00:00 2001 From: etxrab Date: Thu, 6 Nov 2008 21:49:21 +0000 Subject: From Pascal Quantin: Add 3GPP Special Conformance Testing Procedures to GSM statistics git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26716 f5534014-38df-0310-8fa8-9805f1628bb7 --- tap-gsm_astat.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'tap-gsm_astat.c') diff --git a/tap-gsm_astat.c b/tap-gsm_astat.c index 9c2c85fd7c..e00fce7809 100644 --- a/tap-gsm_astat.c +++ b/tap-gsm_astat.c @@ -57,6 +57,7 @@ typedef struct _gsm_a_stat_t { int dtap_sms_message_type[0xff]; int dtap_sm_message_type[0xff]; int dtap_ss_message_type[0xff]; + int dtap_tp_message_type[0xff]; } gsm_a_stat_t; @@ -100,6 +101,9 @@ gsm_a_stat_packet( case PD_SS: stat_p->dtap_ss_message_type[tap_p->message_type]++; break; + case PD_TP: + stat_p->dtap_tp_message_type[tap_p->message_type]++; + break; default: /* * unsupported PD @@ -265,6 +269,23 @@ gsm_a_stat_draw( i++; } + printf("\nDTAP %s\n", gsm_a_pd_str[PD_TP]); + printf("Message (ID)Type Number\n"); + + i = 0; + while (gsm_a_dtap_msg_tp_strings[i].strptr) + { + if (stat_p->dtap_tp_message_type[gsm_a_dtap_msg_tp_strings[i].value] > 0) + { + printf("0x%02x %-50s%d\n", + gsm_a_dtap_msg_tp_strings[i].value, + gsm_a_dtap_msg_tp_strings[i].strptr, + stat_p->dtap_tp_message_type[gsm_a_dtap_msg_tp_strings[i].value]); + } + + i++; + } + printf("==============================================================\n"); } -- cgit v1.2.3