diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2000-12-13 09:47:09 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2000-12-13 09:47:09 +0000 |
commit | d049d8a682a5d998c53f070b78c9762180e7e6e9 (patch) | |
tree | 817ff5bdce853337dd59ad4ae525e6f6e72a036d /sys/netinet/tcp_usrreq.c | |
parent | 08ca19e84218e5b8d5db090d5c304432fd643c51 (diff) |
more random tcp sequence numbers. okay deraadt@, angelos@
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 38a4fc02830..79942981ba2 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.49 2000/12/11 08:04:56 itojun Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.50 2000/12/13 09:47:08 provos Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -304,12 +304,12 @@ tcp_usrreq(so, req, m, nam, control) soisconnecting(so); tcpstat.tcps_connattempt++; tp->t_state = TCPS_SYN_SENT; - tp->t_timer[TCPT_KEEP] = tcptv_keep_init; - tp->iss = tcp_iss; + tp->t_timer[TCPT_KEEP] = tcptv_keep_init; #ifdef TCP_COMPAT_42 + tp->iss = tcp_iss; tcp_iss += TCP_ISSINCR/2; -#else /* TCP_COMPAT_42 */ - tcp_iss += arc4random() % TCP_ISSINCR + 1; +#else /* TCP_COMPAT_42 */ + tp->iss = tcp_rndiss_next(); #endif /* !TCP_COMPAT_42 */ tcp_sendseqinit(tp); #if defined(TCP_SACK) |