Commit 082408ca authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Add debugging message.

parent cfb640c5
...@@ -143,8 +143,11 @@ parse_packet(const unsigned char *from, struct network *net, ...@@ -143,8 +143,11 @@ parse_packet(const unsigned char *from, struct network *net,
schedule_neighbours_check(metric * 10, 0); schedule_neighbours_check(metric * 10, 0);
} else { } else {
neigh = find_neighbour(from, net); neigh = find_neighbour(from, net);
if(neigh == NULL) if(neigh == NULL) {
debugf("Received message from unknown neighbour %s.\n",
format_address(from));
continue; continue;
}
net->activity_time = now.tv_sec; net->activity_time = now.tv_sec;
if(type == 1) { if(type == 1) {
debugf("Received ihu %d for %s from %s (%s) %d.\n", debugf("Received ihu %d for %s from %s (%s) %d.\n",
......
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