From 4bd28fb68e6e691aee87cec41f219224e2dd69dc Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sat, 27 May 2000 15:36:02 +0000 Subject: Better shutdown. (Flush my own router LSA and send 1WAY to every neighbor.) Ext LSA originating and flushing added. --- proto/ospf/lsupd.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'proto/ospf/lsupd.c') 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); +} + -- cgit v1.2.3