summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-11-24 16:42:59 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-11-24 16:42:59 +0000
commita241ab94c76dd3e7380bbde7d7dd520b59b23bb3 (patch)
tree353439ac264572fea42a4b7ff5f783290a1dec0a /usr.sbin/ospf6d
parent7d179a68b285c9eab6f044d9e8932efd153acdc5 (diff)
lsa_self() is completely busted at the moment, so just ignore it.
Currently ospf6d is unable to announce a thing so there is no need to cleanup.
Diffstat (limited to 'usr.sbin/ospf6d')
-rw-r--r--usr.sbin/ospf6d/rde_lsdb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ospf6d/rde_lsdb.c b/usr.sbin/ospf6d/rde_lsdb.c
index 5f5d64ef62c..b8a0a95e749 100644
--- a/usr.sbin/ospf6d/rde_lsdb.c
+++ b/usr.sbin/ospf6d/rde_lsdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_lsdb.c,v 1.5 2007/10/16 21:58:17 claudio Exp $ */
+/* $OpenBSD: rde_lsdb.c,v 1.6 2007/11/24 16:42:58 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -287,8 +287,8 @@ lsa_router_check(struct lsa *lsa, u_int16_t len)
int
lsa_self(struct rde_nbr *nbr, struct lsa *new, struct vertex *v)
{
- struct lsa *dummy;
#if 0
+ struct lsa *dummy;
struct iface *iface;
if (nbr->self)
@@ -304,7 +304,6 @@ lsa_self(struct rde_nbr *nbr, struct lsa *new, struct vertex *v)
return (0);
self:
-#endif
if (v == NULL) {
/*
* LSA is no longer announced, remove by premature aging.
@@ -333,6 +332,8 @@ self:
v->lsa->hdr.seq_num = new->hdr.seq_num;
lsa_refresh(v);
return (1);
+#endif
+ return (0);
}
int