summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 1986d923a83..6fe4e2814ca 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_usrreq.c,v 1.86 2004/07/15 15:27:22 markus Exp $ */
+/* $OpenBSD: tcp_usrreq.c,v 1.87 2004/10/28 19:22:52 mcbride Exp $ */
/* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */
/*
@@ -79,6 +79,8 @@
#include <sys/domain.h>
#include <sys/kernel.h>
+#include <dev/rndvar.h>
+
#include <net/if.h>
#include <net/route.h>
@@ -319,6 +321,11 @@ tcp_usrreq(so, req, m, nam, control)
}
so->so_state |= SS_CONNECTOUT;
+
+ /* initialise the timestamp modulator */
+ if (tp->t_flags & TF_REQ_TSTMP)
+ tp->ts_modulate = arc4random();
+
/* Compute window scaling to request. */
tcp_rscale(tp, so->so_rcv.sb_hiwat);