diff options
author | paul <paul> | 2003-07-13 01:36:06 +0000 |
---|---|---|
committer | paul <paul> | 2003-07-13 01:36:06 +0000 |
commit | 8fc0f64b143ed2155567f5c9f0faad756252146a (patch) | |
tree | f857f7da18250fb709973afb2e66d28a3c6aafa8 /ospfd | |
parent | 7f809942dac3683794f3e9924d327b48be0fe852 (diff) |
2003-07-13 Paul Jakma <paul@dishone.st>
* ospf_lsa.c: fix up some places where an NSSA specific define,
(OSPF_LSA_LOCAL_XLT) was referenced in if statements without being
ifdef'ed by HAVE_NSSA.
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_lsa.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c index 18ab140a..079eea54 100644 --- a/ospfd/ospf_lsa.c +++ b/ospfd/ospf_lsa.c @@ -2334,7 +2334,9 @@ ospf_external_lsa_refresh (struct ospf *ospf, struct ospf_lsa *lsa, * Translated LSAs should not be registered, but refreshed upon * refresh of the Type-7 */ +#ifdef HAVE_NSSA if ( !CHECK_FLAG (new->flags, OSPF_LSA_LOCAL_XLT) ) +#endif ospf_refresher_register_lsa (ospf, new); /* Debug logging. */ @@ -2523,9 +2525,14 @@ ospf_external_lsa_install (struct ospf *ospf, struct ospf_lsa *new, #endif /* HAVE_NSSA */ /* Register self-originated LSA to refresh queue. - * Leave Translated LSAs alone + * Leave Translated LSAs alone if NSSA is enabled */ - if (IS_LSA_SELF (new) && !CHECK_FLAG (new->flags, OSPF_LSA_LOCAL_XLT ) ) + if (IS_LSA_SELF (new) +#ifdef HAVE_NSSA + && !CHECK_FLAG (new->flags, OSPF_LSA_LOCAL_XLT ) +#endif /* HAVE_NSSA */ + ) + ospf_refresher_register_lsa (ospf, new); return new; |