Commit Graph

9 Commits

Author SHA1 Message Date
charnier
2c12157d7b Add __unused. Ansi prototypes. 2010-12-20 09:36:54 +00:00
kan
8c74632d44 Silence GCC4 signed/unsigned pointer mismatch warning. 2006-09-21 01:48:47 +00:00
glebius
0552c3f9ac Style: space after "return". 2006-06-28 10:38:38 +00:00
glebius
ae95ee086e Unnest includes before forthcoming editing. 2006-05-24 14:46:55 +00:00
ru
63673a77c6 Get rid of all (but one in write.c) static size buffers. 2004-01-27 21:52:52 +00:00
harti
173237aab3 Get rid of the old constants which did not include the trailing NUL
and use the new constants which do.
2003-11-12 13:04:44 +00:00
archie
f1f4c483fe When the 'msg' command is used from the command line, check for a
synchronous reply, and display it (if any) before exiting.

Requested by:	phk
2000-06-20 18:51:38 +00:00
archie
7ee0a0e187 Remove erroneous built-in help information for the 'msg' command. 2000-03-13 19:23:16 +00:00
archie
81fceb37a9 Add two new generic control messages, NGM_ASCII2BINARY and
NGM_BINARY2ASCII, which convert control messages to ASCII and back.
This allows control messages to be sent and received in ASCII form
using ngctl(8), which makes ngctl a lot more useful.

This also allows all the type-specific debugging code in libnetgraph
to go away -- instead, we just ask the node itself to do the ASCII
translation for us.

Currently, all generic control messages are supported, as well as
messages associated with the following node types: async, cisco,
ksocket, and ppp.

See /usr/share/examples/netgraph/ngctl for an example of using this.

Also give ngctl(8) the ability to print out incoming data and
control messages at any time.  Eventually nghook(8) may be subsumed.

Several other misc. bug fixes.

Reviewed by:	julian
1999-11-30 02:45:32 +00:00