freebsd-dev/release/picobsd/tinyware/ns
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
..
Makefile Added code to display interface table and link layer info, as well 1998-09-02 11:48:07 +00:00
ns.c Ugh... Small correction to the previous commit. 1998-09-02 13:11:23 +00:00
README Initial import of PicoBSD v0.4 tree. 1998-08-27 17:38:45 +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 [-r] [-s [-p ip|tcp|udp|icmp]]

where

	-r	print routing table (default)
	-s	print protocol statistics
		Options:
		-p proto	display only statistics related to this
				protocol, where 'proto' is one of:
				- ip
				- tcp
				- udp
				- icmp

Bugs
----

* The link layer information is still missing.
* '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@nask.pl>

$Id: README,v 1.1 1998/08/19 17:21:50 abial Exp $