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

11 years agoMFC r247268:
gallatin [Tue, 5 Mar 2013 19:20:34 +0000 (19:20 +0000)]
MFC r247268:
 Several cleanups and fixes to mxge:

 - Remove vestigial null pointer tests after malloc(..., M_WAITOK).

 - Remove vestigal qualhack union

 - Use strlcpy() instead of the error-prone strncpy() when parsing
   EEPROM and copying strings

 - Check the MAC address in the EEPROM strings more strictly.

 - Expand the macro MXGE_NEXT_STRING() at its only user. Due to a typo,
   the macro was very confusing.

 - Remove unnecessary buffer limit check.  The buffer is double-NUL
   terminated per construction.

PR:             kern/176369
Submitted by:   Christoph Mallon <christoph.mallon gmx.de>

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

11 years agoMFC r247159
gallatin [Tue, 5 Mar 2013 17:46:12 +0000 (17:46 +0000)]
MFC r247159
  Improvements for newer mxge nics:

  - Some mxge nics may store the serial number in the SN2 field of the
    EEPROM.  These will also have an SN=0 field, so parse the SN2 field,
    and give it precedence.

  - Skip MXGEFW_CMD_UNALIGNED_TEST on mxge nics which do not require it.
    This saves roughly 10ms per port at device attach time.

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

11 years agoMFC r247396:
tijl [Tue, 5 Mar 2013 16:04:15 +0000 (16:04 +0000)]
MFC r247396:

Map libraries linked with -Ttext-segment=base_addr at base_addr.
Normal libraries have base address 0 and are unaffected by this change.

PR: 176216
Submitted by: Damjan Jovanovic <damjan.jov@gmail.com>
Reviewed by: kib

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

11 years agoMFC r247594:
delphij [Tue, 5 Mar 2013 06:43:54 +0000 (06:43 +0000)]
MFC r247594:

Fix a typo in mfi_stp_cmd() that would give wrong assignment.

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

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

11 years agoMFC r247443:
delphij [Tue, 5 Mar 2013 06:41:39 +0000 (06:41 +0000)]
MFC r247443:

Refresh vendor driver version which adds ARC-1224 support.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: 黃清隆 <ching2048 areca com tw>

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

11 years agoMFC r246134 ...
ian [Mon, 4 Mar 2013 23:22:37 +0000 (23:22 +0000)]
MFC r246134 ...

Improve devd startup time, by tweaking some string handling routines that are
heavily used when parsing config files.  Mostly these changes avoid making
temporary copies of the strings, and avoid doing byte at a time append
operations, on the most-used code path.

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

11 years agoMFC ...
ian [Mon, 4 Mar 2013 23:15:25 +0000 (23:15 +0000)]
MFC ...

 r210609 - remove unused string
 r210610 - avoid copy ctors by using prefix operators
 r213646 - allow spacey things (liberal whitespace parsing)
 r236388 - libc++ compatibility (add :: prefix to bind() call)
 r240823 - use O_CLOEXEC for open instead of separate fcntl(2) call
 r243932 - prefer init expression to assignment in ctor

 r209583 ...

 Expand system into my_system, and add the necessary tidyness that we
 need.  Close the pidfile.  Then close all descriptors >= 3 to avoid
 information leakage to children.

 This solves the problem of not being able to restart devd when you
 have, for example, a dhclient forked to configure your network...

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

11 years agoMFC r209583 ...
ian [Mon, 4 Mar 2013 22:04:14 +0000 (22:04 +0000)]
MFC r209583 ...

Expand system into my_system, and add the necessary tidyness that we
need.  Close the pidfile.  Then close all descriptors >= 3 to avoid
information leakage to children.

This solves the problem of not being able to restart devd when you
have, for example, a dhclient forked to configure your network...

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

11 years agoMFC 205541,205592:
jhb [Mon, 4 Mar 2013 18:28:24 +0000 (18:28 +0000)]
MFC 205541,205592:
Implement /proc/filesystems.

PR: kern/142595

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

11 years agoMFC r246121 r246361 ...
ian [Mon, 4 Mar 2013 17:39:17 +0000 (17:39 +0000)]
MFC r246121 r246361 ...

Fix a descriptor leak in devd.  Clients reading /var/run/devd.pipe can close
their socket connection any time, and devd only notices that when it gets an
error trying to write an event to the client.  On a system with no device
change activity, clients could connect and disappear repeatedly without devd
noticing, leading to an ever-growing list of open socket descriptors in devd.

Now devd uses poll(2) looking for POLLHUP on all existing clients every time
a new client connection is established, and also periodically (once a minute)
to proactively find zombie clients and reap the socket descriptors.  It also
now has a connection limit, configurable with a new -l <num> command line arg.
When the maximum number of connections is reached it stops accepting new
connections until some current clients drop off.

Bump .Dd in for content change (r246361).

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

11 years agoMFC 199757:
jhb [Mon, 4 Mar 2013 17:35:10 +0000 (17:35 +0000)]
MFC 199757:
- For 350 chips, don't set various INTR bits in TX control word; turning INTR
  bits on seems to confuse hardware TX engine.
- For 350 chips, set TX desc's buffer physical address before turning on the
  TX desc valid bit.

PR: kern/85886

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

11 years agoMFC r247780:
dteske [Mon, 4 Mar 2013 11:43:20 +0000 (11:43 +0000)]
MFC r247780:

Fix VERBOSE reporting on results when removing _PATH_LOCALTIME for UTC option.

PR: bin/164976
Submitted by: dteske

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