ng_tee, right2left, et al

Ceri Davies ceri at submonkey.net
Mon Oct 3 06:07:38 PDT 2005


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
-- 
Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former.			  -- Einstein (attrib.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20051003/8ac386b8/attachment.bin


More information about the freebsd-net mailing list