]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_interface.c
*: Replace s_addr 0 => INADDR_ANY
[mirror_frr.git] / ospfd / ospf_interface.c
index 3eb03f53c4df28f8a2504f782979373092f43cfb..f2efaf322f6bf13770549fec5b895c3bb9fe34af 100644 (file)
@@ -862,7 +862,7 @@ struct ospf_interface *ospf_vl_new(struct ospf *ospf,
 
        p = prefix_ipv4_new();
        p->family = AF_INET;
-       p->prefix.s_addr = 0;
+       p->prefix.s_addr = INADDR_ANY;
        p->prefixlen = 0;
 
        co->address = (struct prefix *)p;
@@ -885,7 +885,7 @@ struct ospf_interface *ospf_vl_new(struct ospf *ospf,
        if (IS_DEBUG_OSPF_EVENT)
                zlog_debug("ospf_vl_new(): set if->name to %s", vi->name);
 
-       area_id.s_addr = 0;
+       area_id.s_addr = INADDR_ANY;
        area = ospf_area_get(ospf, area_id);
        voi->area = area;
 
@@ -907,7 +907,7 @@ static void ospf_vl_if_delete(struct ospf_vl_data *vl_data)
 {
        struct interface *ifp = vl_data->vl_oi->ifp;
 
-       vl_data->vl_oi->address->u.prefix4.s_addr = 0;
+       vl_data->vl_oi->address->u.prefix4.s_addr = INADDR_ANY;
        vl_data->vl_oi->address->prefixlen = 0;
        ospf_if_free(vl_data->vl_oi);
        if_delete(&ifp);
@@ -971,7 +971,7 @@ static void ospf_vl_shutdown(struct ospf_vl_data *vl_data)
        if ((oi = vl_data->vl_oi) == NULL)
                return;
 
-       oi->address->u.prefix4.s_addr = 0;
+       oi->address->u.prefix4.s_addr = INADDR_ANY;
        oi->address->prefixlen = 0;
 
        UNSET_FLAG(oi->ifp->flags, IFF_UP);