diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-18 22:30:30 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-18 22:30:30 +0200 |
commit | 50d9aa23342f8a9bc6a87ace12578054eeff36fd (patch) | |
tree | d0f2dab9535a25435e33169828e2231f96b0f2c7 /src/peer.h | |
parent | cb3c88e020dbfd028f7d8b79b9bf97bcb0b34ea5 (diff) | |
download | fastd-50d9aa23342f8a9bc6a87ace12578054eeff36fd.tar fastd-50d9aa23342f8a9bc6a87ace12578054eeff36fd.zip |
Dynamically create peer configs for dynamic peers
This avoids duplicating the protocol_config field.
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 */ }; |