mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-16 07:06:46 +00:00
Improve accuracy of routing print output
This commit is contained in:
parent
abfe6963d2
commit
6a89f7a321
@ -837,7 +837,8 @@ static int routing_table(struct subscriber *subscriber, void *context){
|
||||
reply.packetTypeAndFlags=MDP_TX;
|
||||
reply.out.payload_length=sizeof(struct overlay_route_record);
|
||||
memcpy(r->sid, subscriber->sid, SID_SIZE);
|
||||
r->reachable = subscriber->reachable;
|
||||
r->reachable = subscriber_is_reachable(subscriber);
|
||||
|
||||
if (subscriber->reachable==REACHABLE_INDIRECT && subscriber->next_hop)
|
||||
memcpy(r->neighbour, subscriber->next_hop->sid, SID_SIZE);
|
||||
if (subscriber->reachable & REACHABLE_DIRECT && subscriber->interface)
|
||||
|
Loading…
x
Reference in New Issue
Block a user