1Warsaw, 1998.07.20 2 3 Small replacement for netstat 4 ----------------------------- 5 6This program implements some basic functionality subset of normal netstat - 7it can display the routing table and protocol statistics. 8 9Large part of the code dealing with retrieving the routing table via sysctl(3) 10was taken from code examples written by Richard Stevens to accompany his 11excellent book. 12 13Usage 14----- 15 16 ns [-rsi] [-p proto] [-w wait] 17 18where 19 20 -r print routing table (default) 21 -s print protocol statistics 22 -i print interface statistics 23 -p proto display only statistics related to this 24 protocol, where 'proto' is one of: 25 - ip 26 - tcp 27 - udp 28 - icmp 29 - bdg - bridging stats, if 'ns' was compiled with 30 bridging support (flag BRIDGING in Makefile) 31 -w wait continuous display, repeat every 'wait' seconds. 32 33Bugs 34---- 35 36* 'ns' doesn't resolve IP addresses to names 37* well, real netstat provides _much_ more information... but this one needs 38 to be small, right? :-) 39 40Andrzej Bialecki 41<abial@freebsd.org> 42 43$FreeBSD: releng/10.3/release/picobsd/tinyware/ns/README 80203 2001-07-23 12:05:27Z kris $ 44