Commit c3241810 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Make update sorting deterministic.

parent 0442d14a
......@@ -771,7 +771,12 @@ compare_buffered_updates(const void *av, const void *bv)
else if(ipa < ipb)
return 1;
return 0;
if(a->plen < b->plen)
return -1;
else if(a->plen > b->plen)
return 1;
return memcmp(a->prefix, b->prefix, 16);
}
void
......
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