summaryrefslogtreecommitdiffstats
path: root/src/status.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-08 20:30:44 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-08 20:30:44 +0200
commit80b1412c65a7a7e209c66684cf78e2ab13cfd5e6 (patch)
treea148c84c7eb41d25a9a1e709b47a84b43f26805c /src/status.c
parent58b8518100c8b306d5b6a3d87b4a83a1ae383a09 (diff)
downloadfastd-80b1412c65a7a7e209c66684cf78e2ab13cfd5e6.tar
fastd-80b1412c65a7a7e209c66684cf78e2ab13cfd5e6.zip
Make stats of reordered packets
Diffstat (limited to 'src/status.c')
-rw-r--r--src/status.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/status.c b/src/status.c
index a7f8441..4b4131d 100644
--- a/src/status.c
+++ b/src/status.c
@@ -134,6 +134,8 @@ static void dump_status(int fd) {
json_object_object_add(json, "statistics", statistics);
json_object_object_add(statistics, "rx", dump_stats(&ctx.rx));
+ json_object_object_add(statistics, "rx_reordered", dump_stats(&ctx.rx_reordered));
+
json_object_object_add(statistics, "tx", dump_stats(&ctx.tx));
json_object_object_add(statistics, "tx_dropped", dump_stats(&ctx.tx_dropped));
json_object_object_add(statistics, "tx_error", dump_stats(&ctx.tx_error));