Commit c241a359 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Check for idle networks when receiving a hello.

parent 3763fd00
......@@ -125,6 +125,7 @@ parse_packet(const unsigned char *from, struct network *net,
format_address(address),
format_address(from));
net->activity_time = now.tv_sec;
update_hello_interval(net);
neigh = add_neighbour(address, from, net);
if(neigh == NULL)
continue;
......
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