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

11 years agoMFC r236450:
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

11 years agoMFC r236391:
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

11 years agoMFC r236087:
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

11 years agoMFC r235990:
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

11 years agoMFC r235903:
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

11 years agoMFC r235828:
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

11 years agoMFC r235557:
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

11 years agoMFC r235554:
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

11 years agoMFC r235418:
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

11 years agoMFC r235416:
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

11 years agoMFC r235414,r235415:
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

11 years agoMFC r235412:
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

11 years agoMFC r235403:
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

11 years agoMFC r235402:
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

11 years agoMFC r235360:
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

11 years agoMFC r245362
bryanv [Thu, 7 Mar 2013 07:28:05 +0000 (07:28 +0000)]
MFC r245362

    Add VirtIO to i386 and amd64 GENERIC

Approved by: grehan (mentor)

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

11 years agoMFC r227652,r230450,r230461,r241470
bryanv [Thu, 7 Mar 2013 07:02:31 +0000 (07:02 +0000)]
MFC r227652,r230450,r230461,r241470

Include/update the VirtIO man pages.

 -r227652: Initial import
 -r230450: General cleanup
 -r230461: Connect VirtIO-related manpages to the build
 -r241470: Virtio SCSI driver man page

Approved by: grehan (mentor)

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

11 years agoMFC r238072,r238360,r240430,r241469,r241470,r241495,r244136,r244200
bryanv [Thu, 7 Mar 2013 06:53:25 +0000 (06:53 +0000)]
MFC r238072,r238360,r240430,r241469,r241470,r241495,r244136,r244200

Sync VirtIO with HEAD.

 - r238072: Do not include <sys/types.h> in the local headers.
 - r238360: Various VirtIO improvements
 - r240430: No need to leak these into the includer's namespace.
 - r241469: virtqueue: Fix non-indirect virtqueues
 - r241470: Add Virtio SCSI driver
 - r241495: Fix build with PAE enabled
 - r244136: Remove duplicated lines
 - r244200: Start taskqueues threads after attach cannot fail

Approved by: grehan (mentor)

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

11 years agoMFC r246522: sh: Simplify mksyntax and make it fit for cross-compiling.
jilles [Wed, 6 Mar 2013 22:12:45 +0000 (22:12 +0000)]
MFC r246522: sh: Simplify mksyntax and make it fit for cross-compiling.

Now it outputs fixed files, which use constants provided by the C standard
library to determine appropriate values for the target machine.

Before, mksyntax inspected the host machine which resulted in subtle
breakage if e.g. char is signed on the host and unsigned on the target such
as when cross-compiling on x86 for ARM.

Tested by: ian (this patch)
Submitted by: Christoph Mallon (patch for head)

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

11 years agoMFC r213713 by obrien: Correct regression test to not show a false positive
jilles [Wed, 6 Mar 2013 21:30:42 +0000 (21:30 +0000)]
MFC r213713 by obrien: Correct regression test to not show a false positive
when run as root.

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

11 years agoMFC r247854:
np [Wed, 6 Mar 2013 18:45:11 +0000 (18:45 +0000)]
MFC r247854:
Fix compile warning by including ctype.h for isdigit().

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

11 years agoMFC r246532: zfs_vget, zfs_fhtovp: properly handle the z_shares_dir object
avg [Wed, 6 Mar 2013 11:11:18 +0000 (11:11 +0000)]
MFC r246532: zfs_vget, zfs_fhtovp: properly handle the z_shares_dir object

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

11 years agoMFC r246245,246324: ng_ether: track interface renaming
avg [Wed, 6 Mar 2013 11:00:47 +0000 (11:00 +0000)]
MFC r246245,246324: ng_ether: track interface renaming

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

11 years agoMFC r246248: cpususpend_handler: mark AP as resumed only after fully
avg [Wed, 6 Mar 2013 09:33:16 +0000 (09:33 +0000)]
MFC r246248: cpususpend_handler: mark AP as resumed only after fully
setting up lapic

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

11 years agoMFC r246247: x86 suspend/resume: suspend pics and pseudo-pics in reverse order
avg [Wed, 6 Mar 2013 09:22:10 +0000 (09:22 +0000)]
MFC r246247: x86 suspend/resume: suspend pics and pseudo-pics in reverse order

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

11 years agoMFC r246246,246254: print compiler version in the kernel banner
avg [Wed, 6 Mar 2013 09:16:01 +0000 (09:16 +0000)]
MFC r246246,246254: print compiler version in the kernel banner

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

11 years agoMFC r247382:
yongari [Wed, 6 Mar 2013 08:04:44 +0000 (08:04 +0000)]
MFC r247382:
  RX checksum offloading on old Yukon controllers seem to cause more
  problems.  Disable RX checksum offloading on controllers that don't
  use new descriptor format but give chance to enable it with
  ifconfig(8).

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

11 years agoMFC r247281, r247345:
trociny [Wed, 6 Mar 2013 06:59:42 +0000 (06:59 +0000)]
MFC r247281, r247345:

r247281:

Add i/o error counters to hastd(8) and make hastctl(8) display
them.  This may be useful for detecting problems with HAST disks.

Discussed with and reviewed by: pjd

r247345:

Fix casting.

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

11 years agoMFC r247281:
trociny [Wed, 6 Mar 2013 06:59:10 +0000 (06:59 +0000)]
MFC r247281:

Add i/o error counters to hastd(8) and make hastctl(8) display
them.  This may be useful for detecting problems with HAST disks.

Discussed with and reviewed by: pjd

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