[Babel-users] [PATCH 1/2] Fix ifup bug in send_multicast
Dave Taht
dave.taht at gmail.com
Sun Nov 25 22:47:35 GMT 2018
From: Dave Taht <dave at taht.net>
It was essentially a no-op with an inverted test.
---
message.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/message.c b/message.c
index 043e4b6..930fc69 100644
--- a/message.c
+++ b/message.c
@@ -1746,7 +1746,7 @@ send_multicast_request(struct interface *ifp,
if(ifp == NULL) {
struct interface *ifp_auxn;
FOR_ALL_INTERFACES(ifp_auxn) {
- if(if_up(ifp_auxn))
+ if(!if_up(ifp_auxn))
continue;
send_multicast_request(ifp_auxn, prefix, plen, src_prefix, src_plen);
}
@@ -1765,10 +1765,10 @@ send_multicast_request(struct interface *ifp,
if(neigh->ifp == ifp) {
send_request(&neigh->buf, prefix, plen,
src_prefix, src_plen);
- } else {
- send_request(&ifp->buf, prefix, plen, src_prefix, src_plen);
}
}
+ } else {
+ send_request(&ifp->buf, prefix, plen, src_prefix, src_plen);
}
}
--
2.17.1
More information about the Babel-users
mailing list