Commit Graph

7 Commits

Author SHA1 Message Date
kevans
64a57084a8 ngctl: add -c (compact output) for the dot command
The output of "ngctl dot" is suitable for small netgraph networks. Even
moderate complex netgraph setups (about a dozen nodes) are hard to
understand from the .dot output, because each node and each hook are shown
as a full blown structure.

This patch allows to generate much more compact output and graphs by
omitting the extra structures for the individual hooks. Instead the names of
the hooks are labels to the edges.

Submitted by:	Lutz Donnerhacke <lutz_donnerhacke.de>
Reviewed by:	markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D21965
2020-10-04 17:07:13 +00:00
cem
d588782054 ngctl dot: Drop invalid trailing semi-colon
PR:		203257
Submitted by:	Daniel O'Connor
Sponsored by:	EMC / Isilon Storage Division
2015-09-22 01:31:01 +00:00
kevlo
5a57d3e796 getopt(3) returns -1, not EOF. 2007-02-06 08:48:28 +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
ru
0455fe1058 Make this WARNS=3 clean. 2004-01-26 10:27:18 +00:00
green
ab0602c74b 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.
2004-01-09 03:19:40 +00:00