diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-03-19 01:58:51 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-03-21 01:42:14 +0100 |
commit | 0f7b5df9259347bfc425c73fe7cf1ffc89cf2269 (patch) | |
tree | 1d6397c74b240d22d72db8629583f994c2bc47e2 /ldpd/adjacency.c | |
parent | ldpd: change the sorting algorithm of adjacencies (diff) | |
download | frr-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.c | 4 |
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); } |