From owner-freebsd-ipfw@FreeBSD.ORG Fri Jul 22 00:02:06 2005 Return-Path: X-Original-To: ipfw@freebsd.org Delivered-To: freebsd-ipfw@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D37A16A420 for ; Fri, 22 Jul 2005 00:02:06 +0000 (GMT) (envelope-from akruijff@dds.nl) Received: from smtp13.wxs.nl (smtp13.wxs.nl [195.121.6.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D2DB43D46 for ; Fri, 22 Jul 2005 00:02:06 +0000 (GMT) (envelope-from akruijff@dds.nl) Received: from smtp.planet.nl (ip51cc8423.speed.planet.nl [81.204.132.35]) by smtp13.wxs.nl (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IK0001FI5FGPM@smtp13.wxs.nl> for ipfw@freebsd.org; Fri, 22 Jul 2005 02:02:04 +0200 (CEST) Received: from Alex.lan (localhost [127.0.0.1]) by smtp.planet.nl (8.13.3/8.13.3) with ESMTP id j6M024Re003117; Fri, 22 Jul 2005 02:02:04 +0200 (CEST envelope-from akruijff@dds.nl) Received: (from akruijff@localhost) by Alex.lan (8.13.3/8.13.3/Submit) id j6M0237a003116; Fri, 22 Jul 2005 02:02:03 +0200 (CEST envelope-from akruijff@dds.nl) Content-return: prohibited Date: Fri, 22 Jul 2005 02:02:03 +0200 From: Alex de Kruijff In-reply-to: <20050721153016.A87676@xorpc.icir.org> To: Luigi Rizzo Message-id: <20050722000203.GF887@Alex.lan> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4.2.1i References: <20050721214242.GA2201@Alex.lan> <20050721153016.A87676@xorpc.icir.org> X-Authentication-warning: Alex.lan: akruijff set sender to akruijff@dds.nl using -f Cc: ipfw@freebsd.org Subject: Re: error in man ipfw / divert X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2005 00:02:06 -0000 On Thu, Jul 21, 2005 at 03:30:16PM -0700, Luigi Rizzo wrote: > On Thu, Jul 21, 2005 at 11:42:42PM +0200, Alex de Kruijff wrote: > > Hi, > > > > I was wrondering is man ipfw wrong here? > > > > man ipfw tells: divert port - > > Divert packets that match this rule to the divert(4) socket > > bound to port port. The search terminates. > ... > > I think man ipfw should say something like: > > > > when nothing is listening on the port then the search terminates > > > > when something is listening on the port then the search continues from > > the same rule. > > as far as ipfw is concerned, the search terminates. it is up to > the userland app to reinject the packet, and it might well not > do so if the packet should be processed differntly. > so i believe the ipfw manpage is correct. > if you want to add a reference to the divert manpage feel free to do so, > something like > > for more details on the operation of divers sockets see > divert(4) > > cheers > luigi Tanks, if you say its correct then i'm happy -- Alex