NetBSD Problem Report #13300

Received: (qmail 12404 invoked from network); 25 Jun 2001 01:22:33 -0000
Message-Id: <200106250119.f5P1JWr00641@zorkmid.mit.edu>
Date: Sun, 24 Jun 2001 21:19:32 -0400 (EDT)
From: John Hawkinson <jhawk@mit.edu>
Reply-To: jhawk@mit.edu
To: gnats-bugs@gnats.netbsd.org
Subject: ping should allow -i 0.1 for users
X-Send-Pr-Version: 3.95

>Number:         13300
>Category:       bin
>Synopsis:       ping should allow -i 0.1 for users
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 25 01:23:00 +0000 2001
>Closed-Date:    
>Last-Modified:  Mon Jun 25 01:57:00 +0000 2001
>Originator:     John Hawkinson
>Release:        -current of 24 Jun 2001
>Organization:
MIT
>Environment:

System: NetBSD zorkmid.mit.edu 1.5U NetBSD 1.5U (ZORKMID-$Revision: 1.10 $) #103: Mon May 21 21:10:47 EDT 2001 jhawk@zorkmid.mit.edu:/usr/local/netbsd-current/src/sys/arch/i386/compile/ZORKMID i386


>Description:
	It sure would be nice if the ping program allowed the use of
-i 0.1 for non-root users. While -i 1 makes a nice default, it is not
unreasonable for users to want to get a more precise view of changing
network properties. Especially in a world where network properties are
increasingly relevent to users (our reliable Internet), and network
properties are increasingly unstable, especially with technologies like
wireless networking.

	I don't think that there is any trouble supporting 10pps of
diagnostic traffic, instead of 1pps, though I certainly agree that -i 0.1
should not be the default.

	CONCERN (for ippm people) is 10pps getting to the point where
it might be important to look into Poisson distributions? My feeling is
this should be done anyway, and that 10pps might be a level where it could
be easily done without interfering with the user, but there is no
compelling reason why this change should wait for a Poisson implementation.
>How-To-Repeat:

>Fix:
	Proposed patch.


Index: ping.c
===================================================================
RCS file: /cvsroot/basesrc/sbin/ping/ping.c,v
retrieving revision 1.59
diff -u -r1.59 ping.c
--- ping.c	2001/02/19 22:56:21	1.59
+++ ping.c	2001/06/25 01:21:01
@@ -403,8 +403,8 @@
 #ifndef sgi
 	if (pingflags & F_FLOOD && getuid())
 		errx(1, "Must be superuser to use -f");
-	if (interval < 1.0 && getuid())
-		errx(1, "Must be superuser to use < 1 sec ping interval");
+	if (interval < 0.1 && getuid())
+		errx(1, "Must be superuser to use < 0.01 second ping interval");
 	if (preload > 0 && getuid())
 		errx(1, "Must be superuser to use -l");
 #endif
>Release-Note:
>Audit-Trail:

From: Andrew Brown <atatat@atatdot.net>
To: John Hawkinson <jhawk@mit.edu>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/13300: ping should allow -i 0.1 for users
Date: Sun, 24 Jun 2001 21:57:35 -0400

 >	It sure would be nice if the ping program allowed the use of
 >-i 0.1 for non-root users. While -i 1 makes a nice default, it is not
 >unreasonable for users to want to get a more precise view of changing
 >network properties. Especially in a world where network properties are
 >increasingly relevent to users (our reliable Internet), and network
 >properties are increasingly unstable, especially with technologies like
 >wireless networking.

 pkgsrc/net/mtr makes a nice way for users to *really* see how the
 network is changing.  i have a nice patch to make it *not* require
 gtk, but this email is too small for me to write it down...

 -- 
 |-----< "CODE WARRIOR" >-----|
 codewarrior@daemon.org             * "ah!  i see you have the internet
 twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
 andrew@crossbar.com       * "information is power -- share the wealth."

From: John Hawkinson <jhawk@MIT.EDU>
To: Andrew Brown <atatat@atatdot.net>
Cc:  
Subject: Re: bin/13300: ping should allow -i 0.1 for users
Date: Sun, 24 Jun 2001 21:59:30 -0400

 Andrew Brown <atatat@atatdot.net> wrote on Sun, 24 Jun 2001
 at 21:57:35 -0400 in <20010624215735.A13676@noc.untraceable.net>:


 > pkgsrc/net/mtr makes a nice way for users to *really* see how the
 > network is changing.  i have a nice patch to make it *not* require
 > gtk, but this email is too small for me to write it down...

 mtr, feh.

 Base OS, rah, rah.

 BTW, yes, I know the text in the printf had the number misentered
 as 0.01 instead of 0.1.

 --jhawk
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.