summaryrefslogtreecommitdiffstats
path: root/src/peer.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-12 16:53:24 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-12 16:53:24 +0200
commit7ebbe05f46e1b8530a61dd144a4bf36a1c63a4a3 (patch)
treeb06313240468ccee6923366d66eebf583e029162 /src/peer.c
parentd116950984d78392e1daf0adfd89f6cdb4fe8076 (diff)
downloadfastd-7ebbe05f46e1b8530a61dd144a4bf36a1c63a4a3.tar
fastd-7ebbe05f46e1b8530a61dd144a4bf36a1c63a4a3.zip
Add per-peer stats
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/peer.c b/src/peer.c
index 30cc52f..a34283f 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -321,6 +321,8 @@ static void reset_peer(fastd_peer_t *peer) {
fastd_peer_hashtable_remove(peer);
+ memset(&peer->stats, 0, sizeof(peer->stats));
+
peer->address.sa.sa_family = AF_UNSPEC;
peer->local_address.sa.sa_family = AF_UNSPEC;
peer->state = STATE_INACTIVE;