summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ngctl/main.c
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2004-01-09 03:19:40 +0000
committergreen <green@FreeBSD.org>2004-01-09 03:19:40 +0000
commitab0602c74b5aee253176583786f487da55d66907 (patch)
tree4c4e17e615d6080bddf6dd44aa18111fc9acabb9 /usr.sbin/ngctl/main.c
parent73049104d9f3ffff1a96da1b536274a7e04b6297 (diff)
downloadFreeBSD-src-ab0602c74b5aee253176583786f487da55d66907.zip
FreeBSD-src-ab0602c74b5aee253176583786f487da55d66907.tar.gz
Add a GraphViz-exporting ngctl(8) "dot" command. You can now create
very useful .dot files of your netgraph(4) to quickly visualize the nodes, hooks and edges. An example of this can be found here: http://people.freebsd.org/~green/sample-netgraph-dot.ps If anyone would like to refine the output further, please do so.
Diffstat (limited to 'usr.sbin/ngctl/main.c')
-rw-r--r--usr.sbin/ngctl/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/ngctl/main.c b/usr.sbin/ngctl/main.c
index 0867193..34373e8 100644
--- a/usr.sbin/ngctl/main.c
+++ b/usr.sbin/ngctl/main.c
@@ -62,6 +62,7 @@ static const struct ngcmd *const cmds[] = {
&config_cmd,
&connect_cmd,
&debug_cmd,
+ &dot_cmd,
&help_cmd,
&list_cmd,
&mkpeer_cmd,
OpenPOWER on IntegriCloud