]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
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

11 years agoMFC r243186:
tuexen [Fri, 8 Mar 2013 00:54:48 +0000 (00:54 +0000)]
MFC r243186:

Add support for SCTP/UDP/IPV6.
This completes the support of
http://tools.ietf.org/html/draft-ietf-tsvwg-sctp-udp-encaps

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

11 years agoMFC r243157:
tuexen [Fri, 8 Mar 2013 00:48:15 +0000 (00:48 +0000)]
MFC r243157:

Get the accounting working. We now have counters how many
chunks for each SCTP outgoing stream are in the send and
sent queue.
While there, improve the naming of NR-SACK related constants
recently introduced.

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

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

Add per outgoing stream accounting for chunks in the send
and sent queue. This provides no functional change, but is
a preparation for an upcoming stream reset improvement.
Done with rrs@.

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

11 years agoMFC r242708,r242709:
tuexen [Fri, 8 Mar 2013 00:43:49 +0000 (00:43 +0000)]
MFC r242708,r242709:

Improve PR-SCTP if used in combination with NR-SACK.
Based on work done by Mohammad Rajiullah.

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

11 years agoMFC r242627:
tuexen [Fri, 8 Mar 2013 00:41:20 +0000 (00:41 +0000)]
MFC r242627:

Move from early SSN assignment to late SSN assignment.
This doesn't change functionality, but makes upcoming change
much easier.
Developed with rrs@ at the IETF 85.

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

11 years agoMFC r242512:
tuexen [Fri, 8 Mar 2013 00:34:50 +0000 (00:34 +0000)]
MFC r242512:

Fix errno in a couple of error cases.

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

11 years agoMFC r242326:
tuexen [Fri, 8 Mar 2013 00:28:50 +0000 (00:28 +0000)]
MFC r242326:

Add braces (as used elsewhere in the SCTP code).

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

11 years agoMFC r240849:
tuexen [Fri, 8 Mar 2013 00:20:55 +0000 (00:20 +0000)]
MFC r240849:

Whitespace change.

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

11 years agoMFC r240848:
tuexen [Fri, 8 Mar 2013 00:19:28 +0000 (00:19 +0000)]
MFC r240848:

Declare a static function as such.

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

11 years agoMFC r240842:
tuexen [Fri, 8 Mar 2013 00:17:57 +0000 (00:17 +0000)]
MFC r240842:

Fix a bug related to handling Re-config chunks. It is not true that
the association can be removed if the socket is gone.

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

11 years agoMFC r240826:
tuexen [Fri, 8 Mar 2013 00:16:17 +0000 (00:16 +0000)]
MFC r240826:

Small cleanups. No functional change.

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

11 years agoMFC r240507:
tuexen [Fri, 8 Mar 2013 00:13:30 +0000 (00:13 +0000)]
MFC r240507:

Small cleanups. No functional change.

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

11 years agoMFC r240263:
tuexen [Fri, 8 Mar 2013 00:12:02 +0000 (00:12 +0000)]
MFC r240263:

Whitespace changes.

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

11 years agoMFC r240250:
tuexen [Fri, 8 Mar 2013 00:09:25 +0000 (00:09 +0000)]
MFC r240250:

Whitespace cleanup.

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

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

Don't include a structure containing a flexible array in another
structure.

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

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

Get rid of a gcc'ism.

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

11 years agoMFC r240148:
tuexen [Fri, 8 Mar 2013 00:03:31 +0000 (00:03 +0000)]
MFC r240148:

Using %p in a format string requires a void *.

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

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

Use the consistenly the size of a variable. This helps to keep the code
simpler for the userland implementation.

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

11 years agoMFC r240114:
tuexen [Thu, 7 Mar 2013 23:59:47 +0000 (23:59 +0000)]
MFC r240114:
Whitespace change.

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

11 years agoMFC r240007:
tuexen [Thu, 7 Mar 2013 23:58:18 +0000 (23:58 +0000)]
MFC r240007:

Fix a typo which results in RTT to be off by a factor of 10, if the RTT is
larger than 1 second.

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

11 years agoMFC r239035:
tuexen [Thu, 7 Mar 2013 23:55:42 +0000 (23:55 +0000)]
MFC r239035:

Testing an interface property should depend on the interface, not
on an address.

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

11 years agoMFC r238790:
tuexen [Thu, 7 Mar 2013 23:53:11 +0000 (23:53 +0000)]
MFC r238790:
Fix the sctp_sockstore union such that userland programs don't depend
on INET and/or INET6 to be defined and in-tune with how the kernel
was compiled.

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

11 years agoMFC r238550:
tuexen [Thu, 7 Mar 2013 23:51:07 +0000 (23:51 +0000)]
MFC r238550:

Fix a refcount bug when freeing an association.
While there: Change code to be consistent.
Discussed with rrs@.

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

11 years agoMFC r238501,r238514:
tuexen [Thu, 7 Mar 2013 23:48:29 +0000 (23:48 +0000)]
MFC r238501,r238514:

Changes which improve compilation if neither INET nor INET6 is defined.

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

11 years agoMFC r238475:
tuexen [Thu, 7 Mar 2013 23:44:02 +0000 (23:44 +0000)]
MFC r238475:

#ifdef INET and INET6 consistently. This also fixes a bug, where
it was done wrong.

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

11 years agoMFC r238458:
tuexen [Thu, 7 Mar 2013 23:41:57 +0000 (23:41 +0000)]
MFC r238458:

Provide the correct notification type (SCTP_SEND_FAILED_EVENT)
for unsent messages.

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

11 years agoMFC r238455:
tuexen [Thu, 7 Mar 2013 23:39:59 +0000 (23:39 +0000)]
MFC r238455:

Use case for selecting the address family (as in other places).

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

11 years agoMFC r238454:
tuexen [Thu, 7 Mar 2013 23:37:53 +0000 (23:37 +0000)]
MFC r238454:
Bugfix: Send up a COMM UP notification for active 1-to-1 style sockets
        also in the case where the assoc comes up due to a remotely
        started handshake (collision case).

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

11 years agoMFC r238122:
tuexen [Thu, 7 Mar 2013 23:35:06 +0000 (23:35 +0000)]
MFC r238122:

Use consistent method to determine IPV4_OUTPUT/IPV6_OUTPUT.

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

11 years agoMFC r238087:
tuexen [Thu, 7 Mar 2013 23:31:32 +0000 (23:31 +0000)]
MFC r238087:

Iniitialize a variable.

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

11 years agoMFC r238003,r239091:
tuexen [Thu, 7 Mar 2013 23:28:08 +0000 (23:28 +0000)]
MFC r238003,r239091:

Move common code parts to sctp_common_input_processing().

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

11 years agoMFC r237715,r238294:
tuexen [Thu, 7 Mar 2013 23:23:25 +0000 (23:23 +0000)]
MFC r237715,r238294:

Pass the src and dst address of a received packet explicitly around.

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

11 years agoMFC r235916:
tuexen [Thu, 7 Mar 2013 23:18:35 +0000 (23:18 +0000)]
MFC r235916:

Introduce in6_getscope() to allow more effective checksum
computations without the need to copy the address to clear the
scope.

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

11 years agoMFC r238002:
tuexen [Thu, 7 Mar 2013 22:05:27 +0000 (22:05 +0000)]
MFC r238002:

Remove dead code (on FreeBSD) as suggested by glebius@.

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

11 years agoMFC r237569:
tuexen [Thu, 7 Mar 2013 21:43:21 +0000 (21:43 +0000)]
MFC r237569:

Unify sctp_input() and sctp6_input().

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

11 years agoMFC r237565:
tuexen [Thu, 7 Mar 2013 21:41:02 +0000 (21:41 +0000)]
MFC r237565:

Whitespace cleanup.

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

11 years agoMFC r237542:
tuexen [Thu, 7 Mar 2013 21:38:43 +0000 (21:38 +0000)]
MFC r237542:

Pass the packet length explicitly around.

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

11 years agoMFC r237541:
tuexen [Thu, 7 Mar 2013 21:36:04 +0000 (21:36 +0000)]
MFC r237541:

Remove redundant check.

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

11 years agoMFC r237540:
tuexen [Thu, 7 Mar 2013 21:34:04 +0000 (21:34 +0000)]
MFC r237540:

Do packet logging in a consistent way.

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

11 years agoMFC r237392:
tuexen [Thu, 7 Mar 2013 21:31:45 +0000 (21:31 +0000)]
MFC r237392:

Remove redundant #ifdef. Reported by gnn@.

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

11 years agoMFC r237230:
tuexen [Thu, 7 Mar 2013 21:29:42 +0000 (21:29 +0000)]
MFC r237230:

Add rate limitation for SCTP OOTB responses.

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

11 years agoMFC r237229:
tuexen [Thu, 7 Mar 2013 21:27:15 +0000 (21:27 +0000)]
MFC r237229:

Cleanup the UDP decapsulation code.

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

11 years agoMFC r237049:
tuexen [Thu, 7 Mar 2013 21:24:41 +0000 (21:24 +0000)]
MFC r237049:

Pass flowid explicitly through the stack instead of taking it from
the mbuf chain at different places.
While there: Fix several bugs related to VRFs.

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

11 years agoMFC r236961:
tuexen [Thu, 7 Mar 2013 21:22:07 +0000 (21:22 +0000)]
MFC r236961:

Add a cmsg of type IP_TOS for UDP/IPv4 sockets to specify the TOS byte.

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

11 years agoMFC r236959:
tuexen [Thu, 7 Mar 2013 21:17:37 +0000 (21:17 +0000)]
MFC r236959:

Add a IP_RECVTOS socket option to receive for received UDP/IPv4
packets a cmsg of type IP_RECVTOS which contains the TOS byte.
Much like IP_RECVTTL does for TTL. This allows to implement a
protocol on top of UDP and implementing ECN.

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

11 years agoMFC r236958:
tuexen [Thu, 7 Mar 2013 21:11:16 +0000 (21:11 +0000)]
MFC r236958:

Deliver IPV6_TCLASS, IPV6_HOPLIMIT and IPV6_PKTINFO cmsgs (if
requested) on IPV6 sockets, which have been marked to be not IPV6_V6ONLY,
for each received IPV4 packet.

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

11 years agoMFC r236956:
tuexen [Thu, 7 Mar 2013 21:08:19 +0000 (21:08 +0000)]
MFC r236956:

Unify the sending of ABORT, SHUTDOWN-COMPLETE and ERROR chunks.
While there: Fix also some minor bugs and prepare for SCTP/DTLS.

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

11 years agoMFC r236949:
tuexen [Thu, 7 Mar 2013 20:41:36 +0000 (20:41 +0000)]
MFC r236949:

Small cleanup.

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

11 years agoMFC r236522:
tuexen [Thu, 7 Mar 2013 20:37:57 +0000 (20:37 +0000)]
MFC r236522:

Remove code which is not needed.

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

11 years agoMFC r236515:
tuexen [Thu, 7 Mar 2013 20:36:17 +0000 (20:36 +0000)]
MFC r236515:

Use an existing function to get the source address.

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

11 years agoMFC r236493:
tuexen [Thu, 7 Mar 2013 20:34:30 +0000 (20:34 +0000)]
MFC r236493:

Honor sysctl for TTL.

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

11 years agoMFC r236492:
tuexen [Thu, 7 Mar 2013 20:32:30 +0000 (20:32 +0000)]
MFC r236492:

Don't request data from the IPv6 layer, which is not used.

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