summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_ase.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-12-14 20:01:31 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2020-12-14 20:03:38 +0100
commit3a6290bdd1003f53ad73aaaa2f6bc4b08e262352 (patch)
tree140586732e3a6a1b6d24ce775cebfb6d77b165d0 /ospfd/ospf_ase.c
parentMerge pull request #7726 from chiragshah6/mdev (diff)
downloadfrr-3a6290bdd1003f53ad73aaaa2f6bc4b08e262352.tar.xz
frr-3a6290bdd1003f53ad73aaaa2f6bc4b08e262352.zip
*: Replace s_addr check agains 0 with INADDR_ANY
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'ospfd/ospf_ase.c')
-rw-r--r--ospfd/ospf_ase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_ase.c b/ospfd/ospf_ase.c
index 3606efc76..e99653f91 100644
--- a/ospfd/ospf_ase.c
+++ b/ospfd/ospf_ase.c
@@ -136,7 +136,7 @@ static void ospf_ase_complete_direct_routes(struct ospf_route *ro,
struct ospf_path *op;
for (ALL_LIST_ELEMENTS_RO(ro->paths, node, op))
- if (op->nexthop.s_addr == 0)
+ if (op->nexthop.s_addr == INADDR_ANY)
op->nexthop.s_addr = nexthop.s_addr;
}
@@ -191,7 +191,7 @@ ospf_ase_calculate_asbr_route (struct ospf *ospf,
return NULL;
}
- if (al->e[0].fwd_addr.s_addr != 0)
+ if (al->e[0].fwd_addr.s_addr != INADDR_ANY)
{
if (IS_DEBUG_OSPF (lsa, LSA))
zlog_debug ("ospf_ase_calculate(): Forwarding address is not 0.0.0.0.");