summaryrefslogtreecommitdiffstats
path: root/src/peer.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-03-23 04:40:56 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-03-23 04:40:56 +0100
commita5a7b233b728f6d26a9f593f0a47265465522f4b (patch)
tree55994836c4dc15c98c344345004c025e812c2282 /src/peer.h
parentc162b223b8965490839b4d56701a8f37d5304a71 (diff)
downloadfastd-a5a7b233b728f6d26a9f593f0a47265465522f4b.tar
fastd-a5a7b233b728f6d26a9f593f0a47265465522f4b.zip
peer: make interface name configurable per peer
Diffstat (limited to 'src/peer.h')
-rw-r--r--src/peer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/peer.h b/src/peer.h
index 631957e..1aff6cf 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -72,10 +72,11 @@ struct fastd_peer {
fastd_protocol_key_t *key; /**< The peer's public key */
fastd_protocol_peer_state_t *protocol_state; /**< Protocol-specific peer state */
- fastd_iface_t *iface; /**< The interface this peer is associated with */
+ char *ifname; /**< Peer-specific interface name */
/* Starting here, more dynamic fields follow: */
+ fastd_iface_t *iface; /**< The interface this peer is associated with */
/** 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 */
fastd_socket_t *sock;