]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r366430: ngctl: add -c (compact output) for the dot command
authorKyle Evans <kevans@FreeBSD.org>
Sat, 14 Nov 2020 02:00:50 +0000 (02:00 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Sat, 14 Nov 2020 02:00:50 +0000 (02:00 +0000)
commit8da406b6fe5400197fe2506b5f32ea8839044e4c
treedb329efc3671a27b9133f8272b631ced2c70f5b3
parent3c11a50c2d0180974eff4f3b2fe983e2940e0976
MFC r366430: 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.
usr.sbin/ngctl/dot.c