diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2009-04-17 13:27:25 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2009-04-17 13:27:25 +0000 |
commit | c5db90ba6095a59c2ee2ac58cca5a73e710d3a63 (patch) | |
tree | 2e988d90fa98a20dbac1b84398846dda273bd4ac | |
parent | 81d278251aa53d785942cf195062d2a565ae16c7 (diff) |
Show RARs. For now show frame count in common channel section, although it may be possible to associate RAR bodies with UEs if the context info is available...
svn path=/trunk/; revision=28073
-rw-r--r-- | gtk/mac_lte_stat_dlg.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/gtk/mac_lte_stat_dlg.c b/gtk/mac_lte_stat_dlg.c index d24e2e5d90..61f30f3a2e 100644 --- a/gtk/mac_lte_stat_dlg.c +++ b/gtk/mac_lte_stat_dlg.c @@ -63,13 +63,6 @@ /**********************************************/ /* Table column identifiers and title strings */ -enum { - BCH_FRAMES_COLUMN, - BCH_BYTES_COLUMN, - PCH_FRAMES_COLUMN, - PCH_BYTES_COLUMN, - NUM_COMMON_COLUMNS -}; enum { RNTI_COLUMN, @@ -151,6 +144,7 @@ typedef struct mac_lte_common_stats { guint32 bch_bytes; guint32 pch_frames; guint32 pch_bytes; + guint32 rar_frames; } mac_lte_common_stats; static const char * selected_ue_row_names[] = {"UL SDUs", "UL Bytes", "DL SDUs", "DL Bytes"}; @@ -161,6 +155,7 @@ static GtkWidget *mac_lte_common_bch_frames; static GtkWidget *mac_lte_common_bch_bytes; static GtkWidget *mac_lte_common_pch_frames; static GtkWidget *mac_lte_common_pch_bytes; +static GtkWidget *mac_lte_common_rar_frames; /* Labels in selected UE 'table' */ static GtkWidget *selected_ue_column_entry[NUM_CHANNEL_COLUMNS][5]; @@ -299,6 +294,9 @@ mac_lte_stat_packet(void *phs, packet_info *pinfo, epan_dissect_t *edt _U_, common_stats.bch_frames++; common_stats.bch_bytes += si->single_number_of_bytes; return 1; + case RA_RNTI: + common_stats.rar_frames++; + return 1; default: break; @@ -508,6 +506,8 @@ mac_lte_stat_draw(void *phs) gtk_label_set_text(GTK_LABEL(mac_lte_common_pch_frames), buff); g_snprintf(buff, sizeof(buff), "PCH Bytes: %u", common_stats.pch_bytes); gtk_label_set_text(GTK_LABEL(mac_lte_common_pch_bytes), buff); + g_snprintf(buff, sizeof(buff), "RAR Frames: %u", common_stats.rar_frames); + gtk_label_set_text(GTK_LABEL(mac_lte_common_rar_frames), buff); /* Per-UE table entries */ ues_store = GTK_LIST_STORE(gtk_tree_view_get_model(hs->ue_table)); @@ -671,6 +671,10 @@ static void mac_lte_stat_dlg_create(void) gtk_container_add(GTK_CONTAINER(common_row_hbox), mac_lte_common_pch_bytes); gtk_widget_show(mac_lte_common_pch_bytes); + mac_lte_common_rar_frames = gtk_label_new("RAR Frames:"); + gtk_misc_set_alignment(GTK_MISC(mac_lte_common_rar_frames), 0.0f, .5f); + gtk_container_add(GTK_CONTAINER(common_row_hbox), mac_lte_common_rar_frames); + gtk_widget_show(mac_lte_common_rar_frames); /**********************************************/ /* UL/DL-SCH data */ |