summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
Commit message (Collapse)AuthorAgeFilesLines
* Print out the two new fields in the ICMP stats. While we're at it, alsowollman1997-08-251-5/+23
| | | | | | convert icmp_stats() to use sysctl(3) to retrieve the information rather than kvm. This makes it easy to also print whether ICMP address mask responses are enabled, so do so.
* While I'm in here, fix address printing for `netstat -f unix' which has beenwollman1997-08-251-12/+8
| | | | broken for a couple of weeks now...
* Bandaid to make this compile.. These old mbuf types should probably bepeter1997-08-171-1/+13
| | | | ripped out.
* Remove prog, unused variables.charnier1997-07-297-30/+23
| | | | Cosmetic in usage string.
* Remove -I/sysguido1997-07-131-1/+1
|
* Remove some quite bogus code that tried to find subnet names but insteadphk1997-05-251-29/+5
| | | | spammed named with bogus queries.
* Add the new ipx statistics variables.jhay1997-05-103-26/+26
| | | | | | | Remove the dns lookup code in the ipx functions. That is bogus and slows things like netstat -r(f ipx) down, without gaining anything. Remove the ipx error protocol statistics.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Use the new sysctl(3) interface to mbuf statistics rather thanwollman1997-02-241-7/+19
| | | | groveling about in kmem.
* Revert $FreeBSD$ to $Id$peter1997-02-225-5/+5
|
* When the mbuf code was changed to use a private allocator instead ofwollman1997-02-121-3/+4
| | | | | | | the kernel malloc, netstat was never updated to reflect the fact that there are once again allocated-but-free mbufs, just as there are clusters, and so the information presented about how much memory was allocated to the network was bogus. Fixed.
* Print out the new uninteresting-multicast-packets statistic.wollman1997-01-211-1/+4
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-145-5/+5
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Print out the interface's multicast addresses using the newwollman1997-01-131-51/+43
| | | | structures.
* TCP statistics are unsigned counters.pst1997-01-071-46/+46
| | | | | | | | | Tor Egge reports counter wrap and requests and update to quad_t sized counters, which is also a good thing to do, but I'm unhappy about adding two more instructions into the code path every time we doink a counter. Maybe with or after the Lite2 merge... Submitted by: Tor Egge <Tor.Egge@idt.ntnu.no>
* Update to match changes in <net/if.h> and <netinet/ip_mroute.h>.wollman1997-01-033-5/+7
|
* Learn to follow the new interface address lists.wollman1996-12-131-2/+2
|
* Understand queue-ized ifnet structures.wollman1996-12-111-5/+14
|
* Fix up programs which expect <net/if.h> to include <sys/time.h> to insteadwollman1996-12-105-7/+6
| | | | | | do it themselves. (Some of these programs actually depended on this beyond compiling the definition of struct ifinfo!) Also fix up some other #include messes while we're at it.
* Display multicast addresses if the "a" flag is used in combinationfenner1996-12-021-0/+60
| | | | | | with "-i". This was already in the man page but was not implemented. Obtained from: Multicast release 3.5
* Eliminate unnecessary include of <sys/mbuf.h>. PCBs aren't stored in mbufswollman1996-10-284-5/+13
| | | | any more.
* Remove reference to oobsolete RTF_MASK flag (soon to be removed).wollman1996-10-091-2/+1
|
* make appletalk networks not show an un-needed hostjulian1996-09-051-2/+2
| | | | part in displaying the routes.
* Fixed DPADD.bde1996-09-051-1/+1
|
* fix printing of netranges in the i and r displays for netatalkjulian1996-08-312-6/+41
|
* Try to make netstat more smart about port numbers.phk1996-08-231-7/+21
| | | | Feedback most welcome.
* Submitted by: archie@whistle.comjulian1996-07-231-2/+2
| | | | slight cleanups on yesterday's patches
* Submitted by: archie@whistle.comjulian1996-07-234-44/+51
| | | | appletalk cleanups
* Adding changes to ipfw and the kernel to support ip packet diversion..julian1996-07-101-0/+6
| | | | | | This stuff should not be too destructive if the IPDIVERT is not compiled in.. be aware that this changes the size of the ip_fw struct so ipfw needs to be recompiled to use it.. more changes coming to clean this up.
* appletalk cleanupsjulian1996-07-092-10/+15
| | | | | | | | | | | e.g. Active ATALK connections Proto Recv-Q Send-Q Local Address Foreign Address (state) ddp 0 0 [69.230]130 [*.*]* ddp 0 0 [69.230]128 [*.*]* ddp 0 0 [69.230]1 [*.*]* etc..
* make netstat distinguish broadcast and blackhole routes where they appear.peter1996-06-152-1/+4
| | | | | | | (RTF_BLACKHOLE was already documented as being shown, but the code ignored it) Sumbitted by: Greg Lehey <grog@lemis.de>
* better appletalk support.julian1996-06-103-41/+98
|
* I guess the docs should mention the new protocol at least once.julian1996-06-081-0/+3
|
* patches to allow netstat to monitor appletalk sockets openned using thejulian1996-06-085-4/+223
| | | | | | /sys/netatalk protocol stack more cleanups and fixes are likely
* Print PCB hash miss statistic.wollman1996-06-051-0/+1
|
* Code cleanup: remove unused variables, use correct *printf formatalex1996-06-028-147/+144
| | | | | | specifiers (some unsigned values were printed as signed, some longs were printed as ints), and place parentheses around assignments in if statements.
* Document that ipx is a valid protocol for the -f option.jhay1996-04-131-5/+8
| | | | Comment out ns and iso. They are not supported anymore.
* Move #include of queue.h before #include of socketvar.h in preparation fordg1996-03-114-1/+4
| | | | struct socket changes.
* Make the -w option actually useful to people. Instead of it creating adg1996-02-292-97/+79
| | | | | | | | | messy 130 column collage, output the system totals -or- info for a specific interface if -I is given. Also wait for <interval> before outputting the first sample so that it represents meaningful data (as opposed to the total since the system was booted - most busy systems wrap around many times during their operation, so these numbers are only misleading).
* Add a counter for the number of times the listen queue was overflowed toguido1996-02-261-0/+1
| | | | | | the tcpstat structure. (netstat -s) Reviewed by: wollman Obtained from: Steves, TCP/IP Ill. vol.3, page 189
* For some reason, the changes to make route.c compile didn't make it over.wollman1996-02-161-1/+9
| | | | | | Fixed. Pointed-out-by: joerg
* XNS sort-of-support is no more.wollman1996-02-133-4/+20
|
* Remove support for OSI networking in user-land (#ifdef OSI aor CCITT)wollman1996-02-063-4/+18
| | | | | in preparation for its removal from the kernel source tree. NB: because a function was deleted, libc is now at version 3.0 (was 2.2 previously).
* Fix a variety of minor typos and cross references in a bunch ofmpp1996-01-201-3/+3
| | | | | | | | man pages. Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp> Giles Lean <giles@nemeton.com.au> <soda@sra.co.jp>
* tidy up the domain name trimming code, and move it to a single placepeter1996-01-154-30/+40
| | | | | rather than having the same bit of code duplicated in three places, each with their own static copy of the host's local name.
* A couple of changes of mine that I've been using for a while:peter1996-01-142-3/+11
| | | | | | | | | | | | | route.c: look up the netname as-is first before the shifted name. this makes a big speed difference, as the lookups are generally local DNS. The shifted names can be very wrong (there is still guessing and fudging involved) and usually go remote, taking a long time to fail. If you have the RFC reccomended netnames in your reverse lookups, this is even faster still. main.c: dont do a sethostent(1) - this is causing the resolver to use a VC (tcp) connection to the resolver, which has more overheads and is slower than the default UDP case. This once made sense when everything was based on text host tables.
* Merge in Lite-2 changes.peter1996-01-144-31/+106
|
* Change .8s port name restriction to .15s, modern tcp portache1995-12-231-1/+1
| | | | | | have longer names, check /etc/services. kerberos_master triggers this bug: it is undistiguishable from simple kerberos for .8s
* Submitted by: John Hayjulian1995-12-051-6/+7
| | | | more IPX related fixes
* Increase width of Network column from 11 to 13 for the AF_INET case.se1995-11-221-2/+2
| | | | This seems to have been missed, when the recent IPX changes went in ...
OpenPOWER on IntegriCloud