From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jul 12 16:50:14 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0508D16A41C for ; Tue, 12 Jul 2005 16:50:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AD5643D48 for ; Tue, 12 Jul 2005 16:50:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6CGoDb6056230 for ; Tue, 12 Jul 2005 16:50:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6CGoDcC056229; Tue, 12 Jul 2005 16:50:13 GMT (envelope-from gnats) Resent-Date: Tue, 12 Jul 2005 16:50:13 GMT Resent-Message-Id: <200507121650.j6CGoDcC056229@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andre Albsmeier Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7071B16A41C for ; Tue, 12 Jul 2005 16:41:19 +0000 (GMT) (envelope-from Andre.Albsmeier@siemens.com) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7D1C43D45 for ; Tue, 12 Jul 2005 16:41:18 +0000 (GMT) (envelope-from Andre.Albsmeier@siemens.com) Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by david.siemens.de (8.12.6/8.12.6) with ESMTP id j6CGfHOa031973 for ; Tue, 12 Jul 2005 18:41:17 +0200 Received: from ims.mchp.siemens.de (ims.mchp.siemens.de [139.25.31.39]) by mail2.siemens.de (8.12.6/8.12.6) with ESMTP id j6CGfG7w004659 for ; Tue, 12 Jul 2005 18:41:16 +0200 Received: from mail-ct.mchp.siemens.de (mail-ct.mchp.siemens.de [139.25.31.51]) by ims.mchp.siemens.de with ESMTP id j6CGfGJQ011513 for ; Tue, 12 Jul 2005 18:41:16 +0200 (MEST) Received: from curry.mchp.siemens.de (curry [139.25.42.7]) by mail-ct.mchp.siemens.de (8.12.11/8.12.11) with ESMTP id j6CGfFAF017936 for ; Tue, 12 Jul 2005 18:41:16 +0200 (MEST) Received: (from localhost) by curry.mchp.siemens.de (8.13.3/8.13.3) id j6CGfFTt094800 for FreeBSD-gnats-submit@freebsd.org; Tue, 12 Jul 2005 18:41:15 +0200 (CEST) Message-Id: <200507121641.j6CGfFQS006095@curry.mchp.siemens.de> Date: Tue, 12 Jul 2005 18:41:15 +0200 (CEST) From: Andre Albsmeier To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/83339: [PATCH] for net/fping X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2005 16:50:14 -0000 >Number: 83339 >Category: ports >Synopsis: [PATCH] for net/fping >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 12 16:50:12 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Andre Albsmeier >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: FreeBSD FreeBSD 5.4-STABLE #2: Tue Jul 12 13:55:14 CEST 2005 >Description: 1. fping does currently not allow to specify zero retries 2. the manpage talks about microseconds instead of milliseconds (it had been microseconds in earlier versions). >How-To-Repeat: 1. fping -r 0 target 2. time fping -B 1 -r 1 -t 5000 10.11.12.13 (or whatever) returns after 2 * 5000 milliseconds (not microseconds) >Fix: diff -ru fping.OLD/files/patch-02 fping/files/patch-02 --- fping.OLD/files/patch-02 Mon Oct 27 20:34:19 2003 +++ fping/files/patch-02 Tue Jul 12 18:11:45 2005 @@ -1,5 +1,5 @@ --- fping.c.orig Mon Jan 21 02:06:30 2002 -+++ fping.c Sat Oct 25 21:33:01 2003 ++++ fping.c Tue Jul 12 18:11:30 2005 @@ -42,7 +42,6 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. @@ -63,6 +63,17 @@ ident = getpid() & 0xFFFF; verbose_flag = 1; +@@ -502,8 +504,8 @@ + break; + + case 'r': +- if( !( retry = ( u_int )atoi( optarg ) ) ) +- usage(); ++ retry = ( u_int )atoi( optarg ); ++ + + break; + @@ -823,6 +825,7 @@ while( fgets( line, 132, ping_file ) ) diff -ru fping.OLD/files/patch-03 fping/files/patch-03 --- fping.OLD/files/patch-03 Fri Jan 10 09:26:25 2003 +++ fping/files/patch-03 Tue Jul 12 18:01:45 2005 @@ -6,42 +6,6 @@ .SH NAME fping \- send ICMP ECHO_REQUEST packets to network hosts .SH SYNOPSIS -@@ -79,7 +79,7 @@ - - somehost : 91.7 37.0 29.2 - 36.8 - --shows the response time in milliseconds for each of the five requests, -+shows the response time in microseconds for each of the five requests, - with the "-" indicating that no response was received to the fourth - request. - .IP \fB-d\fR 5 -@@ -107,7 +107,7 @@ - .IP \fB-h\fR 5 - Print usage message. - .IP \fB-i\fIn\fR 5 --The minimum amount of time (in milliseconds) between sending a ping packet to any target (default is 25). -+The minimum amount of time (in microseconds) between sending a ping packet to any target (default is 25). - .IP \fB-l\fR 5 - Loop sending packets to each target indefinitely. Can be interrupted - with ctl-C; statistics about responses for each target are then displayed. -@@ -117,7 +117,7 @@ - Same as -d. - .IP \fB-p\fR 5 - In looping or counting modes (-l, -c, or -C), this parameter sets the --time in milliseconds that -+time in microseconds that - .B fping - waits between successive packets to an individual target. Default is - 1000. -@@ -131,7 +131,7 @@ - .IP \fB-s\fR 5 - Print cumulative statistics upon exit. - .IP \fB-t\fIn\fR 5 --Initial target timeout in milliseconds (default 500). In the default -+Initial target timeout in microseconds (default 2500). In the default - mode, this is the amount of time that - .B fping - waits for a response to its first request. Successive timeouts are @@ -152,12 +152,12 @@ example none the less. .nf >Release-Note: >Audit-Trail: >Unformatted: