Commit Graph

4179 Commits

Author SHA1 Message Date
David E. O'Brien
613170896d Fix editor'o where I lost the `+'. 2001-06-29 13:54:56 +00:00
Yaroslav Tykhiy
08274979f3 Clarify the feature that -exec parameters won't get
shell-expanded when the specified utility is run.

MFC after:	5 days
2001-06-29 12:59:20 +00:00
Ruslan Ermilov
44cffa7c08 - Added entry for Daniel C. Sobral.
- Fixed entry for Charlie Root.
2001-06-29 09:47:27 +00:00
Ruslan Ermilov
1093cc3199 Make `rttrash' variable (#routes not in table but not freed) visible
through ``netstat -rs''.
2001-06-29 09:08:24 +00:00
Ruslan Ermilov
8f309b9151 Fixed bogon in revision 1.37. Don't bogusly print a radix node's
duped key marker (``=>'') for routes with non-positive rmx_expire
metric, such as ethernet interface routes.

MFC after:	1 week
2001-06-29 08:37:12 +00:00
Wilko Bulte
4408e85a6d s/Netherlands/the Netherlands/g 2001-06-28 22:05:32 +00:00
Guido van Rooij
c3c55b7ae3 Up the average age and hope I can still show my face next saturday. 2001-06-28 21:52:49 +00:00
Hajimu UMEMOTO
785d213d3f - create an entry of IPV6CTL_STATS sysctl.
- fix the problem that netstat doesn't show raw6 and icmp6 pcblist.
- make netstat use sysctl to retreive stats of ipv6 and icmpv6
  instead of kread.

Obtained from:	KAME
MFC after:	1 week
2001-06-28 18:06:15 +00:00
Thomas Gellekum
5a7e416108 Fix another buffer overflow.
PR:		15593
Submitted by:	Przemyslaw Frasunek <venglin@lagoon.FreeBSD.lublin.pl>
2001-06-28 12:02:45 +00:00
Mike Smith
48ce3c0e43 Based on a draft email in David Greenman's files, add the birthdate
of FreeBSD.

Submitted by:	dg
2001-06-28 04:08:25 +00:00
Mike Heffner
dcd24e2778 Add the -E flag to not send messages that have an empty body. This is
useful for piping cron script error output by mail.

PR:		bin/9494
Obtained from:	NetBSD
MFC after:	2 weeks
2001-06-28 02:40:07 +00:00
Dima Dorfman
ffabd15013 Minor grammar cleanup.
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-27 23:08:57 +00:00
Dima Dorfman
40682bea9a Implement recursive IP address searches based on the results of a
query to ARIN.

PR:		28426
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-27 23:06:47 +00:00
Dima Dorfman
1807222dac Correct path to wtmp.
PR:		28433
Submitted by:	Joseph Mallett <jmallett@xMach.org>
2001-06-27 06:00:26 +00:00
Mike Heffner
24b9685ca9 Sync manpage and usage. Also fix bug that would always interpret a -c as a
process clear.

PR:	bin/15456
MFC after:	2 weeks
2001-06-27 02:52:57 +00:00
Dima Dorfman
fd8879d3f5 Staticize, constize, de-registerize; don't shadow global definitions;
set WARNS=2.

Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-26 22:22:19 +00:00
Jens Schweikhardt
9aa042f66c Increase column widths when using -i (they are now wide enough to
hold a 64bit or 32bit ~0 value, i.e. 20 and 10; this anticipates
soon-to-be machines with Exahertz rtc interrupt frequencies. :-)

PR:		bin/16206
Submitted by:	John Capo <jc@irbs.com>
MFC after:	1 week
2001-06-26 18:49:10 +00:00
Ruslan Ermilov
0c5dac789c Submitted by: hm 2001-06-26 08:00:43 +00:00
Dan Moschuk
7b6a37d826 Share my DOB with the world! 2001-06-26 05:04:03 +00:00
David W. Chapman Jr.
629160a49b Originally stated wrong birthplace, thought it was current location. 2001-06-26 04:11:19 +00:00
Dima Dorfman
1fec918b1f The `file' argument is optional.
Obtained from:	OpenBSD
2001-06-26 02:14:13 +00:00
Mike Smith
dbe8e37bbf Admit the shameful truth; I'm really from the east coast. But I left
shortly after I was born.  Honest!
2001-06-25 21:37:43 +00:00
Dima Dorfman
461ce74ab4 Silence -Wshadow and -Wmissing-prototypes; set WARNS=2.
Submitted by:	 Mike Barcroft <mike@q9media.com>
2001-06-25 21:25:27 +00:00
Ruslan Ermilov
845b45fed4 Submitted by: andreas 2001-06-25 09:11:45 +00:00
Dima Dorfman
7309915e7a Nuke unused variables. 2001-06-24 23:41:57 +00:00
Dima Dorfman
9582ea7e62 Include missing header files which define functions for which gcc has
builtints (e.g., exit, strcmp).
2001-06-24 23:22:14 +00:00
Dima Dorfman
7a19d1bbb9 Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).
2001-06-24 19:50:42 +00:00
Dima Dorfman
948a3f54a7 Include missing header files which define functions for which gcc has
builtins (e.g., exit).

Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-24 19:41:18 +00:00
Dima Dorfman
471caa34a4 Silence warning and set WARNS=2.
Submitted by:	Mike Barcroft <mike@q9media.com>
Reviewed by:	md5(1)
2001-06-24 18:56:00 +00:00
David Malone
5386636d3e Add prototypes and turn on WARNS=?2. 2001-06-24 12:23:54 +00:00
Dima Dorfman
a910f192bb Remove duplicate words. 2001-06-24 01:34:38 +00:00
Jason Evans
9a952e0dda Add myself. 2001-06-24 00:45:03 +00:00
Jens Schweikhardt
f40be3e157 Reduce field width for some columns so that the default output fits in <= 79
columns. 80 columns + newline is a problem for some terminals including syscons.

Requested by:	bde
MFC after:	1 week
2001-06-23 17:52:10 +00:00
Ruslan Ermilov
8c8e8f8013 Three people known to be born on December 18!
Submitted by:	cwt
2001-06-23 17:34:26 +00:00
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
Bosko Milekic
f70f5dd367 - Fix space allocation for mbstat structure
- Make sure to try hw.ncpu if kern.smp.cpus doesn't exist (i.e. on UP) to
  get number of CPUs.
2001-06-23 17:04:17 +00:00
Bosko Milekic
4edec6b79a Make sure to try hw.ncpu if kern.smp.cpus doesn't exist (i.e. on UP) when
getting number of CPUs.
2001-06-23 17:03:27 +00:00
Maxim Sobolev
ab962c79ec By default link statically (like we did in the port) - it provides 8-10%
faster comperssion, which in the bzip2's case could be a big win.
2001-06-23 12:29:14 +00:00
Ruslan Ermilov
aafccd6d93 Honor -s -s (don't show zero stats) with -r, untangle SYNOPSIS further.
(usage() still is not synchronized with SYNOPSIS, intentionally.)
2001-06-23 09:18:57 +00:00
Ralf S. Engelschall
c39435223d Add myself. 2001-06-23 09:16:29 +00:00
Ruslan Ermilov
7b7a4c0417 Average age is 28 years and 11 months.
Submitted by:	hrs, marko
2001-06-23 08:36:11 +00:00
Brian Feldman
668650045e Make sure the average age keeps on decreasing down that slippery slope. 2001-06-23 07:24:18 +00:00
Andrey A. Chernov
cd01c79119 Make the similar changes as in our keyinfo, i.e. allow user to get his own
sequence and allow root to get everybody's one. Before this change user
can't get his own sequence, root required.
2001-06-23 04:48:59 +00:00
Julian Elischer
2137f0edf5 give up and join the party (along with thomas Moestl (same bday))
but maybe this file shouldn't be so widly distributed :-)
2001-06-23 04:37:31 +00:00
Seigo Tanimura
4841abec28 Now how many files would a new committer have to commit? 2001-06-22 22:53:22 +00:00
Wes Peters
3236ec583b Join in the fun. 2001-06-22 22:47:22 +00:00
David E. O'Brien
b0b7095861 Quiet compiler warnings by making `WARNS 2' clean.
Submitted by:	Mike Barcroft <mike@q9media.com>

Set maintainer to myself.  This needs to stay in sync with what Buntils
does, and it would be best to pass functionality changes thru me to make
sure future plans are taken into account.
2001-06-22 21:43:51 +00:00
Dima Dorfman
982f5d88ff WARNS= -> WARNS?=
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-22 21:38:30 +00:00
Mario Sergio Fujikawa Ferreira
c55cc749a5 Average tuning and contribute a Brazilian 2001-06-22 15:00:20 +00:00
Paul Saab
81ca9c7060 Add myself 2001-06-22 14:50:34 +00:00
Thomas Moestl
280e1ddd48 Add myself. 2001-06-22 14:43:53 +00:00
Ruslan Ermilov
4208e80251 More average age tuning.
Submitted by:	andy
2001-06-22 13:14:01 +00:00
Daniel C. Sobral
d3460d6609 Correct small typo on debug message.
PR:		bin/28337
Submitted by:	Koga Youichirou <y-koga@jp.freebsd.org>
MFC after:	1 week
2001-06-22 12:54:55 +00:00
Ruslan Ermilov
31ae0147d1 Fixed average age (28 years and 11 months).
Submitted by:	hosokawa
2001-06-22 10:11:39 +00:00
Gregory Neil Shapiro
5631132741 Add myself. It looks like I am in very good company in November. 2001-06-22 08:11:06 +00:00
Kevin Lo
45850e3066 Add myself 2001-06-22 07:35:56 +00:00
Ruslan Ermilov
a87032d57f - Fixed bogon in rev. 1.14 (dates are separated by a tab).
- Sort people that have the same birthday by a year.
- Added some missing data (R.O.C. for Taiwan, Australia for peter,
  Englang -> United Kingdom).
- Fixed bogon in rev. 1.1 (INITCAP() was not worth doing).
- Regenerate (from the Oracle database).

Average age: 28 years and 10 months.
2001-06-22 06:41:16 +00:00
Bosko Milekic
08442f8a82 Introduce numerous SMP friendly changes to the mbuf allocator. Namely,
introduce a modified allocation mechanism for mbufs and mbuf clusters; one
which can scale under SMP and which offers the possibility of resource
reclamation to be implemented in the future. Notable advantages:

 o Reduce contention for SMP by offering per-CPU pools and locks.
 o Better use of data cache due to per-CPU pools.
 o Much less code cache pollution due to excessively large allocation macros.
 o Framework for `grouping' objects from same page together so as to be able
   to possibly free wired-down pages back to the system if they are no longer
   needed by the network stacks.

 Additional things changed with this addition:

  - Moved some mbuf specific declarations and initializations from
    sys/conf/param.c into mbuf-specific code where they belong.
  - m_getclr() has been renamed to m_get_clrd() because the old name is really
    confusing. m_getclr() HAS been preserved though and is defined to the new
    name. No tree sweep has been done "to change the interface," as the old
    name will continue to be supported and is not depracated. The change was
    merely done because m_getclr() sounds too much like "m_get a cluster."
  - TEMPORARILY disabled mbtypes statistics displaying in netstat(1) and
    systat(1) (see TODO below).
  - Fixed systat(1) to display number of "free mbufs" based on new per-CPU
    stat structures.
  - Fixed netstat(1) to display new per-CPU stats based on sysctl-exported
    per-CPU stat structures. All infos are fetched via sysctl.

 TODO (in order of priority):

  - Re-enable mbtypes statistics in both netstat(1) and systat(1) after
    introducing an SMP friendly way to collect the mbtypes stats under the
    already introduced per-CPU locks (i.e. hopefully don't use atomic() - it
    seems too costly for a mere stat update, especially when other locks are
    already present).
  - Optionally have systat(1) display not only "total free mbufs" but also
    "total free mbufs per CPU pool."
  - Fix minor length-fetching issues in netstat(1) related to recently
    re-enabled option to read mbuf stats from a core file.
  - Move reference counters at least for mbuf clusters into an unused portion
    of the cluster itself, to save space and need to allocate a counter.
  - Look into introducing resource freeing possibly from a kproc.

Reviewed by (in parts): jlemon, jake, silby, terry
Tested by: jlemon (Intel & Alpha), mjacob (Intel & Alpha)
Preliminary performance measurements: jlemon (and me, obviously)
URL: http://people.freebsd.org/~bmilekic/mb_alloc/
2001-06-22 06:35:32 +00:00
Takanori Watanabe
f89558df9a Add Myself. 2001-06-22 04:57:20 +00:00
Peter Wemm
0764acb60f Dive in as well. 2001-06-22 04:52:05 +00:00
Motoyuki Konno
b6c9f3b104 Add myself. 2001-06-22 04:38:22 +00:00
Munechika SUMIKAWA
a10d4301dd Oops, I was born in Osaka. Kanagawa is my current address :-) 2001-06-22 02:45:25 +00:00
Ade Lovett
58e24cfd43 Add myself. sos, you have a clone (albeit younger by 9 years :) 2001-06-22 02:30:27 +00:00
Dag-Erling Smørgrav
9b07a06672 Stylify, ANSIfy, silence warnings, plug a memory leak, don't assume the
server is well-behaved wrt. line endings.

PR:		bin/28082
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-22 01:52:37 +00:00
Vanilla I. Shu
91d8ba8789 Add myself. 2001-06-22 01:11:35 +00:00
Matt Jacob
51a9be2aed Okay, I'll go along with the gag.... Interesting- I'm quite startled
to note that of the people added so far, one has the same birthdate as me
(April Fool's Day), and that only two other folks are older than I am.
2001-06-22 00:23:02 +00:00
Greg Lehey
fe7ecc4a40 Add myself. 2001-06-22 00:19:14 +00:00
Brooks Davis
45ae78bcc5 Slightly lower average age. 2001-06-21 20:44:32 +00:00
Bill Fumerola
676393a337 represent detroit rock city 2001-06-21 20:15:10 +00:00
David E. O'Brien
d6a9fd06de Add the Bzip2 binaries. These are starting to get used more and more
in the base system.
2001-06-21 19:18:16 +00:00
Michael C . Wu
d05ee7b1be Follow Ben's suit in decreasing the average age here
by adding myself.
2001-06-21 15:06:14 +00:00
Ben Smithurst
2e32a5ffdf Hopefully decrease the average age further still... :-) 2001-06-21 14:59:25 +00:00
Bill Fumerola
47f7cc6db5 bring down the average age a little 2001-06-21 09:57:48 +00:00
Ruslan Ermilov
23a8dddc5d FreeBSD calendar.
Submitted by:	developers
2001-06-21 09:07:22 +00:00
Munechika SUMIKAWA
fd5556399e - Avoid hardcoded constant on icmp6 in/out histogram printing
- Icmp6 histogram update for inverse neighbor solicit/advert.

Obtained from:	KAME
MFC after:	2 weeks
2001-06-21 08:27:09 +00:00
Dima Dorfman
66cbe52bfa This compiles cleanly with WARNS=2; make sure it stays that way. 2001-06-20 01:12:46 +00:00
Dima Dorfman
91dd86ff52 Don't arbitrarily limit tabstop expansions to 256 characters.
Submitted by:	Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de>
2001-06-20 01:08:58 +00:00
Jens Schweikhardt
ca513e5e52 Made all fields in default output be space separated. Run-together
columns confuse the heck out of other apps trying to parse vmstat output
(eg sscope). I made sure we're still <= 80 cols per line.
Fixed warnings about unused vars and printf %format mismatches.

Requested by:	Eugene Aleynikov <eugenea@infospace.com>
Reviewed by:	joerg (implicitly)
MFC after:	2 weeks
2001-06-19 17:59:40 +00:00
Mike Heffner
b1a7433e0b Call clnt_destroy() to prevent exhausting resources.
PR:		bin/14255
Reviewed by:	Kenji Tomita <tommy@ti.com>
MFC after:	2 weeks
2001-06-19 03:48:26 +00:00
Mike Heffner
98f858a6b2 Cleanup the mix of styles in this file:
- spaces -> tabs
  - return(0) -> return (0)
  - wrap longlines

Reviewed by:	md5
MFC after:	2 weeks
2001-06-19 03:37:21 +00:00
Peter Pentchev
e6ebeb5f57 Teach fstat(1) about FIFO's - it's OK to display them as regular files.
While I'm here, fix two second-level indents to be four spaces.

Reviewed by:	dd, -audit
2001-06-18 06:29:31 +00:00
Mike Heffner
a9992a76a3 Support mail boxes that have dates without seconds (SysV) and those
that have a timezone as <-|+>nnnn (eg. imapd).

PR:		bin/11746
Obtained from:	OpenBSD
MFC after:	2 weeks
2001-06-18 04:28:03 +00:00
Dima Dorfman
7d6d31cb79 Satisfy gcc's parenthetical needs and clamp down with WANRS=2.
Reviewed by:	md5(1)
2001-06-17 06:22:30 +00:00
Mike Heffner
844518ff93 Add the -p flag to force unknown control sequences to be passed
through unchanged.

Reviewed by:	silence on -audit
Obtained from:	NetBSD
MFC after:	3 weeks
2001-06-17 04:24:16 +00:00
Mike Heffner
f34d0e7447 Use err(3) and style(9) cleanup.
MFC after:	2 weeks
2001-06-17 03:56:00 +00:00
Dima Dorfman
fd67620214 Make the synopsis resemble the usage in the source file. 2001-06-16 23:09:12 +00:00
Mike Heffner
d763a51095 Print spaces on the leading edge rather than the trailing edge of each
field to avoid trailing spaces.

PR:		bin/16649
MFC after:	2 weeks
2001-06-16 07:08:37 +00:00
Jonathan Lemon
84982751aa Cast size_t -> int to satisfy printf %* constraints on the alpha. 2001-06-16 06:22:09 +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
Eric Melville
a70bac9d69 Remove unwanted CFLAGS, and add a CVS id. 2001-06-15 23:25:22 +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
c264b07418 nflag -> numeric_port. nflag is no more 2001-06-15 22:57:41 +00:00
Warner Losh
5d8eff0053 Print symbolic names for appletalk ports. Also some very minor style 9 issues.
PR: bin/4157
Submitted by: Denny Gentry <denny1@home.com>
2001-06-15 20:47:01 +00:00
Ruslan Ermilov
cf5e44f88e First round of netstat(1) cleanup.
Removed the ambiguity in -s, -f, -p and -i flags handling.
Basically, there are four displays (except others):

1.  PCB display.
2.  Protocol statistics display. (-s)
3.  Interface statistics display. (-i)
4.  Per-interface protocol statistics display. (-i -s)

All of the above except 3) can be limited to a particular
protocol family (-f) or a single protocol (-p).

Some examples:

1.  netstat -f inet    -- show PCBs of all INET protocols
2.  netstat -p udp     -- show PCB of UDP protocol only (NEW!)
3.  netstat -s         -- show protocol statistics for all families
4.  netstat -s -f inet -- show INET protocols statistics
5.  netstat -s -p icmp -- show ICMP protocol statistics

This is a work in progress.  Manpage has been fixed slightly,
but is still incomplete.
2001-06-15 18:25:38 +00:00
Ruslan Ermilov
eba04a8da9 Line up `netstat -rl' display. 2001-06-15 18:15:11 +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
Ruslan Ermilov
d15c5f56b6 Restore -M -N support for -m.
PR:		20808
2001-06-14 15:45:09 +00:00
Ruslan Ermilov
1f389209a6 Removed -h option. 2001-06-14 14:21:11 +00:00