summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_seq.h
diff options
context:
space:
mode:
authorjesper <jesper@FreeBSD.org>2001-04-20 11:58:56 +0000
committerjesper <jesper@FreeBSD.org>2001-04-20 11:58:56 +0000
commita1fab55459954386c576d48706657c8cb4cb91d4 (patch)
treeb705e779553d97b6a52a0d9e59dc8e8ffce55857 /sys/netinet/tcp_seq.h
parent96367160982bc210fed94ea4cde6d3ac00a343e8 (diff)
downloadFreeBSD-src-a1fab55459954386c576d48706657c8cb4cb91d4.zip
FreeBSD-src-a1fab55459954386c576d48706657c8cb4cb91d4.tar.gz
Say goodbye to TCP_COMPAT_42
Reviewed by: wollman Requested by: wollman
Diffstat (limited to 'sys/netinet/tcp_seq.h')
-rw-r--r--sys/netinet/tcp_seq.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/netinet/tcp_seq.h b/sys/netinet/tcp_seq.h
index 021f7aa..9d4adc8 100644
--- a/sys/netinet/tcp_seq.h
+++ b/sys/netinet/tcp_seq.h
@@ -81,23 +81,6 @@
#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,
- * but with a random component averaging 128 KB.
- * We also increment tcp_iss by a quarter of this amount
- * each time we use the value for a new connection.
- * If defined, the tcp_random18() macro should produce a
- * number in the range [0-0x3ffff] that is hard to predict.
- */
-#ifndef tcp_random18
-#define tcp_random18() (arc4random() & 0x3ffff)
-#endif
-#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 */
OpenPOWER on IntegriCloud