138589SabialWarsaw, 1998.07.20 238589Sabial 338589Sabial Small replacement for netstat 438589Sabial ----------------------------- 538589Sabial 638589SabialThis program implements some basic functionality subset of normal netstat - 738589Sabialit can display the routing table and protocol statistics. 838589Sabial 938589SabialLarge part of the code dealing with retrieving the routing table via sysctl(3) 1038589Sabialwas taken from code examples written by Richard Stevens to accompany his 1138589Sabialexcellent book. 1238589Sabial 1338589SabialUsage 1438589Sabial----- 1538589Sabial 1638900Sabial ns [-rsi] [-p proto] [-w wait] 1738589Sabial 1838589Sabialwhere 1938589Sabial 2038589Sabial -r print routing table (default) 2138589Sabial -s print protocol statistics 2238900Sabial -i print interface statistics 2338900Sabial -p proto display only statistics related to this 2438900Sabial protocol, where 'proto' is one of: 2538900Sabial - ip 2638900Sabial - tcp 2738900Sabial - udp 2838900Sabial - icmp 2938900Sabial - bdg - bridging stats, if 'ns' was compiled with 3038900Sabial bridging support (flag BRIDGING in Makefile) 3138900Sabial -w wait continuous display, repeat every 'wait' seconds. 3238589Sabial 3338589SabialBugs 3438589Sabial---- 3538589Sabial 3680203Skris* 'ns' doesn't resolve IP addresses to names 3738589Sabial* well, real netstat provides _much_ more information... but this one needs 3838589Sabial to be small, right? :-) 3938589Sabial 4038589SabialAndrzej Bialecki 4140813Sabial<abial@freebsd.org> 4238589Sabial 4350479Speter$FreeBSD$ 44