summaryrefslogtreecommitdiffstats
path: root/src/peer.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-18 21:34:53 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-18 21:34:53 +0200
commit2352e1a79e6f77cb894f5b65b1632e27cd0695a9 (patch)
tree921dba0986760d57986d84f930911cbff1ced4bb /src/peer.c
parentc251df4a17e45460fa20822df596e507ef1b1629 (diff)
downloadfastd-2352e1a79e6f77cb894f5b65b1632e27cd0695a9.tar
fastd-2352e1a79e6f77cb894f5b65b1632e27cd0695a9.zip
Rename "temporary peers" to "dynamic peers"
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/peer.c b/src/peer.c
index b1ae9b3..176b39c 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -740,14 +740,14 @@ fastd_peer_t* fastd_peer_add(fastd_peer_config_t *peer_conf) {
else {
#ifdef WITH_VERIFY
if (!fastd_shell_command_isset(&conf.on_verify))
- exit_bug("tried to add temporary peer without on-verify command");
+ exit_bug("tried to add dynamic peer without on-verify command");
peer->verify_timeout = ctx.now;
peer->verify_valid_timeout = ctx.now;
- pr_debug("adding temporary peer");
+ pr_debug("adding dynamic peer");
#else
- exit_bug("temporary peers not supported");
+ exit_bug("dynamic peers not supported");
#endif
}
@@ -908,11 +908,11 @@ fastd_peer_t* fastd_peer_find_by_eth_addr(const fastd_eth_addr_t addr) {
\li If no data was sent to the peer for some time, a keepalive is sent.
*/
static bool maintain_peer(fastd_peer_t *peer) {
- if (fastd_peer_is_temporary(peer) || fastd_peer_is_established(peer)) {
+ if (fastd_peer_is_dynamic(peer) || fastd_peer_is_established(peer)) {
/* check for peer timeout */
if (fastd_timed_out(&peer->timeout)) {
#ifdef WITH_VERIFY
- if (fastd_peer_is_temporary(peer) &&
+ if (fastd_peer_is_dynamic(peer) &&
fastd_timed_out(&peer->verify_timeout) &&
fastd_timed_out(&peer->verify_valid_timeout)) {
fastd_peer_delete(peer);