From owner-freebsd-bugs Sun Jan 5 8:20: 6 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FCDC37B401 for ; Sun, 5 Jan 2003 08:20:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA2FA43EB2 for ; Sun, 5 Jan 2003 08:20:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h05GK3NS070257 for ; Sun, 5 Jan 2003 08:20:03 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h05GK3EC070256; Sun, 5 Jan 2003 08:20:03 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A30337B401 for ; Sun, 5 Jan 2003 08:13:36 -0800 (PST) Received: from arthur.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E10C43EC5 for ; Sun, 5 Jan 2003 08:13:35 -0800 (PST) (envelope-from simon@arthur.nitro.dk) Received: by arthur.nitro.dk (Postfix, from userid 1000) id 7CE2610BF87; Sun, 5 Jan 2003 17:13:32 +0100 (CET) Message-Id: <20030105161332.7CE2610BF87@arthur.nitro.dk> Date: Sun, 5 Jan 2003 17:13:32 +0100 (CET) From: "Simon L.Nielsen" Reply-To: "Simon L.Nielsen" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/46785: [patch] add sets information to ipfw2 -h Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 46785 >Category: bin >Synopsis: [patch] add sets information to ipfw2 -h >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 05 08:20:02 PST 2003 >Closed-Date: >Last-Modified: >Originator: Simon L. Nielsen >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: System: FreeBSD arthur.nitro.dk 4.7-STABLE FreeBSD 4.7-STABLE #4: Sun Jan 5 15:47:07 CET 2003 root@arthur.nitro.dk:/usr/obj/usr/src/sys/ARTHUR i386 >Description: ipfw2 has the 'sets' feature but ipfw -h does not document this. >How-To-Repeat: N/A >Fix: Note: the help (-h) function is in general somewhat inconsistent with the man page. Perhaps a more general update to bring ipfw -h and the man page in sync should be done? --- ipfw2-help.patch begins here --- Index: ipfw2.c =================================================================== RCS file: /home/mirror/freebsd/ncvs/src/sbin/ipfw/ipfw2.c,v retrieving revision 1.20 diff -u -d -u -r1.20 ipfw2.c --- ipfw2.c 1 Jan 2003 18:48:45 -0000 1.20 +++ ipfw2.c 5 Jan 2003 15:50:56 -0000 @@ -1672,12 +1672,13 @@ { fprintf(stderr, "ipfw syntax summary:\n" -"ipfw add [N] [prob {0..1}] ACTION [log [logamount N]] ADDR OPTIONS\n" +"ipfw add [N] [set N] [prob {0..1}] ACTION [log [logamount N]] ADDR OPTIONS\n" "ipfw {pipe|queue} N config BODY\n" "ipfw [pipe] {zero|delete|show} [N{,N}]\n" "\n" "RULE: [1..] [PROB] BODY\n" "RULENUM: INTEGER(1..65534)\n" +"SETNUM: INTEGER(0..31)\n" "PROB: prob REAL(0..1)\n" "BODY: check-state [LOG] (no body) |\n" " ACTION [LOG] MATCH_ADDR [OPTION_LIST]\n" --- ipfw2-help.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message