summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2008-05-06 08:47:35 +0000
committermarkus <markus@openbsd.org>2008-05-06 08:47:35 +0000
commit598d9f0e696e6e427d2bc4b26b4941a4a202c7c4 (patch)
tree110b900ba52cb6fca02ad2acf6fb750263e966a6 /sys/netinet/tcp_input.c
parentDrop all broadcast and multicast packets. (diff)
downloadwireguard-openbsd-598d9f0e696e6e427d2bc4b26b4941a4a202c7c4.tar.xz
wireguard-openbsd-598d9f0e696e6e427d2bc4b26b4941a4a202c7c4.zip
remove tcp_drain code since it's not longer used; ok henning, feedback thib
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index ebbff633605..fa3bfc2eeff 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.212 2008/02/20 11:24:02 markus Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.213 2008/05/06 08:47:35 markus Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -1227,10 +1227,8 @@ after_listen:
tp->snd_scale = tp->requested_s_scale;
tp->rcv_scale = tp->request_r_scale;
}
- tcp_reass_lock(tp);
(void) tcp_reass(tp, (struct tcphdr *)0,
(struct mbuf *)0, &tlen);
- tcp_reass_unlock(tp);
/*
* if we didn't have to retransmit the SYN,
* use its rtt as our initial srtt & rtt var.
@@ -1506,10 +1504,8 @@ trimthenstep6:
tp->rcv_scale = tp->request_r_scale;
tiwin = th->th_win << tp->snd_scale;
}
- tcp_reass_lock(tp);
(void) tcp_reass(tp, (struct tcphdr *)0, (struct mbuf *)0,
&tlen);
- tcp_reass_unlock(tp);
tp->snd_wl1 = th->th_seq - 1;
/* fall into ... */
@@ -2042,10 +2038,8 @@ dodata: /* XXX */
tcp_seq laststart = th->th_seq;
tcp_seq lastend = th->th_seq + tlen;
#endif
- tcp_reass_lock(tp);
if (th->th_seq == tp->rcv_nxt && TAILQ_EMPTY(&tp->t_segq) &&
tp->t_state == TCPS_ESTABLISHED) {
- tcp_reass_unlock(tp);
TCP_SETUP_ACK(tp, tiflags);
tp->rcv_nxt += tlen;
tiflags = th->th_flags & TH_FIN;
@@ -2062,7 +2056,6 @@ dodata: /* XXX */
} else {
m_adj(m, hdroptlen);
tiflags = tcp_reass(tp, th, m, &tlen);
- tcp_reass_unlock(tp);
tp->t_flags |= TF_ACKNOW;
}
#ifdef TCP_SACK