Ruslan Ermilov
c73d99b567
Add netstat(1) knob to reset net.inet.{ip|icmp|tcp|udp|igmp}.stats.
...
For example, ``netstat -s -p ip -z'' will show and reset IP stats.
PR: bin/17338
2001-06-23 17:17:59 +00:00
Assar Westerlund
f964d60dd3
remove warnings
...
remove superfluous declarations
make things more consistent
2001-06-15 23:55:45 +00:00
Assar Westerlund
5e0517186d
remove K&R support
2001-06-15 23:35:13 +00:00
Assar Westerlund
e9370a2e59
revert removal of warning and K&R support
...
Requested by: bde
2001-06-15 23:07:59 +00:00
Assar Westerlund
af7a0a2d2b
remove most of the warnings
2001-06-15 01:53:05 +00:00
Assar Westerlund
65ea0024ba
add the option -S for printing port numbers symbolically but addresses
...
numerically. clean up the CFLAGS in Makefile.
2001-06-15 00:25:44 +00:00
Hajimu UMEMOTO
3384154590
Sync with recent KAME.
...
This work was based on kame-20010528-freebsd43-snap.tgz and some
critical problem after the snap was out were fixed.
There are many many changes since last KAME merge.
TODO:
- The definitions of SADB_* in sys/net/pfkeyv2.h are still different
from RFC2407/IANA assignment because of binary compatibility
issue. It should be fixed under 5-CURRENT.
- ip6po_m member of struct ip6_pktopts is no longer used. But, it
is still there because of binary compatibility issue. It should
be removed under 5-CURRENT.
Reviewed by: itojun
Obtained from: KAME
MFC after: 3 weeks
2001-06-11 12:39:29 +00:00
Dag-Erling Smørgrav
080b7f4967
Add a -W flag that tells netstat not to truncate addresses even if they are
...
too long for the column they're printed in.
Move variable definitions out of netstat.h and into main.c.
Clean up some warnings.
2001-03-15 20:46:04 +00:00
Brian Somers
d121b55666
MAXHOSTNAMELEN includes space for a NUL.
...
Don't roll our own version of trimdomain(), use the one in libutil.
Not objected to by: freebsd-audit
2001-03-14 20:51:26 +00:00
Ruslan Ermilov
fb9aaba000
Count and show incoming UDP datagrams with no checksum.
2001-03-13 13:26:06 +00:00
Jun-ichiro itojun Hagino
32cd1d9601
sync with latest kame netstat. basically, more statistics
2000-07-04 16:26:46 +00:00
Yoshinobu Inoue
fc60ab7b0f
-permit protocol specific statistics at iflag,
...
only when either of sflag and "-f inet6" is specified.
-fix the indentation of default output
Specified by: Stephen McKay <syssgm@detir.qld.gov.au>
Reviewed and Confirmed by: Stephen McKay <syssgm@detir.qld.gov.au>
2000-01-07 05:17:09 +00:00
Guido van Rooij
ac55add06c
Add new option, -L that will listen the various listen queue lengths.
...
Reviewed by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>,
Clive Lin <clive@GnatS.CirX.ORG>
1999-12-13 20:08:44 +00:00
Yoshinobu Inoue
cfa1ca9dfa
udp IPv6 support, IPv6/IPv4 tunneling support in kernel,
...
packet divert at kernel for IPv6/IPv4 translater daemon
This includes queue related patch submitted by jburkhol@home.com .
Submitted by: queue related patch from jburkhol@home.com
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
1999-12-07 17:39:16 +00:00
Julian Elischer
a97a99221a
Cleanup towards -Wall
1999-10-21 07:08:56 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Dag-Erling Smørgrav
8898c75d55
Don't truncate port numbers.
...
Submitted by: ru
1999-07-06 19:10:15 +00:00
Dag-Erling Smørgrav
e4ec3989d9
Fix fstat compatibility by printing the address of the tcppcb instead of
...
that of the regular socket pcb for TCP sockets.
PR: bin/9963
Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua>
1999-03-10 17:25:42 +00:00
Bruce Evans
22694ebad5
Fixed printf format errors.
1998-07-06 21:01:54 +00:00
Warner Losh
9a1f6729af
o Use snprintf over sprintf.
...
o Use strncpy correctly.
o Use enough buffer for line.
Inspired by or Obtained from: Similar changes in OpenBSD
1998-06-09 04:13:03 +00:00
Pierre Beyssac
958d6f7fc3
Make "netstat -s" display stats on fast-forwarded packets.
...
Obtained from: NetBSD code
1998-05-19 16:00:55 +00:00
Garrett Wollman
4f81ef5056
mbuf, inet, and unix modules no longer read kvm.
1998-05-15 20:19:21 +00:00
Garrett Wollman
4e00c309c0
Print out the two new fields in the ICMP stats. While we're at it, also
...
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.
1997-08-25 16:57:05 +00:00
Peter Wemm
c115df18cd
Revert $FreeBSD$ to $Id$
1997-02-22 19:58:13 +00:00
Garrett Wollman
a5969f5ffc
Print out the new uninteresting-multicast-packets statistic.
1997-01-21 21:08:57 +00:00
Jordan K. Hubbard
1130b656e5
Make the long-awaited change from $Id$ to $FreeBSD$
...
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.
1997-01-14 07:20:47 +00:00
Paul Traina
e1fb4daa3e
TCP statistics are unsigned counters.
...
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>
1997-01-07 20:09:28 +00:00
Garrett Wollman
9086499893
Eliminate unnecessary include of <sys/mbuf.h>. PCBs aren't stored in mbufs
...
any more.
1996-10-28 18:56:44 +00:00
Poul-Henning Kamp
8d612dd2fc
Try to make netstat more smart about port numbers.
...
Feedback most welcome.
1996-08-23 19:05:34 +00:00
Garrett Wollman
759b7d75fb
Print PCB hash miss statistic.
1996-06-05 17:24:33 +00:00
Alexander Langer
7d56c0ee6b
Code cleanup: remove unused variables, use correct *printf format
...
specifiers (some unsigned values were printed as signed, some longs
were printed as ints), and place parentheses around assignments in
if statements.
1996-06-02 23:19:12 +00:00
David Greenman
d8d891521e
Move #include of queue.h before #include of socketvar.h in preparation for
...
struct socket changes.
1996-03-11 13:01:12 +00:00
Guido van Rooij
1347f5b8e5
Add a counter for the number of times the listen queue was overflowed to
...
the tcpstat structure. (netstat -s)
Reviewed by: wollman
Obtained from: Steves, TCP/IP Ill. vol.3, page 189
1996-02-26 21:47:13 +00:00
Peter Wemm
9c437f50ee
tidy up the domain name trimming code, and move it to a single place
...
rather than having the same bit of code duplicated in three places,
each with their own static copy of the host's local name.
1996-01-15 02:18:35 +00:00
Peter Wemm
05ddff6e30
Merge in Lite-2 changes.
1996-01-14 23:33:13 +00:00
Andrey A. Chernov
1ef69972ad
Change .8s port name restriction to .15s, modern tcp port
...
have longer names, check /etc/services.
kerberos_master triggers this bug: it is undistiguishable from
simple kerberos for .8s
1995-12-23 18:19:01 +00:00
Adam David
513822dddc
- #if defined(TF_NEEDSYN) && defined(TF_NEEDSYN)
...
+ #if defined(TF_NEEDSYN) && defined(TF_NEEDFIN)
1995-10-27 12:32:07 +00:00
Garrett Wollman
231bfb095d
In TCP statistics, display new statistic about how many resends were
...
initiated as a result of the Path MTU discovery process.
1995-10-13 20:01:48 +00:00
David Greenman
3aa80b1d81
Output statistics as unsigned in the -w section.
...
Look at error return of kread() and stop on error.
Fix warning in kread() to not output "kvm_read:" twice.
Killed PCB cache misses stat as we no longer have it.
1995-07-29 22:34:15 +00:00
David Greenman
89d7f49a31
Add "connections dropped by persist timeout" statistic.
1995-07-29 18:49:16 +00:00
Garrett Wollman
7b4315a73a
Correct spelling mistake: upcated -> updated.
1995-06-19 16:55:16 +00:00
Garrett Wollman
861b18288b
Print out the statistics for cache updates of rtt, rttvar, and ssthresh.
1995-06-19 16:46:21 +00:00
David Greenman
a9d6f1a78d
That's what I get for doing things in a hurry...applied up-to-date patch
...
to this file rather than old one (before I renamed the structure element).
1995-04-09 15:12:21 +00:00
David Greenman
fe9cff485b
Oops, remove some chaff from previous commit.
1995-04-09 05:34:54 +00:00
David Greenman
7452c2a5ef
Updated netstat to grok 4.4 QUEUE macros now being used to like the PCBs
...
together.
1995-04-09 05:33:17 +00:00
Garrett Wollman
9a94a59774
Make netstat report the correct state for T/TCP.
...
Submitted by: Andras Olah <olah@cs.utwente.nl>
1995-02-14 03:09:51 +00:00
Garrett Wollman
7b46dd001d
Document router advertisement and solicitation messages in ICMP input
...
histogram.
1994-10-02 18:45:32 +00:00
Rodney W. Grimes
9b50d90275
BSD 4.4 Lite Usr.bin Sources
1994-05-27 12:33:43 +00:00