diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-11-27 17:23:24 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-11-27 17:23:24 +0000 |
commit | 107b214250e4f79519ae27ac325c1b347cb3df8d (patch) | |
tree | 252e60f493720c2ca9dcd9c933f1afa02143afc5 /sys/netinet | |
parent | 336a74325b737793f3dcbbf25488657fbabcec2e (diff) |
TCP_COMPAT_42 was last used in 1997. Kill it.
ok millert
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_input.c | 7 | ||||
-rw-r--r-- | sys/netinet/tcp_subr.c | 6 | ||||
-rw-r--r-- | sys/netinet/tcp_timer.c | 17 | ||||
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 7 |
4 files changed, 4 insertions, 33 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 23f8d91a857..89f59938c1c 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.209 2007/11/27 16:22:13 martynas Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.210 2007/11/27 17:23:23 deraadt Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -4069,12 +4069,7 @@ syn_cache_add(src, dst, th, iphlen, so, m, optp, optlen, oi, issp) sc->sc_ipopts = ipopts; sc->sc_irs = th->th_seq; -#ifdef TCP_COMPAT_42 - tcp_iss += TCP_ISSINCR/2; - sc->sc_iss = tcp_iss; -#else sc->sc_iss = issp ? *issp : arc4random(); -#endif sc->sc_peermaxseg = oi->maxseg; sc->sc_ourmaxseg = tcp_mss_adv(m->m_flags & M_PKTHDR ? m->m_pkthdr.rcvif : NULL, sc->sc_src.sa.sa_family); diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index e5048bfb54a..66ac661607e 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_subr.c,v 1.100 2007/09/18 22:02:18 djm Exp $ */ +/* $OpenBSD: tcp_subr.c,v 1.101 2007/11/27 17:23:23 deraadt Exp $ */ /* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */ /* @@ -351,11 +351,7 @@ tcp_respond(tp, template, m, ack, seq, flags) m = m_gethdr(M_DONTWAIT, MT_HEADER); if (m == NULL) return; -#ifdef TCP_COMPAT_42 - tlen = 1; -#else tlen = 0; -#endif m->m_data += max_linkhdr; switch (af) { #ifdef INET6 diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index 1f9780ddc05..f313b4b1857 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_timer.c,v 1.40 2007/09/01 18:49:28 henning Exp $ */ +/* $OpenBSD: tcp_timer.c,v 1.41 2007/11/27 17:23:23 deraadt Exp $ */ /* $NetBSD: tcp_timer.c,v 1.14 1996/02/13 23:44:09 christos Exp $ */ /* @@ -135,13 +135,7 @@ tcp_slowtimo() s = splsoftnet(); tcp_maxidle = TCPTV_KEEPCNT * tcp_keepintvl; -#ifdef TCP_COMPAT_42 - tcp_iss += TCP_ISSINCR/PR_SLOWHZ; /* increment iss */ - if ((int)tcp_iss < 0) - tcp_iss = 0; /* XXX */ -#else tcp_iss += TCP_ISSINCR2/PR_SLOWHZ; /* increment iss */ -#endif /* TCP_COMPAT_42 */ tcp_now++; /* for timestamps */ splx(s); } @@ -458,17 +452,8 @@ tcp_timer_keep(void *arg) * correspondent TCP to respond. */ tcpstat.tcps_keepprobe++; -#ifdef TCP_COMPAT_42 - /* - * The keepalive packet must have nonzero length - * to get a 4.2 host to respond. - */ - tcp_respond(tp, mtod(tp->t_template, caddr_t), - (struct mbuf *)NULL, tp->rcv_nxt - 1, tp->snd_una - 1, 0); -#else tcp_respond(tp, mtod(tp->t_template, caddr_t), (struct mbuf *)NULL, tp->rcv_nxt, tp->snd_una - 1, 0); -#endif TCP_TIMER_ARM(tp, TCPT_KEEP, tcp_keepintvl); } else TCP_TIMER_ARM(tp, TCPT_KEEP, tcp_keepidle); diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 749f82406e6..13dd15cbc67 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.93 2007/11/16 19:24:07 deraadt Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.94 2007/11/27 17:23:23 deraadt Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -333,12 +333,7 @@ tcp_usrreq(so, req, m, nam, control) tcpstat.tcps_connattempt++; tp->t_state = TCPS_SYN_SENT; TCP_TIMER_ARM(tp, TCPT_KEEP, tcptv_keep_init); -#ifdef TCP_COMPAT_42 - tp->iss = tcp_iss; - tcp_iss += TCP_ISSINCR/2; -#else /* TCP_COMPAT_42 */ tcp_set_iss_tsm(tp); -#endif /* !TCP_COMPAT_42 */ tcp_sendseqinit(tp); #if defined(TCP_SACK) tp->snd_last = tp->snd_una; |