Commit 6e0dabf7 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Include hop count information in debugging messages.

parent cab2e8ca
...@@ -336,8 +336,9 @@ send_request(struct network *net, struct destination *dest, ...@@ -336,8 +336,9 @@ send_request(struct network *net, struct destination *dest,
return; return;
} }
debugf("Sending request to %s for %s.\n", debugf("Sending request to %s for %s (%d hops for seqno %d).\n",
net->ifname, dest ? format_address(dest->address) : "::/0"); net->ifname, dest ? format_address(dest->address) : "::/0",
hopcount, seqno);
start_message(net, 20); start_message(net, 20);
accumulate_byte(net, 1); accumulate_byte(net, 1);
if(hopcount > 0 && dest) { if(hopcount > 0 && dest) {
...@@ -386,10 +387,12 @@ send_unicast_request(struct neighbour *neigh, struct destination *dest, ...@@ -386,10 +387,12 @@ send_unicast_request(struct neighbour *neigh, struct destination *dest,
{ {
unsigned char buf[20]; unsigned char buf[20];
debugf("Sending unicast request to %s (%s) for %s.\n", debugf("Sending unicast request to %s (%s) for %s "
"(%d hops for seqno %d).\n",
format_address(neigh->id), format_address(neigh->id),
format_address(neigh->address), format_address(neigh->address),
dest ? format_address(dest->address) : "::/0"); dest ? format_address(dest->address) : "::/0",
hopcount, seqno);
buf[0] = 1; buf[0] = 1;
if(hopcount > 0 && dest) { if(hopcount > 0 && dest) {
......
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