summaryrefslogtreecommitdiff
path: root/sbin/routed/table.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/routed/table.c')
-rw-r--r--sbin/routed/table.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sbin/routed/table.c b/sbin/routed/table.c
index 7a7f11660c0..0d3be6f61fe 100644
--- a/sbin/routed/table.c
+++ b/sbin/routed/table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: table.c,v 1.2 1996/09/22 20:48:12 millert Exp $ */
+/* $OpenBSD: table.c,v 1.3 1996/10/02 06:51:47 mickey Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
@@ -1660,12 +1660,8 @@ rtswitch(struct rt_entry *rt,
/* Do not change permanent routes */
- if (0 != (rt->rt_state & RS_PERMANENT))
- return;
-
- /* Do not discard synthetic routes until they go bad */
- if ((rt->rt_state & RS_NET_SYN)
- && rt->rt_metric < HOPCNT_INFINITY)
+ if (0 != (rt->rt_state & (RS_MHOME | RS_STATIC | RS_RDISC
+ | RS_NET_SYN | RS_IF)))
return;
/* find the best alternative among the spares */