diff options
author | rrs <rrs@FreeBSD.org> | 2007-10-30 14:09:24 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-10-30 14:09:24 +0000 |
commit | 814ed57392bec9cf5be68e30ad73cd809079b7ed (patch) | |
tree | 06d1ed3e2635e73c3786a3d9087f96f533011d02 /sys/netinet/sctp_constants.h | |
parent | d0be68189d3bb9676d666e1749a0a8d3a967577c (diff) | |
download | FreeBSD-src-814ed57392bec9cf5be68e30ad73cd809079b7ed.zip FreeBSD-src-814ed57392bec9cf5be68e30ad73cd809079b7ed.tar.gz |
- Change the Time Wait of vtags value to match the cookie-life
- Select a tag gains ability to optionally save new tags
off in the timewait system.
- When looking up associations do not give back a stcb that
is in the about-to-be-freed state, and instead continue
looking for other candiates.
- New function to query to see if value is in time-wait.
- Timewait had a time comparison error that caused very
few vtags to actually stay in time-wait.
- When setting tags in time-wait, we now use the time
requested NOT a fixed constant value.
- sstat now gets the proper associd when we do the query.
- When we process an association, we expect the tag chosen
(if we have one from a cookie) to be in time-wait. Before
we would NOT allow the assoc up by checking if its good.
In theory this should have caused almost all assoc not
to come up except for the time-comparison bug above (this
bug was hidden by the time comparison bug :-D).
- Don't save tags for nonce values in the time-wait cache
since these are used only during cookie collisions and do
not matter if they are unique or not.
MFC after: 1 week
Diffstat (limited to 'sys/netinet/sctp_constants.h')
-rw-r--r-- | sys/netinet/sctp_constants.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/sctp_constants.h b/sys/netinet/sctp_constants.h index f2174df..6f2fd61 100644 --- a/sys/netinet/sctp_constants.h +++ b/sys/netinet/sctp_constants.h @@ -1007,10 +1007,9 @@ __FBSDID("$FreeBSD$"); */ /* - * Number of seconds of time wait, tied to MSL value (2 minutes), so 2 * MSL - * = 4 minutes or 480 seconds. + * Number of seconds of time wait for a vtag. */ -#define SCTP_TIME_WAIT 480 +#define SCTP_TIME_WAIT 60 /* This time wait is the same as the default cookie life * since we now enter a tag in every time we send a cookie. |