From owner-freebsd-doc@FreeBSD.ORG Sun Oct 14 05:40:02 2007 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B776516A41B for ; Sun, 14 Oct 2007 05:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8FD3713C448 for ; Sun, 14 Oct 2007 05:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9E5e0Pg062639 for ; Sun, 14 Oct 2007 05:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9E5e0QW062638; Sun, 14 Oct 2007 05:40:00 GMT (envelope-from gnats) Resent-Date: Sun, 14 Oct 2007 05:40:00 GMT Resent-Message-Id: <200710140540.l9E5e0QW062638@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Roman Bogorodskiy Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D424916A41B for ; Sun, 14 Oct 2007 05:32:36 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BBFDE13C455 for ; Sun, 14 Oct 2007 05:32:36 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from freefall.freebsd.org (novel@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9E5WabA062490 for ; Sun, 14 Oct 2007 05:32:36 GMT (envelope-from novel@freefall.freebsd.org) Received: (from novel@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9E5WaZK062489; Sun, 14 Oct 2007 05:32:36 GMT (envelope-from novel) Message-Id: <200710140532.l9E5WaZK062489@freefall.freebsd.org> Date: Sun, 14 Oct 2007 05:32:36 GMT From: Roman Bogorodskiy To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: docs/117172: [ patch ] fix one of the table lookup examples X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Roman Bogorodskiy List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2007 05:40:02 -0000 >Number: 117172 >Category: docs >Synopsis: [ patch ] fix one of the table lookup examples >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 14 05:40:00 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Roman Bogorodskiy >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD freefall.freebsd.org 7.0-CURRENT FreeBSD 7.0-CURRENT #27: Tue Oct 9 06:58:43 UTC 2007 peter@freefall.freebsd.org:/usr/src/sys/i386/compile/FREEFALL i386 >Description: In the 'LOOKUP TABLES' example the following scenario is described: ipfw pipe 1 config bw 1000Kbyte/s ipfw pipe 4 config bw 4000Kbyte/s ... ipfw table 1 add 192.168.2.0/24 1 ipfw table 1 add 192.168.0.0/27 4 ipfw table 1 add 192.168.0.2 1 ... ipfw pipe tablearg ip from table(1) to any However, the last command is wrong because it's aimed to be a rule and the rule should be added using 'add' keyword. So the command should look like: ipfw add pipe tablearg ip from table(1) to any >How-To-Repeat: >Fix: --- ipfw_8_pipe.diff begins here --- Index: ipfw.8 =================================================================== RCS file: /home/ncvs/src/sbin/ipfw/ipfw.8,v retrieving revision 1.203 diff -u -r1.203 ipfw.8 --- ipfw.8 5 Aug 2007 16:16:14 -0000 1.203 +++ ipfw.8 14 Oct 2007 05:14:13 -0000 @@ -2456,7 +2456,7 @@ .Dl "ipfw table 1 add 192.168.0.0/27 4" .Dl "ipfw table 1 add 192.168.0.2 1" .Dl "..." -.Dl "ipfw pipe tablearg ip from table(1) to any" +.Dl "ipfw add pipe tablearg ip from table(1) to any" .Pp Using the .Cm fwd --- ipfw_8_pipe.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: