diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-02-04 13:13:25 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-02-04 13:13:25 +0000 |
| commit | fc2ffbe6040d6630a06229c5c9be77601fb635eb (patch) | |
| tree | 328f91e23b34b382d998fba4c7e55796b240b62b /sys/netinet/tcp_subr.c | |
| parent | ef9e85abba5ce45c8b3fc840db320edb1abe0160 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_subr.c')
| -rw-r--r-- | sys/netinet/tcp_subr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 5b1db4f5aade..0da8440682df 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -749,8 +749,8 @@ tcp_drain() * where we're really low on mbufs, this is potentially * usefull. */ - for (inpb = tcbinfo.listhead->lh_first; inpb; - inpb = inpb->inp_list.le_next) { + 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) { @@ -841,8 +841,8 @@ tcp_pcblist(SYSCTL_HANDLER_ARGS) return ENOMEM; s = splnet(); - for (inp = tcbinfo.listhead->lh_first, i = 0; inp && i < n; - inp = inp->inp_list.le_next) { + for (inp = LIST_FIRST(tcbinfo.listhead), i = 0; inp && i < n; + inp = LIST_NEXT(inp, inp_list)) { if (inp->inp_gencnt <= gencnt && !prison_xinpcb(req->p, inp)) inp_list[i++] = inp; } |
