diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-06 00:54:28 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-06 00:54:28 +0200 |
commit | 1e540bed623cb6080f1aa2b6afd39600ed25a8dd (patch) | |
tree | 19f8ff41ccf7d3c028308299431bf85e1bcbe641 /src/receive.c | |
parent | fc250931e87ae258d7367e65b2195e359ee72738 (diff) | |
download | fastd-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.c | 3 |
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); |