diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 18:51:46 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 18:51:46 +0100 |
commit | 1602e36635ad9523ae7dc4f7ab93b6a89b8741fd (patch) | |
tree | 940213595f0e44ce7e3d951d1a2d4271c75d71d4 /src | |
parent | 03f613d4088f5cc03fcc8a64acc7bf8ba1eae8e3 (diff) | |
download | fastd-1602e36635ad9523ae7dc4f7ab93b6a89b8741fd.tar fastd-1602e36635ad9523ae7dc4f7ab93b6a89b8741fd.zip |
peer: compare interface names when checking peer config equality
Diffstat (limited to 'src')
-rw-r--r-- | src/peer.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |