summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrees <rees@openbsd.org>1997-04-07 22:18:05 +0000
committerrees <rees@openbsd.org>1997-04-07 22:18:05 +0000
commit790b9d7d86fed1af2181e9554f6814e444115db2 (patch)
tree2ae1ddc319d32a38043f58a529da1e7e73db9118
parentparanoid about MAXHOSTNAMELEN (diff)
downloadwireguard-openbsd-790b9d7d86fed1af2181e9554f6814e444115db2.tar.xz
wireguard-openbsd-790b9d7d86fed1af2181e9554f6814e444115db2.zip
flush all old routes before adding new interfaces or routes.
ref: netbsd pr3228/misc, Matthias Scheler
-rw-r--r--etc/netstart4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/netstart b/etc/netstart
index 376c9daa77e..89fc0641901 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.15 1997/03/03 01:13:11 downsj Exp $
+# $OpenBSD: netstart,v 1.16 1997/04/07 22:18:05 rees Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=-q
@@ -41,6 +41,8 @@ if [ -f /etc/defaultdomain ]; then
domainname `cat /etc/defaultdomain`
fi
+route flush
+
# Configure the IP filter before configuring network interfaces
#
if [ X"${ipfilter}" = X"YES" -a -f "${ipfilter_rules}" ]; then