diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-02-07 19:20:43 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-02-07 19:20:43 +0100 |
commit | abb1bf8d32d462b33217f8c63c9129830e2cbc13 (patch) | |
tree | 7eff89fb6cfb5367c1dfed106ef28c4d00dcb279 /ospfd/ospf_lsdb.c | |
parent | bgpd: Use AF_UNSPEC instead of setting to 0 (diff) | |
download | frr-abb1bf8d32d462b33217f8c63c9129830e2cbc13.tar.xz frr-abb1bf8d32d462b33217f8c63c9129830e2cbc13.zip |
ospfd: Use AF_UNSPEC instead of setting to 0
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospfd/ospf_lsdb.c')
-rw-r--r-- | ospfd/ospf_lsdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ospfd/ospf_lsdb.c b/ospfd/ospf_lsdb.c index 86eb14131..b0881c098 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; |