Commit e1a6ed48 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Tweak heuristics for legacy peers.

parent 97ad9f4e
......@@ -394,8 +394,8 @@ parse_packet(const unsigned char *from, struct network *net,
} else {
int l = 10 + (message[4] + 7) / 8 - message[5];
/* If the peer doesn't send diversity information,
assume that routes with a zero metric are non-interfering. */
if(metric == 0) {
assume that routes with a small metric are non-interfering. */
if(metric <= 192) {
channels[0] = 0;
} else {
channels[0] = NET_CHANNEL_INTERFERING;
......
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