summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_constants.h
Commit message (Collapse)AuthorAgeFilesLines
* Get the accounting working. We now have counters how manytuexen2012-11-161-1/+1
| | | | | | | | | 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
* Improve PR-SCTP if used in combination with NR-SACK.tuexen2012-11-071-0/+1
| | | | | | Based on work done by Mohammad Rajiullah. MFC after: 1 week
* Use consistent text at the begining of the files.tuexen2012-05-231-6/+4
| | | | MFC after: 3 days
* Use a default for max_burst of 4 and l2var of 2.tuexen2012-05-171-1/+1
| | | | | | This was discussed with rrs@. MFC after: 3 days
* Support SCTP_REMOTE_ERROR notification.tuexen2012-05-131-0/+1
| | | | MFC after: 3 days
* Provide in the SCTP_SEND_FAILED and SCTP_SEND_FAILED_EVENT notificationstuexen2012-05-131-33/+22
| | | | | | the correct ssf_error or ssfe_error as required by RFC 6458. MFC after: 3 days
* Remove unused constants.tuexen2012-05-131-27/+19
| | | | MFC after: 3 days
* Use ECONNABORTED in cases where the ABORT was sent to the peer.tuexen2012-05-131-2/+3
| | | | MFC after: 3 days
* Provide the flags in the SCTP stream reconfig related notificationtuexen2012-05-051-4/+3
| | | | | | as specified in RFC 6525. MFC after: 3 days
* Make stream our stream reset implementationrrs2012-03-291-1/+2
| | | | | | compliant to RFC6525. MFC after: 1 month
* Address issues found by clang. While there, fix also some styletuexen2011-12-271-2/+2
| | | | | | issues. MFC after: 3 months.
* Fix unused parameter warnings.tuexen2011-12-171-15/+4
| | | | | | 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/+2
| | | | | | | out HEARTBEATs when requested by the user. The HEARTBEATs were only queued, but not actually sent out. MFC after: 2 months.
* Fix the enabling/disabling of Heartbeats and path MTUtuexen2011-09-171-0/+1
| | | | | | discovery when using the SCTP_PEER_ADDR_PARAMS socket option. Approved by: re MFC after: 1 month.
* The result of a joint work between rrs@ and myself at the IETF:tuexen2011-08-031-17/+13
| | | | | | | | | | | * 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.
* Tunes and fixes the new DC-CC to seem to hit therrs2011-03-081-2/+2
| | | | | | | | | 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
* Adds a new Congestion Control that helps reducerrs2011-03-011-3/+2
| | | | | | | | 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
* 1) Typo correction in comments and one spacing change.rrs2011-02-051-3/+2
| | | | | 2) Mass update to all copyrights. MFC after: 3 Months
* 1) Move per John Baldwin to mp_maxidrrs2011-02-031-4/+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
* Adds an experimental option to create a pool ofrrs2011-02-031-0/+2
| | | | | | | | | 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/+23
| | | | | | | | | | | | | | | | | | | 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-2/+1
| | | | | | | | | | | 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
* * Use 300 ms as the default for RTO_MIN.tuexen2011-01-261-4/+3
| | | | | | | * Disable burst mitigation by default. * Remove unused constant. Discussed with rrs. MFC after: 3 months.
* Fix it so we align with new socket API draft forrrs2011-01-201-2/+1
| | | | | | state's in destination (i.e. ACTIVE/INACTIVE/UNCONFIRMED) MFC after: 1 week
* Define and use SCTP_SSN_GE, SCTP_SSN_GT, SCTP_TSN_GE, SCTP_TSN_GT macrostuexen2010-12-301-5/+7
| | | | | | | and use them instead of the generic compare_with_wrap. Retire compare_with_wrap. MFC after: 3 months.
* * Implement initial version of send buffer splitting.tuexen2010-09-171-0/+3
| | | | | * Make send/recv buffer splitting switchable via sysctl. * While there: Fix some comments.
* 1) Optimize the cleanup and don't always depend onrrs2010-06-061-1/+1
| | | | | | | | | | | | | the timer. This is done by considering the locks we will destroy and if they are contended we consider it the same as a reference count being up. Fixing this appears to cleanup another crash that was appearing with all the timers where the socket buf lock got corrupted. 2) Fix the sysctl code to take a lot more care when looking at INP's that are in the GONE or ALLGONE state. MFC after: 1 week
* Ok, yet another bug in killing off all the hundredsrrs2010-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | of apitesters.. Basically we end up with attempting to destroy a lock thats contended on. A cookie echo arrives at the same time that the close is happening. The close gets the lock but the cookie echo has already passed the check for the gone flag and is then locked waiting on the create lock.. when we go to destroy it bam. For now we do the timer destroy for all calls to close.. We can probably optimize this later so that we check whats being contended on and if there is contention then do the timer thing. but this is probably safest since the inp has been removed from all lists and references and only the timer can find it.. once the locks are released all other places will instantly see the GONE flag and bail (thats what the change in sctp_input is one place that was lacking the bail code). MFC after: 1 week
* This adds back the Iterator to the sctprrs2010-05-161-5/+0
| | | | | | | | | code base. We now properly have ONE thread that services all VNET's. Also we purge out the old timer based iterator code which had multiple LOR's and other issues. MFC after: 3 days
* Get rid of unused constants.tuexen2010-05-121-8/+0
| | | | MFC after: 3 days.
* This fixes a bug with the one-2-one model socket when arrs2010-05-111-0/+1
| | | | | | | user sets up a socket to a server sends data and closes the socket before the server has called accept(). It used to NOT work at all. Now we add a flag to the assoc and defer assoc cleanup so that the accept will suceed.
* * Fix some race condition in SACK/NR-SACK processing.tuexen2010-04-031-7/+8
| | | | | | | | * Fix handling of mapping arrays when draining mbufs or processing FORWARD-TSN chunks. * Cleanup code (no duplicate code anymore for SACKs and NR-SACKs). Part of this code was developed together with rrs. MFC after: 2 weeks.
* Remove strange APPLE define that leakedrrs2010-01-171-12/+0
| | | | | through the scrubber scripts. Scripts are now fixed so this won't happen again.
* Use the default stack size for the iterator thread.tuexen2009-11-271-1/+1
| | | | | | | This fixes a crash reported by Irene Ruengeler. Approved by: rrs (mentor) MFC after: 1 month
* Disable (temporary) the thread based interator. It does not work with vnet.tuexen2009-11-171-0/+3
| | | | Approved by: rrs (mentor)
* Fixes several PR-SCTP releated bugs.rrs2009-03-141-2/+2
| | | | | | | | - When sending large PR-SCTP messages over a lossy link we would incorrectly calculate the fwd-tsn - When receiving large multipart pr-sctp packets we would incorrectly send back a SACK that would renege improperly on already received packets thus causing unneeded retransmissions.
* - PR-SCTP bug, where the CUM-ACK was not being updatedrrs2009-03-041-1/+2
| | | | | | | | | | into the advance_peer_ack point so we would incorrectly send a wrong value in the FWD-TSN - PR-SCTP bug, where an PR packet is used for a window probe which could incorrectly get the packet moved back into the send_queue, which will cause major issues and should not happen. - Fix a trace to use the proper macro.
* Add the add-stream capability. Still needs morerrs2009-02-201-2/+7
| | | | | | testing.. MFC after: 1 month
* - Cleanup checksum code.rrs2009-02-031-57/+11
| | | | | | | | | | | | | | | | | - Prepare for CRC offloading, add MIB counters (RS/MT). - Bugfix: Disable CRC computation for IPv6 addresses with local scope (MT). - Bugfix: Handle close() with SO_LINGER correctly when notifications are generated during the close() call(MT). - Bugfix: Generate DRY event when sender is dry during subscription. Only for 1-to-1 style sockets (RS/MT) - Bugfix: Put vtags for the correct amount of time into time-wait (MT). - Bugfix: Clear vtag entries correctly on expiration (MT). - Bugfix: shutdown() indicates ENOTCONN when called for unconnected 1-to-1 style sockets (MT). - Bugfix: In sctp Auth code (PL). - Add support for devices that support SCTP csum offload (igb). - Add missing sctp_associd to mib sysctl xsctp_tcb structure (RS) Obtained from: With help from Peter Lei and Michael Tuexen
* Code from the hack-session known as the IETF (and arrs2008-12-061-54/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | bit of debugging afterwards): - Fix protection code for notification generation. - Decouple associd from vtag - Allow vtags to have less strigent requirements in non-uniqueness. o don't pre-hash them when you issue one in a cookie. o Allow duplicates and use addresses and ports to discriminate amongst the duplicates during lookup. - Add support for the NAT draft draft-ietf-behave-sctpnat-00, this is still experimental and needs more extensive testing with the Jason Butt ipfw changes. - Support for the SENDER_DRY event to get DTLS in OpenSSL working with a set of patches from Michael Tuexen (hopefully heading to OpenSSL soon). - Update the support of SCTP-AUTH by Peter Lei. - Use macros for refcounting. - Fix MTU for UDP encapsulation. - Fix reporting back of unsent data. - Update assoc send counter handling to be consistent with endpoint sent counter. - Fix a bug in PR-SCTP. - Fix so we only send another FWD-TSN when a SACK arrives IF and only if the adv-peer-ack point progressed. However we still make sure a timer is running if we do have an adv_peer_ack point. - Fix PR-SCTP bug where chunks were retransmitted if they are sent unreliable but not abandoned yet. With the help of: Michael Teuxen and Peter Lei :-) MFC after: 4 weeks
* -Improvement: Add '\n' on debug output in sctp_lower_sosend().rrs2008-11-121-8/+1
| | | | | | | | | | | | | | | | | -Improvement: panic() on INVARIANTS kernels if memory allocation fails for a tagblock in sctp_add_vtag_to_timewait(). -Bugfix: Protect code in sctp_is_in_timewait() by SCTP_INP_INFO_WLOCK/SCTP_INP_INFO_WUNLOCK. -Cleanup: Get rid of unused variable now in sctp_init_asoc(). -Bugfix: Reuse the correct vtag in sctp_add_vtag_to_timewait(). -Cleanup: Get rid of unused constant SCTP_TIME_WAIT_SHORT in sctp_constants.h. -Improvement: Use all hash buckets of the vtag hash table. -Cleanup: Get rid of then unused constant SCTP_STACK_VTAG_HASH_SIZE_A. -Bugfix: Handle SHUTDOWN;SACK packet correctly. -Bugfix: Last TSN in a gap ack block was not being "ack'd" in the internal scoreboard. Obtained from: (with help from Michael Tuexen)
* - Out with some printfs.rrs2008-07-291-2/+0
| | | | | | | - Fix a initialization of last_tsn_used - Fix handling of mapped IPv4 addresses Obtained from: Michael Tuexen and I :-) MFC after: 1 week
* 1) Adds the rest of the VIMAGE change macrosrrs2008-07-091-1/+3
| | | | | | | | | | | | 2) Adds some __UserSpace__ on some of the common defines that the user space code needs 3) Fixes a bug when we send up data to a user that failed. We need to a) trim off the data chunk headers, if present, and b) make sure the frag bit is communicated properly for the msgs coming off the stream queues... i.e. we see if some of the msg has been taken. Obtained from: jeli contributed the VIMAGE changes on this pass Thanks Julain!
* - Adds support for the multi-asconf (From Kozuka-san)rrs2008-05-201-0/+6
| | | | | | | | | | | | | | | | | | - Adds some prepwork (Not all yet) for vimage in particular support the delete the sctppcbinfo.xx structs. There is still a leak in here if it were to be called plus we stil need the regrouping (From Me and Michael Tuexen) - Adds support for UDP tunneling. For BSD there is no socket yet setup so its disabled, but major argument changes are in here to emcompass the passing of the port number (zero when you don't have a udp tunnel, the default for BSD). Will add some hooks in UDP here shortly (discussed with Robert) that will allow easy tunneling. (Mainly from Peter Lei and Michael Tuexen with some BSD work from me :-D) - Some ease for windows, evidently leave is reserved by their compile move label leave: -> out: MFC after: 1 week
* New logging values.rrs2008-04-141-29/+30
|
* - Change the Time Wait of vtags value to match the cookie-liferrs2007-10-301-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | - Select a tag gains ability to optionally save new tags off in the timewait system. - When looking up associations do not give back a stcb that is in the about-to-be-freed state, and instead continue looking for other candiates. - New function to query to see if value is in time-wait. - Timewait had a time comparison error that caused very few vtags to actually stay in time-wait. - When setting tags in time-wait, we now use the time requested NOT a fixed constant value. - sstat now gets the proper associd when we do the query. - When we process an association, we expect the tag chosen (if we have one from a cookie) to be in time-wait. Before we would NOT allow the assoc up by checking if its good. In theory this should have caused almost all assoc not to come up except for the time-comparison bug above (this bug was hidden by the time comparison bug :-D). - Don't save tags for nonce values in the time-wait cache since these are used only during cookie collisions and do not matter if they are unique or not. MFC after: 1 week
* - fix sctp_ifn initial refcount issue (prevents deletion)rrs2007-10-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | - fix a bug during cookie collision that prevented an association from coming up in a specific restart case. - Fix it so the shutdown-pending flag gets removed (this is more for correctness then needed) when we enter shutdown-sent or shutdown-ack-sent states. - Fix a bug that caused the receiver to sometimes NOT send a SACK when a duplicate TSN arrived. Without this fix it was possible for the association to fall down if the - Deleted primary destination is also stored when SCTP_MOBILITY_BASE. (Previously, it is stored when only SCTP_MOBILITY_FASTHANDOFF) - Fix a locking issue where we might call send_initiate_ack() and incorrectly state the lock held/not held. Also fix it so that when we release the lock the inp cannot be deleted on us. - Add the debug option that can cause the stack to panic instead of aborting an assoc. This does not and should never show up in options but is useful for debugging unexpected aborts. - Add cumack_log sent to track sending cumack information for the debug case where we are running a special log per assoc. - Added extra () aroudn sctp_sbspace macro to avoid compile warnings. MFC after: 1 week
* - Bug fix managing congestion parameter on immediaterrs2007-10-011-0/+3
| | | | | | | | | | | | | | | | | | | | retransmittion by handover event (fast mobility code) - Fixed problem of mobility code which is caused by remaining parameters in the deleted primary destination. - Add a missing lock. When a peer sends an INIT, and while we are processing it to send an INIT-ACK the socket is closed, we did not hold a lock to keep the socket from going away. Add protection for this case. - Fix so that arwnd is alway uses the minimal rwnd if the user has set the socket buffer smaller. Found this when the test org decided to see what happens when you set in a rwnd of 10 bytes (which is not allowed per RFC .. 4k is minimum). - Fixes so a cookie-echo ootb will NOT cause an abort to be sent. This was happening in a MPI collision case. - Examined all panics and unless there was no recovery, moved any that were not already to INVARANTS. Approved by: re@freebsd.org (gnn)
* - fix (global) address handling in the presence of duplicates, therrs2007-09-211-1/+1
| | | | | | | | | last interface should own the address, but the current code fumbles the handoff. This fixes that. - move address related debugs to PCB4 and add additional ones to help in debugging address problems. Approved by: re@freebsd.org (K Smith)
* - DF bit was on for COOKIE-ECHO chunks. This isrrs2007-09-131-5/+0
| | | | | | | | | | | | | incorrect and should be OFF letting IP fragment large cookie-echos. - Rename sysctl variable logging to log_level. - Fix description of sysctl variable stats. - Add sysctl variable log to make sctp_log readable via sysctl mechanism (this is by compile switch and targets non KTR platforms or when someone wants to do performance wise tracing). - Removed debug code Approved by: re@freebsd.org (B Mah)
OpenPOWER on IntegriCloud