diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2012-10-29 20:29:31 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2012-10-29 20:29:31 +0100 |
commit | e4404cef0be10e639566986a2f8c1906c9f37de1 (patch) | |
tree | 704ccf6d9c6d3da832a4d1e0bc6706a670b0906a /proto/ospf/lsupd.c | |
parent | 0343d066dab077d1391640c53198199b16bef993 (diff) |
Fixes several bugs related to OSPFv3 vlinks.
Diffstat (limited to 'proto/ospf/lsupd.c')
-rw-r--r-- | proto/ospf/lsupd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/ospf/lsupd.c b/proto/ospf/lsupd.c index 16967a7f..633ed533 100644 --- a/proto/ospf/lsupd.c +++ b/proto/ospf/lsupd.c @@ -112,6 +112,10 @@ ospf_lsa_flooding_allowed(struct ospf_lsa_header *lsa, u32 domain, struct ospf_i { u32 scope = LSA_SCOPE(lsa); + /* Handle inactive vlinks */ + if (ifa->state == OSPF_IS_DOWN) + return 0; + /* 4.5.2 (Case 2) */ if (unknown_lsa_type(lsa) && !(lsa->type & LSA_UBIT)) scope = LSA_SCOPE_LINK; |