summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-10-11 12:16:46 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-10-11 12:16:46 +0000
commit64d51fafbb58bdc7417dd57ca5c83c8275143b4e (patch)
tree8712863c23600679ae0d32307912d27fd99e6300
parent3543479e36e8ce6643fe2442ba7495e32e436da6 (diff)
Don't check for OSPF_OPTION_E in the parent. OSPF_OPTION_E is per area and
so the parent process has no way to know if it should redistribute or not. Let the RDE decide. OK norby@
-rw-r--r--usr.sbin/ospfd/ospfd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/ospfd/ospfd.c b/usr.sbin/ospfd/ospfd.c
index 2f3ecbbd6d8..480f9146511 100644
--- a/usr.sbin/ospfd/ospfd.c
+++ b/usr.sbin/ospfd/ospfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.c,v 1.51 2007/10/01 08:35:12 norby Exp $ */
+/* $OpenBSD: ospfd.c,v 1.52 2007/10/11 12:16:45 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -533,10 +533,6 @@ ospf_redistribute(struct kroute *kr, u_int32_t *metric)
{
struct redistribute *r;
- /* stub area router? */
- if ((ospfd_conf->options & OSPF_OPTION_E) == 0)
- return (0);
-
/* only allow 0.0.0.0/0 via REDISTRIBUTE_DEFAULT */
if (kr->prefix.s_addr == INADDR_ANY && kr->prefixlen == 0)
return (0);