summaryrefslogtreecommitdiff
path: root/ospfd/ospf_lsa.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2022-02-07 23:29:33 +0300
committerGitHub <noreply@github.com>2022-02-07 23:29:33 +0300
commit16cdf5ddbc5c92f0dc43d9243a60a7258c67e68d (patch)
tree566c01776c94e94000d64eb463962763be99e3cf /ospfd/ospf_lsa.c
parent88f739c16bf82cbfe3d8d15c29f88c948c3b53cb (diff)
parentb6d2bb07d86e3e2799643e9ef828943378ab8429 (diff)
Merge pull request #10518 from donaldsharp/af_unspec
Af unspec
Diffstat (limited to 'ospfd/ospf_lsa.c')
-rw-r--r--ospfd/ospf_lsa.c4
1 files changed, 2 insertions, 2 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;