summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/kroute.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index e94679ea1a1..dd36116f6ec 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.140 2005/07/01 22:00:04 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.141 2005/09/21 12:50:20 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1249,6 +1249,9 @@ kroute_validate(struct kroute *kr)
{
struct kif_node *kif;
+ if (kr->flags & (F_REJECT | F_BLACKHOLE))
+ return (0);
+
if ((kif = kif_find(kr->ifindex)) == NULL) {
if (kr->ifindex)
log_warnx("interface with index %d not found, "
@@ -1266,6 +1269,9 @@ kroute6_validate(struct kroute6 *kr)
{
struct kif_node *kif;
+ if (kr->flags & (F_REJECT | F_BLACKHOLE))
+ return (0);
+
if ((kif = kif_find(kr->ifindex)) == NULL) {
if (kr->ifindex)
log_warnx("interface with index %d not found, "