summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-08-03 07:01:33 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-08-03 07:01:33 +0000
commit9082a6e85be827a483d4543fa67621fb5763930c (patch)
tree6f7544d3f9437a2b1fa3add3e66cb99601543b9b
parent756dfeb7f4b334306f46114e351dbe8b3516203f (diff)
Don't flush SPD entries.
-rw-r--r--sbin/route/route.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index 826e2bbadeb..a41c61e8aa9 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.38 2000/07/27 20:12:25 angelos Exp $ */
+/* $OpenBSD: route.c,v 1.39 2000/08/03 07:01:32 angelos Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)route.c 8.3 (Berkeley) 3/19/94";
#else
-static char rcsid[] = "$OpenBSD: route.c,v 1.38 2000/07/27 20:12:25 angelos Exp $";
+static char rcsid[] = "$OpenBSD: route.c,v 1.39 2000/08/03 07:01:32 angelos Exp $";
#endif
#endif /* not lint */
@@ -311,6 +311,8 @@ bad: usage(*argv);
if (sa->sa_family != af)
continue;
}
+ if (sa->sa_family == AF_KEY)
+ continue; /* Don't flush SPD */
if (debugonly)
continue;
rtm->rtm_type = RTM_DELETE;