summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timewait.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-10-03 16:54:17 +0000
committerwollman <wollman@FreeBSD.org>1995-10-03 16:54:17 +0000
commit3fc43db861e597f1130b985d780f0197ed473b13 (patch)
tree7ad9eaf1935c4be274c953c161f45e2d25f3433c /sys/netinet/tcp_timewait.c
parent6620dab5e12bef027febd61c323aedb2f252e1e6 (diff)
downloadFreeBSD-src-3fc43db861e597f1130b985d780f0197ed473b13.zip
FreeBSD-src-3fc43db861e597f1130b985d780f0197ed473b13.tar.gz
Finish 4.4-Lite-2 merge: randomize TCP initial sequence numbers
to make ISS-guessing spoofing attacks harder.
Diffstat (limited to 'sys/netinet/tcp_timewait.c')
-rw-r--r--sys/netinet/tcp_timewait.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
index a614854..d166bba 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1982, 1986, 1988, 1990, 1993
+ * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -30,8 +30,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)tcp_subr.c 8.1 (Berkeley) 6/10/93
- * $Id: tcp_subr.c,v 1.15 1995/09/20 21:00:59 wollman Exp $
+ * @(#)tcp_subr.c 8.2 (Berkeley) 5/24/95
+ * $Id: tcp_subr.c,v 1.16 1995/09/22 17:43:37 wollman Exp $
*/
#include <sys/param.h>
@@ -87,7 +87,7 @@ void
tcp_init()
{
- tcp_iss = 1; /* wrong */
+ tcp_iss = random(); /* wrong, but better than a constant */
tcp_ccgen = 1;
tcp_cleartaocache();
LIST_INIT(&tcb);
OpenPOWER on IntegriCloud