Michael Tuexen
dcb68fba2d
Small cleanups. No functional change.
...
MFC after: 10 days
2012-09-14 18:32:20 +00:00
Michael Tuexen
dd294dcec6
Using %p in a format string requires a void *.
...
MFC after: 10 days
2012-09-05 18:52:01 +00:00
Michael Tuexen
c6328f940e
Whitespace change.
...
MFC after: 3 days
2012-09-04 22:40:49 +00:00
Michael Tuexen
81eb4e6351
Fix a typo which results in RTT to be off by a factor of 10, if the RTT is
...
larger than 1 second.
MFC after: 3 days
2012-09-02 12:37:30 +00:00
Michael Tuexen
d07b2ac6c6
Fix a refcount bug when freeing an association.
...
While there: Change code to be consistent.
Discussed with rrs@.
MFC after: 3 days
2012-07-17 13:03:47 +00:00
Michael Tuexen
e0e00a4d0f
#ifdef INET and INET6 consistently. This also fixes a bug, where
...
it was done wrong.
MFC after: 3 days
2012-07-15 11:04:49 +00:00
Michael Tuexen
ad83c8a5a5
Provide the correct notification type (SCTP_SEND_FAILED_EVENT)
...
for unsent messages.
MFC after: 3 days
2012-07-14 21:25:14 +00:00
Michael Tuexen
b1754ad17b
Pass the src and dst address of a received packet explicitly around.
...
MFC after: 3 days
2012-06-28 16:01:08 +00:00
Michael Tuexen
39803b8c58
Whitespace cleanup.
...
MFC after: 3 days
2012-06-25 17:15:09 +00:00
Michael Tuexen
285052f0aa
Cleanup the UDP decapsulation code.
...
MFC after: 3 days
2012-06-18 17:09:39 +00:00
Michael Tuexen
f30ac43257
Pass flowid explicitly through the stack instead of taking it from
...
the mbuf chain at different places.
While there: Fix several bugs related to VRFs.
MFC after: 3 days
2012-06-14 06:54:48 +00:00
Michael Tuexen
17267b32d8
Small cleanup.
...
MFC after: 3 days
2012-06-12 09:18:28 +00:00
Michael Tuexen
021416fb85
Remove an unused parameter.
...
MFC after: 3 days
2012-06-02 13:13:38 +00:00
Michael Tuexen
807aad636f
Use consistent text at the begining of the files.
...
MFC after: 3 days
2012-05-23 11:26:28 +00:00
Michael Tuexen
389b1b118c
Support SCTP_REMOTE_ERROR notification.
...
MFC after: 3 days
2012-05-13 22:27:54 +00:00
Michael Tuexen
1edc9dbae5
Provide in the SCTP_SEND_FAILED and SCTP_SEND_FAILED_EVENT notifications
...
the correct ssf_error or ssfe_error as required by RFC 6458.
MFC after: 3 days
2012-05-13 19:32:49 +00:00
Michael Tuexen
b342faf4bf
Remove unused constants.
...
MFC after: 3 days
2012-05-13 17:17:13 +00:00
Michael Tuexen
410a3b1ef0
Use ECONNABORTED in cases where the ABORT was sent to the peer.
...
MFC after: 3 days
2012-05-13 16:56:16 +00:00
Michael Tuexen
58411b0821
Ensure the user can read COMM_LOST notifications on 1-to-1 style sockets.
...
MFC after: 3 days
2012-05-13 16:07:53 +00:00
Michael Tuexen
a2b42326b5
Provide in the association change notification the received ABORT chunk
...
if case of SCTP_COMM_LOST or SCTP_CANT_STR_ASSOC as required by RFC 6458.
MFC after: 3 days
2012-05-12 20:11:35 +00:00
Michael Tuexen
c5b5675d10
Only provide the supported features in the SCTP_ASSOC_CHANGE notif
...
if the state is SCTP_COMM_UP or SCTP_RESTART.
While there, do some cleanups.
MFC after: 3 days
2012-05-11 18:07:36 +00:00
Michael Tuexen
8c501e516b
Address clang warnings.
...
MFC after: 3 days
2012-05-06 14:50:54 +00:00
Michael Tuexen
e06b67c756
Add support for the sac_info field in struct sctp_assoc_change
...
as required by RFC 6458.
MFC after: 3 days
2012-05-06 13:09:13 +00:00
Michael Tuexen
3f826ed2f3
Remove debug code.
...
MFC after: 3 days
2012-05-06 11:37:41 +00:00
Michael Tuexen
9935403ae1
Add support for SCTP_SEND_FAILED_EVENT as required by RFC 6458.
...
MFC after: 3 days
2012-05-06 11:02:53 +00:00
Michael Tuexen
d426064666
Provide the flags in the SCTP stream reconfig related notification
...
as specified in RFC 6525.
MFC after: 3 days
2012-05-05 21:41:16 +00:00
Michael Tuexen
88d935dad7
Add support for SCTP_STREAM_CHANGE_EVENT, SCTP_ASSOC_RESET_EVENT as
...
required by RFC 6525. This also fixes SCTP_STREAM_RESET_EVENT.
MFC after: 3 days
2012-05-04 15:49:08 +00:00
Michael Tuexen
cd3fd53188
Use SCTP_PRINTF() instead of printf() in all SCTP sources.
...
MFC after: 3 days
2012-05-04 09:27:00 +00:00
Michael Tuexen
78f2804527
Fix a type in an SCTP AUTH related notification. Keep the old name
...
for backwards compatibility.
Spotted by Irene Ruengeler.
MFC after: 3 days
2012-04-26 11:07:15 +00:00
Michael Tuexen
d77145777a
Use the flags defined in RFC 6525 in the stream reset event.
2012-04-23 20:45:31 +00:00
Michael Tuexen
07ee8fa69f
Fix check used by stream reset related events.
...
MFC after: 3 days
2012-04-21 11:53:24 +00:00
Michael Tuexen
953b6058cc
Fix reported errno.
...
MFC after: 3 days
2012-04-19 12:47:18 +00:00
Randall Stewart
c4e848b770
Make stream our stream reset implementation
...
compliant to RFC6525.
MFC after: 1 month
2012-03-29 13:36:53 +00:00
Michael Tuexen
b5b6e5c237
Small cleanup of the code. No functional change (in FreeBSD kernel).
...
MFC after: 1 week.
2012-03-22 16:22:16 +00:00
Michael Tuexen
86eef6072b
Two cleanups. No functional change.
2012-01-15 13:35:55 +00:00
Michael Tuexen
c58e60be43
Add an SCTP sysctl "blackhole", similar to the one for TCP.
...
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.
2012-01-08 09:56:24 +00:00
Michael Tuexen
aa1808b71f
Use NULL instead of 0.
...
MFC after: 1 month.
2012-01-06 20:20:59 +00:00
Michael Tuexen
60990c0c06
Address issues found by clang. While there, fix also some style
...
issues.
MFC after: 3 months.
2011-12-27 10:16:24 +00:00
Michael Tuexen
7215cc1b74
Fix unused parameter warnings.
...
While there, fix some whitespace issues.
MFC after: 3 months.
2011-12-17 19:21:40 +00:00
Michael Tuexen
c9c5805975
Add support for the SCTP_REMOTE_UDP_ENCAPS_PORT socket option.
...
Retire the the now unused sctp_udp_tunneling_for_client_enable
sysctl variable.
MFC after: 3 months.
2011-11-20 15:00:45 +00:00
Michael Tuexen
629749b60c
Update the inp stored in a HB-timer when moving an stcb to a new inp.
...
Use only this stored inp when processing a HB timeout.
This fixes a bug which results in a crash.
MFC after: 3 days.
2011-10-09 14:12:17 +00:00
Michael Tuexen
87eac1ceb9
Cleanup the iterator code, remove code that is never executed.
...
Approved by: re
MFC after: 1 month.
2011-09-19 21:47:20 +00:00
Michael Tuexen
80c79bbe7a
Fix the enabling/disabling of Heartbeats and path MTU
...
discovery when using the SCTP_PEER_ADDR_PARAMS socket option.
Approved by: re
MFC after: 1 month.
2011-09-17 08:50:29 +00:00
Michael Tuexen
92776dfd5a
Make sure that SCTP rejects broadcast, multicast and wildcard addresses
...
as remote addresses.
Approved by: re
MFC after: 1 month.
2011-09-15 08:49:54 +00:00
Michael Tuexen
c55b70cef6
Ensure that 1-to-1 style SCTP sockets can only be connected once.
...
Allow implicit setup also for 1-to-1 style sockets as described
in the latest version of the socket API ID.
Approved by: re
MFC after: 1 month
2011-09-14 19:10:13 +00:00
Michael Tuexen
58bdb69150
Fix the handling of the flowlabel and DSCP value in the SCTP_PEER_ADDR_PARAMS
...
socket option.
Honor the net.inet6.ip6.auto_flowlabel sysctl setting.
Approved by: re (bz)
MFC after: 1 month.
2011-09-14 08:15:21 +00:00
Michael Tuexen
b10f2dc889
Add support for the spp_dscp field in the SCTP_PEER_ADDR_PARAMS
...
socket option. Backwards compatibility is provided by still
supporting the spp_ipv4_tos field.
Approved by: re@
MFC after: 2 months.
2011-08-14 20:55:32 +00:00
Michael Tuexen
ca85e9482a
The result of a joint work between rrs@ and myself at the IETF:
...
* 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.
2011-08-03 20:21:00 +00:00
Michael Tuexen
e2e7c62edc
Add support for the newly added SCTP API.
...
In particular add support for:
* SCTP_SNDINFO, SCTP_PRINFO, SCTP_AUTHINFO, SCTP_DSTADDRV4, and
SCTP_DSTADDRV6 cmsgs.
* SCTP_NXTINFO and SCTP_RCVINFO cmgs.
* SCTP_EVENT, SCTP_RECVRCVINFO, SCTP_RECVNXTINFO and SCTP_DEFAULT_SNDINFO
socket option.
* Special association ids (SCTP_FUTURE_ASSOC, ...)
* sctp_recvv() and sctp_sendv() functions.
MFC after: 1 month.
2011-06-15 23:50:27 +00:00
Michael Tuexen
14cfa970bf
Get rid of unused functions.
...
MFC after: 1 week.
2011-05-29 18:41:06 +00:00