diff options
author | Archie Cobbs <archie@FreeBSD.org> | 1999-11-30 02:45:32 +0000 |
---|---|---|
committer | Archie Cobbs <archie@FreeBSD.org> | 1999-11-30 02:45:32 +0000 |
commit | f8307e1233657707bc582110f07373c96d91943b (patch) | |
tree | d0bdc8cb4f3c7f0a7a7969ee3242511ac19780bb /usr.sbin/ngctl/list.c | |
parent | 44856387160435985b3d0972db19a60e74ca56cb (diff) | |
download | src-f8307e1233657707bc582110f07373c96d91943b.tar.gz src-f8307e1233657707bc582110f07373c96d91943b.zip |
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
Notes
Notes:
svn path=/head/; revision=53913
Diffstat (limited to 'usr.sbin/ngctl/list.c')
-rw-r--r-- | usr.sbin/ngctl/list.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ngctl/list.c b/usr.sbin/ngctl/list.c index d7630613f2ad..aeb74fb057ce 100644 --- a/usr.sbin/ngctl/list.c +++ b/usr.sbin/ngctl/list.c @@ -47,7 +47,8 @@ const struct ngcmd list_cmd = { "Show information about all nodes", "The list command shows information every node that currently" " exists in the netgraph system. The optional -n argument limits" - " this list to only those nodes with a global name assignment." + " this list to only those nodes with a global name assignment.", + { "ls" } }; static int |