Commit Graph

61186 Commits

Author SHA1 Message Date
obrien
a3d4dfd95d These were repo copied from their /sys/alpha/alpha counter parts. 2001-06-15 22:55:50 +00:00
obrien
1eb2fa3348 Add CVS id. 2001-06-15 22:54:33 +00:00
obrien
c7379a8342 These were repo copied from their /sys/alpha/include counter parts. 2001-06-15 22:43:09 +00:00
ache
5f82e8fa91 Bump FreeBSD_version to indicate locale renaming 2001-06-15 22:40:10 +00:00
gad
bda2a03c0f Previous commit makes a minor change so socket-debug processing works the
same as it did before the IPv6 commit.  Probably irrelevent to freebsd,
but I think it was useful on other OS's.  Also makes a few minor style chgs.

Reviewed by:	freebsd-print@bostonradio.org
MFC after:	1 week
2001-06-15 22:33:16 +00:00
gad
30c0318b72 *** empty log message *** 2001-06-15 22:30:02 +00:00
gad
e402d6c915 Rename a few global variables which hold hostname-related values to be
more sensible/understandable.  'from'->'from_host'  'host'->'local_host'
'fromb'->'frombuf'  'fromhost'->'origin_host'  and a local-variable
named 'host'->'hostbuf'.  This fixes some compile-time warnings about
local variables shadowing global variables.

Other than renaming variables, the only actual code changes are to call
strlcpy() instead of strncpy() when setting those (renamed) variables,
and that 'from_ip' is now a strdup()-created buffer instead of being a
static buffer compiled in as 1025 bytes.

Reviewed by:	freebsd-print@bostonradio.org (an earlier version)
MFC after:	1 week
2001-06-15 22:03:07 +00:00
jhb
134649df9d I'm a dunce. Clean up some warnings by axeing some unused variables from
the previous commit.
2001-06-15 21:09:44 +00:00
jlemon
3d3ee69a37 Do not perform arp send/resolve on an interface marked NOARP.
PR: 25006
MFC after: 2 weeks
2001-06-15 21:00:32 +00:00
imp
6f314caece 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
jlemon
0dbb10c226 Correctly hook up the write kqfilter to pipes.
Submitted by:  Niels Provos <provos@citi.umich.edu>
2001-06-15 20:45:01 +00:00
jhb
fc8bd4c1c0 Updates and tweaks to the new trace functionality:
- Use db_printf() instead of printf().
- Clean up decode_syscall() to use regular if-then-else rather than goto's.
- Use the same method of parsing PID's for per-process traces as the x86
  code does: that is, if the address passed in is not a valid kernel
  address, treat it is a decimal pid.
- If the pid of the current process is specified, fall back to using the
  "default" parameters for the trace as curproc's pcb is not valid at this
  point.

MFC after:	1 week
2001-06-15 20:27:44 +00:00
wpaul
89fb81a8c4 Turn TCP and UDP hardware RX checksumming back on. jlemon pointed out where
I'd gone wrong before: we have to set csum_data to 0xffff, not 0.
2001-06-15 19:02:55 +00:00
wpaul
d524f96864 Fix TX bug: when using TCP/IP checksum offload on TX, we tell the chip
we want the checksums calculated on a per-packet basis using control bits
in the extsts field of the DMA descriptor structure. For TX, the chip
seems to want these bits set in the field of the first descriptor in
a fragment chain, not the last.
2001-06-15 18:43:19 +00:00
ru
67653866aa 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
eivind
b24972e849 De-credit myself in order to be consistent.
Also add a few more tips while I am here.
2001-06-15 18:23:44 +00:00
ru
dbd701e3cb Line up `netstat -rl' display. 2001-06-15 18:15:11 +00:00
olgeni
153d116684 Port "x11-fonts/XFree86-4-fontLatin2" has been removed from the ports
collection.

MFC after:	3 days
2001-06-15 17:35:54 +00:00
gad
a2e364fff7 Rename global variable 'name' to 'progname', thus fixing a number of
warnings which come up for various routines that have a parameter which
is also called 'name'.

Reviewed by:	freebsd-print@bostonradio.org
MFC after:	1 week
2001-06-15 16:28:37 +00:00
schweikh
df20a2faa4 New entry for rxvt.
PR:		28154
Submitted by:	Giorgos Keramidas <charon@labs.gr>
2001-06-15 16:24:44 +00:00
rwatson
62319ab557 o The VOP_RDWR man page neglected to mention (at least) two error modes
possible when writing:

     [EFBIG]            An attempt was made to write a file that exceeds
                        the process's file size limit or the maximum file
                        size.

     [EPERM]            An append-only flag is set on the file, but the
                        caller is attempting to write before the current
                        end of file.
2001-06-15 16:12:41 +00:00
brian
0ec923a7cf Correct the arg count after parsing a line with an unescaped # that isn't
preceeded with whitespace.

MFC after: 3 weeks
2001-06-15 13:58:06 +00:00
des
cf75a40bc5 #if 0 out pfs_null() to silence the warning about it not being referenced. 2001-06-15 12:30:46 +00:00
olgeni
1d67a55f97 Fix some typos.
MFC after:	1 week
2001-06-15 11:25:26 +00:00
nik
24135db698 More tips.
Submitted by:	David Scheidt <dscheidt@tumbolia.com>
2001-06-15 10:47:30 +00:00
nik
5810263edc Change 93-11-XX for the FreeBSD 1.0 release to 93-11-01, based on this
announcement from JKH (back when he was still working for Lotus)

    http://minnie.tuhs.org/cgi-bin/newsread?23150

This also means that if, as Microsoft say, Linux is a Cancer, FreeBSD is
a Scorpio.
2001-06-15 10:20:58 +00:00
peter
490a3f634c oops. prepare_usermode() died in August 2000 in the MI and x86 code.
Issue raised by:	scottl
2001-06-15 09:59:27 +00:00
nik
8f0d94555e Add a new category of fortunes, 'freebsd-tips'. Useful hints, advice, and
pointers to areas of the system that might not be apparent on first
inspection.
2001-06-15 08:45:43 +00:00
nik
7cd92525ca Include a mention of WRKDIRPREFIX, useful when mounting /usr/ports readonly
from another host.
2001-06-15 08:35:57 +00:00
peter
e6d5c70da1 Bah, back out part of previous commit. I got too carried away.
linux_debug_map[] is referred to from elsewhere.
2001-06-15 08:18:24 +00:00
markm
5fa9d6f739 Unbreak OpenSSH for the KRB5-and-no-KRB4 case. Asking for KRB5 does
not imply that you want, need or have kerberosIV headers.
2001-06-15 08:12:31 +00:00
peter
a1ffaca6ed Fix warning:
163: passing arg 4 of `resource_string_value' from incompatible pointer type
2001-06-15 08:01:21 +00:00
peter
6323b78b7e Fix warnings:
585: warning: missing braces around initializer
605: warning: missing braces around initializer
2001-06-15 07:56:36 +00:00
peter
6ad938c7be Fix warnings:
908: warning: long unsigned int format, unsigned int arg (arg 3)
887: warning: `timezero' defined but not used
2001-06-15 07:53:20 +00:00
peter
7908b13fc3 Fix warnings:
235: warning: unsigned int format, pointer arg (arg 3)
621: warning: cast discards qualifiers from pointer target type
2001-06-15 07:50:54 +00:00
peter
ded47f0635 Fix warning:
239: warning: no previous prototype for `linux_debug'
2001-06-15 07:48:21 +00:00
peter
581435f4bd Fix warning:
413: warning: long unsigned int format, vm_offset_t arg (arg 2)
2001-06-15 07:46:18 +00:00
peter
efc05ef868 Fix warning:
1973: warning: int format, long int arg (arg 5)
2001-06-15 07:44:39 +00:00
peter
7efbde79e0 Fix warning:
298: warning: assignment makes pointer from integer without a cast
2001-06-15 07:42:58 +00:00
peter
0815b94904 Fix warnings:
412: warning: long unsigned int format, unsigned int arg (arg 3)
418: warning: long unsigned int format, unsigned int arg (arg 3)
424: warning: long unsigned int format, unsigned int arg (arg 3)
2001-06-15 07:39:12 +00:00
peter
0a09e30aa9 Fix warning: 203: implicit declaration of function `kernel_sysctlbyname' 2001-06-15 07:37:01 +00:00
peter
7bdbd7d78c Fix warning: (int/long mixup in printf)
475: warning: unsigned int format, long unsigned int arg (arg 3)
2001-06-15 07:35:25 +00:00
peter
1317cf9174 Fix warning. s/char/unsigned char/ in "(char *)eth"
294: warning: ethernet address is not type unsigned char *
2001-06-15 07:34:29 +00:00
peter
31a6b6a02b Fix warning: 848: warning: label `nosupport' defined but not used 2001-06-15 07:33:09 +00:00
peter
dfa93ae301 Fix warning; remove unused variable 2001-06-15 07:32:25 +00:00
peter
3e58c87e4f Remove unused variable 2001-06-15 07:31:15 +00:00
peter
51d35ea75c Fix some warnings in kern_environment.c. Make the getenv*() family
take a const 'name', since they dont modify anything.
159: warning: passing arg 1 of `getenv_int' discards qualifiers...
167: warning: passing arg 1 of `getenv' discards qualifiers from pointer..
2001-06-15 07:29:17 +00:00
peter
184cadbfac Fix warning: 186: warning: label `done' defined but not used 2001-06-15 07:26:39 +00:00
assar
9e34fe7efd remove most of the warnings 2001-06-15 01:53:05 +00:00
peter
376d88fdd4 Fix warning: 568: warning: `portal_badop' defined but not used 2001-06-15 00:38:03 +00:00