aboutsummaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_seq.h
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2001-05-02 20:48:34 +0000
committerKris Kennaway <kris@FreeBSD.org>2001-05-02 20:48:34 +0000
commit9f6334c28eb632398a56d5f9e225314bd140ad8c (patch)
tree0f209370077e45b198ae7ee8dca52b425c512f8f /sys/netinet/tcp_seq.h
parent7dd514fcc69b095bcf4239f84238f37f6047f8ba (diff)
downloadsrc-9f6334c28eb632398a56d5f9e225314bd140ad8c.tar.gz
src-9f6334c28eb632398a56d5f9e225314bd140ad8c.zip
MFC: Better TCP ISN randomization
Notes
Notes: svn path=/stable/3/; revision=76218
Diffstat (limited to 'sys/netinet/tcp_seq.h')
-rw-r--r--sys/netinet/tcp_seq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_seq.h b/sys/netinet/tcp_seq.h
index 9392df7be6fc..b5cc7ff14e4b 100644
--- a/sys/netinet/tcp_seq.h
+++ b/sys/netinet/tcp_seq.h
@@ -81,6 +81,7 @@
#ifdef KERNEL
extern tcp_cc tcp_ccgen; /* global connection count */
+#ifdef TCP_COMPAT_42
/*
* Increment for tcp_iss each second.
* This is designed to increment at the standard 250 KB/s,
@@ -96,6 +97,7 @@ extern tcp_cc tcp_ccgen; /* global connection count */
#define TCP_ISSINCR (122*1024 + tcp_random18())
extern tcp_seq tcp_iss; /* tcp initial send seq # */
+#endif /* TCP_COMPAT_42 */
#else
#define TCP_ISSINCR (250*1024) /* increment for tcp_iss each second */
#endif /* KERNEL */