Commit 899c4bc8 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Send requests over unicast.

parent 607d6f0b
...@@ -1790,7 +1790,17 @@ send_multicast_request(struct interface *ifp, ...@@ -1790,7 +1790,17 @@ send_multicast_request(struct interface *ifp,
/* make sure any buffered updates go out before this request. */ /* make sure any buffered updates go out before this request. */
flushupdates(ifp); flushupdates(ifp);
send_request(&ifp->buf, prefix, plen, src_prefix, src_plen); if((ifp->flags & IF_UNICAST) != 0) {
struct neighbour *neigh;
FOR_ALL_NEIGHBOURS(neigh) {
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);
}
}
}
} }
void void
...@@ -1878,8 +1888,20 @@ send_multicast_multihop_request(struct interface *ifp, ...@@ -1878,8 +1888,20 @@ send_multicast_multihop_request(struct interface *ifp,
if(!if_up(ifp)) if(!if_up(ifp))
return; return;
send_multihop_request(&ifp->buf, prefix, plen, src_prefix, src_plen, if((ifp->flags & IF_UNICAST) != 0) {
seqno, id, hop_count); struct neighbour *neigh;
FOR_ALL_NEIGHBOURS(neigh) {
if(neigh->ifp == ifp) {
send_multihop_request(&neigh->buf, prefix, plen,
src_prefix, src_plen,
seqno, id, hop_count);
}
}
} else {
send_multihop_request(&ifp->buf, prefix, plen,
src_prefix, src_plen,
seqno, id, hop_count);
}
} }
......
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