summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorPaul Saab <ps@FreeBSD.org>2001-10-05 07:06:32 +0000
committerPaul Saab <ps@FreeBSD.org>2001-10-05 07:06:32 +0000
commit4787fd37afe99cf1467e11d9946669b59b4f0e92 (patch)
tree953170eca78713bb41696224e03ab9f195a51086 /sys/netinet/tcp_subr.c
parenta1eb245d3266bf830490a66f395122dee7a1d201 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index b575415632fa..32b307912b88 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -854,8 +854,12 @@ tcp_pcblist(SYSCTL_HANDLER_ARGS)
s = splnet();
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))
+ if (inp->inp_gencnt <= gencnt && !prison_xinpcb(req->p, inp)) {
+ if (!showallsockets && socheckproc(inp->inp_socket,
+ curthread->td_proc))
+ continue;
inp_list[i++] = inp;
+ }
}
splx(s);
n = i;