summaryrefslogtreecommitdiffstats
path: root/ldpd/adjacency.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-03-19 01:58:51 +0100
committerRenato Westphal <renato@opensourcerouting.org>2017-03-21 01:42:14 +0100
commit0f7b5df9259347bfc425c73fe7cf1ffc89cf2269 (patch)
tree1d6397c74b240d22d72db8629583f994c2bc47e2 /ldpd/adjacency.c
parentldpd: change the sorting algorithm of adjacencies (diff)
downloadfrr-0f7b5df9259347bfc425c73fe7cf1ffc89cf2269.tar.xz
frr-0f7b5df9259347bfc425c73fe7cf1ffc89cf2269.zip
ldpd: provide more detailed information in some show commands
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/adjacency.c')
-rw-r--r--ldpd/adjacency.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ldpd/adjacency.c b/ldpd/adjacency.c
index 244d0f55a..8659202ee 100644
--- a/ldpd/adjacency.c
+++ b/ldpd/adjacency.c
@@ -375,13 +375,17 @@ adj_to_ctl(struct adj *adj)
case HELLO_LINK:
memcpy(actl.ifname, adj->source.link.ia->iface->name,
sizeof(actl.ifname));
+ actl.src_addr = adj->source.link.src_addr;
break;
case HELLO_TARGETED:
actl.src_addr = adj->source.target->addr;
break;
}
actl.holdtime = adj->holdtime;
+ actl.holdtime_remaining =
+ thread_timer_remain_second(adj->inactivity_timer);
actl.trans_addr = adj->trans_addr;
+ actl.ds_tlv = adj->ds_tlv;
return (&actl);
}