summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timewait.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-03-16 20:00:53 +0000
committerphk <phk@FreeBSD.org>2001-03-16 20:00:53 +0000
commitfa534e660d6323afb758326f29b9baec791d2ff4 (patch)
tree9bf74bdcaea95292ea2e78f1b8ec454f685ce11c /sys/netinet/tcp_timewait.c
parenta4a639f96855a7d5ba4a15245d911bfacb505c0c (diff)
downloadFreeBSD-src-fa534e660d6323afb758326f29b9baec791d2ff4.zip
FreeBSD-src-fa534e660d6323afb758326f29b9baec791d2ff4.tar.gz
<sys/queue.h> makeover.
Diffstat (limited to 'sys/netinet/tcp_timewait.c')
-rw-r--r--sys/netinet/tcp_timewait.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
index b70d2b5..8f339e4 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -733,18 +733,16 @@ tcp_drain()
* where we're really low on mbufs, this is potentially
* usefull.
*/
- for (inpb = LIST_FIRST(tcbinfo.listhead); inpb;
- inpb = LIST_NEXT(inpb, inp_list)) {
- if ((tcpb = intotcpcb(inpb))) {
- while ((te = LIST_FIRST(&tcpb->t_segq))
- != NULL) {
+ LIST_FOREACH(inpb, tcbinfo.listhead, inp_list) {
+ if ((tcpb = intotcpcb(inpb))) {
+ while ((te = LIST_FIRST(&tcpb->t_segq))
+ != NULL) {
LIST_REMOVE(te, tqe_q);
m_freem(te->tqe_m);
FREE(te, M_TSEGQ);
}
}
}
-
}
}
OpenPOWER on IntegriCloud