Date: Sun, 5 Jan 2003 17:13:32 +0100 (CET) From: "Simon L.Nielsen" <simon@nitro.dk> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/46785: [patch] add sets information to ipfw2 -h Message-ID: <20030105161332.7CE2610BF87@arthur.nitro.dk>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030105161332.7CE2610BF87>