diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-12 16:53:24 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-12 16:53:24 +0200 |
commit | 7ebbe05f46e1b8530a61dd144a4bf36a1c63a4a3 (patch) | |
tree | b06313240468ccee6923366d66eebf583e029162 /src/peer.c | |
parent | d116950984d78392e1daf0adfd89f6cdb4fe8076 (diff) | |
download | fastd-7ebbe05f46e1b8530a61dd144a4bf36a1c63a4a3.tar fastd-7ebbe05f46e1b8530a61dd144a4bf36a1c63a4a3.zip |
Add per-peer stats
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |