Date: Mon, 3 Oct 2005 14:07:31 +0100 From: Ceri Davies <ceri@submonkey.net> To: net@FreeBSD.org Subject: ng_tee, right2left, et al Message-ID: <20051003130731.GF56760@submonkey.net>
next in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051003130731.GF56760>