From dwmalone@maths.tcd.ie  Thu Jan 21 09:48:03 1999
Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11])
          by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA03095
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 21 Jan 1999 09:47:50 -0800 (PST)
          (envelope-from dwmalone@maths.tcd.ie)
Received: from gosset.maths.tcd.ie by salmon.maths.tcd.ie with SMTP
          id <aa09140@salmon.maths.tcd.ie>; 21 Jan 99 17:47:33 +0000 (GMT)
Message-Id: <9901211747.aa56895@gosset.maths.tcd.ie>
Date: Thu, 21 Jan 99 17:47:33 +0000 (GMT)
From: dwmalone@maths.tcd.ie
Sender: dwmalone@maths.tcd.ie
Reply-To: dwmalone@maths.tcd.ie
To: FreeBSD-gnats-submit@freebsd.org
Subject: Unclear line in ipfw man page.
X-Send-Pr-Version: 3.2

>Number:         9603
>Category:       docs
>Synopsis:       Unclear line in ipfw man page.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 21 09:50:00 PST 1999
>Closed-Date:    Thu Jan 21 11:53:33 PST 1999
>Last-Modified:  Thu Jan 21 11:54:03 PST 1999
>Originator:     David Malone
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
School of Mathematics, Trinity College, Dublin.
>Environment:

	2.2.8-STABLE

>Description:

The ipfw(8) man page says:

     If a rule is added without a number, it is numbered 100 higher than the
     previous rule. If the highest defined rule number is greater than 65534,
     new rules are appended to the last rule.

This suggests that if you add a rule numbered 800, then one numbered 100
and then add one with no number, that the unnumbered one will end up with
number 200. Infact it ends up with number 900.

>How-To-Repeat:

	ipfw 800 add count from any to any
	ipfw 200 add count from any to any
	ipfw add count from any to any
	ipfw show

>Fix:
	
The man page should probably be amended to say:

     If a rule is added without a number, it is numbered 100 higher than the
     highest numbered existing rule. If the highest defined rule number is
     greater than 65534, new rules are appended to the last rule.

This seems to be the same in -CURRENT.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: archie 
State-Changed-When: Thu Jan 21 11:53:33 PST 1999 
State-Changed-Why:  
Fixed wording in man page. 
>Unformatted:
