aboutsummaryrefslogtreecommitdiffstats
path: root/tap-macltestat.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2011-08-31 12:39:59 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2011-08-31 12:39:59 +0000
commit1cf5a9ce5af3db310dd934852c4b3156aa8b1251 (patch)
tree89ea6376b6ad6c0ac7a5f0317988864b96858bc9 /tap-macltestat.c
parent1ced4079c5883f05e481779b15b27cf94d617890 (diff)
Add another DL CRC error - Duplicate NonZero RV.
svn path=/trunk/; revision=38820
Diffstat (limited to 'tap-macltestat.c')
-rw-r--r--tap-macltestat.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/tap-macltestat.c b/tap-macltestat.c
index 180661a395..b91a55396f 100644
--- a/tap-macltestat.c
+++ b/tap-macltestat.c
@@ -58,6 +58,7 @@ enum {
DL_CRC_FAILED_COLUMN,
DL_CRC_HIGH_CODE_RATE_COLUMN,
DL_CRC_PDSCH_LOST_COLUMN,
+ DL_CRC_DUPLICATE_NONZERO_RV_COLUMN,
DL_RETX_FRAMES_COLUMN,
NUM_UE_COLUMNS
};
@@ -65,7 +66,7 @@ enum {
static const gchar *ue_titles[] = { " RNTI", " Type", "UEId",
"UL Frames", "UL Bytes", "UL Mb/sec", " UL Pad %", "UL ReTX",
- "DL Frames", "DL Bytes", "DL Mb/sec", "DL CRC Fail", "DL CRC HCR", "DL CRC PDSCH Lost", "DL ReTX"};
+ "DL Frames", "DL Bytes", "DL Mb/sec", "DL CRC Fail", "DL CRC HCR", "DL CRC PDSCH Lost", "DL CRC DupNonZeroRV", "DL ReTX"};
/* Stats for one UE */
@@ -93,6 +94,7 @@ typedef struct mac_lte_row_data {
guint32 DL_CRC_failures;
guint32 DL_CRC_high_code_rate;
guint32 DL_CRC_PDSCH_lost;
+ guint32 DL_CRC_Duplicate_NonZero_RV;
guint32 DL_retx_frames;
} mac_lte_row_data;
@@ -188,6 +190,7 @@ static mac_lte_ep_t* alloc_mac_lte_ep(struct mac_lte_tap_info *si, packet_info *
ep->stats.DL_CRC_failures = 0;
ep->stats.DL_CRC_high_code_rate = 0;
ep->stats.DL_CRC_PDSCH_lost = 0;
+ ep->stats.DL_CRC_Duplicate_NonZero_RV = 0;
ep->stats.UL_retx_frames = 0;
ep->stats.DL_retx_frames = 0;
@@ -361,6 +364,10 @@ mac_lte_stat_packet(void *phs, packet_info *pinfo, epan_dissect_t *edt _U_,
case crc_pdsch_lost:
te->stats.DL_CRC_PDSCH_lost++;
break;
+ case crc_duplicate_nonzero_rv:
+ te->stats.DL_CRC_Duplicate_NonZero_RV++;
+ break;
+
default:
/* Something went wrong! */
break;
@@ -455,7 +462,7 @@ mac_lte_stat_draw(void *phs)
&tmp->stats.DL_time_stop,
tmp->stats.DL_total_bytes);
- printf("%5u %7s %5u %10u %9u %10f %10f %8u %10u %9u %10f %12u %11u %18u %8u\n",
+ printf("%5u %7s %5u %10u %9u %10f %10f %8u %10u %9u %10f %12u %11u %18u %20u %8u\n",
tmp->stats.rnti,
(tmp->stats.rnti_type == C_RNTI) ? "C-RNTI" : "SPS-RNTI",
tmp->stats.ueid,
@@ -472,6 +479,7 @@ mac_lte_stat_draw(void *phs)
tmp->stats.DL_CRC_failures,
tmp->stats.DL_CRC_high_code_rate,
tmp->stats.DL_CRC_PDSCH_lost,
+ tmp->stats.DL_CRC_Duplicate_NonZero_RV,
tmp->stats.DL_retx_frames);
}
}