Commit Graph

34 Commits

Author SHA1 Message Date
itojun c868e666a2 print rip6stat. sync with kame 2001-10-18 09:26:16 +00:00
assar 7aedc79d5e add `-s' that prints port numbers symbolically but addresses numerically 2001-05-28 04:22:55 +00:00
cgd a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
itojun 35ff033435 more fix to "pfkey printed twice" problem. PR 11323 from ura. 2000-10-28 03:53:33 +00:00
itojun 544bd86193 don't print pfkey statistics twice. from uep 2000-10-05 03:22:59 +00:00
jhawk b70721109d Add kernel counters for arp events, displayable with netstat -s -f arp 2000-08-15 20:24:57 +00:00
itojun 5872028b21 more stats. from kame 2000-07-06 12:40:19 +00:00
simonb d88dfea295 Don't declare 'extern opt*' getopt variables. 2000-04-14 06:11:07 +00:00
itojun 9da359bbec revise IPsec, pfkey, IPv6 multicast and IPv6 statistics. (sync with kame) 2000-02-26 09:55:24 +00:00
itojun 033763d6c9 per-interface statistics.
bring in and enable KAME scopeid hack.
lots of cleanups.
(sync with latest KAME)
1999-12-13 15:22:55 +00:00
is cef52aa203 Add -L option. netstat -r -L behaves like 4.3BSD netstat -r, that is, it
does not show route table entries pointing to link level addresses (ARP
entries or IPv6 neighbour discovery entries).
1999-09-15 20:12:18 +00:00
itojun 414ee1ddfb make netstat IPv6-ready. 1999-07-01 18:40:35 +00:00
kristerw 010cbdf92e There is no -h flag. From OpenBSD. 1999-03-14 18:30:04 +00:00
sommerfe b36297112e fix PR7057: division by zero if no mbufs allocated
fix PR7059 (partial): mbuf cluster counts were based on counters which
are no longer maintained.
(full fix will involve renaming the now-unused fields in mclstat in mbuf.h)
1999-02-27 17:37:24 +00:00
explorer 6817ae8cab fix dumping of pcbs 1999-02-08 11:34:36 +00:00
kml 783ac03fcf Added a verbose flag for route display that will show
the various route metrics.
1999-01-15 19:06:25 +00:00
mrg a112081f50 #ifndef SMALL changes. saves 30k on the sparc 1999-01-11 12:31:53 +00:00
lukem f09ed79388 use AF_LOCAL instead of AF_UNIX. support -f local as synonym for -f unix 1998-07-18 05:04:10 +00:00
mrg efa1d2c3a5 - KNF
- use err(3)
- sprintf/strcpy -> snprintf/strncpy
- change route.c:domask() to take a size_t of the buffer passed.
1998-07-12 03:20:13 +00:00
mrg 80efe80bc9 - change setgid kmem programs (that lend themselves to this) so setegid(getgid())
and the top, and then set the effective gid back to kmem around the call to
  kvm_openfiles().  this reduces the time group kmem is available.
- for those above that also allow this, setgid(getgid()) after the call to
  kvm_openfiles() to fully revoke priviledges.
- some KNF
- use err(3) over fprintf(3) in some places
1998-07-06 07:50:18 +00:00
thorpej 66012e9fca Add an option to dump the contents of a PCB at the specified address, and
implement this for TCP.
1998-06-03 02:41:10 +00:00
kml 9433195784 Add support for a '-b' option to provide byte counts in and out,
instead of just packet counts.  On the byte screens, errors and
collisions are not shown, since they are more packet count related.
1998-03-19 02:42:57 +00:00
lukem e55eeec2c5 fix up .Nm usage, getopt returns -1 not EOF 1997-10-19 05:49:56 +00:00
christos c3a7122e73 - netatalk additions
- printf format fixes
- minor prototype cleanups
1997-04-03 04:46:44 +00:00
jonathan f0f7e53290 Add compiled-in MCLBYTES and MSIZE to conf/param.c, as 'mclbytes" and "msize".
Add code to netstat to use libkvm to for kernel variables "mclbytes"
and "msize', and if found, use those for netstat -m rather than
compiled-in defaults.
1997-02-28 00:14:19 +00:00
thorpej 22afdc2c33 Update for the changes to struct ifnet. While I'm here, fix a couple
of long-standing bugs:

	- Actually deal with the fact that the kernel ifnet list is
	  a TAILQ; it just happened to work before.

	- Use kvm_openfiles() instead of kvm_open().  The code passed
	  arguments to kvm_open() as if it were kvm_openfiles(), but
	  apparently went unnoticed since the prototypes are the same.
	  Amusing bit: there were XXX's in the code which seemed to
	  apologize for a verbose libkvm, when it happened to be a
	  bug in netstat!
1996-05-07 02:55:00 +00:00
thorpej 67f6822225 New-style RCS ids. 1995-10-03 21:42:34 +00:00
mycroft 81c2958581 Update to match kernel changes. 1995-06-12 03:03:07 +00:00
mycroft d3877f2073 Clean up import. 1994-05-13 08:08:09 +00:00
cgd ea7e0c1cca kill lots of off_t's. 1994-04-01 09:18:06 +00:00
brezak 4b860495c5 Incorporate changes for IP mcast and IGMP from cmaeda@cs.washington.edu. 1994-01-11 19:42:48 +00:00
cgd 14fc658d66 fix from James Jegers <jimj@miller.cs.uwm.edu>. Netstat -w didn't work
(and would seg fault, too).  solution: tell getopt to expect an argument,
and set the appropriate flags when -w is given.
1993-12-22 04:00:31 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00