summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_indata.c
Commit message (Collapse)AuthorAgeFilesLines
* When computing the partial delivery point, take thetuexen2013-09-071-3/+2
| | | | | | receiver socket buffer size correctly into account. MFC after: 1 week
* Remove redundant field pr_sctp_on.tuexen2013-09-031-1/+1
| | | | MFC after: 1 week
* Make the features a 64-bit value instead of 32-bit.tuexen2013-08-121-1/+0
| | | | | | | | This will allow an easier integration of the support for NDATA. While there, do also some minor cleanups. Obtained from: rrs@ MFC after: 2 weeks
* Code cleanups.tuexen2013-07-031-2/+0
| | | | MFC after: 3 days
* Don't send kernel provided information in the User Initiatedtuexen2013-02-111-12/+4
| | | | | | | | | | | 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. MFC after: 3 days
* Fix a bug where HEARTBEATs were still sent in SHUTDOWN_SENT ortuexen2013-02-091-17/+17
| | | | | | | SHUTDOWN_ACK_SENT state. While there, make the corresponding code consistent. MFC after: 1 week
* Mechanically substitute flags from historic mbuf allocator withglebius2012-12-051-29/+29
| | | | | | | | | malloc(9) flags within sys. Exceptions: - sys/contrib not touched - sys/mbuf.h edited manually
* Get the accounting working. We now have counters how manytuexen2012-11-161-11/+19
| | | | | | | | | 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. MFC after: 1 week
* Add per outgoing stream accounting for chunks in the sendtuexen2012-11-071-5/+17
| | | | | | | | and sent queue. This provides no functional change, but is a preparation for an upcoming stream reset improvement. Done with rrs@. MFC after: 1 week
* Add some missing changes missed in the last commit.tuexen2012-11-071-3/+5
| | | | | MFC after: 1 week X-MFC with: 242708
* Improve PR-SCTP if used in combination with NR-SACK.tuexen2012-11-071-2/+5
| | | | | | Based on work done by Mohammad Rajiullah. MFC after: 1 week
* Don't include a structure containing a flexible array in anothertuexen2012-09-071-1/+1
| | | | | | structure. MFC after: 10 days
* Using %p in a format string requires a void *.tuexen2012-09-051-1/+1
| | | | MFC after: 10 days
* Pass the src and dst address of a received packet explicitly around.tuexen2012-06-281-2/+4
| | | | MFC after: 3 days
* Whitespace cleanup.tuexen2012-06-251-8/+8
| | | | MFC after: 3 days
* Pass the packet length explicitly around.tuexen2012-06-241-1/+1
| | | | MFC after: 3 days
* Pass flowid explicitly through the stack instead of taking it fromtuexen2012-06-141-4/+12
| | | | | | | the mbuf chain at different places. While there: Fix several bugs related to VRFs. 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/+3
| | | | | | the correct ssf_error or ssfe_error as required by RFC 6458. MFC after: 3 days
* Provide the error code in SCTP_PEER_ADDR_CHANGE notifications astuexen2012-05-131-2/+2
| | | | | | specified in RFC 6458. MFC after: 3 days
* Provide in the association change notification the received ABORT chunktuexen2012-05-121-52/+23
| | | | | | if case of SCTP_COMM_LOST or SCTP_CANT_STR_ASSOC as required by RFC 6458. MFC after: 3 days
* Use SCTP_PRINTF() instead of printf() in all SCTP sources.tuexen2012-05-041-18/+18
| | | | MFC after: 3 days
* Fix a bug where we copy out more data from a mbuf chain that aretuexen2012-04-191-4/+6
| | | | | | | | | actually in it. This happens when SCTP receives an unknown chunk, which requires the sending of an ERROR chunk, and there is no final padding but the chunk is not 4-byte aligned. Reported by yueting via rwatson@ MFC after: 3 days
* Address issues found by clang. While there, fix also some styletuexen2011-12-271-21/+11
| | | | | | issues. MFC after: 3 months.
* Fix unused parameter warnings.tuexen2011-12-171-36/+19
| | | | | | While there, fix some whitespace issues. MFC after: 3 months.
* The result of a joint work between rrs@ and myself at the IETF:tuexen2011-08-031-48/+127
| | | | | | | | | | | * 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 support for the newly added SCTP API.tuexen2011-06-151-25/+87
| | | | | | | | | | | | | 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.
* Get rid of unused functions.tuexen2011-05-291-43/+0
| | | | MFC after: 1 week.
* 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.
* Tunes and fixes the new DC-CC to seem to hit therrs2011-03-081-27/+53
| | | | | | | | | 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-0/+26
| | | | | | | | | | | 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
* 1) Typo correction in comments and one spacing change.rrs2011-02-051-0/+2
| | | | | 2) Mass update to all copyrights. MFC after: 3 Months
* 1) Allow a chunk to track the cwnd it was at when sent.rrs2011-02-021-8/+12
| | | | | | | | | | | | | | | | | | | 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-182/+5
| | | | | | | | | | | 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/+8
| | | | | | | | | | | | | 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
* Define and use SCTP_SSN_GE, SCTP_SSN_GT, SCTP_TSN_GE, SCTP_TSN_GT macrostuexen2010-12-301-152/+88
| | | | | | | and use them instead of the generic compare_with_wrap. Retire compare_with_wrap. MFC after: 3 months.
* Code cleanup: Use LIST_FOREACH, LIST_FOREACH_SAFE, TAILQ_FOREACH,tuexen2010-12-301-261/+183
| | | | | | | TAILQ_FOREACH_SAFE where appropriate. No functional change. MFC after: 3 months.
* Improve plausibility check in sctp_handle_sack().tuexen2010-12-221-29/+21
| | | | | | Allow cmt_on_off to support values 0 (no CMT), 1 (CMT), and 2 (CMT/RP). MFC after: 3 months.
* Bugfix: Take also the nr-mapping array into account when detectingtuexen2010-12-161-5/+7
| | | | | | | gaps. Reviewed by: rrs@ MFC after: 3 days.
* Add a missing cast. Reported by blade_ly at yahoo.com.cn.tuexen2010-12-161-1/+1
| | | | MFC after: 1 day.
* Fix a bug where also the number of non-renegable gap reportstuexen2010-12-041-47/+22
| | | | | | was considered to be potentially renegable. MFC after: 1 day.
* Not only stop all timers when entering the SHUTDOWN_SENT state,tuexen2010-11-071-2/+2
| | | | | | but also when entering the SHUTDOWN_ACK_SEND state. MFC after: 3 days.
* Fix a locking issue which resulted in aborted associationstuexen2010-09-201-4/+4
| | | | | | due to a corrupted nr-mapping array. MFC after: 2 weeks.
* Fix a bug where the wrong PR-SCTP policy was considered.tuexen2010-09-171-7/+1
| | | | | | | While there, use always the same code for the check of TTL expiration. MFC after: 2 weeks.
* Use TAILQ_EMPTY() for testing if a tail queue is empty.tuexen2010-09-151-4/+5
| | | | Set whoFrom to NULL after freeing whoFrom.
* Fix the switching on/off of CMT using sysctl and socket option.tuexen2010-08-281-10/+17
| | | | | | | | Fix the switching on/off of PF and NR-SACKs using sysctl. Add minor improvement in handling malloc failures. Improve the address checks when sending. MFC after: 4 weeks
* PR SCTP Bugs. Basically a full sized frame ofrrs2010-07-291-15/+16
| | | | | | | | PR SCTP FWD-TSN's would not be sent and thus cause a stalled connection. Also the rwnd Calculation was also off on the receiver side for PR-SCTP. MFC after: 1 month
* BUG:Turns out we need to use both bit mapsrrs2010-06-091-11/+1
| | | | | | | to calculate the cum-ack (we were not doing it for the NR-Sack case). With this fix NR-sack should now work correctly. MFC after: 1 week
* 2 Bugs:rrs2010-06-081-2/+20
| | | | | | | | | | | | | 1) Only use both mapping arrays when NR sack is off. This way we can hold off moving the cumack (not the best but workable) when NR-sack is on. 2) We must make sure to just return on the move of the bit to the NR array if the cum-ack as already went past the TSN. This prevents marking a bit behind the array and hitting the invariant code that panic's us. MFC after: 1 week
* This fixes a BUG in the handling of the cum-ack calculation.rrs2010-06-071-7/+12
| | | | | | | | | | | | | | We were only paying attention to the nr-mapping-array. Which seems to make sense on the surface, by definition things up to the cum-ack should be deliverable thus in the nr-mapping-array. However (there is always a gotcha) thats not true when it comes to large messages. The stack may hold the message while re-assembling it not not deliver it based on several thresholds. If that happens (which it would for smaller large messages) then the cum-ack is figured wrong. We now properly use both arrays in the cum-ack calculation. MFC after: 1 week.
OpenPOWER on IntegriCloud