summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_sysctl.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r287282:tuexen2016-01-161-1/+1
| | | | | Fix the exporting of SCTP association states to userland. Without this, associations in SHUTDOWN-PENDING were never reported correctly.
* MFC r285237:tuexen2016-01-161-0/+1
| | | | Export the ssthresh value per SCTP path via the sysctl interface.
* MFC r283988:tuexen2015-06-081-0/+1
| | | | | Export a pointer to the SCTP socket. This is needed to add SCTP support to sockstat.
* MFC r277424:tuexen2015-05-291-0/+14
| | | | | | | | Remove comparisons which are not necessary. With manual intervention. Reported by: Coverity CID: 1237826, 1237844, 1237847
* MFC r273925:tuexen2015-05-291-11/+16
| | | | Don't zero the stats before they are read out.
* MFC r273733, r273740 and r273773:hselasky2014-10-301-6/+17
| | | | | | | | | | The SYSCTL data pointers can come from userspace and must not be directly accessed. Although this will work on some platforms, it can throw an exception if the pointer is invalid and then panic the kernel. Add a missing SYSCTL_IN() of "SCTP_BASE_STATS" structure. Sponsored by: Mellanox Technologies
* MFC r270673:tuexen2014-09-181-486/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Announce SCTP support in the kern.features sysctl variables. MFC r270859: Enable SCTP support. It runs perfectly fine on a Wandboard quad. MFC r271204 with manual intervention: Fix the handling of sysctl variables when used with VIMAGE. While there do some cleanup of the code. MFC r271209: Fix a leak of an address, if the address is scheduled for removal and the stack is torn down. Thanks to Peter Bostroem and Jiayang Liu from Google for reporting the issue. MFC r271219: Use SYSCTL_PROC instead of SYSCTL_VNET_PROC. Suggested by: glebius@ MFC r271221: Use union sctp_sockstore instead of struct sockaddr_storage. This eliminates some warnings when building in userland. Thanks to Patrick Laimbock for reporting this issue. Remove also some unnecessary casts. There should be no functional change. MFC r271228: Address another warnings reported by Patrick Laimbock when compiling in userspace. While there, improve consistency. MFC r271230: Address warnings generated by the clang analyzer. Approved by: re (kib)
* Remove debug output which was comitted by accident.tuexen2014-08-221-1/+0
| | | | This is a direct commit to stable/10.
* MFC r269858:tuexen2014-08-221-6/+60
| | | | | Add support for the SCTP_AUTH_SUPPORTED and SCTP_ASCONF_SUPPORTED socket options. Add also a sysctl to control the support of ASCONF.
* MFC r269527:tuexen2014-08-221-0/+6
| | | | | Add support for the SCTP_RECONFIG_SUPPORTED and the corresponding sysctl controlling the negotiation of the RE-CONFIG extension.
* MFC r269481:tuexen2014-08-221-0/+6
| | | | | | Add support for the SCTP_PKTDROP_SUPPORTED socket option and the corresponding sysctl variable. The default is off, since the specification is not an RFC yet.
* MFC r269475:tuexen2014-08-221-8/+6
| | | | | | | Add SCTP socket option SCTP_NRSACK_SUPPORTED to control the 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 r269448:tuexen2014-08-221-0/+6
| | | | | | Add support for the SCTP_PR_SUPPORTED socket option as specified in http://tools.ietf.org/html/draft-ietf-tsvwg-sctp-prpolicies Add also a sysctl controlling the default of the end-points.
* MFC r269396:tuexen2014-08-221-6/+0
| | | | | Remove the asconf_auth_nochk sysctl. This was off by default and only existed to be able to test with non-compliant peers a long time ago.
* MFC r268526:tuexen2014-08-221-0/+2
| | | | Integrate upstream changes.
* MFC r267674:tuexen2014-06-231-0/+8
| | | | | | | | | Honor jails for unbound SCTP sockets when selecting source addresses, reporting IP-addresses to the peer during the handshake, adding addresses to the host, reporting the addresses via the sysctl interface (used by netstat, for example) and reporting the addresses to the application via socket options. This issue was reported by Bernd Walter.
* MFC r263237:tuexen2014-06-221-1/+6
| | | | | | | | | | * Provide information in error causes in ASCII instead of 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@.
* Merge r261590: Fixup for r261590 (vnet sysctl handlers cleanup)glebius2014-03-041-4/+0
|
* Export the inpcb features as a 64-bit entity.tuexen2013-08-221-1/+1
| | | | | | Bump __FreeBSD_version to 1000048 since the modified structure is user visible and used by netstat, for example.
* Make also the features of the association 64-bit.tuexen2013-08-221-1/+1
| | | | | | | | | When exporting to xinpcb, just export the lower 32-bit. Using there also 64-bits will break the ABI and will be committed separetly. MFC after: 2 weeks X-MFC with: 254248
* Fix a bug were only 2048 streams where usable even though more thantuexen2013-07-051-0/+6
| | | | | | | 2048 streams were negotiated on the wire. While there, remove the hard coded limit of 2048 streams. MFC after: 3 days
* Cleanup the handling of address scopes. Announce in the INIT/INIT-ACKtuexen2013-02-091-15/+15
| | | | | | | only the supported address types. While there, do some whitespace cleanups. MFC after: 1 week
* Add support for SCTP/UDP/IPV6.tuexen2012-11-171-7/+0
| | | | | | | This completes the support of http://tools.ietf.org/html/draft-ietf-tsvwg-sctp-udp-encaps MFC after: 1 week
* Whitespace cleanup.tuexen2012-06-251-2/+2
| | | | MFC after: 3 days
* Get rid of SCTP specific code to avoid CRC32C computations on loopback.tuexen2012-05-261-11/+0
| | | | | Just just offloading. MFC after: 3 days
* Use consistent text at the begining of the files.tuexen2012-05-231-2/+2
| | | | MFC after: 3 days
* Add an SCTP sysctl "blackhole", similar to the one for TCP.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.
* Retire the SCTP sysctl "strict_init". We always perform the validationtuexen2012-01-071-6/+0
| | | | | and there is no reason to make is configuarable. Discussed with rrs@.
* Address issues found by clang. While there, fix also some styletuexen2011-12-271-10/+10
| | | | | | issues. MFC after: 3 months.
* Fix unused parameter warnings.tuexen2011-12-171-3/+3
| | | | | | While there, fix some whitespace issues. MFC after: 3 months.
* Add support for the SCTP_REMOTE_UDP_ENCAPS_PORT socket option.tuexen2011-11-201-9/+0
| | | | | | | Retire the the now unused sctp_udp_tunneling_for_client_enable sysctl variable. MFC after: 3 months.
* The result of a joint work between rrs@ and myself at the IETF:tuexen2011-08-031-29/+8
| | | | | | | | | | | * 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.
* Improve compilation of SCTP code without INET support.tuexen2011-04-301-4/+32
| | | | | | | | | | | | | | 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/+13
| | | | | | | | | 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-6/+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
* Fix breakage in sys/netinet/sctp_sysctl.c, introduced by r219057. Ifdim2011-02-261-0/+6
| | | | | | | SCTP_HAS_RTTC is not defined, this file fails to compile. Insert the necessary #ifdefs to make it work. Pointy hat to: rrs
* Improvements to CC modules:rrs2011-02-261-0/+18
| | | | | | | | | | | 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
* * Cleanup the code computing the retransmission timeout.tuexen2011-02-241-1/+1
| | | | | | * Fix an initialization bug for the scaled variance of the RTO. MFC after: 3 months.
* Bugfix: Get per vnet sysctl variables and statistics working.tuexen2011-02-181-76/+77
| | | | 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-1/+1
| | | | | | | 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-3/+19
| | | | | | | | | | | | 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
* 1) Allow a chunk to track the cwnd it was at when sent.rrs2011-02-021-0/+6
| | | | | | | | | | | | | | | | | | | 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-6/+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
* Add stream scheduling support.tuexen2011-01-231-0/+7
| | | | | | This work is based on a patch received from Robin Seggelmann. MFC after: 3 months.
* Specify a CTLTYPE_FOO so that a future sysctl(8) change does not needmdf2011-01-181-67/+67
| | | | | | to rely on the format string. For SYSCTL_PROC instances that I noticed a discrepancy between the CTLTYPE and the format specifier, fix the CTLTYPE.
* Make the initial congestion window configurable via sysctl.tuexen2010-09-171-0/+6
| | | | MFC after: 2 weeks.
* * Implement initial version of send buffer splitting.tuexen2010-09-171-1/+6
| | | | | * Make send/recv buffer splitting switchable via sysctl. * While there: Fix some comments.
* Remove assignment without effect.tuexen2010-09-151-2/+0
| | | | MFC after: 2 weeks.
* Fix the the SCTP_WITH_NO_CSUM option when used in combination withtuexen2010-08-291-0/+6
| | | | | | | interface supporting CRC offload. While at it, make use of the feature that the loopback interface provides CRC offloading. MFC after: 4 weeks
OpenPOWER on IntegriCloud