aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_sysctl.h
Commit message (Collapse)AuthorAgeFilesLines
* sctp: cleanup cdefs.h includeMichael Tuexen2023-08-181-1/+0
|
* sys: Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* sctp: initial implementation of draft-tuexen-tsvwg-sctp-zero-checksumMichael Tuexen2023-03-101-1/+7
|
* sctp: fix typosMichael Tuexen2022-03-291-1/+1
| | | | | | Thanks to David Sanders for fixing the typos in the userland stack. MFC after: 3 days
* Improve the handling of cookie life times.Michael Tuexen2020-10-161-4/+4
| | | | | | | | | | | | | | | | The staleness reported in an error cause is in us, not ms. Enforce limits on the life time via sysct; and socket options consistently. Update the description of the sysctl variable to use the right unit. Also do some minor cleanups. This also fixes an interger overflow issue if the peer can modify the cookie. This was reported by Felix Weinrank by fuzz testing the userland stack and in https://oss-fuzz.com/testcase-detail/4800394024452096 MFC after: 3 days Notes: svn path=/head/; revision=366750
* net: clean up empty lines in .c and .h filesMateusz Guzik2020-09-011-4/+0
| | | | Notes: svn path=/head/; revision=365071
* Retire SCTP_SO_LOCK_TESTING.Michael Tuexen2020-06-071-9/+0
| | | | | | | | | | | | This was intended to test the locking used in the MacOS X kernel on a FreeBSD system, to make use of WITNESS and other debugging infrastructure. This hasn't been used for ages, to take it out to reduce the #ifdef complexity. MFC after: 1 week Notes: svn path=/head/; revision=361895
* Make the message size limit used for SCTP_SENDALL configurable viaMichael Tuexen2020-01-041-0/+7
| | | | | | | | | a sysctl variable instead of a compiled in constant. This is based on a patch provided by nwhitehorn@. Notes: svn path=/head/; revision=356357
* Add initial descriptions for SCTP related MIB variable.Michael Tuexen2018-10-261-20/+20
| | | | | | | | | | This work was mostly done by Marie-Helene Kvello-Aune. MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D3583 Notes: svn path=/head/; revision=339791
* sys: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326023
* Retire net.inet.sctp.strict_sacks and net.inet.sctp.strict_data_orderMichael Tuexen2016-05-121-14/+0
| | | | | | | | sysctl's, since they where only there to interop with non-conformant implementations. This should not be a problem anymore. Notes: svn path=/head/; revision=299543
* Enable SACK Immediately per default.Michael Tuexen2016-05-121-1/+1
| | | | | | | | | This has been tested for a long time and implements covered by RFC 7053. MFC after: 1 week Notes: svn path=/head/; revision=299537
* A couple of minor changes that I missed that Michael had done, most notedRandall Stewart2016-04-071-1/+1
| | | | | | | | in these is the change to non-strict ordering for incoming data (this will make pkt-drill test 14 fail but its expected). Notes: svn path=/head/; revision=297663
* This is work done by Michael Tuexen and myself at the IETF. ThisRandall Stewart2016-04-071-1/+1
| | | | | | | | | | | | adds the new I-Data (Interleaved Data) message. This allows a user to be able to have complete freedom from Head Of Line blocking that was previously there due to the in-ability to send multiple large messages without the TSN's being in sequence. The code as been tested with Michaels various packet drill scripts as well as inter-networking between the IETF's location in Argentina and Germany. Notes: svn path=/head/; revision=297662
* Remove redundant 'man page'Brad Davis2015-09-151-1/+1
| | | | | | | Reviewed by: allanjude Notes: svn path=/head/; revision=287832
* missed file that should have been included in r287528Allan Jude2015-09-071-1/+1
| | | | | | | | | PR: 184110 Submitted by: Marie Helene Kvello-Aune <marieheleneka@gmail.com> Approved by: wblock (mentor) Notes: svn path=/head/; revision=287529
* Use 5 times RTO.Max as the default for the shutdown guard timerMichael Tuexen2015-08-291-2/+2
| | | | | | | | | | | as required by RFC 4960. The sysctl variable can be used to overwrite this. Discussed with: rrs MFC after: 1 week Notes: svn path=/head/; revision=287294
* Fix the handling of sysctl variables when used with VIMAGE.Michael Tuexen2014-09-061-3/+3
| | | | | | | | | While there do some cleanup of the code. MFC after: 1 week Notes: svn path=/head/; revision=271204
* Change SCTP sysctl from auth_disable to auth_enable. This isMichael Tuexen2014-08-121-6/+6
| | | | | | | consistent with other similar sysctl variable used in SCTP. Notes: svn path=/head/; revision=269874
* Add support for the SCTP_AUTH_SUPPORTED and SCTP_ASCONF_SUPPORTEDMichael Tuexen2014-08-121-7/+14
| | | | | | | | | socket options. Add also a sysctl to control the support of ASCONF. MFC after: 1 week Notes: svn path=/head/; revision=269858
* Add support for the SCTP_RECONFIG_SUPPORTED and the correspondingMichael Tuexen2014-08-041-1/+8
| | | | | | | | | sysctl controlling the negotiation of the RE-CONFIG extension. MFC after: 3 days Notes: svn path=/head/; revision=269527
* Add support for the SCTP_PKTDROP_SUPPORTED socket option andMichael Tuexen2014-08-031-0/+6
| | | | | | | | | | the corresponding sysctl variable. The default is off, since the specification is not an RFC yet. MFC after: 1 week Notes: svn path=/head/; revision=269481
* Add SCTP socket option SCTP_NRSACK_SUPPORTED to control theMichael Tuexen2014-08-031-8/+8
| | | | | | | | | | | NRSACK extension. The default will still be off, since it it not an RFC (yet). Changing the sysctl name will be in a separate commit. MFC after: 1 week Notes: svn path=/head/; revision=269475
* Add support for the SCTP_PR_SUPPORTED socket option as specified inMichael Tuexen2014-08-021-0/+7
| | | | | | | | | | http://tools.ietf.org/html/draft-ietf-tsvwg-sctp-prpolicies Add also a sysctl controlling the default of the end-points. MFC after: 1 week Notes: svn path=/head/; revision=269448
* Remove the asconf_auth_nochk sysctl. This was off by default and onlyMichael Tuexen2014-08-011-7/+0
| | | | | | | existed to be able to test with non-compliant peers a long time ago. Notes: svn path=/head/; revision=269396
* Use SCTP_OVER_UDP_TUNNELING_PORT more consistently.Michael Tuexen2014-03-291-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=263921
* * Provide information in error causes in ASCII instead ofMichael Tuexen2014-03-161-0/+6
| | | | | | | | | | | | | | proprietary binary format. * Add support for a diagnostic information error cause. The code is sysctlable and the default is 0, which means it is not sent. This is joint work with rrs@. MFC after: 1 week Notes: svn path=/head/; revision=263237
* Fix a bug were only 2048 streams where usable even though more thanMichael Tuexen2013-07-051-0/+7
| | | | | | | | | | 2048 streams were negotiated on the wire. While there, remove the hard coded limit of 2048 streams. MFC after: 3 days Notes: svn path=/head/; revision=252779
* Whitespace cleanup.Michael Tuexen2012-06-251-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=237565
* Get rid of SCTP specific code to avoid CRC32C computations on loopback.Michael Tuexen2012-05-261-3/+0
| | | | | | | | Just just offloading. MFC after: 3 days Notes: svn path=/head/; revision=236087
* Use consistent text at the begining of the files.Michael Tuexen2012-05-231-4/+4
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=235828
* Use a default for max_burst of 4 and l2var of 2.Michael Tuexen2012-05-171-1/+1
| | | | | | | | | This was discussed with rrs@. MFC after: 3 days Notes: svn path=/head/; revision=235557
* Add an SCTP sysctl "blackhole", similar to the one for TCP.Michael Tuexen2012-01-081-0/+6
| | | | | | | | | | | | | If set to 1, no ABORT is sent back in response to an incoming INIT. If set to 2, no ABORT is sent back in response to an out of the blue packet. If set to 0 (the default), ABORTs are sent. Discussed with rrs@. MFC after: 1 month. Notes: svn path=/head/; revision=229805
* Retire the SCTP sysctl "strict_init". We always perform the validationMichael Tuexen2012-01-071-7/+0
| | | | | | | | and there is no reason to make is configuarable. Discussed with rrs@. Notes: svn path=/head/; revision=229775
* Fix unused parameter warnings.Michael Tuexen2011-12-171-2/+2
| | | | | | | | | While there, fix some whitespace issues. MFC after: 3 months. Notes: svn path=/head/; revision=228653
* Add support for the SCTP_REMOTE_UDP_ENCAPS_PORT socket option.Michael Tuexen2011-11-201-7/+0
| | | | | | | | | | Retire the the now unused sctp_udp_tunneling_for_client_enable sysctl variable. MFC after: 3 months. Notes: svn path=/head/; revision=227755
* The result of a joint work between rrs@ and myself at the IETF:Michael Tuexen2011-08-031-21/+7
| | | | | | | | | | | | | | * 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. Notes: svn path=/head/; revision=224641
* Implement Resource Pooling V2 and an MPTCP like congestionMichael Tuexen2011-05-041-3/+3
| | | | | | | | | | control. Based on a patch received from Martin Becke. MFC after: 2 weeks. Notes: svn path=/head/; revision=221460
* Tunes and fixes the new DC-CC to seem to hit theRandall Stewart2011-03-081-24/+36
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=219397
* Adds a new Congestion Control that helps reduceRandall Stewart2011-03-011-4/+0
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=219120
* Improvements to CC modules:Randall Stewart2011-02-261-0/+24
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=219057
* 1) Typo correction in comments and one spacing change.Randall Stewart2011-02-051-0/+2
| | | | | | | | 2) Mass update to all copyrights. MFC after: 3 Months Notes: svn path=/head/; revision=218319
* Fix typo (Tuneable -> Tunable).Rebecca Cran2011-02-041-4/+4
| | | | Notes: svn path=/head/; revision=218264
* 1) Allow a chunk to track the cwnd it was at when sent.Randall Stewart2011-02-021-2/+9
| | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=218186
* More ECN fixes:Randall Stewart2011-01-311-7/+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 Notes: svn path=/head/; revision=218129
* Change infrastructure for SCTP_MAX_BURST to allow complianceMichael Tuexen2011-01-261-1/+1
| | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=217894
* Add stream scheduling support.Michael Tuexen2011-01-231-0/+8
| | | | | | | | | This work is based on a patch received from Robin Seggelmann. MFC after: 3 months. Notes: svn path=/head/; revision=217760
* Provide a possibility to configure the inital congestion window to theMichael Tuexen2010-12-221-1/+1
| | | | | | | | | value defined in RFC 4960. MFC after: 3 months. Notes: svn path=/head/; revision=216672
* Improve plausibility check in sctp_handle_sack().Michael Tuexen2010-12-221-2/+2
| | | | | | | | | Allow cmt_on_off to support values 0 (no CMT), 1 (CMT), and 2 (CMT/RP). MFC after: 3 months. Notes: svn path=/head/; revision=216669
* Allow the initial congestion window to be configureMichael Tuexen2010-09-191-2/+2
| | | | | | | | | to one MTU. Improve the description. MFC after: 2 weeks. Notes: svn path=/head/; revision=212851