]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
11 years agoMFC r219937, r220094, r221383, r222307, r222817, r222994, r223545, r223638, r225846...
eadler [Sat, 13 Apr 2013 22:30:02 +0000 (22:30 +0000)]
MFC r219937, r220094, r221383, r222307, r222817, r222994, r223545, r223638, r225846, r225853, r225854, r226121, r226320, r226351, r228991, r229164, r230876, r231274, r231516, r232105, r232353, r234221, r234320, r234446, r234600, r236392, r236733, r238058, r238976, r239498, r240362, r240548, r242549, r242849, r242900, r245447, r247752, r249113

Merge all outstanding calendar commits.

Discussed with: gjb, des

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

11 years agoMFC r243520, r243521: zfs: overhaul zfs-vfs glue for vnode life-cycle management
smh [Fri, 12 Apr 2013 19:36:53 +0000 (19:36 +0000)]
MFC r243520, r243521: zfs: overhaul zfs-vfs glue for vnode life-cycle management

Reviewed by: avg
Approved by: avg (co-mentor)

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

11 years agoMFC r241628: zfs: make use of getnewvnode_reserve in zfs_mknode and zfs_zget
smh [Fri, 12 Apr 2013 14:23:21 +0000 (14:23 +0000)]
MFC r241628: zfs: make use of getnewvnode_reserve in zfs_mknode and zfs_zget

Reviewed by: avg
Approved by: avg (co-mentor)

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

11 years agoMFC r245525:
bz [Thu, 11 Apr 2013 22:08:59 +0000 (22:08 +0000)]
MFC r245525:

  Add a conditional sleep 1 in case we add any IPv6 addresses to interfaces.
  Do this per jail started, not per address.  This will allow DAD to complete
  and services to properly start.   Before we have seen problems with services
  trying to start before the IPv6 address was available to use and thus
  erroring and failing to start.

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

11 years agoMFC r248800:
mav [Wed, 10 Apr 2013 17:51:15 +0000 (17:51 +0000)]
MFC r248800:
On SIM destruction free associated CCBs, preallocated inside xpt_get_ccb().
Before this change they were just leaked.  Fortunately USB sticks now use
only one CCB, and so leak was only 2KB per detach, while other bigger SIMs
with much more allocated CCBs are rarely detached.

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

11 years agoMFC r241556:
smh [Tue, 9 Apr 2013 15:35:26 +0000 (15:35 +0000)]
MFC r241556:
Add a KPI to allow to reserve some amount of space in the numvnodes
counter, without actually allocating the vnodes.

For KBI stability, the td_vp_reserv was moved to the end of struct thread.

Reviewed by: avg
Approved by: avg (co-mentor)

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

11 years agoMFC r248627:
delphij [Mon, 8 Apr 2013 23:06:25 +0000 (23:06 +0000)]
MFC r248627:

Don't attempt to reference sc before testing whether it's NULL.

Submitted by: Sascha Wildner
Obtained from: DragonFly

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

11 years agoMFC r247596:
delphij [Mon, 8 Apr 2013 23:01:33 +0000 (23:01 +0000)]
MFC r247596:

Fix assignment of maximum bounadary.

Submitted by: Sascha Wildner <saw online de>
Obtained from: DragonFly rev fd39c81ba220f7ad6e4dc9b30d45e828cf58a1ad

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

11 years agoMFC r247595:
delphij [Mon, 8 Apr 2013 22:56:40 +0000 (22:56 +0000)]
MFC r247595:

Fix wrong assignment.

Submitted by: Sascha Wildner <saw online de>
Obtained from: DragonFly rev 9568dd07a22a136e380e6c19a8ea188eb92976d5

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

11 years agoMFC: r247859
jkim [Mon, 8 Apr 2013 22:32:37 +0000 (22:32 +0000)]
MFC: r247859

Update the manual page to reflect reality.  With r138509 and r152355,
"nostrictjoliet" option for mount_cd9660(8) was completely replaced with
"brokenjoliet" somehow.

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

11 years agoMFC: r248799
jkim [Mon, 8 Apr 2013 20:45:11 +0000 (20:45 +0000)]
MFC: r248799

Limit the amount of video memory we map for the driver to the maximum value.

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

11 years agoMFC r248707:
trociny [Mon, 8 Apr 2013 19:50:15 +0000 (19:50 +0000)]
MFC r248707:

hrStorageSize and hrStorageUsed are 32 bit integers, reporting a fs
size and usage in hrStorageAllocationUnits. If the file system has
more than 2^31 allocations it can not be shown correctly and the
meters are useless.

In such cases follow net-snmp behaviour and increase
hrStorageAllocationUnits so the values fit under INT_MAX.

PR: bin/177183
Submitted by: Eugene Grosbein egrosbein rdtc.ru

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

11 years agoMFC r248969:
kib [Mon, 8 Apr 2013 08:33:31 +0000 (08:33 +0000)]
MFC r248969:
Do not call the VOP_LOOKUP() for the doomed directory vnode.

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

11 years agoMFC r246922 (pjd):
trociny [Sun, 7 Apr 2013 17:06:26 +0000 (17:06 +0000)]
MFC r246922 (pjd):

- Add support for 'memsync' mode. This is the fastest replication mode that's
  why it will now be the default.
- Bump protocol version to 2 and add backward compatibility for version 1.
- Allow to specify hosts by kern.hostid as well (in addition to hostname and
  kern.hostuuid) in configuration file.

Sponsored by: Panzura

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

11 years agoFurther improve previous revision:
delphij [Thu, 4 Apr 2013 23:14:14 +0000 (23:14 +0000)]
Further improve previous revision:

 - enable_all_pool_feat will be unset if version is specified.  Use it as
   a flag instead of testing the props nvlist;
 - Allow user to use -d -o feature@...=enable to create a v5000 pool when
   desired.  Without this, the implicit -o version=28 would make the utility
   to complain about feature@ and version being conflict, which is confusing.

Reviewed by: Matthew Ahrens

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

11 years agoMFC r244704, r244714 and r244715:
rakuco [Thu, 4 Apr 2013 19:31:19 +0000 (19:31 +0000)]
MFC r244704, r244714 and r244715:
Add vendor IDs for Broadcom USB dongles (BCM20702).

PR: kern/174707
Approved by: glebius

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

11 years agoPer Matthew Ahrens, version 5000 should not be exposed to user and there is
delphij [Thu, 4 Apr 2013 17:10:36 +0000 (17:10 +0000)]
Per Matthew Ahrens, version 5000 should not be exposed to user and there is
a problem with my first revision, namely, specifying -d -o feature@...=enable
will still bail out with:

    'feature@' and 'version' properties cannot be specified together.

Because zpool create -o version=5000 will not likely be supported by other
ZFS implementations (including ours on -CURRENT and 9-STABLE), remove the
hack that make that work.  Users who want feature flags support can still
do an explicit 'zpool upgrade' after creating a pool.

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

11 years agoMFC r248968:
kib [Thu, 4 Apr 2013 05:16:14 +0000 (05:16 +0000)]
MFC r248968:
Record the correct error in the trace.

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

11 years agoThe current ZFS version in 8-STABLE supports feature flags, which
delphij [Wed, 3 Apr 2013 21:15:21 +0000 (21:15 +0000)]
The current ZFS version in 8-STABLE supports feature flags, which
enables many new features but makes it impossible to import pools
created on earlier released FreeBSD 9.x releases, including 9.0
and 9.1-RELEASE, where the feature flags are not yet supported
because they predates the merge (r243674), and 9.2-RELEASE will
not be released before 8.4-RELEASE.

To avoid surprises when users "upgrade" to 9.1-RELEASE, limit the
creation version to 28 by default on stable/8.  The user will still
be able to upgrade the pool by using "zpool upgrade" or at create
time by explicitly specifying "zpool create -o version=5000".

This is a direct commit to stable/8 because it's not applicable to
-HEAD, and can be reverted once 9.2-RELEASE is released.

Requested by: re (jpaetzel, hrs)
Reviewed by: mm

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

11 years agoMFC r248802:
dim [Wed, 3 Apr 2013 16:26:58 +0000 (16:26 +0000)]
MFC r248802:

Similar to r239870 and r239872, teach the other binutils tools about the
DW_FORM_flag_present dwarf attribute, so they do not print errors or
warnings on files that contain it.  (This attribute can be emitted by
newer versions of clang and gcc.)

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

11 years agoMFC r248563:
kib [Wed, 3 Apr 2013 16:02:01 +0000 (16:02 +0000)]
MFC r248563:
Increment the write ref counter for the buffer object before calling
bundirty().

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

11 years agoMFC r248562:
kib [Wed, 3 Apr 2013 15:57:18 +0000 (15:57 +0000)]
MFC r248562:
Move the vn_start_write() call in the dounmount() before setting the
MNTK_UNMOUNT flag.

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

11 years agoOops, r240972 (Add DEBUG kernel distribution) forgot to make said distribution
dteske [Tue, 2 Apr 2013 14:10:22 +0000 (14:10 +0000)]
Oops, r240972 (Add DEBUG kernel distribution) forgot to make said distribution
optional (such as the long-standing "local" distribution; also optional). This
fixes a regression in the install process when the user selects "All" as the
distribution-set.

This is a direct commit to stable/8.

PR: bin/177309
Reviewed by: eadler

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

11 years agofix r248946: there is no pmap_page_is_write_mapped in stable/8
avg [Sun, 31 Mar 2013 20:40:06 +0000 (20:40 +0000)]
fix r248946: there is no pmap_page_is_write_mapped in stable/8

This is a direct commit.

Pointyhat to: avg

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

11 years agoMFC r242845 (delphij):
mm [Sun, 31 Mar 2013 19:03:25 +0000 (19:03 +0000)]
MFC r242845 (delphij):
  Illumos r13840:97fd5cdf328a:
    3145 single-copy arc
    3212 ztest: race condition between vdev_online() and spa_vdev_remove()

  Illumos r13849:3468a95b27cd:
    3258 ztest's use of file descriptors is unstable

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

11 years agoMFC r247592 (delphij):
mm [Sun, 31 Mar 2013 18:56:00 +0000 (18:56 +0000)]
MFC r247592 (delphij):
  Import a fix tighten assertion on SPA versions from vendor (Illumos).

  Illumos ZFS issue:
    3543 Feature flags causes assertion in spa.c to miss certain cases

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

11 years agoMFC r248267:
mm [Sun, 31 Mar 2013 18:39:11 +0000 (18:39 +0000)]
MFC r248267:
  Import minor ZFS changes from vendor

  Illumos ZFS issues:
  3604 zdb should print bpobjs more verbosely (fix zdb hang)
  3606 zpool status -x shouldn't warn about old on-disk format

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

11 years agoMFC r247852:
mm [Sun, 31 Mar 2013 18:31:58 +0000 (18:31 +0000)]
MFC r247852:
  Import ZFS bpobj bugfix from vendor.

  Illumos ZFS issues:
  3603 panic from bpobj_enqueue_subobj()
  3604 zdb should print bpobjs more verbosely

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

11 years agoMFC r248642: fbt_getargdesc: correctly handle types for return probes
avg [Sun, 31 Mar 2013 14:10:49 +0000 (14:10 +0000)]
MFC r248642: fbt_getargdesc: correctly handle types for return probes

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

11 years agoMFC r248640: fbt_typoff_init: fix an off by one in determining required
avg [Sun, 31 Mar 2013 14:02:43 +0000 (14:02 +0000)]
MFC r248640: fbt_typoff_init: fix an off by one in determining required
memory size

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

11 years agoMFC r246293: zfs: fix, improve and re-organize page_lookup and page_unlock
avg [Sun, 31 Mar 2013 13:56:13 +0000 (13:56 +0000)]
MFC r246293: zfs: fix, improve and re-organize page_lookup and page_unlock

Please note that because of the significant VM API differences between HEAD
and stable/8 this commit has some additional changes.

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

11 years agoMFC r247842.
melifaro [Sun, 31 Mar 2013 10:20:29 +0000 (10:20 +0000)]
MFC r247842.

Write lock is not required for find&compare operation.

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

11 years agoMerge r248070.
melifaro [Sun, 31 Mar 2013 10:17:39 +0000 (10:17 +0000)]
Merge r248070.

Fix long-standing issue with interface routes being unprotected:
Use RTM_PINNED flag to mark route as immutable.
Forbid deleting immutable routes without special rtrequest1_fib() flag.
Adding interface address with prefix already in route table is handled
by atomically deleting old prefix and adding interface one.

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

11 years agoMFC of 246876, 246877, and 247387:
mckusick [Sat, 30 Mar 2013 20:57:35 +0000 (20:57 +0000)]
MFC of 246876, 246877, and 247387:
MFC reviewed by: kib

MFC 246876:

Add barrier write capability to the VFS buffer interface. A barrier
write is a disk write request that tells the disk that the buffer
being written must be committed to the media along with any writes
that preceeded it before any future blocks may be written to the drive.

Barrier writes are provided by adding the functions bbarrierwrite
(bwrite with barrier) and babarrierwrite (bawrite with barrier).

Following a bbarrierwrite the client knows that the requested buffer
is on the media. It does not ensure that buffers written before that
buffer are on the media. It only ensure that buffers written before
that buffer will get to the media before any buffers written after
that buffer. A flush command must be sent to the disk to ensure that
all earlier written buffers are on the media.

Reviewed by: kib
Tested by:   Peter Holm

MFC 246877:

The UFS2 filesystem allocates new blocks of inodes as they are needed.
When a cylinder group runs short of inodes, a new block for inodes is
allocated, zero'ed, and written to the disk. The zero'ed inodes must
be on the disk before the cylinder group can be updated to claim them.
If the cylinder group claiming the new inodes were written before the
zero'ed block of inodes, the system could crash with the filesystem in
an unrecoverable state.

Rather than adding a soft updates dependency to ensure that the new
inode block is written before it is claimed by the cylinder group
map, we just do a barrier write of the zero'ed inode block to ensure
that it will get written before the updated cylinder group map can
be written. This change should only slow down bulk loading of newly
created filesystems since that is the primary time that new inode
blocks need to be created.

Reported by: Robert Watson
Reviewed by: kib
Tested by:   Peter Holm

MFC 247387:

An inode block must not be blockingly read while cg block is owned.
The order is inode buffer lock -> snaplk -> cg buffer lock, reversing
the order causes deadlocks.

Inode block must not be written while cg block buffer is owned. The
FFS copy on write needs to allocate a block to copy the content of the
inode block, and the cylinder group selected for the allocation might
be the same as the owned cg block.  The reserved block detection code
in the ffs_copyonwrite() and ffs_bp_snapblk() is unable to detect the
situation, because the locked cg buffer is not exposed to it.

In order to maintain the dependency between initialized inode block
and the cg_initediblk pointer, look up the inode buffer in
non-blocking mode. If succeeded, brelse cg block, initialize the inode
block and write it.  After the write is finished, reread cg block and
update the cg_initediblk.

If inode block is already locked by another thread, let the another
thread initialize it.  If another thread raced with us after we
started writing inode block, the situation is detected by an update of
cg_initediblk.  Note that double-initialization of the inode block is
harmless, the block cannot be used until cg_initediblk is incremented.

Sponsored by:   The FreeBSD Foundation
In collaboration with:  pho
Reviewed by:    mckusick
X-MFC-note:     after r246877

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

11 years agoMFC of 246812 and 246823:
mckusick [Sat, 30 Mar 2013 00:33:46 +0000 (00:33 +0000)]
MFC of 246812 and 246823:

MFC 246812:

Update fsck_ffs buffer cache manager to use TAILQ macros.
No functional changes.

MFC 246823:

Remove write only assignments and thus fix the build after struct bufarea
TAILQ conversion (r246812).

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

11 years agoMFC of 246289:
mckusick [Sat, 30 Mar 2013 00:22:26 +0000 (00:22 +0000)]
MFC of 246289:

For UFS2 i_blocks is unsigned. The current "sanity" check that it
has gone below zero after the blocks in its inode are freed is a
no-op which the compiler fails to warn about because of the use of
the DIP macro. Change the sanity check to compare the number of
blocks being freed against the value i_blocks. If the number of
blocks being freed exceeds i_blocks, just set i_blocks to zero.

Reported by: Pedro Giffuni (pfg@)

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

11 years agoMFC r248857:
gjb [Fri, 29 Mar 2013 14:18:56 +0000 (14:18 +0000)]
MFC r248857:
 - Update hardware notes to reflect that amd64 is no longer "young"
 - Bump copyright year

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

11 years agoMFC r248256:
tijl [Fri, 29 Mar 2013 13:23:43 +0000 (13:23 +0000)]
MFC r248256:

- Fix two possible overflows when testing if ELF program headers are on
  the first page:
  1. Cast uint16_t operands in a multiplication to unsigned int because
     otherwise the implicit promotion to int results in a signed
     multiplication that can overflow and the behaviour on integer
     overflow is undefined.
  2. Replace (offset + size > PAGE_SIZE) with (size > PAGE_SIZE - offset)
     because the sum may overflow.
- Use the same tests to see if the path to the interpreter is on the first
  page. There's no overflow here because size is already limited by
  MAXPATHLEN, but the compiler optimises the new tests better. Also fix an
  off-by-one error.
- Simplify tests to see if an ELF note program header is on the first page.
  This also fixes an off-by-one error.

Reviewed by: kib

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

11 years agoMFC 247870:
bryanv [Fri, 29 Mar 2013 02:09:46 +0000 (02:09 +0000)]
MFC 247870:

    Remove the virtio dependency entry for the VirtIO device drivers. This
    will prevent the kernel from linking if the device driver are included
    without the virtio module. Remove pci and scbus for the same reason.

    Also explain the relationship and necessity of the virtio and virtio_pci
    modules. Currently in FreeBSD, we only support VirtIO PCI, but it could
    be replaced with a different interface (like MMIO) and the device
    (network, block, etc) will still function.

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

11 years agoMFC r248226:
yongari [Fri, 29 Mar 2013 00:22:43 +0000 (00:22 +0000)]
MFC r248226:
  r241438 broke IPMI access on Sun Fire X2200 M2(BCM5715).
  Fix the IPMI regression by sending BGE_FW_DRV_STATE_UNLOAD to
  ASF/IPMI firmware in driver attach phase.  Sending heartheat to
  ASF/IPMI is enabled only after upping interface so
  setting driver state to BGE_FW_DRV_STATE_START in attach phase
  broke IPMI access.
  While I'm here, add NVRAM arbitration lock before performing
  controller reset. ASF/IPMI firmware may be able to access the NVRAM
  while controller reset is in progress.  Without the arbitration
  lock before resetting the controller, ASF/IPMI may not initialize
  properly.

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

11 years agoMFC r247279
sbruno [Thu, 28 Mar 2013 17:27:46 +0000 (17:27 +0000)]
MFC r247279

The 5300 series ciss(4) board does not work in performant mode with our
currnet initialization sequence.  Set it to simple mode only so that
systems can be updated from stable/7 to newer installations.

At some point, we should figure out why we cannot initialize performant
mode on this board.

PR: kern/153361
Reviewed by: scottl
Obtained from: Yahoo! Inc

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

11 years agoMFC r248422:
kib [Thu, 28 Mar 2013 14:39:50 +0000 (14:39 +0000)]
MFC r248422:
Remove negative name cache entry pointing to the target name, which
could be instantiated while tdvp was unlocked.

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

11 years agoMFH (r248465): revert upstream decommissioning of authorized_keys2
des [Thu, 28 Mar 2013 13:38:02 +0000 (13:38 +0000)]
MFH (r248465): revert upstream decommissioning of authorized_keys2

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

11 years agoMFC r248180:
ae [Thu, 28 Mar 2013 09:51:37 +0000 (09:51 +0000)]
MFC r248180:
  Take the inpcb rlock before calculating checksum, it was accidentally
  moved in r191672.

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

11 years agoWhen r241373 was merged, one file appears to have been missed from the
gavin [Thu, 28 Mar 2013 09:03:15 +0000 (09:03 +0000)]
When r241373 was merged, one file appears to have been missed from the
commit.  Merge it:
        Remove undefined behavior from sranddev() and
        srandomdev(). This doesn't actually work
        with any modern C compiler:

        In particular, both clang and modern gcc
        verisons silently elide any xor operation
        with 'junk'.

No mergeinfo changes with this commit as r241475 already updated the
mergeinfo.

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

11 years agoBump __FreeBSD_version to 804500 now that releng/8.4 has been branched.
delphij [Thu, 28 Mar 2013 06:59:58 +0000 (06:59 +0000)]
Bump __FreeBSD_version to 804500 now that releng/8.4 has been branched.

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

11 years ago8.4-BETA1 is done, identify as 8.4-PRERELEASE again.
delphij [Thu, 28 Mar 2013 06:56:13 +0000 (06:56 +0000)]
8.4-BETA1 is done, identify as 8.4-PRERELEASE again.

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

11 years agoMFV r248595:
delphij [Thu, 28 Mar 2013 06:48:06 +0000 (06:48 +0000)]
MFV r248595:

 - Integrate OpenSSL revisions
   fb092ef4fca897344daf7189526f5f26be6487ce,
   a93cc7c57333f4538cbcdedd2e961a5a38caa52d, and
   76c61a5d1adb92388f39e585e4af860a20feb9bb.

   This removes the newly added orig_len field of SSL3_RECORD and
   restored ABI.

Approved by: benl

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

11 years agoMFC r248788 (erwin):
delphij [Thu, 28 Mar 2013 05:35:46 +0000 (05:35 +0000)]
MFC r248788 (erwin):

Update BIND to 9.8.4-P2

Removed the check for regex.h in configure in order
to disable regex syntax checking, as it exposes
BIND to a critical flaw in libregex on some
platforms. [RT #32688]

Approved by: re (rodrigc, kib)

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

11 years agoMFC r248279:
delphij [Sat, 23 Mar 2013 07:36:53 +0000 (07:36 +0000)]
MFC r248279:

Correct type for DIOCGSTRIPESIZE.  Without this there
would be a stack overflow which will crash the program
later.

PR: bin/176953
Submitted by: r4721 tormail org
Approved by: re (rodrigc)

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

11 years ago- Revert r248483, keeping devel/subversion as a port dependency
gjb [Tue, 19 Mar 2013 19:49:06 +0000 (19:49 +0000)]
- Revert r248483, keeping devel/subversion as a port dependency
  for the doc/ build.
- Remove logic in release/Makefile that modifies local src/ tree.[1]

Submitted by: delphij [1]
Approved by: re (jpaetzel)

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

11 years agoPrevent devel/subversion from being included in doc/ port dependencies.
gjb [Mon, 18 Mar 2013 23:46:02 +0000 (23:46 +0000)]
Prevent devel/subversion from being included in doc/ port dependencies.

Approved by: re (jpaetzel)

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

11 years agoUpdate default FreeBSD version.
gjb [Mon, 18 Mar 2013 09:52:17 +0000 (09:52 +0000)]
Update default FreeBSD version.

Approved by: re (jpaetzel)

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

11 years agoUpdate stable/8 to -BETA1 as part of 8.4-RELEASE cycle.
gjb [Mon, 18 Mar 2013 01:30:54 +0000 (01:30 +0000)]
Update stable/8 to -BETA1 as part of 8.4-RELEASE cycle.

Approved by: re (jpaetzel)

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

11 years agoMFS9->8 r248313: Add support for installation directly via HTTP.
dteske [Mon, 18 Mar 2013 01:20:11 +0000 (01:20 +0000)]
MFS9->8 r248313: Add support for installation directly via HTTP.

Submitted by: Rick Miller <vmiller@hostileadmin.com>
Reviewed by: jkh
Approved by: re, jpaetzel

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

11 years agoMFH (r214982, r214985): fix CPU ID in /proc/cpuinfo.
des [Sat, 16 Mar 2013 22:43:08 +0000 (22:43 +0000)]
MFH (r214982, r214985): fix CPU ID in /proc/cpuinfo.

PR:             kern/56451
Approved by: re (kib)

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

11 years agoDiff reduction against stable/9: this is a pure mechanical comment
delphij [Sat, 16 Mar 2013 01:16:57 +0000 (01:16 +0000)]
Diff reduction against stable/9: this is a pure mechanical comment
change that eliminates the unwanted diff caused by different
Pod::Simple version and have no runtime impact.

We do this in the hope of minimizing variants of patches that would
need to be published, should an update is required during the
remaining lifetime of the stable/8 branch.

This is a direct commit to the stable/8 branch.

Approved by:    re (marius)

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

11 years agoIdentify as 8.4-PRERELEASE.
delphij [Tue, 12 Mar 2013 18:57:12 +0000 (18:57 +0000)]
Identify as 8.4-PRERELEASE.

Approved by: re (kib)

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

11 years agoDon't use SCTP checksum offloading for SCTP/IPv6. At least the loopback
tuexen [Mon, 11 Mar 2013 18:01:55 +0000 (18:01 +0000)]
Don't use SCTP checksum offloading for SCTP/IPv6. At least the loopback
interface in stable/8 doesn't support it.

Please note that this is a direct commit!

Approved by: re@

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

11 years agoMFC r247906:
lstewart [Mon, 11 Mar 2013 08:21:43 +0000 (08:21 +0000)]
MFC r247906:

The hashmask returned by hashinit() is a valid index in the returned
hash array. Fix a siftr(4) potential memory leak and INVARIANTS
triggered kernel panic in hashdestroy() by ensuring the last array index
in the flow counter hash table is flushed of entries.

Approved by: re (kib)

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

11 years agoAdd the packages directory that will be used for the upcoming
jpaetzel [Mon, 11 Mar 2013 07:10:15 +0000 (07:10 +0000)]
Add the packages directory that will be used for the upcoming
8.4 release

Approved by: re (implicit)

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

11 years agoMFC r237268
bapt [Sun, 10 Mar 2013 00:36:28 +0000 (00:36 +0000)]
MFC r237268

Revert user comparison back to user names as some user can share uids
(root/toor for example)

get the username information from old_pw structures to still allow renaming
of a user.

Approved by: re (jpaetzel)

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

11 years agoUpdate ports count and size in sysinstall(8).
gjb [Sat, 9 Mar 2013 21:21:47 +0000 (21:21 +0000)]
Update ports count and size in sysinstall(8).
This is a direct commit to stable/8.

Submitted by: ryusuke
Approved by: re (kib)

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

11 years agoMFC r244631
rstone [Fri, 8 Mar 2013 21:07:31 +0000 (21:07 +0000)]
MFC r244631
  Correct a series of errors in the hand-rolled locking for drace_debug.c:

  - Use spinlock_enter()/spinlock_exit() to prevent a thread holding a
    debug lock from being preempted to prevent other threads waiting
    on that lock from starvation.

  - Handle the possibility of CPU migration in between the fetch of curcpu
    and the call to spinlock_enter() by saving curcpu in a local variable.

  - Use memory barriers to prevent reordering of loads and stores of the
    data protected by the lock outside of the critical section

  - Eliminate false sharing of the locks by moving them into the structures
    that they protect and aligning them to a cacheline boundary.

  - Record the owning thread in the lock to make debugging future problems
    easier.

  Reviewed by:  rpaulo (initial version)

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

11 years agoMFC r226452 (by marcel@)
rstone [Fri, 8 Mar 2013 21:04:16 +0000 (21:04 +0000)]
MFC r226452 (by marcel@)

  Define dtrace_cmpset_long in terms of atomic_cmpset_long
  and not by virtue of inline assembly. Now this file
  compiles on all supported architectures.

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

11 years agoMFC r241009
rstone [Fri, 8 Mar 2013 19:36:44 +0000 (19:36 +0000)]
MFC r241009
  Ensure that all cases that enqueue a netgraph item for delivery by a
  ngthread properly set the item's depth to 1.  In particular, prior to this
  change if ng_snd_item failed to acquire a lock on a node, the item's depth
  would not be set at all.  This fix ensures that the error code from rcvmsg/
  rcvdata is properly passed back to the apply callback.  For example, this
  fixes a bug where an error from rcvmsg/rcvdata would not previously
  propagate back to a libnetgraph consumer when the message was queued.

  Reviewed by:  mav
  MFC after:    1 month
  Sponsored by: Sandvine Incorporated

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

11 years agoMFC r240923
rstone [Fri, 8 Mar 2013 19:02:45 +0000 (19:02 +0000)]
MFC r240923

  Some aac(4) adapters will always report that a direct access device is
  offline in response to a INQUIRY command that does not retreive vital
  product data(I personally have observed the behaviour on an Adaptec 2405
  and a 5805).  Force the peripheral qualifier to "connected" so that upper
  layers correctly recognize that a disk is present.

  This bug was uncovered by r216236.  Prior to that fix, aac(4) was
  accidentally clearing the peripheral qualifier for all inquiry commands.

  This fixes an issue where passthrough devices were not created for
  disks behind aac(4) controllers suffering from the bug.  I have
  verified that if a disk is not present that we still properly detect
  that and not create the passthrough device.

  Sponsored by: Sandvine Incorporated
  MFC after:    1 week

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

11 years agoMFC r231879,246799,247880,248059:
delphij [Fri, 8 Mar 2013 18:46:21 +0000 (18:46 +0000)]
MFC r231879,246799,247880,248059:

Update driver to version 4.6.95.0.

Submitted by: "Duvvuru,Venkat Kumar" <VenkatKumar.Duvvuru Emulex.Com>

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

11 years agoMerge OpenSSL 0.9.8y. This is a direct commit to stable/8 as HEAD is on a
delphij [Fri, 8 Mar 2013 17:28:40 +0000 (17:28 +0000)]
Merge OpenSSL 0.9.8y.  This is a direct commit to stable/8 as HEAD is on a
different release now.

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

11 years ago- Complete r231621 (MFC'ed to stable/8 in r232093) by also blacklisting the
marius [Fri, 8 Mar 2013 12:58:25 +0000 (12:58 +0000)]
- Complete r231621 (MFC'ed to stable/8 in r232093) by also blacklisting the
  bridge used by VMware for PCIe devices. While at it, update the comment
  now that we know that MSI-X doesn't work with ESXi 5.1 for Intel 82576
  either and the underlying issue is a bug in the MSI-X allocation code of
  the hypervisor.
  Reported by: Harald Schmalzbauer
- Make the nomatch table const.

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

11 years agoMFC: r247601, r247621
marius [Fri, 8 Mar 2013 12:52:57 +0000 (12:52 +0000)]
MFC: r247601, r247621

- Correct an incorrect argument to shutdown_nice(9).
- Mark unused parameters as such.
- Use NULL instead of 0 for pointers.

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

11 years agoMFC: r247600, r247620
marius [Fri, 8 Mar 2013 12:50:31 +0000 (12:50 +0000)]
MFC: r247600, r247620

- While Netra X1 generally show no ill effects when registering a power
  fail interrupt handler, there seems to be either a broken batch of them
  or a tendency to develop a defect which causes this interrupt to fire
  inadvertedly. Given that apart from this problem these machines work
  just fine, add a tunable allowing the setup of the power fail interrupt
  to be disabled.
  While at it, remove the DEBUGGER_ON_POWERFAIL compile time option and
  make that behavior also selectable via the newly added tunable.
- Correct an incorrect argument to shutdown_nice(9).
- Mark unused parameters as such.
- Use NULL instead of 0 for pointers.

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

11 years agoMFC: r223951
marius [Fri, 8 Mar 2013 12:44:40 +0000 (12:44 +0000)]
MFC: r223951

Partially merge r223648 and r223949 from gem(4) (committed to stable/8 in
r224367):
- Consistently use the newly introduced sc_mac_rxcfg throughout the driver
  instead of reading the old content of CAS_MAC_RX_CONF.
- Increment if_iqdrops instead of if_ierrors in case of RX buffer allocation
  failure.
- According to the Cassini datasheet the RX MAC should also be disabled in
  cas_setladrf() before changing its configuration.
- Add error messages to gem_disable_{r,t}x() and take advantage of these
  throughout the driver instead of duplicating their functionality all over
  the place.

MFC: r247579

- Move reporting of failures to disable RX/TX MAC under bootverbose as at
  least the Saturn chips of 501-6738 cards may fail to do so the first
  time, which isn't fatal though.
  Reported by: Paul Keusemann
- Explain why we don't enable infinite bursts on sparc64.
- Given that these chips support memory write invalidate, make sure that
  it's enabled in the command register. Also make sure that PERR# and
  SERR# assertion is enabled.

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

11 years agoMFC: r247574
marius [Fri, 8 Mar 2013 12:13:33 +0000 (12:13 +0000)]
MFC: r247574

- In sbbc_pci_attach() just pass the already obtained bus tag and handle
  instead of acquiring these anew.
- Use NULL instead of 0 for pointers.

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

11 years agoMFC: r247573
marius [Fri, 8 Mar 2013 12:11:41 +0000 (12:11 +0000)]
MFC: r247573

- Remove an unused header.
- Use NULL instead of 0 for pointers.
- Let ofw_pcib_probe() return BUS_PROBE_DEFAULT instead of 0 so specialized
  PCI-PCI-bridge drivers may attach instead.
- Add WARs for PLX Technology PEX 8114 bridges and PEX 8532 switches.
  Ideally, these should live in MI code but at least for the latter we're
  missing the necessary infrastructure there.

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

11 years agoMFC: r236736
marius [Fri, 8 Mar 2013 12:09:12 +0000 (12:09 +0000)]
MFC: r236736

Add support for the Sunix SER5437A dual serial PCI Express card.

MFC: r239048

Add additional Perle Speed LE serial cards

PR: kern/168816
Submitted by: Dennis Oyama <doyama@perle.com>

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

11 years agoMFC: r247571
marius [Fri, 8 Mar 2013 11:41:52 +0000 (11:41 +0000)]
MFC: r247571

- Apparently, r186520 was just wrong and the clock of Oxford OX16PCI958 is
  neither DEFAULT_RCLK * 2 nor DEFAULT_RCLK * 10 but plain DEFAULT_RCLK
  and there's no (open) source indicating otherwise. This was tested with
  an EXSYS EX-41098-2, whose clock is not configurable and identifies as:
  puc0@pci0:5:1:0:        class=0x070200 card=0x06711415 chip=0x95381415 rev=0x01 hdr=0x00
      vendor     = 'Oxford Semiconductor Ltd'
      class      = simple comms
      subclass   = multiport serial

  Note that this exactly matches the card mentioned in PR 129665 so no
  sub-device/sub-vendor based quirking of the latter is possible. So maybe
  we should grow some sort of tunable, in case non-default cards such as
  the latter aren't configurable either (this also wouldn't be the first
  time an allegedly tested commit turns out to be wrong though).
- Make the TiMedia tables const.

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

11 years agoMFC: r247565, r247590
marius [Fri, 8 Mar 2013 11:33:02 +0000 (11:33 +0000)]
MFC: r247565, r247590

- Make tables, device ID strings etc const.
- Use NULL instead of 0 for pointers.
- Remove redundant bzero(9)'ing of the softc.
- Remove redundant/unused softc members.
- Don't allocate MSI/MSI-X as RF_SHAREABLE.
- Re-use bus accessor macros instead of duplicating them.
- In bce_miibus_{read,write}_reg(), remove superfluous limiting of the PHY
  address (missed in r213893, which was MFC'ed to stable/8 in r214909).

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

11 years agoMFC: r247561
marius [Fri, 8 Mar 2013 11:26:00 +0000 (11:26 +0000)]
MFC: r247561

- Use strdup(9) instead of reimplementing it.
- Use __DECONST instead of strange casts.
- Reduce code duplication and simplify name2oid().

PR: 176373
Submitted by: Christoph Mallon

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

11 years agoMFC r247560:
kib [Fri, 8 Mar 2013 08:19:50 +0000 (08:19 +0000)]
MFC r247560:
Make the default implementation of the VOP_VPTOCNP() fail if the
directory entry, matched by the inode number, is ".".

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

11 years agoMFC r247829
bryanv [Fri, 8 Mar 2013 02:40:07 +0000 (02:40 +0000)]
MFC r247829

    Only set the barrier flag if the feature was negotiated

Approved by: grehan (mentor)

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

11 years agoMFC r247412:
tuexen [Fri, 8 Mar 2013 01:33:07 +0000 (01:33 +0000)]
MFC r247412:

Fix a potential race in returning setting errno when an
association goes down.
Reported by Mozilla in
https://bugzilla.mozilla.org/show_bug.cgi?id=845513

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

11 years agoMFC r246687:
tuexen [Fri, 8 Mar 2013 01:31:14 +0000 (01:31 +0000)]
MFC r246687:

Send the adaptation layer indication only if set by the user.

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

11 years agoMFC r246674:
tuexen [Fri, 8 Mar 2013 01:29:05 +0000 (01:29 +0000)]
MFC r246674:

Don't send kernel provided information in the User Initiated
ABORT cause, since the user can also provide this kind of
information. So the receiver doesn't know who provided the
information.
While there: Fix a bug where the stack would send a malformed
ABORT chunk when using a send() call with SCTP_ABORT|SCT_SENDALL
flags.

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

11 years agoMFC r246635:
tuexen [Fri, 8 Mar 2013 01:27:18 +0000 (01:27 +0000)]
MFC r246635:

Make sure that received packets for removed addresses are handled
consistently. While there, make variable names consistent.

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

11 years agoMFC r246629:
tuexen [Fri, 8 Mar 2013 01:25:13 +0000 (01:25 +0000)]
MFC r246629:

Improve code style. No functional change.

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

11 years agoMFC r246595:
tuexen [Fri, 8 Mar 2013 01:24:00 +0000 (01:24 +0000)]
MFC r246595:

Cleanup the handling of address scopes. Announce in the INIT/INIT-ACK
only the supported address types. While there, do some whitespace
cleanups.

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

11 years agoMFC r246588:
tuexen [Fri, 8 Mar 2013 01:21:48 +0000 (01:21 +0000)]
MFC r246588:

Fix a bug where HEARTBEATs were still sent in SHUTDOWN_SENT or
SHUTDOWN_ACK_SENT state. While there, make the corresponding
code consistent.

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

11 years agoMFC r244730:
tuexen [Fri, 8 Mar 2013 01:19:46 +0000 (01:19 +0000)]
MFC r244730:

Some cleanups.

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

11 years agoMFC r244729:
tuexen [Fri, 8 Mar 2013 01:17:55 +0000 (01:17 +0000)]
MFC r244729:

Minor cleanups of debug messages.

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

11 years agoMFC r244728:
tuexen [Fri, 8 Mar 2013 01:16:08 +0000 (01:16 +0000)]
MFC r244728:

Fix a copy and paste error.

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

11 years agoMFC r244033:
tuexen [Fri, 8 Mar 2013 01:14:22 +0000 (01:14 +0000)]
MFC r244033:

Get it compiling without INET and INET6 support (mainly userland stack).

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

11 years agoMFC r244026:
tuexen [Fri, 8 Mar 2013 01:12:40 +0000 (01:12 +0000)]
MFC r244026:

Use correct padding of the ABORT chunk in case of an user initiated
abort cause is used.

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

11 years agoMFC r244021:
tuexen [Fri, 8 Mar 2013 01:10:33 +0000 (01:10 +0000)]
MFC r244021:

Ensure that the padding of the last parameter of an INIT chunk
is not included in the chunk length as required by RFC 4960.
While there, cleanup sctp_send_initiate().

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

11 years agoMFC r243565:
tuexen [Fri, 8 Mar 2013 01:05:07 +0000 (01:05 +0000)]
MFC r243565:

Add support for sctp_peeloff() also in the front states of the
association.

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

11 years agoMFC r243564:
tuexen [Fri, 8 Mar 2013 01:03:39 +0000 (01:03 +0000)]
MFC r243564:

Find the endpoint for an incoming packet also if the endpoint
comes from sctp_peeloff().

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

11 years agoMFC r243558:
tuexen [Fri, 8 Mar 2013 01:01:37 +0000 (01:01 +0000)]
MFC r243558:

Allow shutdown() to be used on fds returned from sctp_peeloff().

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

11 years agoMFC r243516:
tuexen [Fri, 8 Mar 2013 01:00:05 +0000 (01:00 +0000)]
MFC r243516:

Remove unused function.

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

11 years agoMFC r243302:
tuexen [Fri, 8 Mar 2013 00:58:07 +0000 (00:58 +0000)]
MFC r243302:

Cleanup the code a bit, which improves the portability.

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

11 years agoMFC r243300:
tuexen [Fri, 8 Mar 2013 00:56:46 +0000 (00:56 +0000)]
MFC r243300:

Fix the handling of mapped IPv6 addresses in sctp_connectx().

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