]> git.puffer.fish Git - matthieu/frr.git/commitdiff
isisd: fix display of the Extended IPv4 reachability TLV
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 6 May 2019 18:55:46 +0000 (15:55 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 7 May 2019 01:58:16 +0000 (22:58 -0300)
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>
isisd/isis_tlvs.c

index bc9b51473664993d02466983dc9ab77726d7e118..f72540b81109004d5490717292e4bbf23fe74d68 100644 (file)
@@ -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)