Subject: bin/5911: sysinst: The pings take too long to time out.
To: None <gnats-bugs@gnats.netbsd.org>
From: R. C. Dowdeswell <elric@imrryr.org>
List: netbsd-bugs
Date: 08/04/1998 17:27:43
>Number:         5911
>Category:       bin
>Synopsis:       sysinst: The pings take too long to time out.
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug  4 17:35:01 1998
>Last-Modified:
>Originator:     R. C. Dowdeswell
>Organization:
	The Fall of Imrryr
>Release:        3rd of Aug 1998
>Environment:
	
System: NetBSD arioch 1.3 NetBSD 1.3 (ARIOCH) #0: Mon Jul 13 12:58:46 PDT 1998 elric@arioch:/usr/src/sys/arch/i386/compile/ARIOCH i386

(Just got the info by ftp'ing the file down.)

>Description:

in src/distrib/utils/sysinst/net.c, we have a couple of pings to determine
if the default router is up.  They are "ping -c 2 %s".  My suggestion is
that we change this to something more along the lines of:

	ping -c 10 -w 1 -f -o %s

For the default router, since we know that this must be on an attached network,
so the response should be pretty quick (under 1 second -- hence the -w 1), and
we know that once we receive a single positive response that we should give
up -- hence the -o.

>How-To-Repeat:

Notice that it takes a bit too long to configure the interfaces in sysinst.

>Fix:

This is a one liner as shown above.
>Audit-Trail:
>Unformatted: