summaryrefslogtreecommitdiffstats
path: root/src/receive.c
diff options
context:
space:
mode:
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);