diff options
author | Maria Matejka <mq@ucw.cz> | 2020-02-17 11:18:32 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2021-10-13 19:09:04 +0200 |
commit | 3660f19dd534224da4870a507efcef5b36794506 (patch) | |
tree | 5e9a79d4cb53d5a90259f2b56c487064e2ff9c0d /proto | |
parent | c507fb41bb2e62f336357121598debab95a7c767 (diff) |
Dropping the RTS_DUMMY temporary route storage.
Kernel route sync is done by other ways now and this code is not used
currently.
Diffstat (limited to 'proto')
-rw-r--r-- | proto/ospf/rt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index 91d16dd9..471bb586 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -144,7 +144,7 @@ orta_compare(const struct ospf_proto *p, const orta *new, const orta *old) { int r; - if (old->type == RTS_DUMMY) + if (!old->type) return 1; /* Prefer intra-area to inter-area to externals */ @@ -195,7 +195,7 @@ orta_compare_asbr(const struct ospf_proto *p, const orta *new, const orta *old) { int r; - if (old->type == RTS_DUMMY) + if (!old->type) return 1; if (!p->rfc1583) @@ -225,7 +225,7 @@ orta_compare_ext(const struct ospf_proto *p, const orta *new, const orta *old) { int r; - if (old->type == RTS_DUMMY) + if (!old->type) return 1; /* 16.4 (6a) - prefer routes with lower type */ |