Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 May 2004 23:32:44 -0700 (PDT)
From:      David Syphers <dsyphers@oddjob.uchicago.edu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/67065: [patch] error in ipfw man page example of addr:mask syntax
Message-ID:  <200405230632.i4N6Wijw084687@www.freebsd.org>
Resent-Message-ID: <200405230640.i4N6eOQI023577@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         67065
>Category:       docs
>Synopsis:       [patch] error in ipfw man page example of addr:mask syntax
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 22 23:40:23 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     David Syphers
>Release:        5-CURRENT
>Organization:
>Environment:
FreeBSD yggdrasil.seektruth.org 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sat May 22 12:18:29 PDT 2004     root@yggdrasil.seektruth.org:/usr/obj/usr/src/sys/YGGDRASIL  i386
>Description:
     The ipfw(8) man page has an error in an example. It uses the form "1.2.3.4/255.0.255.0" (addr/netmask) when in fact that syntax is for addr/masklen. The correct syntax is 1.2.3.4:255.0.255.0 (addr:mask).
>How-To-Repeat:
      Read ifpw(8) and try to use the example like I did  :)
>Fix:
      Patch for $FreeBSD: src/sbin/ipfw/ipfw.8,v 1.143 2004/04/23 14:28:38 andre Exp $

diff -u /usr/src/sbin/ipfw/ipfw.8 ipfw.8
--- /usr/src/sbin/ipfw/ipfw.8   Thu May 13 20:37:42 2004
+++ ipfw.8      Sat May 22 23:21:07 2004
@@ -788,7 +788,7 @@
 and the mask of
 .Ar mask ,
 specified as a dotted quad.
-As an example, 1.2.3.4/255.0.255.0 will match
+As an example, 1.2.3.4:255.0.255.0 will match
 1.*.3.*.
 This form is advised only for non-contiguous
 masks. It is better to resort to the
>Release-Note:
>Audit-Trail:
>Unformatted:


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405230632.i4N6Wijw084687>