diff options
author | Anders Broman <anders.broman@ericsson.com> | 2008-11-07 17:37:22 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2008-11-07 17:37:22 +0000 |
commit | 04f9b031ef12a275c76a9a982f1539306d081fba (patch) | |
tree | 6290f0a612c02de34b41ac3d31143fcc73c755aa /tap-gsm_astat.c | |
parent | ed3800368888a33a35e98909abfee30d83b80ea5 (diff) |
From Pascal Quantin:
Add 3GPP 44.018 RR Short Protocol Discriminator dissection.
svn path=/trunk/; revision=26730
Diffstat (limited to 'tap-gsm_astat.c')
-rw-r--r-- | tap-gsm_astat.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tap-gsm_astat.c b/tap-gsm_astat.c index e00fce7809..2c7f26431c 100644 --- a/tap-gsm_astat.c +++ b/tap-gsm_astat.c @@ -58,6 +58,7 @@ typedef struct _gsm_a_stat_t { int dtap_sm_message_type[0xff]; int dtap_ss_message_type[0xff]; int dtap_tp_message_type[0xff]; + int sacch_rr_message_type[0xff]; } gsm_a_stat_t; @@ -112,6 +113,19 @@ gsm_a_stat_packet( } break; + case GSM_A_PDU_TYPE_SACCH: + switch (tap_p->protocol_disc) + { + case 0: + stat_p->sacch_rr_message_type[tap_p->message_type]++; + break; + default: + /* unknown Short PD */ + break; + } + break; + + default: /* * unknown PDU type !!! @@ -286,6 +300,23 @@ gsm_a_stat_draw( i++; } + printf("\nSACCH Radio Resources Management messages\n"); + printf("Message (ID)Type Number\n"); + + i = 0; + while (gsm_a_sacch_msg_rr_strings[i].strptr) + { + if (stat_p->sacch_rr_message_type[gsm_a_sacch_msg_rr_strings[i].value] > 0) + { + printf("0x%02x %-50s%d\n", + gsm_a_sacch_msg_rr_strings[i].value, + gsm_a_sacch_msg_rr_strings[i].strptr, + stat_p->sacch_rr_message_type[gsm_a_sacch_msg_rr_strings[i].value]); + } + + i++; + } + printf("==============================================================\n"); } |