summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_usrreq.c
Commit message (Collapse)AuthorAgeFilesLines
* Changes which improve compilation if neither INET nor INET6 is defined.tuexen2012-07-151-10/+4
| | | | MFC after: 3 days
* #ifdef INET and INET6 consistently. This also fixes a bug, wheretuexen2012-07-151-1/+1
| | | | | | it was done wrong. MFC after: 3 days
* Pass the src and dst address of a received packet explicitly around.tuexen2012-06-281-4/+4
| | | | MFC after: 3 days
* Whitespace cleanup.tuexen2012-06-251-4/+4
| | | | MFC after: 3 days
* Remove redundant #ifdef. Reported by gnn@.tuexen2012-06-211-2/+0
| | | | MFC after: 3 days
* Use consistent text at the begining of the files.tuexen2012-05-231-4/+3
| | | | MFC after: 3 days
* Provide the error code in SCTP_PEER_ADDR_CHANGE notifications astuexen2012-05-131-9/+9
| | | | | | specified in RFC 6458. MFC after: 3 days
* Use ECONNABORTED in cases where the ABORT was sent to the peer.tuexen2012-05-131-1/+1
| | | | MFC after: 3 days
* Provide in the association change notification the received ABORT chunktuexen2012-05-121-6/+2
| | | | | | if case of SCTP_COMM_LOST or SCTP_CANT_STR_ASSOC as required by RFC 6458. MFC after: 3 days
* Address clang warnings.tuexen2012-05-061-4/+2
| | | | MFC after: 3 days
* Remove debug code.tuexen2012-05-061-10/+0
| | | | MFC after: 3 days
* Add support for SCTP_SEND_FAILED_EVENT as required by RFC 6458.tuexen2012-05-061-0/+6
| | | | MFC after: 3 days
* Do error checking for the SCTP_RESET_STREAMS, SCTP_RESET_ASSOC,tuexen2012-05-051-19/+15
| | | | | | and SCTP_ADD_STREAMS socket options as specified by RFC 6525. MFC after: 3 days
* Add support for the SCTP_ENABLE_STREAM_RESET socket option totuexen2012-05-041-5/+30
| | | | | | getsockopt(). This improves the support of RFC 6525. MFC after: 3 days
* Add support for SCTP_STREAM_CHANGE_EVENT, SCTP_ASSOC_RESET_EVENT astuexen2012-05-041-0/+12
| | | | | | required by RFC 6525. This also fixes SCTP_STREAM_RESET_EVENT. MFC after: 3 days
* Add support for missing gauth_number_of_chunks field. This Bug wastuexen2012-04-301-0/+3
| | | | | | found by Irene Ruengeler. MFC after: 1 week
* Whitespace changes.tuexen2012-04-281-3/+0
| | | | MFC after: 3 days
* Whitespace changes.tuexen2012-04-191-1/+1
| | | | MFC after: 3 days
* Remove duplicate condition in if statement.tuexen2012-04-061-1/+0
| | | | | Obtained from: brucec@ MFC after: 3 days
* Make stream our stream reset implementationrrs2012-03-291-114/+163
| | | | | | compliant to RFC6525. MFC after: 1 month
* Clean up, no functional change.tuexen2012-03-151-16/+11
| | | | MFC after: 3 days.
* Remove two clang warnings.tuexen2012-02-181-1/+1
| | | | MFC after: 1 month.
* Fix two bugs, which result in a panic when calling getsockopt()tuexen2012-01-141-2/+2
| | | | | | | using SCTP_RECVINFO or SCTP_NXTINFO. Reported by Clement Lecigne and forwarded to us by zi@. MFC after: 3 days.
* Address issues found by clang. While there, fix also some styletuexen2011-12-271-34/+27
| | | | | | issues. MFC after: 3 months.
* Fix unused parameter warnings.tuexen2011-12-171-11/+8
| | | | | | While there, fix some whitespace issues. MFC after: 3 months.
* Fix a bug reported by Irene Ruengeler which resulted in not sendingtuexen2011-12-101-0/+1
| | | | | | | out HEARTBEATs when requested by the user. The HEARTBEATs were only queued, but not actually sent out. MFC after: 2 months.
* Add support for the SCTP_REMOTE_UDP_ENCAPS_PORT socket option.tuexen2011-11-201-1/+169
| | | | | | | Retire the the now unused sctp_udp_tunneling_for_client_enable sysctl variable. MFC after: 3 months.
* Use the most significant 6 bits of the dscp instead of the leasttuexen2011-10-111-7/+7
| | | | | | | | | significant ones. This has changed in the latest version of the socket API ID and provides backwards compatibility and gets it in syn with the usage of the IP_TOS socket option. MFC after: 3 days.
* Fix the enabling/disabling of Heartbeats and path MTUtuexen2011-09-171-19/+29
| | | | | | discovery when using the SCTP_PEER_ADDR_PARAMS socket option. Approved by: re MFC after: 1 month.
* Make sure that SCTP rejects broadcast, multicast and wildcard addressestuexen2011-09-151-1/+1
| | | | | | | as remote addresses. Approved by: re MFC after: 1 month.
* Ensure that 1-to-1 style SCTP sockets can only be connected once.tuexen2011-09-141-9/+5
| | | | | | | | Allow implicit setup also for 1-to-1 style sockets as described in the latest version of the socket API ID. Approved by: re MFC after: 1 month
* Fix the handling of the flowlabel and DSCP value in the SCTP_PEER_ADDR_PARAMStuexen2011-09-141-28/+48
| | | | | | | | socket option. Honor the net.inet6.ip6.auto_flowlabel sysctl setting. Approved by: re (bz) MFC after: 1 month.
* Fix the handling of [gs]etsockopt() unconnected 1-to-1 style sockets.tuexen2011-08-161-37/+114
| | | | | | | | | | While there: * Fix a locking issue in setsockopt() of SCTP_CMT_ON_OFF. * Fix a bug in setsockopt() of SCTP_DEFAULT_PRINFO, where the pr_value was ignored. Approved by: re@ MFC after: 2 months.
* Add support for the spp_dscp field in the SCTP_PEER_ADDR_PARAMStuexen2011-08-141-23/+14
| | | | | | | | socket option. Backwards compatibility is provided by still supporting the spp_ipv4_tos field. Approved by: re@ MFC after: 2 months.
* The result of a joint work between rrs@ and myself at the IETF:tuexen2011-08-031-100/+410
| | | | | | | | | | | * Decouple the path supervision using a separate HB timer per path. * Add support for potentially failed state. * Bring back RTO.min to 1 second. * Accept packets on IP-addresses already announced via an ASCONF * While there: do some cleanups. Approved by: re@ MFC after: 2 months.
* Add the missing sca_keylength field to the sctp_authkey structure,tuexen2011-06-301-1/+11
| | | | | | which is used the the SCTP_AUTH_KEY socket option. MFC after: 1 month.
* Add SCTP_DEFAULT_PRINFO socket option.tuexen2011-06-161-0/+74
| | | | | | | Fix the SCTP_DEFAULT_SNDINFO socket option: Don't clear the PR SCTP policy when setting sinfo_flags. MFC after: 1 month.
* Add support for the newly added SCTP API.tuexen2011-06-151-435/+1054
| | | | | | | | | | | | | In particular add support for: * SCTP_SNDINFO, SCTP_PRINFO, SCTP_AUTHINFO, SCTP_DSTADDRV4, and SCTP_DSTADDRV6 cmsgs. * SCTP_NXTINFO and SCTP_RCVINFO cmgs. * SCTP_EVENT, SCTP_RECVRCVINFO, SCTP_RECVNXTINFO and SCTP_DEFAULT_SNDINFO socket option. * Special association ids (SCTP_FUTURE_ASSOC, ...) * sctp_recvv() and sctp_sendv() functions. MFC after: 1 month.
* Copy out the mtu when calling getsockopt() with SCTP_GET_PEER_ADDR_INFO.tuexen2011-05-171-0/+1
| | | | MFC after: 1 week.
* Fix a locking issue showing up on Mac OS X when subscribing totuexen2011-05-081-1/+1
| | | | | | authentication events. DTLS/SCTP renegotiations trigger the bug. MFC after: 2 weeks.
* Implement Resource Pooling V2 and an MPTCP like congestiontuexen2011-05-041-8/+12
| | | | | | | control. Based on a patch received from Martin Becke. MFC after: 2 weeks.
* Improve compilation of SCTP code without INET support.tuexen2011-04-301-55/+184
| | | | | | | | | | | | | | Some bugs where fixed while doing this: * ASCONF-ACK messages might use wrong port number when using IPv6. * Checking for additional addresses takes the correct address into account and also does not do more comparisons than necessary. This patch is based on one received from bz@ who was sponsored by The FreeBSD Foundation and iXsystems. MFC after: 1 week
* Adds a new Congestion Control that helps reducerrs2011-03-011-0/+4
| | | | | | | | the RTT that a flow will build up in buffers in transit. It is a slight modification to RFC2581 but is more friendly i.e. less aggressive. MFC after: 3 months
* Improvements to CC modules:rrs2011-02-261-0/+43
| | | | | | | | | | | 1) Add four new points that allow you to get more information to cc algo's 2) Fix the case where user changes module on a existing TCB, in such a case, the initialization module needs to be called on all nets. 3) Move htcp_cc structure to a union that other modules can use. 4) Add 5th point for get/set socket options for cc_module specific options MFC after: 2 months
* * Fix several bugs where the scaled versions of srtt and rttvartuexen2011-02-241-2/+2
| | | | | | | where used incorrectly. * Use appropriate variable names for RTO instead of RTT. MFC after: 3 months.
* 1) Typo correction in comments and one spacing change.rrs2011-02-051-3/+2
| | | | | 2) Mass update to all copyrights. MFC after: 3 Months
* Fix several bugs in the stream schedulers.tuexen2011-02-031-2/+2
| | | | | | From Robin Seggelmann. MFC after: 3 months.
* Fix the per CPU stats so that:rrs2011-02-031-2/+3
| | | | | | | | | | | | 1) They don't use the giant "MAX_CPU" define and instead are allocated dynamically based on mp_ncpus 2) Will zero with the netstat -z -s -p sctp 3) Will be properly handled by both the sctp_init and finish (the multi-net stuff was incorrectly bzero'ing in sctp_init the wrong size.. the bzero is now moved to the right places). And of course the free is put in at the very end. MFC after: 3 Months
* Make SCTP_MAX_BURST compliant with the latest version oftuexen2011-01-261-13/+22
| | | | | the socket API ID. This is not compatible with the API in stable/8.
* Change infrastructure for SCTP_MAX_BURST to allow compliancetuexen2011-01-261-4/+6
| | | | | | | | | | with the latest socket API ID. Especially it can be disabled. Full compliance needs changing the structure used in the socket option. Since this breaks the API, it will be a seperate commit which will not be MFCed to stable/8. MFC after: 3 months.
OpenPOWER on IntegriCloud