Commit a7f9300b authored by Dave Taht's avatar Dave Taht Committed by Juliusz Chroboczek

Fix ifup bug in send_multicast

It was essentially a no-op with an inverted test.
parent 73d0b1ac
...@@ -1746,7 +1746,7 @@ send_multicast_request(struct interface *ifp, ...@@ -1746,7 +1746,7 @@ send_multicast_request(struct interface *ifp,
if(ifp == NULL) { if(ifp == NULL) {
struct interface *ifp_auxn; struct interface *ifp_auxn;
FOR_ALL_INTERFACES(ifp_auxn) { FOR_ALL_INTERFACES(ifp_auxn) {
if(if_up(ifp_auxn)) if(!if_up(ifp_auxn))
continue; continue;
send_multicast_request(ifp_auxn, prefix, plen, src_prefix, src_plen); send_multicast_request(ifp_auxn, prefix, plen, src_prefix, src_plen);
} }
...@@ -1765,10 +1765,10 @@ send_multicast_request(struct interface *ifp, ...@@ -1765,10 +1765,10 @@ send_multicast_request(struct interface *ifp,
if(neigh->ifp == ifp) { if(neigh->ifp == ifp) {
send_request(&neigh->buf, prefix, plen, send_request(&neigh->buf, prefix, plen,
src_prefix, src_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);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment