summaryrefslogtreecommitdiffstats
path: root/proto/ospf/lsupd.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-27 17:36:02 +0200
committerOndrej Filip <feela@network.cz>2000-05-27 17:36:02 +0200
commit4bd28fb68e6e691aee87cec41f219224e2dd69dc (patch)
treeb485b6d7b0fcc7cab2ce1fa3d0bd4d80a1053fcf /proto/ospf/lsupd.c
parente8085abaa76c32bb325e378dfe2851bc98602c1e (diff)
downloadbird-4bd28fb68e6e691aee87cec41f219224e2dd69dc.tar
bird-4bd28fb68e6e691aee87cec41f219224e2dd69dc.zip
Better shutdown. (Flush my own router LSA and send 1WAY to every neighbor.)
Ext LSA originating and flushing added.
Diffstat (limited to 'proto/ospf/lsupd.c')
-rw-r--r--proto/ospf/lsupd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/proto/ospf/lsupd.c b/proto/ospf/lsupd.c
index 002dea0..6ae6866 100644
--- a/proto/ospf/lsupd.c
+++ b/proto/ospf/lsupd.c
@@ -434,3 +434,14 @@ ospf_lsupd_rx(struct ospf_lsupd_packet *ps, struct proto *p,
}
}
+void
+net_flush_lsa(struct top_hash_entry *en, struct proto_ospf *po,
+ struct ospf_area *oa)
+{
+ struct ospf_lsa_header *lsa=&en->lsa;
+
+ lsa->age=LSA_MAXAGE;
+ debug("Premature aging self originated lsa.\n");
+ flood_lsa(NULL,NULL,lsa,po,NULL,oa);
+}
+