summaryrefslogtreecommitdiff
path: root/ospfd
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_lsa.c4
-rw-r--r--ospfd/ospf_lsdb.c6
-rw-r--r--ospfd/ospf_snmp.c8
-rw-r--r--ospfd/ospf_vty.c2
4 files changed, 10 insertions, 10 deletions
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c
index c169996e01..aae57a2d0b 100644
--- a/ospfd/ospf_lsa.c
+++ b/ospfd/ospf_lsa.c
@@ -2983,7 +2983,7 @@ void ospf_lsa_maxage_delete(struct ospf *ospf, struct ospf_lsa *lsa)
struct prefix lsa_prefix;
memset(&lsa_prefix, 0, sizeof(struct prefix));
- lsa_prefix.family = 0;
+ lsa_prefix.family = AF_UNSPEC;
lsa_prefix.prefixlen = sizeof(lsa_prefix.u.ptr) * CHAR_BIT;
lsa_prefix.u.ptr = (uintptr_t)lsa;
@@ -3024,7 +3024,7 @@ void ospf_lsa_maxage(struct ospf *ospf, struct ospf_lsa *lsa)
}
memset(&lsa_prefix, 0, sizeof(struct prefix));
- lsa_prefix.family = 0;
+ lsa_prefix.family = AF_UNSPEC;
lsa_prefix.prefixlen = sizeof(lsa_prefix.u.ptr) * CHAR_BIT;
lsa_prefix.u.ptr = (uintptr_t)lsa;
diff --git a/ospfd/ospf_lsdb.c b/ospfd/ospf_lsdb.c
index 86eb141312..b0881c098f 100644
--- a/ospfd/ospf_lsdb.c
+++ b/ospfd/ospf_lsdb.c
@@ -70,7 +70,7 @@ void ospf_lsdb_cleanup(struct ospf_lsdb *lsdb)
void ls_prefix_set(struct prefix_ls *lp, struct ospf_lsa *lsa)
{
if (lp && lsa && lsa->data) {
- lp->family = 0;
+ lp->family = AF_UNSPEC;
lp->prefixlen = 64;
lp->id = lsa->data->id;
lp->adv_router = lsa->data->adv_router;
@@ -199,7 +199,7 @@ struct ospf_lsa *ospf_lsdb_lookup_by_id(struct ospf_lsdb *lsdb, uint8_t type,
table = lsdb->type[type].db;
memset(&lp, 0, sizeof(struct prefix_ls));
- lp.family = 0;
+ lp.family = AF_UNSPEC;
lp.prefixlen = 64;
lp.id = id;
lp.adv_router = adv_router;
@@ -226,7 +226,7 @@ struct ospf_lsa *ospf_lsdb_lookup_by_id_next(struct ospf_lsdb *lsdb,
table = lsdb->type[type].db;
memset(&lp, 0, sizeof(struct prefix_ls));
- lp.family = 0;
+ lp.family = AF_UNSPEC;
lp.prefixlen = 64;
lp.id = id;
lp.adv_router = adv_router;
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index 7ec3db7894..bf37556863 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -1779,7 +1779,7 @@ static int ospf_snmp_vl_add(struct ospf_vl_data *vl_data)
struct route_node *rn;
memset(&lp, 0, sizeof(struct prefix_ls));
- lp.family = 0;
+ lp.family = AF_UNSPEC;
lp.prefixlen = 64;
lp.id = vl_data->vl_area_id;
lp.adv_router = vl_data->vl_peer;
@@ -1798,7 +1798,7 @@ static int ospf_snmp_vl_delete(struct ospf_vl_data *vl_data)
struct route_node *rn;
memset(&lp, 0, sizeof(struct prefix_ls));
- lp.family = 0;
+ lp.family = AF_UNSPEC;
lp.prefixlen = 64;
lp.id = vl_data->vl_area_id;
lp.adv_router = vl_data->vl_peer;
@@ -1820,7 +1820,7 @@ static struct ospf_vl_data *ospf_snmp_vl_lookup(struct in_addr *area_id,
struct ospf_vl_data *vl_data;
memset(&lp, 0, sizeof(struct prefix_ls));
- lp.family = 0;
+ lp.family = AF_UNSPEC;
lp.prefixlen = 64;
lp.id = *area_id;
lp.adv_router = *neighbor;
@@ -1843,7 +1843,7 @@ static struct ospf_vl_data *ospf_snmp_vl_lookup_next(struct in_addr *area_id,
struct ospf_vl_data *vl_data;
memset(&lp, 0, sizeof(struct prefix_ls));
- lp.family = 0;
+ lp.family = AF_UNSPEC;
lp.prefixlen = 64;
lp.id = *area_id;
lp.adv_router = *neighbor;
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index c82c8cb42e..e113c4265d 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -6578,7 +6578,7 @@ static void show_lsa_prefix_set(struct vty *vty, struct prefix_ls *lp,
struct in_addr *id, struct in_addr *adv_router)
{
memset(lp, 0, sizeof(struct prefix_ls));
- lp->family = 0;
+ lp->family = AF_UNSPEC;
if (id == NULL)
lp->prefixlen = 0;
else if (adv_router == NULL) {