From 50d9aa23342f8a9bc6a87ace12578054eeff36fd Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 18 Aug 2014 22:30:30 +0200 Subject: Dynamically create peer configs for dynamic peers This avoids duplicating the protocol_config field. --- src/peer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/peer.h') diff --git a/src/peer.h b/src/peer.h index c73f2ea..4229296 100644 --- a/src/peer.h +++ b/src/peer.h @@ -47,7 +47,7 @@ typedef enum fastd_peer_state { struct fastd_peer { uint64_t id; /**< A unique ID assigned to each peer */ - const fastd_peer_config_t *config; /**< The peer's fastd_peer_config_t */ + fastd_peer_config_t *config; /**< The peer's fastd_peer_config_t */ /** The socket used by the peer. This can either be a common bound socket or a dynamic, unbound socket that is used exclusively by this peer */ @@ -80,7 +80,6 @@ struct fastd_peer { struct timespec verify_valid_timeout; /**< Specifies how long a peer stays valid after a successful on-verify run */ #endif - fastd_protocol_peer_config_t *protocol_config; /**< Protocol-specific peer configuration for config-less (on-verify) peers */ fastd_protocol_peer_state_t *protocol_state; /**< Protocol-specific peer state */ }; -- cgit v1.2.3