aboutsummaryrefslogtreecommitdiffstats
path: root/tap-gsm_astat.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-11-06 21:49:21 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-11-06 21:49:21 +0000
commite95a3f43c8fe2b921d2448f277c9c370c73339cf (patch)
tree9c8654031ddaffa75bff53d71d3b87dc9ac8da83 /tap-gsm_astat.c
parentac85993e583a805127e35e9b3c2174f09f5d4216 (diff)
From Pascal Quantin:
Add 3GPP Special Conformance Testing Procedures to GSM statistics svn path=/trunk/; revision=26716
Diffstat (limited to 'tap-gsm_astat.c')
-rw-r--r--tap-gsm_astat.c21
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");
}