summaryrefslogtreecommitdiffstats
path: root/proto/ospf/lsupd.c
diff options
context:
space:
mode:
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);
+}
+