Commit e10eadef authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Send IHU over unicast when unicast is true.

DTLS has recently changed to disallow unprotected IHU, so we now
need to send IHU over unicast.
parent 2f556cf5
......@@ -1669,7 +1669,8 @@ send_ihu(struct neighbour *neigh, struct interface *ifp)
send_rtt_data = 0;
}
buffer_ihu(&ifp->buf, ifp, rxcost, interval, neigh->address,
buffer_ihu((ifp->flags & IF_UNICAST) != 0 ? &neigh->buf : &ifp->buf,
ifp, rxcost, interval, neigh->address,
send_rtt_data, neigh->hello_send_us,
time_us(neigh->hello_rtt_receive_time));
......
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