tuexen
7d2fcf1932
All changes affect only SCTP-AUTH:
...
* Remove non working code related to SHA224.
* Remove support for non-standardised HMAC-IDs using SHA384 and SHA512.
* Prefer SHA256 over SHA1.
* Minor cleanup.
MFC after: 2 weeks
2013-09-02 22:48:41 +00:00
tuexen
239274d550
Export the inpcb features as a 64-bit entity.
...
Bump __FreeBSD_version to 1000048 since the
modified structure is user visible and used
by netstat, for example.
2013-08-22 20:29:57 +00:00
tuexen
139b791e20
Whitespace changes due to upstream integration of SCTP changes in the
...
FreeBSD code base.
2012-10-29 20:47:32 +00:00
delphij
3948ce713c
Remove __P.
...
Submitted by: kevlo
Reviewed by: md5(1)
MFC after: 2 months
2012-10-22 21:49:56 +00:00
tuexen
df16a3505f
Fix the sctp_sockstore union such that userland programs don't depend
...
on INET and/or INET6 to be defined and in-tune with how the kernel
was compiled.
MFC after: 3 days
Discussed with: rrs
2012-07-26 08:10:29 +00:00
tuexen
2357a49326
Changes which improve compilation if neither INET nor INET6 is defined.
...
MFC after: 3 days
2012-07-15 20:16:17 +00:00
tuexen
c045f59058
Add sn_send_failed_event to sctp_notification.
...
MFC after: 3 days
2012-05-24 11:52:57 +00:00
tuexen
25827ad382
Use consistent text at the begining of the files.
...
MFC after: 3 days
2012-05-23 11:26:28 +00:00
tuexen
b5cb1ff1a3
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
tuexen
fd59ebc4f0
Add support for SCTP_SEND_FAILED_EVENT as required by RFC 6458.
...
MFC after: 3 days
2012-05-06 11:02:53 +00:00
tuexen
3527361dea
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
tuexen
5220abc054
Fix another RFC 6458 issue. Spotted by Irene Ruengeler.
...
MFC after: 3 days
2012-05-03 10:26:33 +00:00
tuexen
e42771f14b
Add support for missing gauth_number_of_chunks field. This Bug was
...
found by Irene Ruengeler.
MFC after: 1 week
2012-04-30 08:44:21 +00:00
tuexen
3b680d94c7
Remove unused structure.
...
Reported by Irene Ruengeler.
MFC after: 3 days
2012-04-27 13:58:09 +00:00
tuexen
a88e020390
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
tuexen
0c449daeb1
Use the flags defined in RFC 6525 in the stream reset event.
2012-04-23 20:45:31 +00:00
rrs
ddfb5c5980
Make stream our stream reset implementation
...
compliant to RFC6525.
MFC after: 1 month
2012-03-29 13:36:53 +00:00
tuexen
3a4d069b21
Fix unused parameter warnings.
...
While there, fix some whitespace issues.
MFC after: 3 months.
2011-12-17 19:21:40 +00:00
tuexen
f32687f006
Move up the address to the top of the sctp_udencaps structure
...
like in all other structures. This avoids alignment problems.
MFC after: 3 months.
2011-11-24 10:58:48 +00:00
tuexen
d6135e0636
Move up the address to the top of the sctp_paddrthlds structure
...
like in all other structures. This avoids alignment problems.
MFC after: 3 days.
2011-11-24 10:54:30 +00:00
tuexen
4de38879e5
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
tuexen
2a294422d7
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
tuexen
f47c615e88
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
tuexen
dfe16c28d3
Add the missing sca_keylength field to the sctp_authkey structure,
...
which is used the the SCTP_AUTH_KEY socket option.
MFC after: 1 month.
2011-06-30 16:56:55 +00:00
tuexen
0d864997ca
Add support for SCTP_PR_SCTP_NONE which I misded to add.
...
This constant is defined in the socket API ID.
MFC after: 2 months.
2011-06-27 22:03:33 +00:00
tuexen
b127ed6f91
Add SCTP_DEFAULT_PRINFO socket option.
...
Fix the SCTP_DEFAULT_SNDINFO socket option: Don't clear the
PR SCTP policy when setting sinfo_flags.
MFC after: 1 month.
2011-06-16 21:12:36 +00:00
tuexen
1c7060f746
* Fix the handling of addresses in sctp_sendv().
...
* Add support for SCTP_SENDV_NOINFO.
* Improve the error handling of sctp_sendv() and sctp_recv().
MFC after: 1 month
2011-06-16 15:36:09 +00:00
tuexen
6339980d37
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
rrs
5b16134320
Improvements to CC modules:
...
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
2011-02-26 15:23:46 +00:00
rrs
fa5090f1dd
1) Typo correction in comments and one spacing change.
...
2) Mass update to all copyrights.
MFC after: 3 Months
2011-02-05 12:12:51 +00:00
rrs
700f5d5a13
Fix a bug in the way ECN-Echo chunk
...
sends were being accounted for. The
counting was such that we counted only
when we queued a chunk, not when we sent it.
Now keep an additional counter for queuing and
one for sending.
MFC after: 1 week
2011-01-28 20:49:15 +00:00
tuexen
459496919d
Add stream scheduling support.
...
This work is based on a patch received from Robin Seggelmann.
MFC after: 3 months.
2011-01-23 19:36:28 +00:00
rrs
cf6406f93b
Fix it so we align with new socket API draft for
...
state's in destination (i.e. ACTIVE/INACTIVE/UNCONFIRMED)
MFC after: 1 week
2011-01-20 12:40:09 +00:00
tuexen
68eca43089
Fix a typo.
...
MFC after: 3 months.
2011-01-01 22:22:57 +00:00
rrs
5f2060fdd7
Adds new dtrace for cwnd functions and lay's
...
groundwork for future dtrace points (rwnd flightsize etc).
MFC after: 2 months
2010-11-25 13:39:55 +00:00
tuexen
53e7c3f2f5
Add an SCTP socket option to retrieve the number of timeouts
...
of an association.
MFC after: 3 days.
2010-11-16 22:16:38 +00:00
brucec
696c4e1f9b
Fix typos.
...
PR: bin/148894
Submitted by: olgeni
2010-11-09 10:59:09 +00:00
tuexen
908a61906a
Implement correct handling of address parameter and
...
sendinfo for SCTP send calls.
MFC after: 4 weeks.
2010-09-05 20:13:07 +00:00
rrs
e4906bb78b
Adds the option of keeping per-cpu statistics in SCTP. This
...
may be useful since it gets rid of atomics but I want it to
remain an option until I can do further testing on if it really
speeds things up.
2010-03-24 20:02:40 +00:00
tuexen
01ee00225c
Use [] instead of [0] for flexible arrays.
...
Obtained from: Bruce Cran
MFC after: 1 week
2010-01-22 07:53:41 +00:00
rrs
c85a2af4da
This change syncs up the socketAPI stream-reset
...
values to match those in linux and the I-D
just released to the IETF.
2010-01-17 19:35:38 +00:00
tuexen
c0a018dc4a
Get rid of support of an old version of the SCTP-AUTH draft.
...
Get rid of unused MD5 code.
MFC after: 1 week
2010-01-16 20:04:17 +00:00
tuexen
d5fa97e32c
Get rid of unused field. This will also be deleted
...
in the official speciication of the SCTP socket API.
Approved by:re, rrs (mentor)
2009-07-27 12:09:32 +00:00
rrs
b2dff4f4a9
Make sctp_uio user to kernel structure match the
...
socket-api draft. Two fields were uint32_t when they
should have been uint16_t.
Reported by Jonathan Leighton at U-del.
2009-05-30 10:50:40 +00:00
rrs
d7b90235f1
ABI expansions to hopefully future-proof our MIB/netstat code for 8.0
2009-05-07 16:42:45 +00:00
rrs
0d84cb3f8b
Add more padding and a new variable. This will
...
help us be able to keep ABI compatibility between
8 and 9.
MFC after: Never
2009-04-08 12:49:36 +00:00
rrs
f72ef579b2
Many bug fixes (from the IETF hack-fest):
...
- PR-SCTP had major issues when skipping through a multi-part message.
o Did not look at socket buffer.
o Did not properly handle the reassmebly queue.
o The MARKED segments could interfere and un-skip a chunk causing
a problem with the proper FWD-TSN.
o No FR of FWD-TSN's was being done.
- NR-Sack code was basically disabled. It needed fixes that
never got into the real code.
- CMT code had issues when the two paths were NOT the same b/w. We
found a few small bugs, but also the critcal one here was not
dividing the rwnd amongst the paths.
Obtained from: Michael Tuexen and myself at the IETF hack-fest ;-)
2009-04-04 11:43:32 +00:00
rrs
fedf855989
Add the add-stream capability. Still needs more
...
testing..
MFC after: 1 month
2009-02-20 15:03:54 +00:00
rrs
a15ded2637
Move the new rwnd field down to the very end
...
of the xsctp structure. This is where all new
fields belong (not that we will be ABI compatiable
with 7.x anyway.. sigh).
2009-02-13 14:43:46 +00:00
rrs
b885a20f24
Add padding to then end of the xsctp_xxx structures to
...
allow future changes to be able to maintain ABI compatibility
2009-02-09 17:37:17 +00:00