docs/67065: [patch] error in ipfw man page example of addr:mask syntax
David Syphers
dsyphers at oddjob.uchicago.edu
Sun May 23 06:40:38 UTC 2004
>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 at 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:
More information about the freebsd-doc
mailing list