aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ngctl/list.c
Commit message (Collapse)AuthorAgeFilesLines
* ngctl: Modernize code somewhatDag-Erling Smørgrav2026-02-131-8/+6
| | | | | | | | | | | | | | | | * 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/
* 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
* getopt(3) returns -1, not EOF.Kevin Lo2007-02-061-1/+1
| | | | Notes: svn path=/head/; revision=166529
* Style: space after "return".Gleb Smirnoff2006-06-281-4/+4
| | | | Notes: svn path=/head/; revision=160002
* Unnest includes before forthcoming editing.Gleb Smirnoff2006-05-241-0/+6
| | | | 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
* Get rid of all (but one in write.c) static size buffers.Ruslan Ermilov2004-01-271-4/+5
| | | | Notes: svn path=/head/; revision=125115
* Make this WARNS=3 clean.Ruslan Ermilov2004-01-261-3/+4
| | | | Notes: svn path=/head/; revision=125011
* Get rid of the old constants which did not include the trailing NULHartmut Brandt2003-11-121-1/+1
| | | | | | | and use the new constants which do. Notes: svn path=/head/; revision=122556
* Add two new generic control messages, NGM_ASCII2BINARY andArchie Cobbs1999-11-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | NGM_BINARY2ASCII, which convert control messages to ASCII and back. This allows control messages to be sent and received in ASCII form using ngctl(8), which makes ngctl a lot more useful. This also allows all the type-specific debugging code in libnetgraph to go away -- instead, we just ask the node itself to do the ASCII translation for us. Currently, all generic control messages are supported, as well as messages associated with the following node types: async, cisco, ksocket, and ppp. See /usr/share/examples/netgraph/ngctl for an example of using this. Also give ngctl(8) the ability to print out incoming data and control messages at any time. Eventually nghook(8) may be subsumed. Several other misc. bug fixes. Reviewed by: julian Notes: svn path=/head/; revision=53913
* Whistle's Netgraph link-layer (sometimes more) networking infrastructure.Julian Elischer1999-10-211-0/+113
Been in production for 3 years now. Gives Instant Frame relay to if_sr and if_ar drivers, and PPPOE support soon. See: ftp://ftp.whistle.com/pub/archie/netgraph/index.html for on-line manual pages. Reviewed by: Doug Rabson (dfr@freebsd.org) Obtained from: Whistle CVS tree Notes: svn path=/head/; revision=52419