From: Renato Westphal Date: Mon, 6 May 2019 18:55:46 +0000 (-0300) Subject: isisd: fix display of the Extended IPv4 reachability TLV X-Git-Tag: base_7.2~369^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9826647ef960366e2daef246a59df4e20de4c8cb;p=matthieu%2Ffrr.git 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 --- diff --git a/isisd/isis_tlvs.c b/isisd/isis_tlvs.c index bc9b514736..f72540b811 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)