summaryrefslogtreecommitdiffstats
path: root/src/receive.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-12 16:31:18 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-12 16:35:15 +0200
commitd116950984d78392e1daf0adfd89f6cdb4fe8076 (patch)
treef5d12b55c556c511773704e6d2a879fcef85ffbb /src/receive.c
parent3b18fc42b9fa23ed7db8d4e382dfc5f442eba05d (diff)
downloadfastd-d116950984d78392e1daf0adfd89f6cdb4fe8076.tar
fastd-d116950984d78392e1daf0adfd89f6cdb4fe8076.zip
Restructure traffics stats to keep all stats in a single structure
Diffstat (limited to 'src/receive.c')
-rw-r--r--src/receive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/receive.c b/src/receive.c
index 451e39d..e2a996b 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -267,10 +267,10 @@ void fastd_handle_receive(fastd_peer_t *peer, fastd_buffer_t buffer, bool reorde
fastd_peer_eth_addr_add(peer, src_addr);
}
- fastd_stats_add(&ctx.rx, buffer.len);
+ fastd_stats_add(peer, STAT_RX, buffer.len);
if (reordered)
- fastd_stats_add(&ctx.rx_reordered, buffer.len);
+ fastd_stats_add(peer, STAT_RX_REORDERED, buffer.len);
fastd_tuntap_write(buffer);