Hartmut Brandt
d3a3b08778
Allow nghook to execute a program with the data socket connected to
...
stdin and stdout instead of relaying the data. Now it is possible
to say:
nghook -e path: hook /usr/local/bin/foo arg1 arg2
and foo will have the hook to path: at file descriptors 0 and 1.
Add an option to specify control messages to be send to the node before
either executing the program or entering the data relay loop.
2003-10-24 10:01:36 +00:00
Philippe Charnier
96d282ece6
add FBSDID, compare getopt() against -1, use fprintf() + exit() in usage()
...
instead of errx() to get the message starting with "usage:".
2003-08-17 09:06:08 +00:00
Hartmut Brandt
7cfb043cce
Make this WARNS=6 clean by just constifying two local char pointers.
2003-08-13 07:51:06 +00:00
Hartmut Brandt
3af5ca9948
Put all the argument-less options together in the synopsis as required
...
by style(9).
2003-08-13 07:43:08 +00:00
Hartmut Brandt
1cdff5c9f7
Implement two command line options that allow one to change the
...
file descriptors that are used for input and output. That allows
one, for example, to use nghook to bi-directionally pipe the
input and output into/from another non-netgraph-aware program.
2003-08-13 07:42:07 +00:00
Philippe Charnier
490d5836b5
The .Nm utility
2002-07-14 14:47:15 +00:00
Ruslan Ermilov
57e4378bf6
mdoc(7) police: protect trailing full stops of abbreviations
...
with a trailing zero-width space: `e.g.\&'.
2001-08-10 13:45:36 +00:00
Sheldon Hearn
e1b4d8d074
Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The
...
definitions are more readable, and it's possible that they're
more portable to pathalogical platforms.
Submitted by: David Hill <david@phobia.ms>
2001-07-26 11:02:39 +00:00
David E. O'Brien
90e655ea4e
Perform a major cleanup of the usr.sbin Makefiles.
...
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
2001-07-20 06:20:32 +00:00
David E. O'Brien
ac24b049cc
Remove GCC'isms in CFLAGS.
2001-07-20 04:23:13 +00:00
Dima Dorfman
f247324df7
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
Ruslan Ermilov
a4c37c816b
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 15:12:08 +00:00
Ruslan Ermilov
5521ff5a4d
mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).
2001-07-06 16:46:48 +00:00
Maxim Sobolev
fe11f6f605
Correct cross-references:
...
ng_bpf.8 --> ng_bpf.4
ng_ether.8 --> ng_ether.4
ng_iface.8 --> ng_iface.4
ng_pppoe.8 --> ng_pppoe.4
ng_socket.8 --> ng_socket.4
ng_tty.8 --> ng_tty.4
ng_{type}.4 --> /dev/null
MFC after: 1 week
2001-06-05 12:40:03 +00:00
Ruslan Ermilov
345e52e742
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
Ruslan Ermilov
c73e22c3d4
Set the default manual section for usr.sbin/ to 8.
2001-03-20 18:17:26 +00:00
Ruslan Ermilov
ed40311694
mdoc(7) police: removed history info from the .Os FreeBSD call.
2000-12-14 11:52:05 +00:00
Archie Cobbs
0d3e728618
Add '-n' flag: don't attempt to read any data from standard input.
2000-07-27 21:55:48 +00:00
Poul-Henning Kamp
f928d1a2f2
Add the '-l' flag to nghook which loops the received data back.
2000-07-18 16:52:27 +00:00
Archie Cobbs
9dd6b63c36
Fix minor typo.
1999-12-22 01:25:07 +00:00
Julian Elischer
5129159789
Manual page style work.
...
Submitted by: Alexey Zelkin <phantom@FreeBSD.org>
thanks!
1999-12-21 01:25:21 +00:00
Archie Cobbs
2ab04c7d8e
Remove extra spaces in hex dump output.
1999-11-30 02:09:36 +00:00
Archie Cobbs
fa2518ab1f
Limit COPTS added by Makefile to just '-Wall'.
1999-10-28 20:17:13 +00:00
Matthew Dillon
ebdb21f429
Put include <netgraph.h> back in - problem was due to a cvsup mess on
...
freefall. There may also be a real problem w/ buildworld but the fix
would go somewhere else, not here.
1999-10-24 02:58:39 +00:00
Matthew Dillon
f41f949d09
Cleanup missing includes, stale includes, and a few printf format
...
inconsistancies.
1999-10-23 17:45:11 +00:00
Julian Elischer
4cf49a4355
Whistle's Netgraph link-layer (sometimes more) networking infrastructure.
...
Been in production for 3 years now. Gives Instant Frame relay to if_sr
and if_ar drivers, and PPPOE support soon. See:
ftp://ftp.whistle.com/pub/archie/netgraph/index.html
for on-line manual pages.
Reviewed by: Doug Rabson (dfr@freebsd.org )
Obtained from: Whistle CVS tree
1999-10-21 09:06:11 +00:00