From owner-freebsd-doc@FreeBSD.ORG Sat May 22 23:40:38 2004 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D9FC16A4CE for ; Sat, 22 May 2004 23:40:38 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEDAD43D31 for ; Sat, 22 May 2004 23:40:37 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i4N6eOY2023580 for ; Sat, 22 May 2004 23:40:24 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i4N6eOQI023577; Sat, 22 May 2004 23:40:24 -0700 (PDT) (envelope-from gnats) Resent-Date: Sat, 22 May 2004 23:40:24 -0700 (PDT) Resent-Message-Id: <200405230640.i4N6eOQI023577@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, David Syphers Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D077A16A4CE for ; Sat, 22 May 2004 23:32:44 -0700 (PDT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C996243D1D for ; Sat, 22 May 2004 23:32:44 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i4N6Wi1Y084688 for ; Sat, 22 May 2004 23:32:44 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i4N6Wijw084687; Sat, 22 May 2004 23:32:44 -0700 (PDT) (envelope-from nobody) Message-Id: <200405230632.i4N6Wijw084687@www.freebsd.org> Date: Sat, 22 May 2004 23:32:44 -0700 (PDT) From: David Syphers To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: docs/67065: [patch] error in ipfw man page example of addr:mask syntax X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 May 2004 06:40:38 -0000 >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: