summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_dump.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-12-31 01:54:25 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-12-31 01:55:50 +0100
commit900e2d42cfea6c2b21d9c737098a94799a5d96f1 (patch)
tree0f5935d419987fc48ce6699fea00d7ee04a749e0 /eigrpd/eigrp_dump.c
parenteigrpd: Write eigrp config even if no network statements yet (diff)
downloadfrr-900e2d42cfea6c2b21d9c737098a94799a5d96f1.tar.xz
frr-900e2d42cfea6c2b21d9c737098a94799a5d96f1.zip
eigrpd: eigrp usage of uint32_t to struct in_addr for router_id data
In eigrp we were using a uint32_t to hold the `struct in_addr` data for the router id values. This caused us to do unnecessary conversions pre and post for in/out. Let's just use the standard `struct in_addr` Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_dump.c')
-rw-r--r--eigrpd/eigrp_dump.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/eigrpd/eigrp_dump.c b/eigrpd/eigrp_dump.c
index 27e02630a..c975c0abc 100644
--- a/eigrpd/eigrp_dump.c
+++ b/eigrpd/eigrp_dump.c
@@ -276,11 +276,8 @@ void show_ip_eigrp_neighbor_sub(struct vty *vty, struct eigrp_neighbor *nbr,
*/
void show_ip_eigrp_topology_header(struct vty *vty, struct eigrp *eigrp)
{
- struct in_addr router_id;
- router_id.s_addr = eigrp->router_id;
-
vty_out(vty, "\nEIGRP Topology Table for AS(%d)/ID(%s)\n\n", eigrp->AS,
- inet_ntoa(router_id));
+ inet_ntoa(eigrp->router_id));
vty_out(vty,
"Codes: P - Passive, A - Active, U - Update, Q - Query, "
"R - Reply\n r - reply Status, s - sia Status\n\n");