aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2022-04-13 06:23:03 -0400
committerA Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2022-04-14 12:26:04 +0000
commita372497a851f71062ac1d279681826e68c66eddb (patch)
treecd50e0c18658540b61655c6f69e9f6ebb06dc5c6
parent62a2fe28c2e85e7a2e52400ecae0a0afb30284a9 (diff)
hierarchy stats: Include appendix length in byte counts
The byte counts in Protocol Hierarchy Stats should include the appendix length. Fix #17913.
-rw-r--r--ui/proto_hier_stats.c4
1 files 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;
}
}