summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d/rde.h
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2009-03-12 01:21:50 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2009-03-12 01:21:50 +0000
commitdf1f1951ead3dc980478947ee0d01a380808b44b (patch)
treea7821d510c20774d42b72f9d43746daef3fcf158 /usr.sbin/ospf6d/rde.h
parent16b28103432692f21f24ff02f6d001f50a29c7f3 (diff)
lsa_self() did too many things at once, and had too much logic
buried inside of it that its caller relied on. So split it up as follows: lsa_self() Check whether an LSA is self-originated. lsa_flush() Flush an LSA from the LSDB. lsa_reflood() Prepare an LSA for reflooding (actual reflooding currently requires sending an imsg which must be done by the caller). ok claudio@
Diffstat (limited to 'usr.sbin/ospf6d/rde.h')
-rw-r--r--usr.sbin/ospf6d/rde.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/rde.h b/usr.sbin/ospf6d/rde.h
index 33de3c2186f..cc9aa669a40 100644
--- a/usr.sbin/ospf6d/rde.h
+++ b/usr.sbin/ospf6d/rde.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.h,v 1.10 2009/03/07 00:33:13 stsp Exp $ */
+/* $OpenBSD: rde.h,v 1.11 2009/03/12 01:21:49 stsp Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -137,7 +137,9 @@ int lsa_compare(struct vertex *, struct vertex *);
void vertex_free(struct vertex *);
int lsa_newer(struct lsa_hdr *, struct lsa_hdr *);
int lsa_check(struct rde_nbr *, struct lsa *, u_int16_t);
-int lsa_self(struct rde_nbr *, struct lsa *, struct vertex *);
+int lsa_self(struct lsa *);
+void lsa_flush(struct rde_nbr *, struct lsa *);
+void lsa_reflood(struct vertex *, struct lsa*);
int lsa_add(struct rde_nbr *, struct lsa *);
void lsa_del(struct rde_nbr *, struct lsa_hdr *);
void lsa_age(struct vertex *);