]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
12 years agoMFC r234782:
kib [Sun, 13 May 2012 13:57:53 +0000 (13:57 +0000)]
MFC r234782:
Add src.conf option WITH_SHARED_TOOLCHAIN to enable building the
toolchain binaries as dynamically linked.  Option is disabled by
default.

MFC r235152 (by imp):
Make is part of the bootstrap path, so we need to guard against this
not being defined.  Otherwise we don't make a new make when the old
make is incompatible.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235398 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: r234742
rmacklem [Sun, 13 May 2012 13:35:50 +0000 (13:35 +0000)]
MFC: r234742
It was reported via email that some non-FreeBSD NFS servers
do not include file attributes in the reply to an NFS create RPC
under certain circumstances.
This resulted in a vnode of type VNON that was not usable.
This patch adds an NFS getattr RPC to nfs_create() for this case,
to fix the problem. It was tested by the person that reported
the problem and confirmed to fix this case for their server.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235397 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234840:
kib [Sun, 13 May 2012 12:50:42 +0000 (12:50 +0000)]
MFC r234840:
Split the symlook_obj1 into a loop iterating over the ELF object symbol
hash elements, and a helper matched_symbol() which match the given hash
entry and request, performing needed type and version checks.

MFC r234841:
Add GNU hash support for rtld.

MFC r235054:
Work around a situation where symlook_obj() could be called for the
object for which digest_dynamic1() was not done yet. Just return
EINVAL and do not try to dereference NULL buckets hash array.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235396 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC 235210
sbruno [Sun, 13 May 2012 10:31:08 +0000 (10:31 +0000)]
MFC 235210

  Modify the binding of queues to attach to as many CPUs
  as possible when using more than one igb(4) adapter.  This
  means that queues will not be bound to the same CPUs if
  there are more CPUs availble.

  This is only applicable to a system that has multiple interfaces.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235393 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235069:
mav [Sun, 13 May 2012 01:59:50 +0000 (01:59 +0000)]
MFC r235069:
Fix `gmultipath configure` for big-endian machines.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235386 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235209 r235227:
eadler [Sun, 13 May 2012 01:29:49 +0000 (01:29 +0000)]
MFC r235209 r235227:
Add a few new tips and update some old ones to more modern commands

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235382 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234711, r234756-234759, r234786:
bschmidt [Sat, 12 May 2012 08:22:41 +0000 (08:22 +0000)]
MFC r234711, r234756-234759, r234786:

r234711:
fix EAP server support after the 0.7.3 import:
- eap_xxx.c files have been renamed to eap_server_xxx.c
- additional crypto files are required for some options
- EAP_MD5 and EAP_GTC is now enabled by default to match vendor config
- move each file on its own line to hopefully make further diffs easier
  to read

EAP_SERVER is now enabled by default. Fiddling with HOSTAPD_CFLAGS in
src.conf is no longer required to get a basic WPA-EAP/radius setup
running. [1]

r234756-234758:
- Follow up r234711 and do same for the supplicant, one file/option per
  line. While here merge the options which are always enabled.
- enable EAP_GTC and EAP_OTP to match upstream's default configuration
- not only the file names have changed from eap_xxx.c to eap_server_xxx.c,
  the defines too

r234759:
Move crypto stuff into a common Makefile.  While here fix the
WITHOUT_OPENSSL build by using the wpa's internal crypto support if
openssl is not available, this allows us to unconditionally enable
EAP support.

r234786:
Fix WITHOUT_EXAMPLES build:
While removing unnecessary entries from .PATH.c I missed that for the
examples WPA_SUPPLICANT_DISTDIR/HOSTAPD_DISTDIR is explicitly added to
.PATH.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235328 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r232496:
eadler [Sat, 12 May 2012 00:55:02 +0000 (00:55 +0000)]
MFC r232496:
Fix a variety of grammar nits and errors

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235313 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235208:
eadler [Sat, 12 May 2012 00:49:14 +0000 (00:49 +0000)]
MFC r235208:
make it easier for users used to a VCS that allows up to be a shortcut
for update.

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235310 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235205:
eadler [Sat, 12 May 2012 00:47:21 +0000 (00:47 +0000)]
MFC r235205:
Document the -c option in --help output

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235309 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235203:
eadler [Sat, 12 May 2012 00:43:14 +0000 (00:43 +0000)]
MFC r235203:
fix spacing in mtree file

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235304 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235202:
eadler [Sat, 12 May 2012 00:40:44 +0000 (00:40 +0000)]
MFC r235202:
Remove reference to non-existent FreeBSD Security Architecture

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235303 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233961,234074,234105,234564,234723,234989,235231-235232:
attilio [Fri, 11 May 2012 04:10:23 +0000 (04:10 +0000)]
MFC r233961,234074,234105,234564,234723,234989,235231-235232:
- Fix a bug in x86 and sparc64 where the intr cpu mask does only
  enables the BSP.
- Remove the SMP constraints for intr_add_cpu

git-svn-id: svn://svn.freebsd.org/base/stable/9@235260 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235033:
ae [Fri, 11 May 2012 04:02:17 +0000 (04:02 +0000)]
MFC r235033:
  Don't ignore start offset value when user specifies it together
  with alignment.

  PR: bin/167567
  Tested by: Warren Block

git-svn-id: svn://svn.freebsd.org/base/stable/9@235258 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234138:
emaste [Fri, 11 May 2012 01:24:16 +0000 (01:24 +0000)]
MFC r234138:

  Support percent-encoded user and password

  RFC 1738 specifies that any ":", "@", or "/" within a user name or
  password in a URL is percent-encoded, to avoid ambiguity with the use
  of those characters as URL component separators.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235253 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoAdded forgotten r234867,234944 mergeinfo
daichi [Thu, 10 May 2012 22:36:01 +0000 (22:36 +0000)]
Added forgotten r234867,234944 mergeinfo

git-svn-id: svn://svn.freebsd.org/base/stable/9@235249 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: 234867 and 234944
daichi [Thu, 10 May 2012 20:35:50 +0000 (20:35 +0000)]
MFC: 234867 and 234944

- fixed a vnode lock hang-up issue.
- fixed an incorrect lock status issue.
- fixed an incorrect lock issue of unionfs root vnode removed.
  (pointed out by keith)
- fixed an infinity loop issue.
  (pointed out by dumbbell)
- changed to do LK_RELEASE expressly when unlocked.
- fixed a unionfs_readdir math issue

Submitted by: ozawa@ongs.co.jp, Matthew Fleming <mfleming@isilon.com>

git-svn-id: svn://svn.freebsd.org/base/stable/9@235243 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234981:
kib [Thu, 10 May 2012 10:16:21 +0000 (10:16 +0000)]
MFC r234981:
Move the code to call the callout callback into the helper function
softclock_call_cc(). While there, move some common code to callout_cc_del().

git-svn-id: svn://svn.freebsd.org/base/stable/9@235221 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234952:
kib [Thu, 10 May 2012 10:02:56 +0000 (10:02 +0000)]
MFC r234952:
Mark the migrating callouts with CALLOUT_DFRMIGRATION flag. The flag is
cleared by callout_stop_safe() when the function detects a migration,
besides returning the success. The softclock() rechecks the flag for
migrating callout and cancels its execution if the flag was cleared
meantime.

PR: misc/166340

git-svn-id: svn://svn.freebsd.org/base/stable/9@235220 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235099:
kib [Wed, 9 May 2012 14:28:21 +0000 (14:28 +0000)]
MFC r235099:
Add definition for the -z nodefaultlib flag.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235177 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235091:
tuexen [Wed, 9 May 2012 14:27:42 +0000 (14:27 +0000)]
MFC r235091:
Address clang warnings.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235176 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235081:
tuexen [Wed, 9 May 2012 14:25:15 +0000 (14:25 +0000)]
MFC r235081:
Add support for the sac_info field in struct sctp_assoc_change
as required by RFC 6458.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235175 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235077:
tuexen [Wed, 9 May 2012 14:19:06 +0000 (14:19 +0000)]
MFC r235077:
Remove debug code.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235173 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235075:
tuexen [Wed, 9 May 2012 14:15:59 +0000 (14:15 +0000)]
MFC r235075:
Add support for SCTP_SEND_FAILED_EVENT as required by RFC 6458.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235172 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235066:
tuexen [Wed, 9 May 2012 14:12:08 +0000 (14:12 +0000)]
MFC r235066:
Provide the flags in the SCTP stream reconfig related notification
as specified in RFC 6525.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235171 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235064:
tuexen [Wed, 9 May 2012 14:07:12 +0000 (14:07 +0000)]
MFC r235064:
Honor SCTP_ENABLE_STREAM_RESET socket option when processing incoming
requests. Fix also the provided result in the response and use names
as specified in RFC 6525.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235170 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235057:
tuexen [Wed, 9 May 2012 14:03:50 +0000 (14:03 +0000)]
MFC r235057:
Do error checking for the SCTP_RESET_STREAMS, SCTP_RESET_ASSOC,
and SCTP_ADD_STREAMS socket options as specified by RFC 6525.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235169 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235021:
tuexen [Wed, 9 May 2012 14:00:58 +0000 (14:00 +0000)]
MFC r235021:
Add support for the SCTP_ENABLE_STREAM_RESET socket option to
getsockopt(). This improves the support of RFC 6525.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235168 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235009:
tuexen [Wed, 9 May 2012 13:57:11 +0000 (13:57 +0000)]
MFC r235009:
Add support for SCTP_STREAM_CHANGE_EVENT, SCTP_ASSOC_RESET_EVENT as
required by RFC 6525. This also fixes SCTP_STREAM_RESET_EVENT.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235167 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234997:
tuexen [Wed, 9 May 2012 13:52:24 +0000 (13:52 +0000)]
MFC r234997:
Remove debug output.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235166 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234996:
tuexen [Wed, 9 May 2012 13:47:21 +0000 (13:47 +0000)]
MFC r234996:
Call panic() only under INVARIANTS.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235165 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234995:
tuexen [Wed, 9 May 2012 13:42:52 +0000 (13:42 +0000)]
MFC r234995:
Use SCTP_PRINTF() instead of printf() in all SCTP sources.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235164 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: r234932
pho [Wed, 9 May 2012 08:18:22 +0000 (08:18 +0000)]
MFC: r234932

Added D_TRACKCLOSE to sndstat_cdevsw to fix the situation when
another process is in open() or stat() for the device node, then
close() from the owning process does not result in cdevsw close
method call. This fixes the pemanent "Device busy" seen.

Changed the sndstat_lock from mutex to sx.  This allows to extend
the region covered by the lock, to include the uiomove() call in
sndstat_read() and bufptr increment. This fixes the "panic:
sbuf_put_byte called with finished or corrupt sbuf" seen.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235157 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234935:
eadler [Wed, 9 May 2012 00:56:51 +0000 (00:56 +0000)]
MFC r234935:
Prefer the use of csup to cvsup when talking about the binary.

PR: docs/167459
Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235149 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234772:
jlh [Tue, 8 May 2012 16:36:32 +0000 (16:36 +0000)]
MFC r234772:
  Import stdbuf(1) and the shared library it relies on.
  This tool changes the default buffering behaviour of standard
  stdio streams.

  It only works on dynamic binaries.  To make it work for static
  ones it would require cluttering stdio because there no single
  entry point.

  PR: 166660
  Reviewed by: current@, jhb
  Approved by: kib (mentor)
  MFC after: 1 week

MFC r234773:
  Fix small documentation mistakes.

  Submitted by: brueffer
  Approved by: kib (mentor)

MFC r234779:
  Use standard getopt(3) error message.

  Submitted by: jilles
  Approved by: kib (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235139 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235014: Rebuild fix and LBA calculation fix for ThunderBolt
ambrisko [Mon, 7 May 2012 19:17:09 +0000 (19:17 +0000)]
MFC r235014: Rebuild fix and LBA calculation fix for ThunderBolt
based cards.

MFC r235016: Some style improvements.

MFC r235040: Fix the returns in mfi_tbolt_sync_map_info that I added.

PR: 167226

git-svn-id: svn://svn.freebsd.org/base/stable/9@235135 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234104:
jh [Mon, 7 May 2012 15:30:53 +0000 (15:30 +0000)]
MFC r234104:

Apply changes from r233787 to ext2fs:

- Use more natural ip->i_flags instead of vap->va_flags in the final
  flags check.
- Style improvements.

No functional change intended.

MFC r234139:

Restore the blank line incorrectly removed in r234104.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235131 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234131:
eadler [Mon, 7 May 2012 12:19:49 +0000 (12:19 +0000)]
MFC r234131:
Return EBADF instead of EMFILE from dup2 when the second argument is
outside the range of valid file descriptors

PR: kern/164970
Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235125 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234951:
tuexen [Mon, 7 May 2012 10:50:26 +0000 (10:50 +0000)]
MFC r234951:

Fix another RFC 6458 issue. Spotted by Irene Ruengeler.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235124 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234832:
tuexen [Mon, 7 May 2012 10:46:26 +0000 (10:46 +0000)]
MFC r234832:
Add support for missing gauth_number_of_chunks field. This Bug was
found by Irene Ruengeler.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235123 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234313 r234315 r234322 r234351 r234870
bapt [Sun, 6 May 2012 22:50:07 +0000 (22:50 +0000)]
MFC r234313 r234315 r234322 r234351 r234870

bootstrap tool for pkgng.
it respects PACKAGESITE, PACKAGEROOT, and a new environment variable ABI (if a
user want to use a different API from the base one for its packages)
it has no man page on purpose to avoid hidding the pkg(8) man page from the
pkgng package.
for now uses pkgbeta.FreeBSD.org as default mirror to find its package
it respects MK_PKGTOOLS

Approved by: des (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235112 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233113:
bz [Sun, 6 May 2012 20:26:22 +0000 (20:26 +0000)]
MFC r233113:

 Hide kernel option ROUTETABLES evaluations in the implementation
 rather than the header file.  With this also move RT_MAXFIBS and
 RT_NUMFIBS into the implemantion to avoid further usage in other
 code. rt_numfibs is all that should be needed.

 This allows users to change the number of FIBs from 1..RT_MAXFIBS(16)
 dynamically using the tunable without the need to change the kernel
 config for the maximum anymore.  This means that the multi-FIB
 feature is now fully available with GENERIC kernels.
 The kernel option ROUTETABLES can still be used to set the default
 numbers of FIBs in absence of the tunable.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235103 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234601:
mav [Sun, 6 May 2012 15:55:01 +0000 (15:55 +0000)]
MFC r234601:
Add sos@ copyrights to RAID metadata modules, respecting his efforts in
decoding metadata formats in ataraid(4) code.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235092 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234820:
eadler [Sun, 6 May 2012 14:22:30 +0000 (14:22 +0000)]
MFC r234820:
 pread(2) might fail with EBUSY, so document it

PR: docs/167201
Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235088 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234821:
eadler [Sun, 6 May 2012 14:15:32 +0000 (14:15 +0000)]
MFC r234821:
Add support for:
Olympus FE-210 camera
LG UP3S MP3 player
Laser MP3-2GA13 MP3

PR: usb/119201
Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235085 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234819:
eadler [Sun, 6 May 2012 14:10:56 +0000 (14:10 +0000)]
MFC r234819:
Allow users of gprof to get per run output files (using the pid)

PR: bin/99800
Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235082 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r230993,230994,230995,230999,231003,231026,231046,231149,231908:
nwhitehorn [Sat, 5 May 2012 16:41:17 +0000 (16:41 +0000)]
MFC r230993,230994,230995,230999,231003,231026,231046,231149,231908:
Reduce code duplication in Open Firmware based PCI bus drivers, implement
infrastructure for NEW_PCIB, and switch to using NEW_PCIB by default.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235060 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234572
melifaro [Sat, 5 May 2012 11:33:48 +0000 (11:33 +0000)]
MFC r234572

Do not require radix write lock to be held while dumping route table
via sysctl(4) interface. This permits router not to stop forwarding
packets while route table is being written to user-supplied buffer.

Reported by:        Pawel Tyll <ptyll@nitronet.pl>
Approved by:        kib(mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235055 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMerge 234342 from head:
glebius [Sat, 5 May 2012 07:55:50 +0000 (07:55 +0000)]
Merge 234342 from head:
  When we receive an ICMP unreach need fragmentation datagram, we take
  proposed MTU value from it and update the TCP host cache. Then
  tcp_mss_update() is called on the corresponding tcpcb. It finds the
  just allocated entry in the TCP host cache and updates MSS on the
  tcpcb. And then we do a fast retransmit of what we have in the tcp
  send buffer.

  This sequence gets broken if the TCP host cache is exausted. In this
  case allocation fails, and later called tcp_mss_update() finds nothing
  in cache. The fast retransmit is done with not reduced MSS and is
  immidiately replied by remote host with new ICMP datagrams and the
  cycle repeats. This ping-pong can go up to wirespeed.

  To fix this:
  - tcp_mss_update() gets new parameter - mtuoffer, that is like
    offer, but needs to have min_protoh subtracted.
  - tcp_mtudisc() as notification method renamed to tcp_mtudisc_notify().
  - tcp_mtudisc() now accepts not a useless error argument, but proposed
    MTU value, that is passed to tcp_mss_update() as mtuoffer.

  Reported by:  az
  Reported by:  Andrey Zonov <andrey zonov.org>
  Reviewed by:  andre (previous version of patch)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235051 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234775:
gjb [Sat, 5 May 2012 02:52:41 +0000 (02:52 +0000)]
MFC r234775:

As cron(8) is started with '-s' by default, timezones that observe
DST should not need to worry about scheduling jobs when the DST time
changes.

Rather than removing the BUGS section in crontab(5) regarding this,
note that disabling '-s' may still cause jobs to be executed twice or
not at all.

PR: 166318

git-svn-id: svn://svn.freebsd.org/base/stable/9@235047 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234769:
kib [Sat, 5 May 2012 00:28:08 +0000 (00:28 +0000)]
MFC r234769:
Fix several memory and lock leaks on the out of memory condition.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235045 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234057: sem_open: Make sure to fail an O_CREAT|O_EXCL open, even if
jilles [Fri, 4 May 2012 20:45:53 +0000 (20:45 +0000)]
MFC r234057: sem_open: Make sure to fail an O_CREAT|O_EXCL open, even if
that semaphore is already open in this process.

If the named semaphore is already open, sem_open() only increments a
reference count and did not take the flags into account (which otherwise
happens by passing them to open()). Add an extra check for O_CREAT|O_EXCL.

PR: kern/166706

git-svn-id: svn://svn.freebsd.org/base/stable/9@235035 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233875: Add a check for unsupported file flags to ufs_setattr().
jh [Fri, 4 May 2012 15:51:23 +0000 (15:51 +0000)]
MFC r233875: Add a check for unsupported file flags to ufs_setattr().

git-svn-id: svn://svn.freebsd.org/base/stable/9@235010 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233662, r233677 and r233678:
hselasky [Fri, 4 May 2012 15:38:47 +0000 (15:38 +0000)]
MFC r233662, r233677 and r233678:

Writing zero to BAR actually does not disable it and
it is even harmful as hselasky found out.  Historically,
this code was originated from (OLDCARD) CardBus driver and later leaked into
PCI driver when CardBus was newbus'ified and refactored with PCI driver.
However, it is not really necessary even for CardBus.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235007 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233667, r234687, r234491, r234193, r233424:
hselasky [Fri, 4 May 2012 15:27:18 +0000 (15:27 +0000)]
MFC r233667, r234687, r234491, r234193, r233424:
Fix some compile warnings.
Fix some mdoc issues.
Add missing LibUSB 1.0 API function.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235004 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234636 and r234655:
hselasky [Fri, 4 May 2012 15:18:00 +0000 (15:18 +0000)]
MFC r234636 and r234655:
Improve support for USB packet filtering also when reading dumps, and
allow filtered data to be dumped to a binary file.

Add missing and probably also mandatory -h option.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235003 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234541:
hselasky [Fri, 4 May 2012 15:13:25 +0000 (15:13 +0000)]
MFC r234541:
Add new USB ID to u3g driver.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235002 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234803 and r234961:
hselasky [Fri, 4 May 2012 15:10:49 +0000 (15:10 +0000)]
MFC r234803 and r234961:
Add support for Multi-TT mode of modern USB HUBs.
This will give you more bandwidth for isochronous
FULL speed applications connected through a
High Speed HUB.

This patch has been tested with XHCI and EHCI.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235001 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233774:
hselasky [Fri, 4 May 2012 15:05:30 +0000 (15:05 +0000)]
MFC r233774:
Fix compiler warnings, mostly signed issues,
when USB modules are compiled with WARNS=9.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235000 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233429,r233435,r233437,r234077,r234133,r234135,r234159,r234823:
eadler [Thu, 3 May 2012 19:55:36 +0000 (19:55 +0000)]
MFC r233429,r233435,r233437,r234077,r234133,r234135,r234159,r234823:
A variety of changes that make the default shell easier to use.

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@234978 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r230108:
eadler [Thu, 3 May 2012 16:48:48 +0000 (16:48 +0000)]
MFC r230108:
Fix trivial typo

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@234969 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234131:
eadler [Thu, 3 May 2012 16:31:21 +0000 (16:31 +0000)]
MFC r234131:
Return EBADF instead of EMFILE from dup2 when the second argument is
outside the range of valid file descriptors

PR: kern/164970
Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@234966 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234714, r234700:
eadler [Thu, 3 May 2012 16:19:41 +0000 (16:19 +0000)]
MFC r234714, r234700:
Document the standardization status of err* and warn*

PR: docs/164939
Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@234963 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoFix multiple OpenSSL vulnerabilities.
bz [Thu, 3 May 2012 15:25:11 +0000 (15:25 +0000)]
Fix multiple OpenSSL vulnerabilities.

Security: CVE-2011-4576, CVE-2011-4619, CVE-2011-4109
Security: CVE-2012-0884, CVE-2012-2110
Security: FreeBSD-SA-12:01.openssl
Approved by: so (bz,simon)

git-svn-id: svn://svn.freebsd.org/base/stable/9@234954 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234701:
tuexen [Thu, 3 May 2012 09:47:22 +0000 (09:47 +0000)]
MFC r234701:

Fix a bug in the TCP tracerouting which resulted in not accepting any
incoming packets. So all packets seemed to be lost.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234948 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234715,r234716:
tuexen [Thu, 3 May 2012 07:12:38 +0000 (07:12 +0000)]
MFC r234715,r234716:
Export symbols for sctp_sendv() and sctp_recvv().
Move sctp_sendv and sctp_recvv to FBSD_1.3 as suggested by
Konstantin Belousov.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234942 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233787:
jh [Wed, 2 May 2012 15:15:28 +0000 (15:15 +0000)]
MFC r233787:

- Use more natural ip->i_flags instead of vap->va_flags in the final
  flags check.
- Add a comment for the immutable/append check done after handling of
  the flags.
- Style improvements.

No functional change intended.

MFC r234421:

The part about exec atime no longer applies in the comment.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234417:
marck [Wed, 2 May 2012 08:38:43 +0000 (08:38 +0000)]
MFC r234417:

  VMware environments are not unusual now.  Add VMware partitions recognition
  (both MBR for ESXi <= 4.1 and GPT for ESXi 5) to g_part.

  Reviewed by: ae
  Approved by: ae

git-svn-id: svn://svn.freebsd.org/base/stable/9@234922 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234415:
mav [Wed, 2 May 2012 07:17:53 +0000 (07:17 +0000)]
MFC r234415:
Some improvements to GEOM MULTIPATH:
 - Implement "configure" command to allow switching operation mode of
running device on-fly without destroying and recreation.
 - Implement Active/Read mode as hybrid of Active/Active and Active/Passive.
In this mode all paths not marked FAIL may handle reads same time,
but unlike Active/Active only one path handles write requests at any
point in time. It allows to closer follow original write request order
if above layers need it for data consistency (not waiting for requisite
write completion before sending dependent write).
 - Hide duplicate messages about device status change.
 - Remove periodic thread wake up with 10Hz rate.

Sponsored by: iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234916 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233770:
delphij [Wed, 2 May 2012 00:30:30 +0000 (00:30 +0000)]
MFC r233770:

Eliminate two cases of unwanted strncpy().  The name is not required
by the current code, and the results would get overwritten anyway
by subsequent memset().

Reviewed by: ume

git-svn-id: svn://svn.freebsd.org/base/stable/9@234903 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234657:
kib [Tue, 1 May 2012 10:49:20 +0000 (10:49 +0000)]
MFC r234657:
Take the spinlock around clearing of the fp->_flags in fclose(3), which
indicates the avaliability of FILE, to prevent possible reordering of
the writes as seen by other CPUs.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234871 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234762:
tuexen [Tue, 1 May 2012 07:15:18 +0000 (07:15 +0000)]
MFC r234762:
Whitespace changes.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234864 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234345:
marck [Mon, 30 Apr 2012 22:03:43 +0000 (22:03 +0000)]
MFC r234345:

VMware environment is frequent nowadays.  Add VMFS id.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234853 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233998-r234000 and r234325:
gleb [Mon, 30 Apr 2012 17:56:49 +0000 (17:56 +0000)]
MFC r233998-r234000 and r234325:

r233998:
Add reserved memory limit sysctl to tmpfs.  Cleanup availble and used
memory functions.  Check if free pages available before allocating new
node.

r233999 (partial):
Add vfs_getopt_size. Support human readable file system options in tmpfs.
Increase maximum tmpfs file system size to 4GB*PAGE_SIZE on 32 bit archs.

NOTE: To preserve KBI add tmpfs_getopt_size function instead of global
vfs_getopt_size.

r234000:
tmpfs supports only INT_MAX nodes due to limitations of unit number
allocator.  Replace UINT32_MAX checks with INT_MAX. Keeping more than 2^31
nodes in memory is not likely to become possible in foreseeable feature
and would require new unit number allocator.

r234325:
Provide better description for vfs.tmpfs.memory_reserved sysctl.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234849 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233575:
dumbbell [Mon, 30 Apr 2012 15:46:41 +0000 (15:46 +0000)]
MFC r233575:
Make ReiserFS MPSAFE

Most functions seemed to be already fine w.r.t. what's done in msdosfs.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234845 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233507:
dumbbell [Mon, 30 Apr 2012 13:34:15 +0000 (13:34 +0000)]
MFC r233507:
Use program exit status as pam_exec return code (optional)

pam_exec(8) now accepts a new option "return_prog_exit_status". When
set, the program exit status is used as the pam_exec return code. It
allows the program to tell why the step failed (eg. user unknown).
However, if it exits with a code not allowed by the calling PAM service
module function (see $PAM_SM_FUNC below), a warning is logged and
PAM_SERVICE_ERR is returned.

The following changes are related to this new feature but they apply no
matter if the "return_prog_exit_status" option is set or not.

The environment passed to the program is extended:
    o  $PAM_SM_FUNC contains the name of the PAM service module function
       (eg. pam_sm_authenticate).
    o  All valid PAM return codes' numerical values are available
       through variables named after the return code name. For instance,
       $PAM_SUCCESS, $PAM_USER_UNKNOWN or $PAM_PERM_DENIED.

pam_exec return code better reflects what went on:
    o  If the program exits with !0, the return code is now
       PAM_PERM_DENIED, not PAM_SYSTEM_ERR.
    o  If the program fails because of a signal (WIFSIGNALED) or doesn't
       terminate normally (!WIFEXITED), the return code is now
       PAM_SERVICE_ERR, not PAM_SYSTEM_ERR.
    o  If a syscall in pam_exec fails, the return code remains
       PAM_SYSTEM_ERR.

waitpid(2) is called in a loop. If it returns because of EINTR, do it
again. Before, it would return PAM_SYSTEM_ERR without waiting for the
child to exit.

Several log messages now include the PAM service module function name.

The man page is updated accordingly.

Reviewed by: des@
Sponsored by: Yakaz (http://www.yakaz.com)

MFC r234184:
Fix error messages containing the executed command name

Before, we took the first argument to pam_exec(8). With the addition of
options in front of the command, this could be wrong.

Now, options are parsed before calling _pam_exec() and messages contain
the proper command name.

While here, fix a warning.

Sponsored by: Yakaz (http://www.yakaz.com)

git-svn-id: svn://svn.freebsd.org/base/stable/9@234842 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234616:
kib [Mon, 30 Apr 2012 13:07:21 +0000 (13:07 +0000)]
MFC r234616:
Allow for the process information sysctls to accept a thread id in addition
to the process id.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234839 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234731:
tuexen [Mon, 30 Apr 2012 06:48:18 +0000 (06:48 +0000)]
MFC r234731:
Remove unused structure.
Reported by Irene Ruengeler.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234827 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234699:
tuexen [Sun, 29 Apr 2012 16:35:55 +0000 (16:35 +0000)]
MFC r234699:
Fix a type in an SCTP AUTH related notification. Keep the old name
for backwards compatibility.
Spotted by Irene Ruengeler.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234802 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234614:
tuexen [Sun, 29 Apr 2012 16:33:30 +0000 (16:33 +0000)]
MFC r234614:

Use the flags defined in RFC 6525 in the stream reset event.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234801 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234539:
tuexen [Sun, 29 Apr 2012 16:29:39 +0000 (16:29 +0000)]
MFC r234539:
Fix check used by stream reset related events.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234800 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234464:
tuexen [Sun, 29 Apr 2012 16:26:55 +0000 (16:26 +0000)]
MFC r234464:

Whitespace changes.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234798 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234461:
tuexen [Sun, 29 Apr 2012 16:25:01 +0000 (16:25 +0000)]
MFC r234461:

Use the same pattern for mbuf logging everywhere.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234797 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234460:
tuexen [Sun, 29 Apr 2012 16:22:55 +0000 (16:22 +0000)]
MFC r234460:

Fix reported errno.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234796 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234459:
tuexen [Sun, 29 Apr 2012 16:20:29 +0000 (16:20 +0000)]
MFC r234459:

Fix a bug where we copy out more data from a mbuf chain that are
actually in it. This happens when SCTP receives an unknown chunk, which
requires the sending of an ERROR chunk, and there is no final padding but
the chunk is not 4-byte aligned.
Reported by yueting via rwatson@

git-svn-id: svn://svn.freebsd.org/base/stable/9@234794 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234296,r234297:
tuexen [Sun, 29 Apr 2012 16:16:31 +0000 (16:16 +0000)]
MFC r234296,r234297:

Bugfix: Don't send HBs on path which are not idle.
Send always HBs when in PF state.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234793 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233940:
tuexen [Sun, 29 Apr 2012 16:12:31 +0000 (16:12 +0000)]
MFC r233940:

Remove duplicate condition in if statement.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234791 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233660:
tuexen [Sun, 29 Apr 2012 16:10:24 +0000 (16:10 +0000)]
MFC r233660:

Make stream our stream reset implementation
compliant to RFC6525.
From rrs@.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234790 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233597:
tuexen [Sun, 29 Apr 2012 13:37:32 +0000 (13:37 +0000)]
MFC r233597:
Honor the net.inet.udp.checksum sysctl when using SCTP/UDP/IPv4
encapsulation.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234788 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233311:
tuexen [Sun, 29 Apr 2012 13:34:37 +0000 (13:34 +0000)]
MFC r233311:

Small cleanup of the code. No functional change (in FreeBSD kernel).

git-svn-id: svn://svn.freebsd.org/base/stable/9@234787 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233554:
bz [Sun, 29 Apr 2012 08:50:50 +0000 (08:50 +0000)]
MFC r233554:

 Export the udp_cksum sysctl for upcoming SCTP work.  Rather than always,
 SCTP will only do IPv4 UDP checksum calculation as defined by the host
 policy.  When tunneling SCTP always calculates the inner checksum already
 so not doing the outer UDP can save cycles.

 While here virtualize the variable.

 Requested by: tuexen

git-svn-id: svn://svn.freebsd.org/base/stable/9@234780 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234038
alc [Sat, 28 Apr 2012 20:34:14 +0000 (20:34 +0000)]
MFC r234038
  If a page belonging a reservation is cached, then mark the reservation so
  that it will be freed to the cache pool rather than the default pool.
  Otherwise, the cached pages within the reservation may be recycled sooner
  than necessary.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234771 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234556:
kib [Sat, 28 Apr 2012 18:46:48 +0000 (18:46 +0000)]
MFC r234556:
When MAP_STACK mapping is created, the map entry is created only to
cover the initial stack size. For MCL_WIREFUTURE maps, the subsequent
call to vm_map_wire() to wire the whole stack region fails due to
VM_MAP_WIRE_NOHOLES flag.

Use the VM_MAP_WIRE_HOLESOK to only wire mapped part of the stack.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234767 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234039
alc [Sat, 28 Apr 2012 18:43:27 +0000 (18:43 +0000)]
MFC r234039
  Fix mincore(2) so that it reports PG_CACHED pages as resident.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234766 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r233097
alc [Sat, 28 Apr 2012 18:03:57 +0000 (18:03 +0000)]
MFC r233097
  With the changes over the past year to how accesses to the page's dirty
  field are synchronized, there is no need for pmap_protect() to acquire
  the page queues lock unless it is going to access the pv lists.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234765 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234554
alc [Sat, 28 Apr 2012 17:54:54 +0000 (17:54 +0000)]
MFC r234554
  Updates to the vm_page's flags no longer require the page queues lock.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r232166
alc [Sat, 28 Apr 2012 17:29:08 +0000 (17:29 +0000)]
MFC r232166
  Simplify vm_mmap()'s control flow.

  Add a comment describing what vm_mmap_to_errno() does.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234763 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234540:
dim [Sat, 28 Apr 2012 09:21:43 +0000 (09:21 +0000)]
MFC r234540:

Fix the following clang warning in dpt(4):

  sys/dev/dpt/dpt_scsi.c:612:18: error: implicit truncation from 'int' to bitfield changes value from -2 to 2 [-Werror,-Wconstant-conversion]
    dpt->cache_type = DPT_CACHE_WRITEBACK;
                    ^ ~~~~~~~~~~~~~~~~~~~

by defining DPT_CACHE_WRITEBACK as 2, since dpt_softc::cache_type is an
unsigned bitfield.  No binary change.

MFC after: 1 week

git-svn-id: svn://svn.freebsd.org/base/stable/9@234755 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228572:
dim [Sat, 28 Apr 2012 09:18:20 +0000 (09:18 +0000)]
MFC r228572:

Fix format string Z --> z, since the former is a deprecated and (in FreeBSD)
unsupported form of the latter. This change has been reviewed and accepted
in the -hackers list.

Submitted by: Alexander Best
Reviewed by: David Schulz

git-svn-id: svn://svn.freebsd.org/base/stable/9@234754 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r225941:
dim [Sat, 28 Apr 2012 09:15:01 +0000 (09:15 +0000)]
MFC r225941:
  Fix an unaligned access issue; tidy up OFDM/DS rate decoding from the PLCP.

  This fixes a panic on PPC.

  Submitted by: novel
  Obtained from: OpenBSD, sys/dev/ic/bwi.c r1.89

MFC r226181:
  Update from OpenBSD: Include 0x4402 in the bbp id mapping table used on older devices.

  http://bcm-specs.sipsolutions.net/BackPlane agrees.

  Obtained from: OpenBSD, sys/dev/ic/bwi.c r1.88

MFC r226182:
  Fix an incorrect use of sizeof().

  Obtained from: OpenBSD sys/dev/ic/bwi.c r1.87

MFC r228621:
  Fix some net80211 enum nits:
  - ic_vap_create() uses an ieee80211_opmode argument
  - ieee80211_rate2media() takes an ieee80211_phymode argument
  - ieee80211_plcp2rate() takes an ieee80211_phytype argument
  - cast to enum ieee80211_protmode and ieee80211_roamingmode to silence
    compiler warnings

  Submitted by: arundel@

git-svn-id: svn://svn.freebsd.org/base/stable/9@234753 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f