aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ngctl
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Update Makefile.depend filesSimon J. Gerraty2019-12-111-2/+0
| | | | | | | | | | | | | Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
* Add Makefile.depend.optionsSimon J. Gerraty2019-12-111-0/+8
| | | | | | | | | | | | | | | | | | | | Leaf directories that have dependencies impacted by options need a Makefile.depend.options file to avoid churn in Makefile.depend DIRDEPS for cases such as OPENSSL, TCP_WRAPPERS etc can be set in local.dirdeps-options.mk which can add to those set in Makefile.depend.options See share/mk/dirdeps-options.mk Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22469 Notes: svn path=/head/; revision=355616
* Replace complicated expression to disable libedit when no libthr is being builtWarner Losh2019-07-151-9/+1
| | | | | | | with a simpler one. Notes: svn path=/head/; revision=349997
* Add blank line after each item in "ngctl ls -l"Devin Teske2018-10-261-0/+2
| | | | | | | | | | | The output of "ngctl ls -l" is hard to read. To make it easier, add a blank line after each listed item much how traditional "ls -l" does when listing the contents of multiple directories. Sponsored by: Smule, Inc. Notes: svn path=/head/; revision=339783
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* 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
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-5/+5
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-193-4/+4
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge from headSimon J. Gerraty2014-05-081-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Plug mutex leak.Gleb Smirnoff2015-01-161-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 week Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=277258
* | | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-4/+2
| |_|/ |/| | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | | Replace all uses of libncurses and libtermcap with their wide characterBrooks Davis2014-07-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=268804
* | | use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-201-1/+1
| |/ |/| | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* | Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
|/ | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* Add __unused. Ansi prototypes.Philippe Charnier2010-12-202-6/+10
| | | | Notes: svn path=/head/; revision=216588
* Add volatile to sig_atomic_t where it was missing.Dag-Erling Smørgrav2009-06-141-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=194217
* Modify the DoParseCommand() to work on (const char *) instead of justMike Makonnen2008-06-281-4/+4
| | | | | | | | | | (char *). This is a slightly simplified version of the patch in the PR. It fixes compilitation issues with -O3. PR: misc/124385 Notes: svn path=/head/; revision=180076
* Remove options MK_LIBKSE and DEFAULT_THREAD_LIB now that we no longerRuslan Ermilov2008-03-291-1/+1
| | | | | | | build libkse. This should fix WITHOUT_LIBTHR builds as a side effect. Notes: svn path=/head/; revision=177714
* Tweak the handling of "WITHOUT_LIBPTHREAD". Also remove the accidentalDavid E. O'Brien2007-10-091-1/+1
| | | | | | | | | | treatment of 'LIBKSE' as an "old style" knob. Submitted by: ru Approved by: re(kensmith) Notes: svn path=/head/; revision=172500
* Repo copy libpthreads to libkse.David E. O'Brien2007-10-091-1/+1
| | | | | | | | | This introduces the WITHOUT_LIBKSE nob, and changes WITHOUT_LIBPTHREADS to mean with neither threading libs. Approved by: re(kensmith) Notes: svn path=/head/; revision=172491
* Always install libpthread.* symlinks if at least one ofRuslan Ermilov2007-10-011-2/+1
| | | | | | | | | | | | | | | the threading libraries is built. This simplifies the logic in makefiles that need to check if the pthreads support is present. It also fixes a bug where we would build a threading library that we shouldn't have built: for example, building with WITHOUT_LIBTHR and the default value of DEFAULT_THREADING_LIB (libthr) would mistakenly build the libthr library, but not install it. Approved by: re (kensmith) Notes: svn path=/head/; revision=172403
* The last change is not needed for HEAD.Gleb Smirnoff2007-03-301-1/+1
| | | | | | | Explained by: ru Notes: svn path=/head/; revision=168041
* Do not build the libedit support if NO_LIBPTHREAD is defined.Gleb Smirnoff2007-03-281-1/+1
| | | | | | | | PR: bin/104478 Submitted by: Mike Durian <durian shadetreesoftware.com> Notes: svn path=/head/; revision=167991
* getopt(3) returns -1, not EOF.Kevin Lo2007-02-064-4/+4
| | | | Notes: svn path=/head/; revision=166529
* Push the detection of threading libs support down to ngctl/MakefileRuslan Ermilov2006-11-271-0/+7
| | | | | | | | | | as the latter can be built without threading (with the loss of line editing functionality). Pointed by: glebius Notes: svn path=/head/; revision=164676
* Fix "make checkdpadd".Ruslan Ermilov2006-11-261-1/+1
| | | | Notes: svn path=/head/; revision=164618
* Silence GCC4 signed/unsigned pointer mismatch warning.Alexander Kabaev2006-09-211-1/+1
| | | | Notes: svn path=/head/; revision=162491
* - Pass pointer to fd_set in ReadSockets.Gleb Smirnoff2006-08-081-8/+9
| | | | | | | | | - style(9) nits. Submitted by: ru Notes: svn path=/head/; revision=161071
* Add line edit and history support to ngctl(8) via editline(3).Gleb Smirnoff2006-08-072-22/+168
| | | | | | | | | | | | | | | | | | | | | Details: - The main thread runs editline(3) functions, that can block. - A separate thread is launched to monitor netgraph sockets. - The access to the descriptors is protected by a mutex. At runtime the monitoring thread owns the mutex. When the main thread reads a command from el_gets() it asks the monitoring thread to release a mutex and sleep until the main thread processes the command. This makes ngctl(8) depend on libedit, and libpthread. Thus, the new functionality isn't compiled in if release is being built with -DRELEASE_CRUNCH. PR: bin/87352 Reviewed by: ru, Nuno Antunes <nuno.antunes gmail.com> Notes: svn path=/head/; revision=161044
* Don't use empty braces ("{}") to initialise arrays. This is a syntaxStefan Farfeleder2006-07-176-6/+6
| | | | | | | error in ISO C (both 90 and 99). Notes: svn path=/head/; revision=160423
* Style: space after "return".Gleb Smirnoff2006-06-2814-65/+65
| | | | Notes: svn path=/head/; revision=160002
* Unnest includes before forthcoming editing.Gleb Smirnoff2006-05-2416-20/+95
| | | | Notes: svn path=/head/; revision=158882
* - Reduce the number of netgraph messages when listingRuslan Ermilov2005-02-091-11/+35
| | | | | | | | | | | | | nodes from (N + 1) to 1, where N is the number of nodes in the system. - Implement "ls -l" which runs the "show" command for each node. In collaboration with: glebius Notes: svn path=/head/; revision=141575
* Backout rev. 1.17 per ru@ request: there are net.graph.recvspace andMaxim Konovalov2005-02-041-4/+2
| | | | | | | net.graph.maxdgram sysctls. Notes: svn path=/head/; revision=141303
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Increase a socket receive buffer size. This helps 'ngctl list'Maxim Konovalov2004-11-251-2/+4
| | | | | | | | | | | | to deal with a big number of nodes. Submitted by: archie Approved by: archie Reported and tested: Konstantin Timashkov MFC after: 1 month Notes: svn path=/head/; revision=138076
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+1
| | | | Notes: svn path=/head/; revision=131500
* Get rid of all (but one in write.c) static size buffers.Ruslan Ermilov2004-01-276-37/+56
| | | | Notes: svn path=/head/; revision=125115
* Make this WARNS=3 clean.Ruslan Ermilov2004-01-2613-19/+28
| | | | Notes: svn path=/head/; revision=125011
* Add a GraphViz-exporting ngctl(8) "dot" command. You can now createBrian Feldman2004-01-095-11/+203
| | | | | | | | | | 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
* Use fprintf() instead of errx() when displaying usage string. The program namePhilippe Charnier2004-01-041-2/+3
| | | | | | | will not be written twice. Notes: svn path=/head/; revision=124130
* Get rid of the old constants which did not include the trailing NULHartmut Brandt2003-11-123-4/+4
| | | | | | | and use the new constants which do. Notes: svn path=/head/; revision=122556