summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-03-23 18:51:46 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-03-23 18:51:46 +0100
commit1602e36635ad9523ae7dc4f7ab93b6a89b8741fd (patch)
tree940213595f0e44ce7e3d951d1a2d4271c75d71d4 /src
parent03f613d4088f5cc03fcc8a64acc7bf8ba1eae8e3 (diff)
downloadfastd-1602e36635ad9523ae7dc4f7ab93b6a89b8741fd.tar
fastd-1602e36635ad9523ae7dc4f7ab93b6a89b8741fd.zip
peer: compare interface names when checking peer config equality
Diffstat (limited to 'src')
-rw-r--r--src/peer.c3
1 files changed, 3 insertions, 0 deletions
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);