diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-12-31 01:54:25 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-12-31 01:55:50 +0100 |
commit | 900e2d42cfea6c2b21d9c737098a94799a5d96f1 (patch) | |
tree | 0f5935d419987fc48ce6699fea00d7ee04a749e0 /eigrpd/eigrp_vty.c | |
parent | eigrpd: Write eigrp config even if no network statements yet (diff) | |
download | frr-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_vty.c')
-rw-r--r-- | eigrpd/eigrp_vty.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/eigrpd/eigrp_vty.c b/eigrpd/eigrp_vty.c index 89dd0035e..7baf7b9f6 100644 --- a/eigrpd/eigrp_vty.c +++ b/eigrpd/eigrp_vty.c @@ -192,11 +192,9 @@ static int config_write_eigrp_router(struct vty *vty, struct eigrp *eigrp) write++; /* Router ID print. */ - if (eigrp->router_id_static != 0) { - struct in_addr router_id_static; - router_id_static.s_addr = htonl(eigrp->router_id_static); + if (eigrp->router_id_static.s_addr != 0) { vty_out(vty, " eigrp router-id %s\n", - inet_ntoa(router_id_static)); + inet_ntoa(eigrp->router_id_static)); } /* Network area print. */ |