diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-11-06 21:49:21 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-11-06 21:49:21 +0000 |
commit | a36ef87b8e650fb4fd260764db1c94f3919d1b0d (patch) | |
tree | 9c8654031ddaffa75bff53d71d3b87dc9ac8da83 /tap-gsm_astat.c | |
parent | 68a0a4a7e39ad220aa48d2281f350fb5b19e1439 (diff) |
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
Diffstat (limited to 'tap-gsm_astat.c')
-rw-r--r-- | tap-gsm_astat.c | 21 |
1 files changed, 21 insertions, 0 deletions
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"); } |