summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
Commit message (Collapse)AuthorAgeFilesLines
* Quick hack to allow netstat to compile once more: ifdef out MT_SOOPTSgpalmer1998-08-231-1/+3
|
* Change casts from int to u_long and formats from %x to %lx.jb1998-08-181-6/+7
| | | | | | | | Didn't fix the alignment of the output fields on alpha where addresses require 16 characters to print. Added a dummy field to the pt_u union to help the alpha compiler align the u_sa field in a suiable way.
* Change a variable from int to size_t.jb1998-08-181-3/+3
|
* Make netstat work again.phk1998-08-082-10/+20
|
* Don't open /dev/mem until we need it, most cases we don't.phk1998-08-051-26/+25
|
* Fixed printf format errors.bde1998-07-066-97/+112
|
* Fixed type mismatches and style bugs in rev.1.30.bde1998-07-061-8/+6
|
* o Use snprintf over sprintf.imp1998-06-092-13/+17
| | | | | | | o Use strncpy correctly. o Use enough buffer for line. Inspired by or Obtained from: Similar changes in OpenBSD
* Make "netstat -s" display stats on fast-forwarded packets.pb1998-05-191-2/+5
| | | | Obtained from: NetBSD code
* Fix rev. 1.7: get offsetof from the correct header file.wollman1998-05-161-2/+2
|
* Fix broken sun_len usage: it is not sun_path length but biggerache1998-05-161-2/+5
|
* mbuf, inet, and unix modules no longer read kvm.wollman1998-05-155-199/+265
|
* Remove (now) invalid .Xr trsp 8steve1998-05-031-1/+0
| | | | | PR: 6494 Submitted by: Don Morrison <dmorrisn@u.washington.edu>
* Output mbuf clusters as current/peak/max. Requires new kern.ipc.nmbclustersdg1998-04-241-5/+11
| | | | sysctl variable (previously committed).
* netstat truncates info in sockaddr* between kgetsa and p_sockaddrphk1998-04-221-12/+14
| | | | | | | | by dereferencing pointer to smaller structure PR: 5256 Reviewed by: phk Submitted by: Gregory D. Moncreaff <moncrg@bt340707.res.ray.com>
* The current version of netstat does not print the interfacephk1998-04-191-53/+72
| | | | | | | | name for AF_LINK routing entries. This makes debugging network problems more difficult. PR: 4182 Reviewed by: phk Submitted by: Craig Leres <leres@ee.lbl.gov>
* Add (unsigned) cast to prevent overflow in %ache1997-11-101-2/+2
| | | | Submitted by: "Alex G. Bulushev" <bag@demos.su>
* Typo fix.steve1997-10-271-2/+2
| | | | | PR: docs/4579 Submitted by: Stephen J. Roznowski <sjr@home.net>
* 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
|
OpenPOWER on IntegriCloud