Date: Sun, 14 Oct 2007 05:32:36 GMT From: Roman Bogorodskiy <novel@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/117172: [ patch ] fix one of the table lookup examples Message-ID: <200710140532.l9E5WaZK062489@freefall.freebsd.org> Resent-Message-ID: <200710140540.l9E5e0QW062638@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710140532.l9E5WaZK062489>