From novel@FreeBSD.org  Sun Oct 14 05:32:36 2007
Return-Path: <novel@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D424916A41B
	for <freebsd-gnats-submit@hub.freebsd.org>; 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 <freebsd-gnats-submit@hub.freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <novel@FreeBSD.org>
Reply-To: Roman Bogorodskiy <novel@FreeBSD.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:
Subject: [ patch ] fix one of the table lookup examples
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         117172
>Category:       docs
>Synopsis:       [ patch ] fix one of the table lookup examples
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 14 05:40:00 UTC 2007
>Closed-Date:    Thu Nov 29 18:38:44 UTC 2007
>Last-Modified:  Thu Nov 29 18:38:44 UTC 2007
>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:
State-Changed-From-To: open->patched 
State-Changed-By: maxim 
State-Changed-When: Sun Oct 14 09:12:48 UTC 2007 
State-Changed-Why:  
Fixed in HEAD.  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117172 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/117172: commit references a PR
Date: Sun, 14 Oct 2007 09:12:55 +0000 (UTC)

 maxim       2007-10-14 09:12:46 UTC
 
   FreeBSD src repository
 
   Modified files:
     sbin/ipfw            ipfw.8 
   Log:
   o Fix a typo in ipfw table usage example.
   
   PR:             docs/117172
   Submitted by:   novel
   MFC after:      1 week
   
   Revision  Changes    Path
   1.204     +1 -1      src/sbin/ipfw/ipfw.8
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: maxim 
State-Changed-When: Thu Nov 29 18:38:22 UTC 2007 
State-Changed-Why:  
Merged to RELENG_7. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117172 
>Unformatted:
