From 8e48831a970a784a979446813191628790d477f1 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 17 Mar 2011 15:53:36 +0100 Subject: Vastly improved OSPF reconfiguration. Now it can handle a change in iface pattern structure. It can add, remove and reconfigure interfaces, vlinks and areas. --- proto/ospf/lsalib.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'proto/ospf/lsalib.c') diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c index 2f52fe9..224c345 100644 --- a/proto/ospf/lsalib.c +++ b/proto/ospf/lsalib.c @@ -23,6 +23,18 @@ flush_lsa(struct top_hash_entry *en, struct proto_ospf *po) ospf_hash_delete(po->gr, en); } +void +ospf_flush_area(struct proto_ospf *po, u32 areaid) +{ + struct top_hash_entry *en, *nxt; + + WALK_SLIST_DELSAFE(en, nxt, po->lsal) + { + if ((LSA_SCOPE(&en->lsa) == LSA_SCOPE_AREA) && (en->domain == areaid)) + flush_lsa(en, po); + } +} + /** * ospf_age * @po: ospf protocol -- cgit v1.2.3