summaryrefslogtreecommitdiffstats
path: root/src/receive.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/receive.c')
-rw-r--r--src/receive.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/receive.c b/src/receive.c
index ce20c4d..134564c 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -267,8 +267,7 @@ void fastd_handle_receive(fastd_peer_t *peer, fastd_buffer_t buffer) {
fastd_peer_eth_addr_add(peer, src_addr);
}
- ctx.rx.packets++;
- ctx.rx.bytes += buffer.len;
+ fastd_stats_add(&ctx.rx, buffer.len);
fastd_tuntap_write(buffer);