proc->thread stage 4: rework the VFS and DEVICE subsystems to take thread
[dragonfly.git] / sys / netinet / tcp_subr.c
index 271365c..d607916 100644 (file)
@@ -32,7 +32,7 @@
  *
  *     @(#)tcp_subr.c  8.2 (Berkeley) 5/24/95
  * $FreeBSD: src/sys/netinet/tcp_subr.c,v 1.73.2.31 2003/01/24 05:11:34 sam Exp $
- * $DragonFly: src/sys/netinet/tcp_subr.c,v 1.3 2003/06/23 17:55:46 dillon Exp $
+ * $DragonFly: src/sys/netinet/tcp_subr.c,v 1.4 2003/06/25 03:56:04 dillon Exp $
  */
 
 #include "opt_compat.h"
@@ -877,7 +877,7 @@ 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->td, inp))
                        inp_list[i++] = inp;
        }
        splx(s);
@@ -931,7 +931,7 @@ tcp_getcred(SYSCTL_HANDLER_ARGS)
        struct inpcb *inp;
        int error, s;
 
-       error = suser_xxx(req->p->p_ucred, 0);
+       error = suser(req->td);
        if (error)
                return (error);
        error = SYSCTL_IN(req, addrs, sizeof(addrs));
@@ -961,7 +961,7 @@ tcp6_getcred(SYSCTL_HANDLER_ARGS)
        struct inpcb *inp;
        int error, s, mapped = 0;
 
-       error = suser_xxx(req->p->p_ucred, 0);
+       error = suser_cred(req->p->p_ucred, 0);
        if (error)
                return (error);
        error = SYSCTL_IN(req, addrs, sizeof(addrs));