diff options
author | 2005-08-02 11:05:44 +0000 | |
---|---|---|
committer | 2005-08-02 11:05:44 +0000 | |
commit | eb78d53dcc6bc3e16f41f4b7cfca0acc447a2f9f (patch) | |
tree | 7e9405e3ae1d6824de1061bf259e964a0d050460 /sys/netinet/tcp_subr.c | |
parent | .Xr cvsignore(5); (diff) | |
download | wireguard-openbsd-eb78d53dcc6bc3e16f41f4b7cfca0acc447a2f9f.tar.xz wireguard-openbsd-eb78d53dcc6bc3e16f41f4b7cfca0acc447a2f9f.zip |
change the TCP reass queue from LIST to TAILQ;
ok henning claudio fgsch krw
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r-- | sys/netinet/tcp_subr.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index b39678cc7fb..b8da6bb78b5 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_subr.c,v 1.90 2005/06/30 08:51:31 markus Exp $ */ +/* $OpenBSD: tcp_subr.c,v 1.91 2005/08/02 11:05:44 markus Exp $ */ /* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */ /* @@ -177,7 +177,7 @@ tcp_init() #endif /* TCP_COMPAT_42 */ pool_init(&tcpcb_pool, sizeof(struct tcpcb), 0, 0, 0, "tcpcbpl", NULL); - pool_init(&tcpqe_pool, sizeof(struct ipqent), 0, 0, 0, "tcpqepl", + pool_init(&tcpqe_pool, sizeof(struct tcpqent), 0, 0, 0, "tcpqepl", NULL); pool_sethardlimit(&tcpqe_pool, tcp_reass_limit, NULL, 0); #ifdef TCP_SACK @@ -492,7 +492,7 @@ tcp_newtcpcb(struct inpcb *inp) if (tp == NULL) return ((struct tcpcb *)0); bzero((char *) tp, sizeof(struct tcpcb)); - LIST_INIT(&tp->segq); + TAILQ_INIT(&tp->t_segq); tp->t_maxseg = tcp_mssdflt; tp->t_maxopd = 0; @@ -628,12 +628,12 @@ tcp_reaper(void *arg) int tcp_freeq(struct tcpcb *tp) { - struct ipqent *qe; + struct tcpqent *qe; int rv = 0; - while ((qe = LIST_FIRST(&tp->segq)) != NULL) { - LIST_REMOVE(qe, ipqe_q); - m_freem(qe->ipqe_m); + while ((qe = TAILQ_FIRST(&tp->t_segq)) != NULL) { + TAILQ_REMOVE(&tp->t_segq, qe, tcpqe_q); + m_freem(qe->tcpqe_m); pool_put(&tcpqe_pool, qe); rv = 1; } |