summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_input.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r263237:tuexen2014-06-221-65/+57
| | | | | | | | | | * 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 r262252:tuexen2014-06-221-4/+2
| | | | Remove redundant code and fix a style error.
* Provide human readable debug output.tuexen2013-08-251-2/+2
|
* For now limit printf(9) %x of the 64bit pkthdr.csum_flags field to 32bits.andre2013-08-251-1/+1
| | | | | | The upper 32bits are not occupied for now. Sponsored by: The FreeBSD Foundation
* Remove the large part of struct ipsecstat. Only few fields of thisae2013-07-231-2/+2
| | | | | | | | | | | structure is used, but they already have equal fields in the struct newipsecstat, that was introduced with FAST_IPSEC and then was merged together with old ipsecstat structure. This fixes kernel stack overflow on some architectures after migration ipsecstat to PCPU counters. Reported by: Taku YAMAMOTO, Maciej Milewski
* Use IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statisticstuexen2013-07-091-2/+2
| | | | | | accounting. X-MFC with: r252026
* Fix a bug were only 2048 streams where usable even though more thantuexen2013-07-051-8/+4
| | | | | | | 2048 streams were negotiated on the wire. While there, remove the hard coded limit of 2048 streams. MFC after: 3 days
* When processing an incoming ABORT, SHUTDOWN_COMPLETE or ERROR (NAT related)tuexen2013-07-041-2/+4
| | | | | | | chunk, take always the T-bit into account, when checking the verification tag. MFC after: 3 days
* Code cleanups.tuexen2013-07-031-22/+36
| | | | MFC after: 3 days
* Cleanup the handling of address scopes. Announce in the INIT/INIT-ACKtuexen2013-02-091-6/+6
| | | | | | | only the supported address types. While there, do some whitespace cleanups. MFC after: 1 week
* Fix a bug where HEARTBEATs were still sent in SHUTDOWN_SENT ortuexen2013-02-091-1/+1
| | | | | | | SHUTDOWN_ACK_SENT state. While there, make the corresponding code consistent. MFC after: 1 week
* Mechanically substitute flags from historic mbuf allocator withglebius2012-12-051-7/+7
| | | | | | | | | malloc(9) flags within sys. Exceptions: - sys/contrib not touched - sys/mbuf.h edited manually
* Get the accounting working. We now have counters how manytuexen2012-11-161-0/+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
* Add per outgoing stream accounting for chunks in the sendtuexen2012-11-071-0/+7
| | | | | | | | 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
* Move from early SSN assignment to late SSN assignment.tuexen2012-11-051-3/+3
| | | | | | | | This doesn't change functionality, but makes upcoming change much easier. Developed with rrs@ at the IETF 85. MFC after: 1 week
* Do not reduce ip_len by size of IP header in the ip_input()glebius2012-10-231-1/+1
| | | | | | | | | | | before passing a packet to protocol input routines. For several protocols this mean that now protocol needs to do subtraction itself, and for another half this means that we do not need to add header length back to the packet. Make ip_stripoptions() to adjust ip_len, since now we enter this function with a packet header whose ip_len does represent length of entire packet, not payload only.
* 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>
* Fix a bug related to handling Re-config chunks. It is not true thattuexen2012-09-221-17/+0
| | | | | | the association can be removed if the socket is gone. MFC after: 3 days
* s/teh/the/geadler2012-09-141-1/+1
| | | | | Approved by: cperciva MFC after: 3 days
* Don't include a structure containing a flexible array in anothertuexen2012-09-071-10/+9
| | | | | | structure. MFC after: 10 days
* Using %p in a format string requires a void *.tuexen2012-09-051-14/+14
| | | | MFC after: 10 days
* Fix a bug found by dim@:tuexen2012-08-061-1/+1
| | | | | | | | Don't use an uninitilized variable, if INVARIANTS is on and an illegal packet with destination 0 is received. MFC after: 3 days X-MFC with: 238003
* Use case for selecting the address family (as in other places).tuexen2012-07-141-8/+6
| | | | MFC after: 3 days
* Iniitialize a variable.tuexen2012-07-031-1/+1
| | | | MFC after: 3 days
* Move common code parts to sctp_common_input_processing().tuexen2012-07-021-163/+168
| | | | MFC after: 3 days
* Pass the src and dst address of a received packet explicitly around.tuexen2012-06-281-117/+117
| | | | MFC after: 3 days
* Unify sctp_input() and sctp6_input().tuexen2012-06-251-77/+35
| | | | MFC after: 3 days
* Whitespace cleanup.tuexen2012-06-251-53/+53
| | | | MFC after: 3 days
* Pass the packet length explicitly around.tuexen2012-06-241-1/+1
| | | | MFC after: 3 days
* Remove redundant check.tuexen2012-06-241-11/+3
| | | | MFC after: 3 days
* Do packet logging in a consistent way.tuexen2012-06-241-2/+2
| | | | MFC after: 3 days
* Add rate limitation for SCTP OOTB responses.tuexen2012-06-181-8/+1
| | | | MFC after: 3 days
* Pass flowid explicitly through the stack instead of taking it fromtuexen2012-06-141-47/+141
| | | | | | | the mbuf chain at different places. While there: Fix several bugs related to VRFs. MFC after: 3 days
* Unify the sending of ABORT, SHUTDOWN-COMPLETE and ERROR chunks.tuexen2012-06-121-2/+2
| | | | | | While there: Fix also some minor bugs and prepare for SCTP/DTLS. MFC after: 3 days
* Remove an unused parameter.tuexen2012-06-021-5/+5
| | | | 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-1/+7
| | | | MFC after: 3 days
* Provide in the SCTP_SEND_FAILED and SCTP_SEND_FAILED_EVENT notificationstuexen2012-05-131-7/+6
| | | | | | the correct ssf_error or ssfe_error as required by RFC 6458. MFC after: 3 days
* Provide the error code in SCTP_PEER_ADDR_CHANGE notifications astuexen2012-05-131-1/+1
| | | | | | specified in RFC 6458. MFC after: 3 days
* Use ECONNABORTED in cases where the ABORT was sent to the peer.tuexen2012-05-131-2/+2
| | | | MFC after: 3 days
* Provide in the association change notification the received ABORT chunktuexen2012-05-121-15/+14
| | | | | | if case of SCTP_COMM_LOST or SCTP_CANT_STR_ASSOC as required by RFC 6458. MFC after: 3 days
* Fix a bug in the handling of association reset request.tuexen2012-05-111-37/+31
| | | | MFC after: 3 days
* Remove debug code.tuexen2012-05-061-9/+0
| | | | MFC after: 3 days
* Provide the flags in the SCTP stream reconfig related notificationtuexen2012-05-051-5/+19
| | | | | | as specified in RFC 6525. MFC after: 3 days
* Honor SCTP_ENABLE_STREAM_RESET socket option when processing incomingtuexen2012-05-051-63/+66
| | | | | | | requests. Fix also the provided result in the response and use names as specified in RFC 6525. MFC after: 3 days
* Use SCTP_PRINTF() instead of printf() in all SCTP sources.tuexen2012-05-041-4/+4
| | | | MFC after: 3 days
* Use the same pattern for mbuf logging everywhere.tuexen2012-04-191-10/+4
| | | | MFC after: 3 days
* Fix a bug where we copy out more data from a mbuf chain that aretuexen2012-04-191-12/+15
| | | | | | | | | actually in it. This happens when SCTP receives an unknown chunk, which requires the sending of an ERROR chunk, and there is no final padding but the chunk is not 4-byte aligned. Reported by yueting via rwatson@ MFC after: 3 days
* Make stream our stream reset implementationrrs2012-03-291-32/+106
| | | | | | compliant to RFC6525. MFC after: 1 month
* Fix a problem when using the CBAPI.tuexen2012-01-201-2/+1
| | | | While there, remove an old comment which does not apply anymore.
OpenPOWER on IntegriCloud