summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctputil.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r264701:tuexen2014-06-221-3/+0
| | | | | Send also a packet containing an ABORT chunk in response to an OOTB packet containing a COOKIE-ECHO chunk.
* MFC r264679:tuexen2014-06-221-0/+19
| | | | | Send the correct error cause, when a DATA chunk with no user data is received. This bug was reported by Irene Ruengeler.
* MFC r263237:tuexen2014-06-221-11/+17
| | | | | | | | | | * 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@.
* MFC r259943:tuexen2014-01-071-2/+2
| | | | Address some warnings which showed up on the userland version.
* MFC r256556:tuexen2013-11-211-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove a buggy comparision when setting manually the path MTU. After fixing, the comparision would have become redundant. Thanks to Andrew Galante for reporting the issue. MFC r257272: Fix compilation if SCTP_DONT_DO_PRIVADDR_SCOPE is defined. The issue was reported by Andrew Galante. MFC r257274: Fix the value of *optlen when calling getsockopt() for SCTP_REMOTE_UDP_ENCAPS_PORT. This issue was reported by Andrew Galante. MFC r257359: Terminate a debug output with a \n. MFC r257555: Changes from upstream to improve compilation when INET or INET6 or none of them is defined. MFC r257574: Unlock the lock before destroying it. This issue was reported by Andrew Galante. MFC r257800: Use htons()/ntohs() appropriately. These issues were reported by Andrew Galante. MFC r257803: Make sure that we don't try to build an ASCONF-ACK chunk larger than what fits in the the mbuf cluster. This issue was reported by Andrew Galante. MFC r257804: Get rid of the artification limitation enforced by SCTP_AUTH_RANDOM_SIZE_MAX. This was suggested by Andrew Galante. MFC r258221: Cleanups which result in fixes which have been made upstream and where partially suggested by Andrew Galante. There is no functional change in FreeBSD. MFC r258224: When determining if an address belongs to an stcb, take the address family into account for wildcard bound endpoints. MFC r258228: Remove a stray write operation. MFC r258235: Use SCTP_PR_SCTP_TTL when the user provides a positive timetolive in sctp_sendmsg(). Approved by: re@
* Remove redundant field pr_sctp_on.tuexen2013-09-031-1/+0
| | | | MFC after: 1 week
* Use LIST_EMPTY when appropriate.tuexen2013-06-021-2/+2
| | | | MFC after: 1 week
* Remove redundant checks.tuexen2013-05-281-6/+6
| | | | MFC after: 2 weeks
* Set errno to ETIMEDOUT if an SCTP association times out duringtuexen2013-05-171-2/+8
| | | | | | setup. MFC after: 1 week
* Fix a potential race in returning setting errno when antuexen2013-02-271-1/+2
| | | | | | | | association goes down. Reported by Mozilla in https://bugzilla.mozilla.org/show_bug.cgi?id=845513 MFC after: 3 days
* Cleanup the handling of address scopes. Announce in the INIT/INIT-ACKtuexen2013-02-091-70/+55
| | | | | | | only the supported address types. While there, do some whitespace cleanups. MFC after: 1 week
* Fix a copy and paste error.tuexen2012-12-271-1/+1
| | | | MFC after: 3 days
* Mechanically substitute flags from historic mbuf allocator withglebius2012-12-051-17/+17
| | | | | | | | | malloc(9) flags within sys. Exceptions: - sys/contrib not touched - sys/mbuf.h edited manually
* Add support for SCTP/UDP/IPV6.tuexen2012-11-171-52/+80
| | | | | | | This completes the support of http://tools.ietf.org/html/draft-ietf-tsvwg-sctp-udp-encaps MFC after: 1 week
* Get the accounting working. We now have counters how manytuexen2012-11-161-1/+2
| | | | | | | | | 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-0/+16
| | | | | | | | 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
* Fix possible spurious sbunlock in sctp_sorecvmsg.mjg2012-11-061-1/+1
| | | | | | Reviewed by: tuexen Approved by: trasz (mentor) MFC after: 3 days
* Move from early SSN assignment to late SSN assignment.tuexen2012-11-051-67/+59
| | | | | | | | This doesn't change functionality, but makes upcoming change much easier. Developed with rrs@ at the IETF 85. MFC after: 1 week
* Use ntohs() and htons() in correct order. However, this doesn't changetuexen2012-10-291-1/+1
| | | | functionality.
* Switch the entire IPv4 stack to keep the IP packet headerglebius2012-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | in network byte order. Any host byte order processing is done in local variables and host byte order values are never[1] written to a packet. After this change a packet processed by the stack isn't modified at all[2] except for TTL. After this change a network stack hacker doesn't need to scratch his head trying to figure out what is the byte order at the given place in the stack. [1] One exception still remains. The raw sockets convert host byte order before pass a packet to an application. Probably this would remain for ages for compatibility. [2] The ip_input() still subtructs header len from ip->ip_len, but this is planned to be fixed soon. Reviewed by: luigi, Maxim Dounin <mdounin mdounin.ru> Tested by: ray, Olivier Cochard-Labbe <olivier cochard.me>
* Small cleanups. No functional change.tuexen2012-09-141-8/+3
| | | | MFC after: 10 days
* Using %p in a format string requires a void *.tuexen2012-09-051-3/+3
| | | | MFC after: 10 days
* Whitespace change.tuexen2012-09-041-1/+1
| | | | MFC after: 3 days
* Fix a typo which results in RTT to be off by a factor of 10, if the RTT istuexen2012-09-021-1/+1
| | | | | | larger than 1 second. MFC after: 3 days
* Fix a refcount bug when freeing an association.tuexen2012-07-171-2/+4
| | | | | | While there: Change code to be consistent. Discussed with rrs@. MFC after: 3 days
* #ifdef INET and INET6 consistently. This also fixes a bug, wheretuexen2012-07-151-2/+2
| | | | | | it was done wrong. MFC after: 3 days
* Provide the correct notification type (SCTP_SEND_FAILED_EVENT)tuexen2012-07-141-1/+1
| | | | | | for unsent messages. MFC after: 3 days
* Pass the src and dst address of a received packet explicitly around.tuexen2012-06-281-63/+9
| | | | MFC after: 3 days
* Whitespace cleanup.tuexen2012-06-251-23/+23
| | | | MFC after: 3 days
* Cleanup the UDP decapsulation code.tuexen2012-06-181-42/+20
| | | | MFC after: 3 days
* Pass flowid explicitly through the stack instead of taking it fromtuexen2012-06-141-5/+15
| | | | | | | the mbuf chain at different places. While there: Fix several bugs related to VRFs. MFC after: 3 days
* Small cleanup.tuexen2012-06-121-3/+1
| | | | MFC after: 3 days
* Remove an unused parameter.tuexen2012-06-021-2/+2
| | | | MFC after: 3 days
* Use consistent text at the begining of the files.tuexen2012-05-231-4/+2
| | | | MFC after: 3 days
* Support SCTP_REMOTE_ERROR notification.tuexen2012-05-131-0/+60
| | | | MFC after: 3 days
* Provide in the SCTP_SEND_FAILED and SCTP_SEND_FAILED_EVENT notificationstuexen2012-05-131-27/+35
| | | | | | the correct ssf_error or ssfe_error as required by RFC 6458. MFC after: 3 days
* Remove unused constants.tuexen2012-05-131-12/+0
| | | | MFC after: 3 days
* Use ECONNABORTED in cases where the ABORT was sent to the peer.tuexen2012-05-131-16/+33
| | | | MFC after: 3 days
* Ensure the user can read COMM_LOST notifications on 1-to-1 style sockets.tuexen2012-05-131-117/+95
| | | | MFC after: 3 days
* Provide in the association change notification the received ABORT chunktuexen2012-05-121-39/+55
| | | | | | if case of SCTP_COMM_LOST or SCTP_CANT_STR_ASSOC as required by RFC 6458. MFC after: 3 days
* Only provide the supported features in the SCTP_ASSOC_CHANGE notiftuexen2012-05-111-20/+27
| | | | | | | if the state is SCTP_COMM_UP or SCTP_RESTART. While there, do some cleanups. MFC after: 3 days
* Address clang warnings.tuexen2012-05-061-3/+6
| | | | MFC after: 3 days
* Add support for the sac_info field in struct sctp_assoc_changetuexen2012-05-061-1/+17
| | | | | | as required by RFC 6458. MFC after: 3 days
* Remove debug code.tuexen2012-05-061-3/+0
| | | | MFC after: 3 days
* Add support for SCTP_SEND_FAILED_EVENT as required by RFC 6458.tuexen2012-05-061-46/+104
| | | | MFC after: 3 days
* Provide the flags in the SCTP stream reconfig related notificationtuexen2012-05-051-0/+8
| | | | | | as specified in RFC 6525. MFC after: 3 days
* Add support for SCTP_STREAM_CHANGE_EVENT, SCTP_ASSOC_RESET_EVENT astuexen2012-05-041-2/+2
| | | | | | required by RFC 6525. This also fixes SCTP_STREAM_RESET_EVENT. MFC after: 3 days
* Use SCTP_PRINTF() instead of printf() in all SCTP sources.tuexen2012-05-041-9/+9
| | | | MFC after: 3 days
* Fix a type in an SCTP AUTH related notification. Keep the old nametuexen2012-04-261-1/+1
| | | | | | | for backwards compatibility. Spotted by Irene Ruengeler. MFC after: 3 days
* Use the flags defined in RFC 6525 in the stream reset event.tuexen2012-04-231-4/+4
|
OpenPOWER on IntegriCloud