]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoClean up the rmlock(9) manual page:
hmp [Sat, 10 Nov 2007 06:04:46 +0000 (06:04 +0000)]
Clean up the rmlock(9) manual page:

    * Correct spelling and grammar
    * Re-structure sentences in BUGS section for legibility
    * Break long lines appropriately
    * Break lines at full stops
    * Add mdoc(9) commands where applicable
    * Remove superfluous .Ft in the SYNOPSIS section
    * Various other mdoc(9) fixes

16 years agoLimit total playback channels to just 1, for ALi M5451.
ariff [Sat, 10 Nov 2007 04:32:50 +0000 (04:32 +0000)]
Limit total playback channels to just 1, for ALi M5451.
The reliability of it's multi DAC / playback channels is
not that good. Enabling vchans make the bug more visible
since playback allocation will look for possible free
hardware channels first (i.e: the next DAC, the very first
has been consumed by vchan mixer) which in this case has
been proven faulty.

Reported / Tested by: Sascha Klauder
MFC after: 3 days

16 years agoxorg-printserver still exists in the ports tree but it's marked as
kensmith [Sat, 10 Nov 2007 04:01:41 +0000 (04:01 +0000)]
xorg-printserver still exists in the ports tree but it's marked as
depreciated and scheduled to be removed.

Confirmed by: kris
MFC after: 3 days

16 years ago- Fix a bug in sctp_calc_rwnd() which resulted in wrong rwnd predictions.
rrs [Sat, 10 Nov 2007 00:47:14 +0000 (00:47 +0000)]
- Fix a bug in sctp_calc_rwnd() which resulted in wrong rwnd predictions.
- Fix a signedness problem that shows up in some 64 bit platforms (macos).

MFC after: 1 week

16 years agoInstead of hardcoding md10 as the device node in the cd9660 example,
keramida [Fri, 9 Nov 2007 18:02:51 +0000 (18:02 +0000)]
Instead of hardcoding md10 as the device node in the cd9660 example,
use a trick submitted by Ruslan.

MFC after: 1 day

16 years agoFix a typo.
ru [Fri, 9 Nov 2007 16:31:47 +0000 (16:31 +0000)]
Fix a typo.

16 years ago- Fix documentation to match code. Specifically, -c doesn't have
ru [Fri, 9 Nov 2007 16:02:10 +0000 (16:02 +0000)]
- Fix documentation to match code.  Specifically, -c doesn't have
  to be specified together with either -u or -t to have an effect,
  and exit status of 2 is not possible after a Perl->C conversion.

- While here, fix markup.

16 years agopccard.conf is gone.
nyan [Fri, 9 Nov 2007 15:32:04 +0000 (15:32 +0000)]
pccard.conf is gone.

16 years agoFix numerous bugs when parsing options and arguments.
ru [Fri, 9 Nov 2007 15:14:08 +0000 (15:14 +0000)]
Fix numerous bugs when parsing options and arguments.

16 years agoFix build without INVARIANTS and update a comment to match
ru [Fri, 9 Nov 2007 11:04:36 +0000 (11:04 +0000)]
Fix build without INVARIANTS and update a comment to match
a change made in previous revision.

16 years agoClean up after last commit.
ru [Fri, 9 Nov 2007 09:25:36 +0000 (09:25 +0000)]
Clean up after last commit.

16 years agoTeach source installation shell script and sysinstall(8) about
ru [Fri, 9 Nov 2007 08:50:02 +0000 (08:50 +0000)]
Teach source installation shell script and sysinstall(8) about
the 'scompat' source dist that holds src/compat/.

Reported by: Mars G Miro

16 years agoRemove traces of vinum and replace with gvinum.
trhodes [Fri, 9 Nov 2007 00:50:08 +0000 (00:50 +0000)]
Remove traces of vinum and replace with gvinum.
Mention gstripe and gjournal.

16 years agoTeach ps(1) to parse pts TT values (i.e. '0', '1') for the -t flag.
jhb [Thu, 8 Nov 2007 22:31:28 +0000 (22:31 +0000)]
Teach ps(1) to parse pts TT values (i.e. '0', '1') for the -t flag.

MFC after: 1 week
Reported by: kris

16 years agoLink wpi(4) into the build.
benjsc [Thu, 8 Nov 2007 22:09:37 +0000 (22:09 +0000)]
Link wpi(4) into the build.

This includes:
    o mtree (for legal/intel_wpi)
    o manpage for i386/amd64 archs
    o module for i386/amd64 archs
    o NOTES for i386/amd64 archs

Approved by: mlaier (comentor)

16 years agoRemove an unneeded CFLAGS line
benjsc [Thu, 8 Nov 2007 22:02:38 +0000 (22:02 +0000)]
Remove an unneeded CFLAGS line

Approved by: mlaier (comentor)

16 years agoTurn off debug output, its been confusing users.
benjsc [Thu, 8 Nov 2007 21:57:08 +0000 (21:57 +0000)]
Turn off debug output, its been confusing users.

Approved by: mlaier (comentor)

16 years agoProvide a man page for wpi:
benjsc [Thu, 8 Nov 2007 21:54:42 +0000 (21:54 +0000)]
Provide a man page for wpi:
    Intel 3945abg wireless driver

Approved by: mlaier (comentor)

16 years agoA couple of optimizations to the last commit.
jhb [Thu, 8 Nov 2007 21:45:56 +0000 (21:45 +0000)]
A couple of optimizations to the last commit.

Submitted by: Christoph Mallon christoph mallon of gmx de

16 years agoWhitespace only.
njl [Thu, 8 Nov 2007 21:20:34 +0000 (21:20 +0000)]
Whitespace only.

16 years agoUse VM_FAULT_DIRTY to fault in pages for write access in
ups [Thu, 8 Nov 2007 19:35:36 +0000 (19:35 +0000)]
Use VM_FAULT_DIRTY to fault in pages for write access in
proc_rwmen.
Otherwise copy on write may create an anonymous page that is
not marked as dirty. Since  writing data to these pages
in this function also does not dirty these pages they may be
later discarded by the pagedaemon.

16 years agoetc/defaults/pccard.conf has been relegated to the scrapheap of
imp [Thu, 8 Nov 2007 17:43:13 +0000 (17:43 +0000)]
etc/defaults/pccard.conf has been relegated to the scrapheap of
history, note its newly minted obsolete status here.

16 years agoAnother vestige of OLDCARD that needs to be retired.
imp [Thu, 8 Nov 2007 17:41:35 +0000 (17:41 +0000)]
Another vestige of OLDCARD that needs to be retired.

Prodded by: jhb@

16 years agoTurn most ffs 'DIAGNOSTIC's into INVARIANTS.
obrien [Thu, 8 Nov 2007 17:21:51 +0000 (17:21 +0000)]
Turn most ffs 'DIAGNOSTIC's into INVARIANTS.

16 years agocorrect termination check doing amsdu de-aggregation
sam [Thu, 8 Nov 2007 17:11:40 +0000 (17:11 +0000)]
correct termination check doing amsdu de-aggregation

MFC after: 3 days

16 years agoMake it easier to add more ptys to the pty(4) driver:
jhb [Thu, 8 Nov 2007 15:51:52 +0000 (15:51 +0000)]
Make it easier to add more ptys to the pty(4) driver:
- Use unit2minor() and minor2unit() to generate minor numbers to support
  unit numbers higher than 255.
- Use simple string operations on the 'names' array rather than hard-coded
  constants and switch statements so that more ptys can be added by simply
  expanding the 'names' array.

MFC after: 1 week

16 years agoUpdate X11 dists for xorg-7.3 layout.
kensmith [Thu, 8 Nov 2007 15:40:40 +0000 (15:40 +0000)]
Update X11 dists for xorg-7.3 layout.

X-MFC-after: Insta-MFC may be coming so this can get into 6.3-BETA2.

16 years agoInitial checkin for rmlock (read mostly lock) a multi reader single writer
ups [Thu, 8 Nov 2007 14:47:55 +0000 (14:47 +0000)]
Initial checkin for rmlock (read mostly lock) a multi reader single writer
lock optimized for almost exclusive reader access. (see also rmlock.9)

TODO:
    Convert to per cpu variables linkerset as soon as it is available.
    Optimize UP (single processor)  case.

16 years agoAdd entries for the L2 cache-related functions for armv5.
cognet [Thu, 8 Nov 2007 13:19:08 +0000 (13:19 +0000)]
Add entries for the L2 cache-related functions for armv5.

Spotted out by: Rafal Jaworowski

16 years agoTwo minor improvements uncovered by work on upgrading between releases:
cperciva [Thu, 8 Nov 2007 13:06:38 +0000 (13:06 +0000)]
Two minor improvements uncovered by work on upgrading between releases:
* When installing updates, make sure that securelevel <= 0.  Otherwise
  we can't remove the schg flag from files.
* When preparing to download updates, check to see if we already have
  them sitting in the /files/ directory.  This saves bandwidth if users
  run "freebsd-update fetch" more than once without installing updates
  in between.

While I'm here, bump the copyright date.

MFC after: 3 days

16 years agoDocument the per-arch default value of kern.maxbcache.
ru [Thu, 8 Nov 2007 11:59:38 +0000 (11:59 +0000)]
Document the per-arch default value of kern.maxbcache.

16 years agoUse static storage-class specifier where appropriate.
dds [Thu, 8 Nov 2007 11:13:03 +0000 (11:13 +0000)]
Use static storage-class specifier where appropriate.
Found by: CScout

16 years agoMake function's definition follow its declared visibility.
dds [Thu, 8 Nov 2007 09:09:02 +0000 (09:09 +0000)]
Make function's definition follow its declared visibility.
Found by: CScout

16 years agoFix visibility of "inplace".
dds [Thu, 8 Nov 2007 08:57:51 +0000 (08:57 +0000)]
Fix visibility of "inplace".
Found by: CScout

16 years ago- Remove magic number and fit max rx buffer size accurately.
ariff [Thu, 8 Nov 2007 08:25:58 +0000 (08:25 +0000)]
- Remove magic number and fit max rx buffer size accurately.
- Patch registers CR47 and CR157 on devices that require it.
- Fix power calibration setting on ZD1211B.

Obtained from: OpenBSD

- Fix multicast transfer by properly reprogram multicast global
  hash table, which in turns fix promiscuous mode and IPv6
  autoconfiguration / local networking.

Reviewed by: sam, Weongyo Jeong
Tested using: Aztech WL230 , Belkin F5D7050, Unicorn WL-54G,
              3COM 3CRUSB10075
MFC after: 1 week

16 years agosetenv(3) sets errno on failure, use warn() instead
kevlo [Thu, 8 Nov 2007 01:24:31 +0000 (01:24 +0000)]
setenv(3) sets errno on failure, use warn() instead

Pointed out by: ru

16 years agoPut back devstat support that was lost during GEOM transition. Initially,
sobomax [Wed, 7 Nov 2007 22:47:41 +0000 (22:47 +0000)]
Put back devstat support that was lost during GEOM transition. Initially,
I've tried to move md(4) to use geom_disk class, like real disks do, but
this requires major rework of some of the existing features such as
configuration dumping for example. Therefore just putting devstat support
directly into md(4) seems to be optimal solution.

Now you can see md(4) stats in `systat -vm' again.

MFC after: 2 weeks

16 years agoChange unused 'user_wait' argument to 'timo' argument, which will be
pjd [Wed, 7 Nov 2007 21:56:58 +0000 (21:56 +0000)]
Change unused 'user_wait' argument to 'timo' argument, which will be
used to specify timeout for msleep(9).

Discussed with: alc
Reviewed by: alc

16 years agoasmc build infrastructure.
rpaulo [Wed, 7 Nov 2007 20:12:21 +0000 (20:12 +0000)]
asmc build infrastructure.

Approved by: njl (mentor)
Reviewed by: njl (mentor)

16 years agoConnect asmc to the build infrastructure.
rpaulo [Wed, 7 Nov 2007 20:08:15 +0000 (20:08 +0000)]
Connect asmc to the build infrastructure.

Approved by:  njl (mentor)
Reviewed by: njl (mentor)

16 years agoDriver for the Apple System Management Console (SMC). This hardware is
rpaulo [Wed, 7 Nov 2007 20:05:13 +0000 (20:05 +0000)]
Driver for the Apple System Management Console (SMC). This hardware is
present on the MacBook, MacBook Pro, and Intel MacMini.

This driver exports information via sysctl in its private sysctl tree
dev.asmc.*. You can get information about temperatures, fan speeds, the
keyboard light sensor and the Sudden Motion Sensor (SMS).
The SMS is very useful to park the disk heads when the laptop is
moved. Basically, the SMS is setup so that, under movement, we get an
interrupt on irq 6 and a devd notification is sent.

Sponsored by:  Google Summer of Code 2007
Approved by:  njl (mentor)
Reviewed by:  attilio (previous version, but very similar), jhb (interrupt
   specific review)

16 years agoImplement LINUX_SIOCGIFCOUNT and LINUX_SIOCGIFINDEX/LINUX_SIOGIFINDEX.
kib [Wed, 7 Nov 2007 16:42:52 +0000 (16:42 +0000)]
Implement LINUX_SIOCGIFCOUNT and LINUX_SIOCGIFINDEX/LINUX_SIOGIFINDEX.

LINUX_SIOCGIFCOUNT just returns 0 since it is not implemented in the
Linux 2.6.16.

LINUX_SIOCGIFINDEX/LINUX_SIOGIFINDEX are mapped to the FreeBSD native
SIOCGIFINDEX.

Tested by: Peter Kostouros <kpeter@melbpc.org.au>
Reviewed by: brooks, rpaulo (on net@)
Submitted by: rdivacky
MFC after: 1 week

16 years ago- Include runefile.h for _CACHED_RUNES
rafan [Wed, 7 Nov 2007 14:46:22 +0000 (14:46 +0000)]
- Include runefile.h for _CACHED_RUNES

16 years ago- Include runetype.h for _RuneLocale_
rafan [Wed, 7 Nov 2007 14:45:48 +0000 (14:45 +0000)]
- Include runetype.h for _RuneLocale_

16 years agoWarn if kmem_map size is set to less than 512MB. Previous warning was a bit
pjd [Wed, 7 Nov 2007 14:44:31 +0000 (14:44 +0000)]
Warn if kmem_map size is set to less than 512MB. Previous warning was a bit
pointless, because default is set to something around 300MB and also
insufficient.

MFC after: 3 days

16 years agodevinfo(8) manual page refers to pciconfr(8). Add back reference for
marck [Wed, 7 Nov 2007 12:55:51 +0000 (12:55 +0000)]
devinfo(8) manual page refers to pciconfr(8).  Add back reference for
completeness.

MFC After: 2 weeks

16 years agoRevise the markup.
ru [Wed, 7 Nov 2007 12:08:03 +0000 (12:08 +0000)]
Revise the markup.

16 years agoAdd missing <stdlib.h> for exit()
kevlo [Wed, 7 Nov 2007 10:57:35 +0000 (10:57 +0000)]
Add missing <stdlib.h> for exit()

16 years agoCleanup of userland __P use
kevlo [Wed, 7 Nov 2007 10:53:41 +0000 (10:53 +0000)]
Cleanup of userland __P use

16 years agoCheck the correct variables for malloc failures.
matteo [Wed, 7 Nov 2007 10:21:36 +0000 (10:21 +0000)]
Check the correct variables for malloc failures.

Submitted by: Michiel Boland <michiel@boland.org>

16 years agoCatch up to changes in the ports tree since last release
kris [Wed, 7 Nov 2007 09:11:45 +0000 (09:11 +0000)]
Catch up to changes in the ports tree since last release

16 years agoMarkup nits.
ru [Wed, 7 Nov 2007 07:59:38 +0000 (07:59 +0000)]
Markup nits.

16 years agoFix markup.
ru [Wed, 7 Nov 2007 07:56:57 +0000 (07:56 +0000)]
Fix markup.

16 years agoUpdate after import
ache [Wed, 7 Nov 2007 04:44:11 +0000 (04:44 +0000)]
Update after import

16 years agoMerge after importing official patches 3-7
ache [Wed, 7 Nov 2007 04:42:20 +0000 (04:42 +0000)]
Merge after importing official patches 3-7

16 years agoThis commit was generated by cvs2svn to compensate for changes in r173403,
ache [Wed, 7 Nov 2007 04:34:03 +0000 (04:34 +0000)]
This commit was generated by cvs2svn to compensate for changes in r173403,
which included commits to RCS files with non-trunk default branches.

16 years agoOfficial patches 3-7
ache [Wed, 7 Nov 2007 04:34:03 +0000 (04:34 +0000)]
Official patches 3-7

16 years agoAfter discussions with grog@ (mentor):
edwin [Wed, 7 Nov 2007 01:14:28 +0000 (01:14 +0000)]
After discussions with grog@ (mentor):

- When none of the directories in FORTUNE_PATH exist, abort instead
  of using the default FORTDIR.
- Little stylify changes.
- Add documentation about the FORTUNE_PATH variable.

MFC after: 1 week

16 years agos/maybe/may be/
danger [Tue, 6 Nov 2007 23:12:53 +0000 (23:12 +0000)]
s/maybe/may be/

MFC after: 3 days

16 years ago1) dummynet_io() declaration has changed.
oleg [Tue, 6 Nov 2007 23:01:42 +0000 (23:01 +0000)]
1) dummynet_io() declaration has changed.
2) Alter packet flow inside dummynet: allow certain packets to bypass
dummynet scheduler. Benefits are:

- lower latency: if packet flow does not exceed pipe bandwidth, packets
  will not be (up to tick) delayed (due to dummynet's scheduler granularity).
- lower overhead: if packet avoids dummynet scheduler it shouldn't reenter ip
  stack later. Such packets can be fastforwarded.
- recursion (which can lead to kernel stack exhaution) eliminated. This fix
  long existed panic, which can be triggered this way:
   kldload dummynet
sysctl net.inet.ip.fw.one_pass=0
ipfw pipe 1 config bw 0
for i in `jot 30`; do ipfw add 1 pipe 1 icmp from any to any; done
ping -c 1 localhost

3) Three new sysctl nodes are added:
net.inet.ip.dummynet.io_pkt - packets passed to dummynet
net.inet.ip.dummynet.io_pkt_fast -  packets avoided dummynet scheduler
net.inet.ip.dummynet.io_pkt_drop - packets dropped by dummynet

P.S. Above comments are true only for layer 3 packets. Layer 2 packet flow
     is not changed yet.

MFC after: 3 month

16 years agostyle(9) cleanup.
oleg [Tue, 6 Nov 2007 22:53:41 +0000 (22:53 +0000)]
style(9) cleanup.

MFC after: 3 month

16 years agoAnother typo in the previous commited fix. That makes four typos
edwin [Tue, 6 Nov 2007 22:40:16 +0000 (22:40 +0000)]
Another typo in the previous commited fix. That makes four typos
in one fortune of only 32 words. Based on that single ratio, there
are 50453 more typos in the rest of the fortunes file....

Noticed by: Nate Lawson <nate@root.org>
MFC after: 1 week

16 years agogames/fortune: add FORTUNE_PATH env var, so ports of fortunes can work sanely
edwin [Tue, 6 Nov 2007 22:03:24 +0000 (22:03 +0000)]
games/fortune: add FORTUNE_PATH env var, so ports of fortunes can work sanely

This patch adds an environment variable FORTUNE_PATH, which
works like PATH for fortune files.

PR: bin/36867
Submitted by: Alan Eldridge <ports@geeksrus.net>

[patch] fortune -e implementation bug

Fix the behaviour of "-e file1 file2" to equally pick them
instead of only picking the first one.

PR: bin/70182
Submitted by: Martin Kulas <coolaz@web.de>

MFC after: 1 week
Approved by: grog (mentor)

16 years ago[patch] Fortune typos, around line 57346 of fortunes datfile
edwin [Tue, 6 Nov 2007 21:55:56 +0000 (21:55 +0000)]
[patch] Fortune typos, around line 57346 of fortunes datfile

Small typos -- saw in a fortune today that 'equipped' is
spelled 'equpped'. Also, 'vacuum' is spelled 'vaccuum'.
Corrected diff provided below.

PR: misc/112049
Submitted by: Seth Hieronymus <shieronymus@speakeasy.net>
MFC after: 1 week

16 years agoIn _pthread_key_create() ensure that libthr is initialized. This
marius [Tue, 6 Nov 2007 21:50:43 +0000 (21:50 +0000)]
In _pthread_key_create() ensure that libthr is initialized. This
fixes a NULL-dereference of curthread when libstdc+ initializes
the exception handling globals on archs we can't use GNU TLS due
to lack of support in binutils 2.15 (i.e. arm and sparc64), yet,
thus making threaded C++ programs compiled with GCC 4.2.1 work
again on these archs.

Reviewed by: davidxu
MFC after: 3 days

16 years agoCheck return value for setenv()
kevlo [Tue, 6 Nov 2007 10:35:50 +0000 (10:35 +0000)]
Check return value for setenv()

16 years agoCheck wep flag in *_tx_mgt since we need to encrypt some management frame
kevlo [Tue, 6 Nov 2007 07:30:12 +0000 (07:30 +0000)]
Check wep flag in *_tx_mgt since we need to encrypt some management frame
in case of shared authentification.

Obtained from: NetBSD

16 years agoCorrect typo.
grog [Tue, 6 Nov 2007 02:42:00 +0000 (02:42 +0000)]
Correct typo.

MFC after: 2 weeks

16 years agoApparently some NVIDIA NICs store ethernet address in reverse order
yongari [Tue, 6 Nov 2007 01:01:38 +0000 (01:01 +0000)]
Apparently some NVIDIA NICs store ethernet address in reverse order
while other variants have inorder ethernet address for the same
chipset. Override ethernet address ordering if we already know how
it was stored. This fixes the use of inversed ethernet address on
MCP67.

Submitted by: ariff
MFC after: 3 days

16 years ago- Add ZFS-support to fstat(1). This allows ZFS-filsystems to be including in
lulf [Mon, 5 Nov 2007 23:15:03 +0000 (23:15 +0000)]
- Add ZFS-support to fstat(1). This allows ZFS-filsystems to be including in
  the open file-listing. It is added as a separate source file, so it can
  respect WITH_/WITHOUT_CDDL as compile-flags.
- The warnlevel of the Makefile was decreased to quell solaris #pragma
  warnings.
- Expect that fstat(1) doesn't work with kernel compiled with
  DEBUG_VFS_LOCKS/DEBUG_LOCKS for now.

Approved by: pjd (mentor)

16 years agoSwitch arm to -O until the -O2 issues are resolved.
cognet [Mon, 5 Nov 2007 23:08:34 +0000 (23:08 +0000)]
Switch arm to -O until the -O2 issues are resolved.

MFC After: 3 days

16 years agoRemove unused header.
pjd [Mon, 5 Nov 2007 22:18:34 +0000 (22:18 +0000)]
Remove unused header.

MFC after: 3 days

16 years agoIf setting a state to anything but open state, close access to vdev.
pjd [Mon, 5 Nov 2007 21:30:48 +0000 (21:30 +0000)]
If setting a state to anything but open state, close access to vdev.
This fixes replacing drive in place, eg. zpool replace tank da1 da1.
Before it complained that device is already open.

MFC after: 1 week

16 years agoDo not pass an address to local stack variable to usbd_set_report_async.
kan [Mon, 5 Nov 2007 19:51:12 +0000 (19:51 +0000)]
Do not pass an address to local stack variable to usbd_set_report_async.
Allocate space in keyboard state structure instead to prevent random byte
from possibly overwritten stack location frombeing shoved into USB device
when transfer actually takes place.

This fixes at least one instance of LEDs not working with USB keyboards.

16 years agoRemove "zfs:" prefix from lock and condvar names and also skip non-letter
pjd [Mon, 5 Nov 2007 18:40:55 +0000 (18:40 +0000)]
Remove "zfs:" prefix from lock and condvar names and also skip non-letter
characters (mostly "&"). Because top(1) shows only first six characters of
wait channel, without this change we saw only one meaningful character.

Requested by: kris & others
MFC after: 1 week

16 years agoAdd comments explaining why all stores updating a non-kernel page table
alc [Mon, 5 Nov 2007 18:13:34 +0000 (18:13 +0000)]
Add comments explaining why all stores updating a non-kernel page table
must be globally performed before calling any of the TLB invalidation
functions.

With one exception, on amd64, this requirement was already met.  Fix this
one case.  Also, as a clarification, change an existing atomic op into a
release.  (Suggested by: jhb)

Reported and reviewed by: ups
MFC after: 3 days

16 years agoCorrect handling of off-channel frames:
sam [Mon, 5 Nov 2007 17:24:28 +0000 (17:24 +0000)]
Correct handling of off-channel frames:
o do not override the home channel recorded for the sta when the frame is
  received off-channel; this fixes a problem where we might think the sta
  was operating on the channel the frame was received on causing association
  requests to be ignored/rejected (likely cause of kern/99036)
o don't include rssi of off-channel frames in the avg rssi used to select
  a bss; this gives us a better estimate of the signal we will see for the
  station when on-channel

PR: kern/99036
Found by: Yubin Gong
Reviewed by: sephe
MFC after: 1 week

16 years agoFix NOP message sending in ciss_periodic() which causes panic with
iwasaki [Mon, 5 Nov 2007 13:54:23 +0000 (13:54 +0000)]
Fix NOP message sending in ciss_periodic() which causes panic with
option INVARIANTS.

Reviewed by: simokawa
Tested by: noriyosi_kawano
MFC after: 1 week

16 years agoRemove unused variable td from sched_idletd().
rwatson [Mon, 5 Nov 2007 12:01:12 +0000 (12:01 +0000)]
Remove unused variable td from sched_idletd().

MFC after: 3 days
Found with: Coverity Prevent(tm)
CID: 3561

16 years agoInitial Import of wpi driver based on p4 changeset 128641.
benjsc [Mon, 5 Nov 2007 11:47:19 +0000 (11:47 +0000)]
Initial Import of wpi driver based on p4 changeset 128641.

This import includes:
   o wpi Wireless driver for the Intel 3945 Wireless Lan Controller (802.11abg) (sys/dev/wpi)
   o Intel firmware revision 2.14.4 & associated LICENSE (sys/dev/contrib/wpi, sys/contrib/dev/wpi/LICENSE)
   o wpifw Firmware driver (sys/modules/wpifw)

Approved by: mlaier, sam (co-mentors)

16 years agoFix for the panic("vm_thread_new: kstack allocation failed") and
kib [Mon, 5 Nov 2007 11:36:16 +0000 (11:36 +0000)]
Fix for the panic("vm_thread_new: kstack allocation failed") and
silent NULL pointer dereference in the i386 and sparc64 pmap_pinit()
when the kmem_alloc_nofault() failed to allocate address space. Both
functions now return error instead of panicing or dereferencing NULL.

As consequence, vmspace_exec() and vmspace_unshare() returns the errno
int. struct vmspace arg was added to vm_forkproc() to avoid dealing
with failed allocation when most of the fork1() job is already done.

The kernel stack for the thread is now set up in the thread_alloc(),
that itself may return NULL. Also, allocation of the first process
thread is performed in the fork1() to properly deal with stack
allocation failure. proc_linkup() is separated into proc_linkup()
called from fork1(), and proc_linkup0(), that is used to set up the
kernel process (was known as swapper).

In collaboration with: Peter Holm
Reviewed by: jhb

16 years agoAdd missing locking for SBus controllers.
scottl [Mon, 5 Nov 2007 11:22:18 +0000 (11:22 +0000)]
Add missing locking for SBus controllers.

16 years agoThe intent of the freeing the (zeroed) page in vm_page_cache() for
kib [Mon, 5 Nov 2007 10:25:12 +0000 (10:25 +0000)]
The intent of the freeing the (zeroed) page in vm_page_cache() for
default object rather than cache it was to have
vm_pager_has_page(object, pindex, ...) == FALSE to imply that there is
no cached page in object at pindex. This allows to avoid explicit
checks for cached pages in vm_object_backing_scan().

For now, we need the same bandaid for the swap object, otherwise both
the vm_page_lookup() and the pager can report that there is no page at
offset, while page is stored in the cache. Also, this fixes another
instance of the KASSERT("object type is incompatible") failure in the
vm_page_cache_transfer().

Reported and tested by: Peter Holm
Reviewed by: alc
MFC after: 3 days

16 years agoChange wpa_supplicant to down the interface at the start of the init routine.
thompsa [Mon, 5 Nov 2007 06:13:07 +0000 (06:13 +0000)]
Change wpa_supplicant to down the interface at the start of the init routine.
wpa_supplicant expects that it has exclusive access to the net80211 state so
when its starts poking in the WEP/WPA settings and the card is already
scanning it can cause net80211 to try and associate incorrectly with a
protected AP.

This is an inconvenience for firmware based cards such as iwi where it can be
sent an auth instruction with incomplete security info and cause a firmware
error.

Remove the 'ifconfig up' from network.subr since wpa_supplicant will
immediately down the interface again.

Reported by: Guy Helmer (and others)
Reviewed by: sam, brooks, avatar
MFC after: 3 days

16 years agosendmail 8.14.2 has been imported.
gshapiro [Mon, 5 Nov 2007 00:24:05 +0000 (00:24 +0000)]
sendmail 8.14.2 has been imported.

16 years agoUpdate for sendmail 8.14.2
gshapiro [Mon, 5 Nov 2007 00:21:32 +0000 (00:21 +0000)]
Update for sendmail 8.14.2

MFC after: 1 week

16 years agoForced commit to .mc files to force creation of new .cf files for mergemaster.
gshapiro [Mon, 5 Nov 2007 00:18:06 +0000 (00:18 +0000)]
Forced commit to .mc files to force creation of new .cf files for mergemaster.

16 years agoResolve conflicts from sendmail 8.14.2 import
gshapiro [Mon, 5 Nov 2007 00:09:45 +0000 (00:09 +0000)]
Resolve conflicts from sendmail 8.14.2 import

16 years agoThis commit was generated by cvs2svn to compensate for changes in r173340,
gshapiro [Mon, 5 Nov 2007 00:04:21 +0000 (00:04 +0000)]
This commit was generated by cvs2svn to compensate for changes in r173340,
which included commits to RCS files with non-trunk default branches.

16 years agoImport sendmail 8.14.2
gshapiro [Mon, 5 Nov 2007 00:04:21 +0000 (00:04 +0000)]
Import sendmail 8.14.2

16 years agoRemove a staled comment, NPE-C should work fine.
cognet [Sun, 4 Nov 2007 21:54:52 +0000 (21:54 +0000)]
Remove a staled comment, NPE-C should work fine.

Reviewed by: sam

16 years agoAllow search for any UUID entered by user.
emax [Sun, 4 Nov 2007 21:24:33 +0000 (21:24 +0000)]
Allow search for any UUID entered by user.

MFC after: 3 days

16 years agoGarbage collect now-unused nfsrv_setcred() -- it's not only unused, but
rwatson [Sun, 4 Nov 2007 19:20:33 +0000 (19:20 +0000)]
Garbage collect now-unused nfsrv_setcred() -- it's not only unused, but
also a purveyor of unfortunate (and now unsupported) direct frobbing of
struct ucred.

MFC after: 3 days

16 years agoAdd support for trimmed down version of ATI SB600 AC97 audio
ariff [Sun, 4 Nov 2007 16:03:10 +0000 (16:03 +0000)]
Add support for trimmed down version of ATI SB600 AC97 audio
controller.

URL: http://www.ipc2u.de/catalog/P/PE/36486.html
PR: kern/117813
Submitted by: Klaus Mayr
MFC after: 1 day

16 years agoDon't mask the address in inet_makenetandmask() according to what class
mtm [Sun, 4 Nov 2007 11:12:40 +0000 (11:12 +0000)]
Don't mask the address in inet_makenetandmask() according to what class
it appears to be in: there is also CIDR.

Noticed by: tegge

16 years agoAdd an option to limit the number of source MACs that can be behind a bridge
thompsa [Sun, 4 Nov 2007 08:32:27 +0000 (08:32 +0000)]
Add an option to limit the number of source MACs that can be behind a bridge
interface.  Once the limit is reached packets with unknown source addresses are
dropped until an existing host cache entry expires or is removed.  Useful to
use with the STICKY cache option.

Sponsored by: miniSuperHappyDevHouse NZ

16 years agoMFV of tzdata2007i
edwin [Sun, 4 Nov 2007 07:06:19 +0000 (07:06 +0000)]
MFV of tzdata2007i

Changes in Cuba and Syria.

16 years agoo Build geom for all platforms.
marcel [Sun, 4 Nov 2007 00:44:10 +0000 (00:44 +0000)]
o  Build geom for all platforms.
o  Don't build bsdlabel for ia64.
o  Don't build fdisk and gpt for ia64.

16 years agoAllow building of a special rescue version of geom that
marcel [Sun, 4 Nov 2007 00:32:54 +0000 (00:32 +0000)]
Allow building of a special rescue version of geom that
has a subset of the classes compiled-in.

16 years agofix build: when usb was enabled wireless drivers were brought in so
sam [Sat, 3 Nov 2007 19:26:49 +0000 (19:26 +0000)]
fix build: when usb was enabled wireless drivers were brought in so
remove the nodevice lines that elided wlan support