summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'eigrpd/eigrpd.c')
-rw-r--r--eigrpd/eigrpd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/eigrpd/eigrpd.c b/eigrpd/eigrpd.c
index e93dc0cbf..820f015b5 100644
--- a/eigrpd/eigrpd.c
+++ b/eigrpd/eigrpd.c
@@ -99,10 +99,10 @@ void eigrp_router_id_update(struct eigrp *eigrp)
router_id_old = eigrp->router_id;
- if (eigrp->router_id_static.s_addr != 0)
+ if (eigrp->router_id_static.s_addr != INADDR_ANY)
router_id = eigrp->router_id_static;
- else if (eigrp->router_id.s_addr != 0)
+ else if (eigrp->router_id.s_addr != INADDR_ANY)
router_id = eigrp->router_id;
else
@@ -142,8 +142,8 @@ static struct eigrp *eigrp_new(uint16_t as, vrf_id_t vrf_id)
eigrp->vrf_id = vrf_id;
eigrp->vrid = 0;
eigrp->AS = as;
- eigrp->router_id.s_addr = 0;
- eigrp->router_id_static.s_addr = 0;
+ eigrp->router_id.s_addr = INADDR_ANY;
+ eigrp->router_id_static.s_addr = INADDR_ANY;
eigrp->sequence_number = 1;
/*Configure default K Values for EIGRP Process*/