summaryrefslogtreecommitdiffstats
path: root/src/receive.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-06 00:54:28 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-06 00:54:28 +0200
commit1e540bed623cb6080f1aa2b6afd39600ed25a8dd (patch)
tree19f8ff41ccf7d3c028308299431bf85e1bcbe641 /src/receive.c
parentfc250931e87ae258d7367e65b2195e359ee72738 (diff)
downloadfastd-1e540bed623cb6080f1aa2b6afd39600ed25a8dd.tar
fastd-1e540bed623cb6080f1aa2b6afd39600ed25a8dd.zip
Don't count stats when WITH_STATUS_SOCKET is not set
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);