freebsd-dev/release/picobsd/tinyware/ns
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
..
Makefile Enable printing of bridging statistics. 1999-08-17 03:30:34 +00:00
ns.c Major PicoBSD update by luigi with some debugging help from myself. 1999-08-22 21:45:24 +00:00
README Changed my e-mail address. 1998-11-01 20:19:43 +00:00

Warsaw, 1998.07.20

			Small replacement for netstat
			-----------------------------

This program implements some basic functionality subset of normal netstat -
it can display the routing table and protocol statistics.

Large part of the code dealing with retrieving the routing table via sysctl(3)
was taken from code examples written by Richard Stevens to accompany his
excellent book.

Usage
-----

	ns [-rsi] [-p proto] [-w wait]

where

	-r	print routing table (default)
	-s	print protocol statistics
	-i	print interface statistics
	-p proto	display only statistics related to this
			protocol, where 'proto' is one of:
			- ip
			- tcp
			- udp
			- icmp
			- bdg - bridging stats, if 'ns' was compiled with
			   bridging support (flag BRIDGING in Makefile)
	-w wait	continuous display, repeat every 'wait' seconds.

Bugs
----

* 'ns' doesn't resolve IP adresses to names
* well, real netstat provides _much_ more information... but this one needs
  to be small, right? :-)

Andrzej Bialecki
<abial@freebsd.org>

$Id: README,v 1.2 1998/09/07 06:41:14 abial Exp $