Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
NGHOOK(8)		  BSD System Manager's Manual		     NGHOOK(8)

NAME
     nghook -- connect to a netgraph(4)	node

SYNOPSIS
     nghook [-a] [-d] [-l] [-n]	path [hookname]

DESCRIPTION
     The nghook	utility	creates	a ng_socket(4) socket type node	and connects
     it	to hook	hookname of the	node found at path.  If	hookname is omitted,
     "debug" is	assumed.

     At	this point all data written to standard	input is sent to the node and
     all data received from the	node is	relayed	to standard output.  The
     nghook utility exits when EOF is detected on standard input.

     The options are as	follows:

     -a	     Output each packet	read in	human-readable decoded ASCII form in-
	     stead of raw binary.

     -d	     Increase the debugging verbosity level.

     -l	     Loops all received	data back to the hook in addition to writing
	     it	to standard output.

     -n	     Don't attempt to read any data from standard input.  The nghook
	     utility will continue reading from	the node until stopped by a
	     signal.

BUGS
     Although all input	is read	in unbuffered mode, there's no way to control
     the packetization of the input.

SEE ALSO
     netgraph(3), netgraph(4), ngctl(8)

HISTORY
     The netgraph system was designed and first	implemented at Whistle Commu-
     nications,	Inc. in	a version of FreeBSD 2.2 customized for	the Whistle
     InterJet.

AUTHORS
     Archie Cobbs <archie@whistle.com>

BSD			       January 19, 1999				   BSD

NAME | SYNOPSIS | DESCRIPTION | BUGS | SEE ALSO | HISTORY | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=nghook&sektion=8&manpath=FreeBSD+5.1-RELEASE>

home | help