diff options
author | 2007-10-11 12:16:45 +0000 | |
---|---|---|
committer | 2007-10-11 12:16:45 +0000 | |
commit | c27d59726f06dfc29d284600b8568e245e611679 (patch) | |
tree | fe461c28e4a011695664b88d14bce6e2d3f297f4 | |
parent | Cleanup the way we display timers. (diff) | |
download | wireguard-openbsd-c27d59726f06dfc29d284600b8568e245e611679.tar.xz wireguard-openbsd-c27d59726f06dfc29d284600b8568e245e611679.zip |
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.c | 6 |
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); |