From owner-freebsd-net@FreeBSD.ORG Mon Oct 3 13:07:38 2005 Return-Path: X-Original-To: net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48AC816A4FE for ; Mon, 3 Oct 2005 13:07:38 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc2-cdif2-3-1-cust208.cdif.cable.ntl.com [82.31.78.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEE0843D46 for ; Mon, 3 Oct 2005 13:07:37 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.53 (FreeBSD)) id 1EMQ2V-000Pmn-IJ; Mon, 03 Oct 2005 14:07:31 +0100 Date: Mon, 3 Oct 2005 14:07:31 +0100 From: Ceri Davies To: net@FreeBSD.org Message-ID: <20051003130731.GF56760@submonkey.net> Mail-Followup-To: Ceri Davies , net@FreeBSD.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hoZxPH4CaxYzWscb" Content-Disposition: inline X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.11 Sender: Ceri Davies Cc: Subject: ng_tee, right2left, et al X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2005 13:07:38 -0000 --hoZxPH4CaxYzWscb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I've discovered an application for which netgraph looks perfect, so have just started reading the docs whilst paying proper attention. I started out with ng_tee as it looked the simplest, but I've found myself confused already. The manpage for ng_tee says: Tee nodes have four hooks, right, left, right2left, and left2right. All data received on right is sent unmodified to both hooks left and right2left. Similarly, all data received on left is sent unmodified to both right and left2right. Packets may also be received on right2left and left2right; if so, they are forwarded unchanged out hooks right and left, respectively. Now that last bit looked wrong to me; I would have though that a packet received on right2left would be copied to left. Checking the code shows that the manpage is correct, though Archie Cobbs' article at http://ezine.daemonnews.org/200003/netgraph.html says that the opposite is true. Is this behaviour that was changed for some reason, or has it always been "wrong"? Ceri --=20 Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Einstein (attrib.) --hoZxPH4CaxYzWscb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDQS0TocfcwTS3JF8RAlKOAJ9GMSjNNfKzfVLkZpXpOgvrIpAUEwCfRFcJ TzljDgbsmBU1ntEzGw+rTuE= =L6UP -----END PGP SIGNATURE----- --hoZxPH4CaxYzWscb--