Subject: misc/3228: /etc/netstart should flush all routes
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@lyssa.owl.de>
List: netbsd-bugs
Date: 02/18/1997 12:15:00
>Number:         3228
>Category:       misc
>Synopsis:       /etc/netstart should flush all routes
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 18 03:20:01 1997
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Matthias Scheler                                http://home.pages.de/~tron/
>Release:        970207
>Environment:
System: NetBSD lyssa 1.2C NetBSD 1.2C (LYSSA) #1: Sat Feb 8 22:17:46 MET 1997 tron@lyssa:/usr/src/sys/arch/i386/compile/LYSSA i386


>Description:
If you bring back your machine to single user mode and enter multi user
mode later you'll lots of error message caused by duplicate routes.

>How-To-Repeat:
shutdown now
<CTRL-D>

>Fix:
*** src/etc/netstart.orig	Tue Jan 28 13:08:30 1997
--- src/etc/netstart	Tue Feb 18 12:14:23 1997
*************** if [ -f /etc/defaultdomain ]; then
*** 11,16 ****
--- 11,19 ----
  	domainname `cat /etc/defaultdomain`
  fi
  
+ # flush all routes
+ route flush
+ 
  # install and enable packet filter rules before configuring interfaces.
  if [ "X$ipfilter" != XNO -a -f /etc/ipf.conf ]; then
  	echo 'installing packet filter rules ... '
>Audit-Trail:
>Unformatted: