Commit 86c6f5d0 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix inverted test when sending multihop requests.

parent bd388d94
......@@ -460,14 +460,14 @@ send_triggered_update(struct route *route, struct source *oldsrc, int oldmetric)
if(oldmetric < INFINITY) {
if(newmetric >= INFINITY)
send_request(NULL, route->src->prefix, route->src->plen,
0, 0, 0);
else if(newmetric >= oldmetric + 384)
send_request(NULL, route->src->prefix, route->src->plen,
127,
route->src->metric >= INFINITY ?
route->src->seqno : seqno_plus(route->src->seqno, 1),
hash_id(route->src->address));
else if(newmetric >= oldmetric + 384)
send_request(NULL, route->src->prefix, route->src->plen,
0, 0, 0);
}
}
......
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