125143 Commits

Author SHA1 Message Date
mlaier
f5cde2819f Import interface groups from OpenBSD. This allows to group interfaces in
order to - for example - apply firewall rules to a whole group of
interfaces.  This is required for importing pf from OpenBSD 3.9

Obtained from:	OpenBSD (with changes)
Discussed on:	-net (back in April)
2006-06-19 22:20:45 +00:00
jhb
5a4834b848 - Move the gigabit NICs that use miibus into the miibus section to match
GENERIC.
- Add bce(4) and bfe(4).
2006-06-19 22:11:44 +00:00
yar
4ba7f71daf There is a plenty of arch's out there where sizeof(size_t) != sizeof(int).
A field width in printf(3) must be int, so cast return value from strlen()
to the type.

Noticed by:	Andrzej Tobola <ato iem pw edu pl>; tinderbox
Pointy hat to:	yar
X-MFC with:	the rest of the new asf code
2006-06-19 17:12:25 +00:00
matteo
acc660f919 Add a forgotten "," 2006-06-19 16:31:58 +00:00
matteo
c992b6cea1 Add Hamlet eXagerate XURS232 USB-Serial adapter
PR:		usb/98983
Submitted by:	Massimo Lusetti
MFC after:	1 week
2006-06-19 16:30:35 +00:00
brueffer
3d0b33853e Boji Tony Kannanthanam no longer supports this driver, Achim Leubner
however still does.  Confirmed by email contact with both of them.

MFC after:	3 days
2006-06-19 15:22:34 +00:00
dwmalone
10047ad619 When we receive an out-of-window SYN for an "ESTABLISHED" connection,
ACK the SYN as required by RFC793, rather than ignoring it. NetBSD
have had a similar change since 1999.

PR:		93236
Submitted by:	Grant Edwards <grante@visi.com>
MFC after:	1 month
2006-06-19 12:33:52 +00:00
sos
b24bbb5c56 Fix type casts so that we get at the right response queue.
Submitted by: glebius+ru
2006-06-19 11:47:57 +00:00
obrien
0e1f961d75 Trival whitespace change. 2006-06-19 11:30:36 +00:00
obrien
35c9358d6c Update for the 'file' 4.17 import. 2006-06-19 08:10:23 +00:00
davidxu
76a64a293b Style fix, use low-case. 2006-06-19 07:55:29 +00:00
obrien
794e6404b6 Update for the 'file' 4.17 import. 2006-06-19 07:53:49 +00:00
obrien
b691046f2b This commit was generated by cvs2svn to compensate for changes in r159764,
which included commits to RCS files with non-trunk default branches.
2006-06-19 07:52:15 +00:00
obrien
5c5b299c7d Virgin import of Christos Zoulas's FILE 4.17. 2006-06-19 07:52:15 +00:00
davidxu
9ef6a74011 Clear bit 22 in MSR IA32_MISC_ENABLE, according to Intel document,
when the bit 22 is set to 1, CPUID with EAX=0 returns a maximum
value in EAX[7..0] of 3, when set to 0(default), CPUID with EAX=0
returns the number corresponding to the maximum standard function
supported. On my machine, BIOS sets the bit to 1 to make it to be
compatible with old OS, this causes dual-core Pentium-D (two
physical cores) to be identified as hyperthreading (two logical
cores) by function mp_topology().
2006-06-19 07:51:47 +00:00
ps
79cb2a2018 Remove two debugging printfs 2006-06-19 05:35:56 +00:00
bmah
9c58ddf0f8 Various wording nits (hopefully resulting in net improvements) to the
main kernel section.
2006-06-19 02:55:27 +00:00
thompsa
77210e1c31 Fix spelling mistake in comment. 2006-06-19 02:25:11 +00:00
cognet
a32f908e29 Make sure the stack is properly aligned.
Enable the MMU when relocating as well, and use write-through cache.
2006-06-18 22:46:30 +00:00
simon
80d29aa8a8 - Fail with an understandable error message if we cannot detect the
sector size, instead of later failing with an error about /boot/mbr
  not being a multiple of the sector size (since we end up with an
  assumed sector size of MAX_SEC_SIZE * 2).
- We query the sector size via an IOCTL anyway, so if that succeeds
  use that instead of probing for it via read(2) calls.  This fixes
  the problem with fdisk failing to operate on at least graid3 and
  md(4) devices on kernels with src/sys/geom/geom_dev.c before
  rev. 1.90, due to fdisk failing to detect the sector size.
- When detecting the root device allow "/" characters in it, which
  happens with e.g. gmirror devices.

Reviewed by:	cperciva
MFC after:	1 week
2006-06-18 22:02:22 +00:00
simon
9d0350bdbe In g_dev_strategy(), when failing an IO request with EINVAL due to
offset or request size which is not a multiple of the sector size, make
sure that the bio is set to indicate that no data has actually been
transferred.

The result of this is that the file offset is no longer incremented for
these requests.  The fact that the file offset was incremented broke
fdisk(8)'s probing of sector size for non-512 byte sector sizes.

Reviewed by:	phk, cperciva
Submitted by:	mdodd
MFC after:	2 weeks
2006-06-18 22:01:15 +00:00
bmah
14660276ae Minor tightening up of release notes:
Delete two release notes related to the kern.elf*.can_exec_dyn that
seemed to cancel each other out.

Consolidate two notes related to BPF JIT.

Delete note about fixing CHECKSUM.MD5 bug; no released versions of
FreeBSD shipped with it.
2006-06-18 21:32:26 +00:00
bmah
0a017b05be Put several notes in the right place: Move an arp(8) note from kernel
to userland.  Move all of the items in the Kernel contrib section to
the top-level contrib section.

All of the moved items are unchanged with respect to their actual
contents.
2006-06-18 21:13:28 +00:00
rwatson
350dce4037 When retrieving SO_ERROR via getsockopt(), hold the socket lock around
the retrieval and replacement with 0.

MFC after:	1 week
2006-06-18 19:02:49 +00:00
netchild
374a73f6b1 Document support for the Aceeca Mez1000 RDA. 2006-06-18 17:56:37 +00:00
netchild
4a978b4ef5 Add support for the Aceeca Mez1000 RDA.
PR:		82839
Submitted by:	Mike Durian <durian@shadetreesoftware.com>
2006-06-18 17:55:29 +00:00
netchild
32fd37741e Add support for:
- Curitel PC5740 Wireless Modem (Verizon's PCMCIA card)
 - Sierra MC5720 Wireless Modem (Built in to Thinkpad X60s)

PR:		98908
Submitted by:	Michael Collette <metrol@metrol.net>
2006-06-18 17:54:33 +00:00
brueffer
48a9227547 We just have one generic sound driver, reflect this.
MFC after:	3 days
2006-06-18 17:53:04 +00:00
imp
5bf706906d Remove the insistance on having a device.hints. This was a seat belt
for those upgrading from 4.x -> 5.x.  It is therefore no longer
necessary because it is installed on 5.x and 6.x and one has to
upgrade from 6.x -> current, or at the very least 5.x (although not
supported, it can be made to work).
2006-06-18 17:48:45 +00:00
brueffer
5d0c31cbc6 o We only have one generic audio driver, reflect this (1)
o Mention the author of the driver
o Minor mdoc improvement

Discussed with:		netchild (1)
2006-06-18 17:48:08 +00:00
netchild
c9ca278d22 Add support for:
- Curitel PC5740 Wireless Modem (Verizon's PCMCIA card)
 - Sierra MC5720 Wireless Modem (Built in to Thinkpad X60s)

Bump the date in the uscanner man page for the update some minutes ago.
2006-06-18 17:46:40 +00:00
imp
1d5aad7b0a Don't descend into ${MACHINE} on the arm platforms. 2006-06-18 17:44:40 +00:00
netchild
20e59104b0 Add support for:
- Curitel PC5740 Wireless Modem (Verizon's PCMCIA card)
 - Sierra MC5720 Wireless Modem (Built in to Thinkpad X60s)

The scanner in the PR is already supported.

PR:		98908
Submitted by:	Michael Collette <metrol@metrol.net>
2006-06-18 17:43:38 +00:00
netchild
440e48d33e Add Epson Perfection 1270 scanner. All other scanners in the PR are already
detected, but with a different name.

PR:		98106
Submitted by:	Lars Engels <lars.engels@0x20.net>
2006-06-18 17:29:16 +00:00
netchild
203efd1fca When attaching an Xbox 360 gamepad a computer, the LED on the gamepad
blinks by default. When the operating system (read: normally an Xbox
360) initializes the gamepad, the LED stops blinking.

Change our uhid code to do the same.

PR:		97169
Submitted by:	Ed Schouten <ed@fxq.nl>
2006-06-18 17:18:17 +00:00
netchild
9da88bf5a6 2 spelling fixes...
Noticed by:	John E Hein <jhein@timing.com>
2006-06-18 17:02:21 +00:00
bmah
fb68c3bcd7 New release note: COMPAT_43 removed from GENERIC.
Updated release note:  MPSAFE-ness of NFS includes the client code.
2006-06-18 16:36:51 +00:00
brueffer
541a257955 o sort the HARDWARE list somewhat
o mention ATA and SATA support
o mdoc improvements

MFC after:	3 days
2006-06-18 14:45:28 +00:00
brueffer
a6c0deec5a o Remove FILES section (uninteresting for users)
o Xref asr(4)

MFC after:	3 days
2006-06-18 14:37:48 +00:00
andre
2ca2d64333 Remove T/TCP RFC1644 Connection Count comparison macros. They are no longer
used and needed.

Sponsored by:   TCP/IP Optimization Fundraise 2005
2006-06-18 14:24:12 +00:00
netchild
9a0a1c6884 - Rename hw.snd.unit to hw.snd.default_unit to make the purpose more obvious.
- Enable 4 automatic vchan's by default.
- Add some comments which provide ides/questions for improvement.
- Prefix some temporary sysctl's with an underscore to denote that it is not
  an official API but a workaround until the real solution is implemented.
2006-06-18 14:14:41 +00:00
brueffer
254be6b7c4 o Capitalization fixes
o Remove the outdated FILES section

MFC after:	3 days
2006-06-18 14:12:27 +00:00
brueffer
9c08d0cfc0 Add MLINKS:
ixgb.4 -> if_ixgb.4
mxge.4 -> if_mxge.4
2006-06-18 14:08:20 +00:00
netchild
54bacf2fa6 - xref linsysfs
- improve the ldconfig part
- tell about pitfalls with the osrelease sysctl
2006-06-18 13:51:39 +00:00
netchild
7a06a80203 Alpha is gone, no need to keep them. 2006-06-18 13:44:26 +00:00
andre
2e570176ba Do not access syncache entry before it was allocated for the TF_NOOPT case
in syncache_add().

Found by:	Coverity Prevent
CID:		1473
2006-06-18 13:03:42 +00:00
yar
0bf54ce0e0 Add a funny sysctl: debug.kdb.trap_code .
It is similar to debug.kdb.trap, except for it tries to cause a page fault
via a call to an invalid pointer.  This can highlight differences between
a fault on data access vs. a fault on code call some CPUs might have.

This appeared as a test for a work \
Sponsored by: RiNet (Cronyx Plus LLC)
2006-06-18 12:27:59 +00:00
andre
f41df61805 Move all syncache related structures to tcp_syncache.c. They are only used
there.

This unbreaks userland programs that include tcp_var.h.

Discussed with:	rwatson
2006-06-18 12:26:11 +00:00
yar
2ace0191b7 Fix style while I'm here. 2006-06-18 12:13:49 +00:00
yar
e95f07384c The i386 "call" instruction works as follows: it pushes
the return address on the stack and only then "dereferences" %pc.
Therefore, in the case of a call to an invalid address, we arrive
to the trap handler with the invalid value in tf_eip.  This used
to prevent db_backtrace() from assigning the most recent and interesting
frame on the stack to the right spot in the right function, from
which the invalid call was attempted.

Try to detect and work around that by recovering the return address
from the stack.

The work-around requires the fault address be passed to db_backtrace().
Smuggle it as tf_err.

MFC after:	1 month
Sponsored by:	RiNet (Cronyx Plus LLC)
2006-06-18 12:07:00 +00:00