]>
CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
tuexen [Thu, 7 Mar 2013 20:29:54 +0000 (20:29 +0000)]
MFC r236450:
Remove an unused parameter.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247934
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 20:26:51 +0000 (20:26 +0000)]
MFC r236391:
Small cleanups. No functional change.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247933
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 20:24:14 +0000 (20:24 +0000)]
MFC r236087:
Get rid of SCTP specific code to avoid CRC32C computations on loopback.
Just use offloading.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247932
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 20:17:30 +0000 (20:17 +0000)]
MFC r235990:
Undefine SCTP_PACKED before including sctp_uio.h, which doesn't
use it. Spotted by Irene Ruengeler.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247931
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 20:14:55 +0000 (20:14 +0000)]
MFC r235903:
Add sn_send_failed_event to sctp_notification.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247930
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 20:12:31 +0000 (20:12 +0000)]
MFC r235828:
Use consistent text at the begining of the files.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247929
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 20:08:34 +0000 (20:08 +0000)]
MFC r235557:
Use a default for max_burst of 4 and l2var of 2.
This was discussed with rrs@.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247928
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 20:06:27 +0000 (20:06 +0000)]
MFC r235554:
Support SCTP_EOF also for 1-to-1 style sockets.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247927
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 20:04:05 +0000 (20:04 +0000)]
MFC r235418:
Support SCTP_REMOTE_ERROR notification.
`
git-svn-id: svn://svn.freebsd.org/base/stable/8@247926
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 19:40:14 +0000 (19:40 +0000)]
MFC r235416:
Provide in the SCTP_SEND_FAILED and SCTP_SEND_FAILED_EVENT notifications
the correct ssf_error or ssfe_error as required by RFC 6458.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247925
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 19:38:04 +0000 (19:38 +0000)]
MFC r235414,r235415:
Provide the error code in SCTP_PEER_ADDR_CHANGE notifications as
specified in RFC 6458.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247924
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 19:34:56 +0000 (19:34 +0000)]
MFC r235412:
Remove unused constants.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247923
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 19:32:54 +0000 (19:32 +0000)]
MFC r235403:
Use ECONNABORTED in cases where the ABORT was sent to the peer.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247922
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 19:30:34 +0000 (19:30 +0000)]
MFC r235402:
Ensure the user can read COMM_LOST notifications on 1-to-1 style sockets.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247921
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Thu, 7 Mar 2013 19:27:17 +0000 (19:27 +0000)]
MFC r235360:
Provide in the association change notification the received ABORT chunk
if case of SCTP_COMM_LOST or SCTP_CANT_STR_ASSOC as required by RFC 6458.
git-svn-id: svn://svn.freebsd.org/base/stable/8@247920
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f