Browse Source

flush all old routes before adding new interfaces or routes.

ref: netbsd pr3228/misc, Matthias Scheler
OPENBSD_2_1
rees 28 years ago
parent
commit
f1546d7d18
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/etc/netstart

+ 3
- 1
src/etc/netstart View File

@ -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


Loading…
Cancel
Save