From 23d90c62f2807bda87c6021785e6e51d3c627e0c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 26 Jan 2014 01:52:00 +0100 Subject: Add minimum handshake interval for unknown addresses (handles up to 8 addresses for now) --- src/fastd.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/fastd.h') diff --git a/src/fastd.h b/src/fastd.h index d03465d..268c2c7 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -138,6 +138,11 @@ struct fastd_stats { uint64_t bytes; }; +struct fastd_handshake_timeout { + fastd_peer_address_t address; + struct timespec timeout; +}; + struct fastd_config { struct timespec long_ago; @@ -281,6 +286,9 @@ struct fastd_context { unsigned int randseed; + size_t unknown_handshake_pos; + fastd_handshake_timeout_t unknown_handshakes[8]; + fastd_protocol_state_t *protocol_state; }; -- cgit v1.2.3