summaryrefslogtreecommitdiffstats
path: root/src/peer.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-18 22:30:30 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-18 22:30:30 +0200
commit50d9aa23342f8a9bc6a87ace12578054eeff36fd (patch)
treed0f2dab9535a25435e33169828e2231f96b0f2c7 /src/peer.h
parentcb3c88e020dbfd028f7d8b79b9bf97bcb0b34ea5 (diff)
downloadfastd-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.h3
1 files changed, 1 insertions, 2 deletions
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 */
};