summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_pcb.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Using %p in a format string requires a void *.tuexen2012-09-051-10/+10
| | | | MFC after: 10 days
* Fix a refcount issue. The called only decrements is stcb is NULL.tuexen2012-08-051-4/+3
| | | | | MFC after: 3 days Discussed with: rrs
* Fix a bug reported by Simon L. B. Nielsen:tuexen2012-08-041-2/+0
| | | | | | | | If an SCTP endpoint receives an ASCONF with a wildcard lookup address and incorrect verification tag, the system crashes. MFC after: 3 days.
* Fix a refcount bug when freeing an association.tuexen2012-07-171-7/+3
| | | | | | While there: Change code to be consistent. Discussed with rrs@. MFC after: 3 days
* #ifdef INET and INET6 consistently. This also fixes a bug, wheretuexen2012-07-151-1/+9
| | | | | | it was done wrong. MFC after: 3 days
* Use case for selecting the address family (as in other places).tuexen2012-07-141-3/+10
| | | | MFC after: 3 days
* Pass the src and dst address of a received packet explicitly around.tuexen2012-06-281-196/+23
| | | | MFC after: 3 days
* Remove code which is not needed.tuexen2012-06-031-4/+0
| | | | MFC after: 3 days
* Use consistent text at the begining of the files.tuexen2012-05-231-4/+2
| | | | MFC after: 3 days
* Provide in the SCTP_SEND_FAILED and SCTP_SEND_FAILED_EVENT notificationstuexen2012-05-131-6/+5
| | | | | | the correct ssf_error or ssfe_error as required by RFC 6458. MFC after: 3 days
* Provide in the association change notification the received ABORT chunktuexen2012-05-121-2/+2
| | | | | | if case of SCTP_COMM_LOST or SCTP_CANT_STR_ASSOC as required by RFC 6458. MFC after: 3 days
* Remove debug code.tuexen2012-05-061-10/+0
| | | | MFC after: 3 days
* Use SCTP_PRINTF() instead of printf() in all SCTP sources.tuexen2012-05-041-5/+5
| | | | MFC after: 3 days
* Address issues found by clang. While there, fix also some styletuexen2011-12-271-23/+13
| | | | | | issues. MFC after: 3 months.
* Fix unused parameter warnings.tuexen2011-12-171-11/+15
| | | | | | While there, fix some whitespace issues. MFC after: 3 months.
* Remove debug code.tuexen2011-11-281-7/+0
| | | | MFC after: 1 month.
* Add support for the SCTP_REMOTE_UDP_ENCAPS_PORT socket option.tuexen2011-11-201-6/+3
| | | | | | | Retire the the now unused sctp_udp_tunneling_for_client_enable sysctl variable. MFC after: 3 months.
* Cleanup comparison of interface names.tuexen2011-11-181-24/+4
| | | | MFC after: 1 month.
* Set the MTU of an path to an approriate value if the interface MTUtuexen2011-11-151-16/+26
| | | | | | can't be determined. MFC after: 3 days.
* Don't copy uninitialized memory. Also simplify the comparisontuexen2011-11-131-15/+5
| | | | | | of interface names. MFC after: 3 days.
* When loading addresses from INITs, always use the correcttuexen2011-11-071-37/+48
| | | | | | local address. MFC after: 3 days.
* When add a new remote address using sctp_add_remote_addr(),tuexen2011-10-271-3/+3
| | | | | | return the correct net if requested. MFC after: 3 days.
* When moving an stcb to a new inp and we copy over the list oftuexen2011-10-101-0/+3
| | | | | | | bound addresses, update the last used address pointer. If not, it might result in a crash if the old inp goes away. MFC after: 3 days.
* Update the inp stored in a HB-timer when moving an stcb to a new inp.tuexen2011-10-091-0/+1
| | | | | | | Use only this stored inp when processing a HB timeout. This fixes a bug which results in a crash. MFC after: 3 days.
* Fix the enabling/disabling of Heartbeats and path MTUtuexen2011-09-171-1/+6
| | | | | | 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-3/+7
| | | | | | | 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-0/+10
| | | | | | | | 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-0/+14
| | | | | | | | socket option. Honor the net.inet6.ip6.auto_flowlabel sysctl setting. Approved by: re (bz) MFC after: 1 month.
* Add support for the spp_dscp field in the SCTP_PEER_ADDR_PARAMStuexen2011-08-141-9/+2
| | | | | | | | 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-24/+58
| | | | | | | | | | | * 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.
* Don't check for SOCK_DGRAM anymore. Also remove multicasttuexen2011-07-121-9/+1
| | | | related code which is not necessary anymore.
* Add support for the newly added SCTP API.tuexen2011-06-151-5/+5
| | | | | | | | | | | | | 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.
* Fix a locking issue showing up on Mac OS X when subscribing totuexen2011-05-081-9/+9
| | | | | | authentication events. DTLS/SCTP renegotiations trigger the bug. MFC after: 2 weeks.
* Improve compilation of SCTP code without INET support.tuexen2011-04-301-181/+406
| | | | | | | | | | | | | | 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
* Tunes and fixes the new DC-CC to seem to hit therrs2011-03-081-0/+1
| | | | | | | | | right mix. Still may need some tweaks but it appears to almost not give away too much to an RFC2581 flow, but can really minimize the amount of buffers used in the net. MFC after: 3 months
* Improvements to CC modules:rrs2011-02-261-1/+2
| | | | | | | | | | | 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 bugs related to M_FLOWID:tuexen2011-02-071-5/+7
| | | | | | | | * Store the flowid when receiving an SCTP/IPv6 packet. * Store the flowid when receiving an SCTP packet with wrong CRC. * Initilize flowid correctly. * Put test code under INVARIANTS. MFC after: 3 months.
* 1) Track when flowid does get set.rrs2011-02-071-2/+1
| | | | MFC after: 3 months
* Add support for M_FLOWID.tuexen2011-02-051-0/+4
|
* 1) Fix cpu mapping per JB's suggestionsrrs2011-02-041-14/+29
| | | | | | 2) Fix it so INIT's don't always end up on CPU0 MFC after: 3 months
* Make sure that changing the ECN sysctl does not affecttuexen2011-02-031-2/+7
| | | | | | exisiting associations and endpoints. MFC after: 3 months.
* 1) Move per John Baldwin to mp_maxidrrs2011-02-031-7/+7
| | | | | | | 2) Some signed/unsigned errors found by Mac OS compiler (from Michael) 3) a couple of copyright updates on the effected files. MFC after: 3 months
* Fix the per CPU stats so that:rrs2011-02-031-1/+13
| | | | | | | | | | | | 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
* Adds an experimental option to create a pool ofrrs2011-02-031-0/+149
| | | | | | | | | threads. These serve as input threads and are queued packets based on the V-tag number. This is similar to what a modern card can do with queue's for TCP... but alas modern cards know nothing about SCTP. MFC after: 3 months (maybe)
* 1) Allow a chunk to track the cwnd it was at when sent.rrs2011-02-021-0/+2
| | | | | | | | | | | | | | | | | | | 2) Add separate max-bursts for retransmit and hb. These are set to sysctlable values but not settable via the socket api. This makes sure we don't blast out HB's or fast-retransmits. 3) Determine on the first data transmission on a net if its local-lan (by being under or over a RTT). This can later be used to think about different algorithms based on locallan vs big-i (experimental) 4) The cwnd should NOT be allowed to grow when an ECNEcho is seen (TCP has this same bug). We fix this in SCTP so an ECNe being seen prevents an advance of cwnd. 5) CWR's should not be sent multiple times to the same network, instead just updating the TSN being transmitted if needed. MFC after: 1 Month
* More ECN fixes:rrs2011-01-311-4/+0
| | | | | | | | | | | 1) We now remove ECN-Nonce since it will no longer continue as a I-D 2) Eliminate last_tsn_echo, this tied us to an assoc not the net and thus we were not doing m-homing on the ECN-Echo senders side right. 3) Increment the count going out even if the TSN in lower in the pending ECN-Echo, this way the receiver knows exactly how many packets were marked even with network re-ordering 4) Fix so we DO NOT stop doing delayed sack if a ECN Echo is in queue MFC after: 1 month
* Fixes to ECN in SCTP.rrs2011-01-291-0/+1
| | | | | | | | | | | | | 1) ECN was on an association basis, this is incorrect and will not work with CMT or for that matter if the user is sending to multiple addresses. This commit makes ECN on a per path basis. 2) Adopt the new format for the ECN internet draft. This also maintains compatability with old format chunks as well. 3) Keep track of the real time of a RTT down to micro seconds. For some future conditional features (for like a data center this is good information to have). MFC after: 1 month
* Add stream scheduling support.tuexen2011-01-231-0/+1
| | | | | | This work is based on a patch received from Robin Seggelmann. MFC after: 3 months.
* Cleanup the management of CC functions.tuexen2011-01-191-7/+1
| | | | MFC after: 3 months.
* Define and use SCTP_SSN_GE, SCTP_SSN_GT, SCTP_TSN_GE, SCTP_TSN_GT macrostuexen2010-12-301-7/+3
| | | | | | | and use them instead of the generic compare_with_wrap. Retire compare_with_wrap. MFC after: 3 months.
OpenPOWER on IntegriCloud