From a372497a851f71062ac1d279681826e68c66eddb Mon Sep 17 00:00:00 2001 From: John Thacker Date: Wed, 13 Apr 2022 06:23:03 -0400 Subject: hierarchy stats: Include appendix length in byte counts The byte counts in Protocol Hierarchy Stats should include the appendix length. Fix #17913. --- ui/proto_hier_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/proto_hier_stats.c b/ui/proto_hier_stats.c index ef5f786a71..82c734cbb4 100644 --- a/ui/proto_hier_stats.c +++ b/ui/proto_hier_stats.c @@ -115,7 +115,7 @@ process_node(proto_node *ptree_node, GNode *parent_stat_node, ph_stats_t *ps) stats->last_pkt = ps->tot_packets; } stats->num_pdus_total++; - stats->num_bytes_total += finfo->length; + stats->num_bytes_total += finfo->length + finfo->appendix_length; } proto_sibling_node = ptree_node->next; @@ -131,7 +131,7 @@ process_node(proto_node *ptree_node, GNode *parent_stat_node, ph_stats_t *ps) process_node(proto_sibling_node, stat_node, ps); } else { stats->num_pkts_last++; - stats->num_bytes_last += finfo->length; + stats->num_bytes_last += finfo->length + finfo->appendix_length; } } -- cgit v1.2.3