From 1602e36635ad9523ae7dc4f7ab93b6a89b8741fd Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 23 Mar 2015 18:51:46 +0100 Subject: peer: compare interface names when checking peer config equality --- src/peer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/peer.c b/src/peer.c index 8a95398..979c074 100644 --- a/src/peer.c +++ b/src/peer.c @@ -708,6 +708,9 @@ static inline bool peer_configs_equal(const fastd_peer_t *peer1, const fastd_pee if (VECTOR_LEN(peer1->remotes) != VECTOR_LEN(peer2->remotes)) return false; + if (!strequal(peer1->ifname, peer2->ifname)) + return false; + size_t i; for (i = 0; i < VECTOR_LEN(peer1->remotes); i++) { const fastd_remote_t *remote1 = &VECTOR_INDEX(peer1->remotes, i), *remote2 = &VECTOR_INDEX(peer2->remotes, i); -- cgit v1.2.3