From: Donald Sharp Date: Mon, 13 Mar 2017 01:36:58 +0000 (-0400) Subject: eigrpd: Fix router-id display in show topo X-Git-Tag: reindent-master-before~197^2~31 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=1ad13df926d5ae60b5366299eb746fe1bd32724b;p=matthieu%2Ffrr.git eigrpd: Fix router-id display in show topo Additionally fix weird non-standard output routines to look like what people expect code to look like. Signed-off-by: Donald Sharp --- diff --git a/eigrpd/eigrp_dump.c b/eigrpd/eigrp_dump.c index c15eecc266..fa68393946 100644 --- a/eigrpd/eigrp_dump.c +++ b/eigrpd/eigrp_dump.c @@ -433,13 +433,13 @@ void show_ip_eigrp_topology_header (struct vty *vty, struct eigrp *eigrp) { struct in_addr router_id; - router_id.s_addr = htonl(eigrp->router_id); + router_id.s_addr = eigrp->router_id; - vty_out (vty, "%s%s%d%s%s%s%s%s%s%s%s%s%s%s", - VTY_NEWLINE, - "EIGRP Topology Table for AS(", eigrp->AS, ")/ID(", inet_ntoa(router_id), ")", VTY_NEWLINE,VTY_NEWLINE, - "Codes: P - Passive, A - Active, U - Update, Q - Query, " - "R - Reply", VTY_NEWLINE ," ","r - reply Status, s - sia Status",VTY_NEWLINE,VTY_NEWLINE); + vty_out (vty, "%sEIGRP Topology Table for AS(%d)/ID(%s)%s%s", + VTY_NEWLINE, eigrp->AS, inet_ntoa(router_id), VTY_NEWLINE, VTY_NEWLINE); + vty_out (vty, "Codes: P - Passive, A - Active, U - Update, Q - Query, " + "R - Reply%s r - reply Status, s - sia Status%s%s", + VTY_NEWLINE, VTY_NEWLINE,VTY_NEWLINE); } void