aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-25Fixed compilation due usage of non existing macro (#474)Yury Yaroshevich
2020-05-25Adjust `usrsctp_handle_timers` signature and implementation (#470)Yury Yaroshevich
* usrsctp_handle_timers should accept mcecs as argument. * Renamed argument to have more clear name. * Renamed function to match behavior.
2020-05-23Add support for SCTP_ASSOC_SUPPORTS_INTERLEAVINGMichael Tuexen
2020-05-23Don't reference an stcb which is about to be freed.Michael Tuexen
2020-05-19Hopefully unbreak Windows builds.Michael Tuexen
2020-05-19Use SCTP_SNPRINTF().Michael Tuexen
2020-05-18Cleanups.Michael Tuexen
2020-05-18Remove unused variable.Michael Tuexen
2020-05-18Address some warnings.Michael Tuexen
2020-05-18Fix logical condition.Michael Tuexen
2020-05-18Fix format string.Michael Tuexen
2020-05-18Fix another warning.Michael Tuexen
2020-05-18Fix warning by cpp-check.Michael Tuexen
2020-05-18Fix logic error. Spotted by cpp-check.Michael Tuexen
2020-05-18Address a warning by cpp-check.Michael Tuexen
2020-05-18Fix format strings as reported by cpp-check.Michael Tuexen
2020-05-18Check return value of snprintf().Michael Tuexen
This should fix https://github.com/sctplab/usrsctp/issues/453.
2020-05-18Sync with FreeBSD.Michael Tuexen
2020-05-15Add usrsctp_get_ulpinfo getter. (#467)Taylor Brandstetter
2020-05-12fix truncated writing warning (#464)Felix Weinrank
2020-05-12Fix copy and paste error.Michael Tuexen
2020-05-11Ensure the stcb belongs to the inp when running the iterator.Michael Tuexen
2020-05-10Ensure we have a net when starting a T3 timer.Michael Tuexen
2020-05-10Only drop DATA chunk with lower priority as specified in RFC 7496.Michael Tuexen
2020-05-05Avoid underflowing a variable, which would result in taking moreMichael Tuexen
data from the stream queues then needed. Thanks to Timo Voelker for finding this bug and providing a fix.
2020-05-05Undo earlier change, since it is incorrect.Michael Tuexen
2020-05-05Fix the computation of the numbers of entries of the mapping array toMichael Tuexen
look at when generating a SACK. This was wrong in case of sequence numbers wrap arounds. Thanks to Gwenael FOURRE for reporting the issue for the userland stack: https://github.com/sctplab/usrsctp/issues/462
2020-05-05user_recv_thread: set fd to -1 when closing (#461)Matthew Waters
Fixes a busy loop of the usrsctp UDP recv thread attempting to shutdown usrsctp with usrsctp_finish(). Usually, destroying the udp socket in recv_thread_destroy() would result in the udp receive thread returning an error (-1) with errno set to (-9) EDABF. In other cases, sometimes recvmsg would return 0 without an error being reported in errno. My assumption here is that the fd number would be reused for some other purpose. Explicitly set the socket/fd variables to -1 when performing a close()/closesocket() on them so that any future recv*() calls will return with an error. Also move the thread closure to the fd close block so that the threads are definitley closed before we continue.
2020-04-29Fix #458Michael Tuexen
2020-04-22Improve input validation when processing AUTH chunks.Michael Tuexen
Thanks to Natalie Silvanovich from Google for finding and reporting the issue found by her in the SCTP userland stack.
2020-04-22Improve input validation when processing AUTH chunks.Michael Tuexen
Thanks to Natalie Silvanovich from Google for finding and reporting the issue found by her in the SCTP userland stack.
2020-04-20Honor sysctl variable sctp_no_csum_on_loopback not only for SCTP/IPv4.Michael Tuexen
2020-04-11Zero out pointers for consistency.Michael Tuexen
This was found by running a syzkaller instance on a INVARIANTS kernel.
2020-04-06Be more pedantic when starting / stopping a timer.Michael Tuexen
2020-03-28Deal with AF_CONN address in SCTP_STATUS.Michael Tuexen
Thanks to Taylor Brandstetter for making me aware of the problem and suggesting a fix in https://github.com/sctplab/usrsctp/pull/450
2020-03-28Fix build.Michael Tuexen
2020-03-28Fix time to ticks conversion and vice versa. Overflows were notMichael Tuexen
handled correctly.
2020-03-27More uint32_t cleanups.Michael Tuexen
2020-03-27Use uint32_t where intended.Michael Tuexen
2020-03-25Don't optimize for timers when the socket is gone. This fixesMichael Tuexen
another bug where the COOKIE was not retransmitted if the socket was closed.
2020-03-25Fix handling of accepted sockets.Michael Tuexen
2020-03-25Fix FreeBSD vnet stuff and cleanup debug output.Michael Tuexen
2020-03-25Fix lock name in Windows.Michael Tuexen
2020-03-25Only call panic() when building with INVARIANTS.Michael Tuexen
2020-03-24Cleanup the timer code and also stricly check the argumentsMichael Tuexen
used when starting or stopping a timer.
2020-03-24Add some lock asserts, which will be used shortly.Michael Tuexen
2020-03-23More timer cleanups.Michael Tuexen
2020-03-21Get rid of unnecessary include in fuzzer (#449)Taylor Brandstetter
2020-03-20Remove a set, but unused variable.Michael Tuexen
This should fix https://github.com/sctplab/usrsctp/issues/447
2020-03-20Fix a NET_EPOCH bug.Michael Tuexen