Commit Graph

30 Commits

Author SHA1 Message Date
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