docs/117172: [ patch ] fix one of the table lookup examples
Roman Bogorodskiy
novel at FreeBSD.org
Sun Oct 14 05:40:02 UTC 2007
>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 at 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:
More information about the freebsd-doc
mailing list