summaryrefslogtreecommitdiffstats
path: root/isisd/isis_tlvs.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-05-06 20:55:46 +0200
committerRenato Westphal <renato@opensourcerouting.org>2019-05-07 03:58:16 +0200
commit9826647ef960366e2daef246a59df4e20de4c8cb (patch)
tree7147a4b7d65f8611600c180df56c004f8071b5f7 /isisd/isis_tlvs.c
parentMerge pull request #4264 from pguibert6WIND/trace_bfd (diff)
downloadfrr-9826647ef960366e2daef246a59df4e20de4c8cb.tar.xz
frr-9826647ef960366e2daef246a59df4e20de4c8cb.zip
isisd: fix display of the Extended IPv4 reachability TLV
The Sub-TLVs of the Extended IPv4 reachability TLV were not being displayed as expected. Fix this. Suggested-by: Christian Franke chris@opensourcerouting.org Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_tlvs.c')
-rw-r--r--isisd/isis_tlvs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/isisd/isis_tlvs.c b/isisd/isis_tlvs.c
index bc9b51473..f72540b81 100644
--- a/isisd/isis_tlvs.c
+++ b/isisd/isis_tlvs.c
@@ -1272,6 +1272,11 @@ static void format_item_extended_ip_reach(uint16_t mtid, struct isis_item *i,
if (mtid != ISIS_MT_IPV4_UNICAST)
sbuf_push(buf, 0, " %s", isis_mtid2str(mtid));
sbuf_push(buf, 0, "\n");
+
+ if (r->subtlvs) {
+ sbuf_push(buf, indent, " Subtlvs:\n");
+ format_subtlvs(r->subtlvs, buf, indent + 4);
+ }
}
static void free_item_extended_ip_reach(struct isis_item *i)