Commit 2acd4de6 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Display hello interval when debugging.

parent 77b753a1
...@@ -125,8 +125,8 @@ parse_packet(const unsigned char *from, struct network *net, ...@@ -125,8 +125,8 @@ parse_packet(const unsigned char *from, struct network *net,
int changed; int changed;
if(memcmp(address, myid, 16) == 0) if(memcmp(address, myid, 16) == 0)
continue; continue;
debugf("Received hello on %s from %s (%s).\n", debugf("Received hello (%d) on %s from %s (%s).\n",
net->ifname, metric, net->ifname,
format_address(address), format_address(address),
format_address(from)); format_address(from));
net->activity_time = now.tv_sec; net->activity_time = now.tv_sec;
...@@ -415,7 +415,7 @@ message_source_id(struct network *net) ...@@ -415,7 +415,7 @@ message_source_id(struct network *net)
void void
send_hello_noupdate(struct network *net, unsigned interval) send_hello_noupdate(struct network *net, unsigned interval)
{ {
debugf("Sending hello to %s.\n", net->ifname); debugf("Sending hello (%d) to %s.\n", interval, net->ifname);
net->hello_seqno = seqno_plus(net->hello_seqno, 1); net->hello_seqno = seqno_plus(net->hello_seqno, 1);
net->hello_time = now.tv_sec; net->hello_time = now.tv_sec;
send_message(net, 0, 0, 0, net->hello_seqno, send_message(net, 0, 0, 0, net->hello_seqno,
......
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