Commit Graph

21 Commits

Author SHA1 Message Date
Andrzej Bialecki
3c0df64f68 Function declared void shouldn't return any value... 2002-03-27 20:10:53 +00:00
Luigi Rizzo
8de7d83bc0 Add a '-l' flag to show CPU load for the various states, similar to what
"top" does (thinking of it, i could have as well used the same format line!)

This only makes sense when "-w" option is also specified, because the
load is computed as the difference between subsequent samples.

I think this (and the "-d" feature which shows differences in the
network statistics counts) would also make sense in the standard
vmstat and netstat.
2001-12-14 01:10:50 +00:00
Luigi Rizzo
ce28e3e9fe Add a -d flag to show deltas as opposed to cumulative counters
in interface statistics.  Most useful when used with the -w flag e.g.

	ns -i -w 1 -d
2001-10-10 17:52:04 +00:00
Kris Kennaway
56bded8a29 s/adress/address/
Inspired by:    OpenBSD
MFC After:      1 week
2001-07-23 12:05:27 +00:00
Josef Karthauser
378918c059 Apply style guidelines (using gident to help). 2001-04-23 19:38:41 +00:00
Josef Karthauser
2e8d39560e Fix a syntax error. 2001-04-23 18:41:48 +00:00
Luigi Rizzo
4ff9c03cc5 Add dummy -n option, for compatibility with the standard netstat 2001-01-27 03:18:55 +00:00
Andrzej Bialecki
78d1fe9622 Fix so that the netmask is displayed correctly when it does not
consist of contiguous bits in little endian format. Before the fix
the netmask of 0xfffffff0 (0xf0ffffff in little endian format) was
displayed /24 instead of /28.

Also, add a missing include.

Submitted by:	Maxime Soule <Maxime.Soule@IPricot.com>
2001-01-10 23:06:31 +00:00
Luigi Rizzo
cc89db0c68 Fix bogus reporting of interface names, the field returned
in sdl_data is not 0-terminated
2000-03-21 12:09:23 +00:00
Peter Wemm
97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Doug White
843fcabd9e Major PicoBSD update by luigi with some debugging help from myself.
. Now builds on -STABLE (-CURRENT is broken due to bugs)
. etc directory contents centralized instead of in each
  type directory (can exclude & override as desired)
. Removed extraneous language files (lang files for rc really necessary?)
. dialog-based build tool with support for custom floppy builds
. MFS image loads as a mfs_root module instead of compiled into kernel

THIS IS BROKEN ON CURRENT.  I'll MFC to -STABLE immediately following.
luigi tells me I have an OK from jkh on the MFC.

Submitted by:	luigi
1999-08-22 21:45:24 +00:00
Luigi Rizzo
6bbeddc1ea Enable printing of bridging statistics. 1999-08-17 03:30:34 +00:00
Luigi Rizzo
a18ff8bea7 Fix a problem in printing interface names. 1999-08-12 05:40:07 +00:00
Andrzej Bialecki
e0b7bc571a Changed my e-mail address. 1998-11-01 20:19:43 +00:00
Andrzej Bialecki
86fc7f021c Fix for bad calculation of netmask bits. I'm amazed it worked thus far... 1998-10-09 12:42:20 +00:00
Andrzej Bialecki
09b41007d5 Once again turn off the BRIDGING - it's not yet ready to be the default...
Submitted by:	Randal S. Masutani <randal@comtest.com>
1998-09-29 11:27:34 +00:00
Andrzej Bialecki
f926748009 Turn on support for bridging statistics. 1998-09-23 15:22:14 +00:00
Andrzej Bialecki
1bd2addb75 * Add code to display statistics continuously, every some seconds.
* Fix a number of mem leaks.
* Update README.

Submitted by:	Luigi Rizzo <luigi@iet.unipi.it>
1998-09-07 06:41:14 +00:00
Andrzej Bialecki
f52f05009b Ugh... Small correction to the previous commit.
_Now_ it compiles on 2.2.7...
1998-09-02 13:11:23 +00:00
Andrzej Bialecki
2effb4d0f5 Added code to display interface table and link layer info, as well
as bridging statistics when using Luigi's bridging code.

Also added some ifdef's to (hopefully) get it to compile under 2.2.x

Submitted by:	Luigi Rizzo <luigi@iet.unipi.it>
1998-09-02 11:48:07 +00:00
Andrzej Bialecki
c9d8fd0a7b Initial import of PicoBSD v0.4 tree. 1998-08-27 17:38:45 +00:00