ng_tee man page on GhostBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
GhostBSD logo
[printable version]

NG_TEE(4)		 BSD Kernel Interfaces Manual		     NG_TEE(4)

     ng_tee — netgraph ``tee'' node type

     #include <sys/types.h>
     #include <netgraph/ng_tee.h>

     The tee node type has a purpose similar to the tee(1) command.  Tee nodes
     are useful for debugging or “snooping” on a connection between two net‐
     graph nodes.  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 unmod‐
     ified 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.

     This node type supports the following hooks:

     right	   The connection to the node on the right.

     left	   The connection to the node on the left.

     right2left	   Tap for right to left traffic.

     left2right	   Tap for left to right traffic.

     This node type supports the generic control messages, plus the following.

	  Get statistics, returned as a struct ng_tee_stats.

	  Clear statistics.

     This node shuts down upon receipt of an NGM_SHUTDOWN control message, or
     when all hooks have been disconnected.  If both right and left hooks are
     present, node removes itself from the chain gently, connecting right and
     left together.

     tee(1), netgraph(4), ngctl(8)

     The ng_tee node type was implemented in FreeBSD 4.0.

     Julian Elischer ⟨⟩

BSD				 May 28, 2004				   BSD

List of man pages available for GhostBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net