diff options
author | 2007-06-15 18:23:06 +0000 | |
---|---|---|
committer | 2007-06-15 18:23:06 +0000 | |
commit | 16193b2ba7bc3e2cbde4514c36576e5ba91dccb4 (patch) | |
tree | 20189f285844778846aabcbd6a91edf14522d5ef /sys/netinet/tcp_timer.c | |
parent | In power_match(), make sure oa_irq is correctly initialized. (diff) | |
download | wireguard-openbsd-16193b2ba7bc3e2cbde4514c36576e5ba91dccb4.tar.xz wireguard-openbsd-16193b2ba7bc3e2cbde4514c36576e5ba91dccb4.zip |
Drop the current random timestamps and the current ISN generation
code and replace both with a RFC1948 based method, so TCP clients
now have monotonic ISN/timestamps. The server side uses completely
random ISN/timestamps and does time-wait recycling (on port reuse).
ok djm@, mcbride@; thanks to lots of testers
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r-- | sys/netinet/tcp_timer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index 7265e503970..e3add336a5a 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_timer.c,v 1.38 2005/11/15 21:09:46 miod Exp $ */ +/* $OpenBSD: tcp_timer.c,v 1.39 2007/06/15 18:23:07 markus Exp $ */ /* $NetBSD: tcp_timer.c,v 1.14 1996/02/13 23:44:09 christos Exp $ */ /* @@ -138,6 +138,8 @@ tcp_slowtimo() tcp_iss += TCP_ISSINCR/PR_SLOWHZ; /* increment iss */ if ((int)tcp_iss < 0) tcp_iss = 0; /* XXX */ +#else + tcp_iss += TCP_ISSINCR2/PR_SLOWHZ; /* increment iss */ #endif /* TCP_COMPAT_42 */ tcp_now++; /* for timestamps */ splx(s); |