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
This commit is contained in:
Martin Mathieson 2009-04-17 13:27:25 +00:00
parent 81d278251a
commit c5db90ba60

View File

@ -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 */