aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ngctl/dot.c
Commit message (Collapse)AuthorAgeFilesLines
* ngctl: Modernize code somewhatDag-Erling Smørgrav2026-02-131-4/+3
| | | | | | | | | | | | | | | | * Replace fgets(3) with getline(3) * Replace select(2) with poll(2) * Avoid needlessly copying text around * Correct use of getopt(3) * Pick some style and whitespace nits MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D55257
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* ngctl: add -c (compact output) for the dot commandKyle Evans2020-10-041-24/+46
| | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=366430
* ngctl dot: Drop invalid trailing semi-colonConrad Meyer2015-09-221-1/+1
| | | | | | | | | PR: 203257 Submitted by: Daniel O'Connor Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288082
* getopt(3) returns -1, not EOF.Kevin Lo2007-02-061-1/+1
| | | | Notes: svn path=/head/; revision=166529
* Unnest includes before forthcoming editing.Gleb Smirnoff2006-05-241-0/+5
| | | | Notes: svn path=/head/; revision=158882
* Get rid of all (but one in write.c) static size buffers.Ruslan Ermilov2004-01-271-11/+17
| | | | Notes: svn path=/head/; revision=125115
* Make this WARNS=3 clean.Ruslan Ermilov2004-01-261-2/+3
| | | | Notes: svn path=/head/; revision=125011
* Add a GraphViz-exporting ngctl(8) "dot" command. You can now createBrian Feldman2004-01-091-0/+188
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. Notes: svn path=/head/; revision=124271