proc->thread stage 4: rework the VFS and DEVICE subsystems to take thread
[dragonfly.git] / sys / netinet6 / ip6_input.c
index 38950ed..2d67536 100644 (file)
@@ -1,5 +1,5 @@
 /*     $FreeBSD: src/sys/netinet6/ip6_input.c,v 1.11.2.15 2003/01/24 05:11:35 sam Exp $        */
-/*     $DragonFly: src/sys/netinet6/ip6_input.c,v 1.3 2003/06/23 17:55:47 dillon Exp $ */
+/*     $DragonFly: src/sys/netinet6/ip6_input.c,v 1.4 2003/06/25 03:56:04 dillon Exp $ */
 /*     $KAME: ip6_input.c,v 1.259 2002/01/21 04:58:09 jinmei Exp $     */
 
 /*
@@ -1130,12 +1130,12 @@ ip6_savecontrol(in6p, mp, ip6, m)
        struct ip6_hdr *ip6;
        struct mbuf *m;
 {
-       struct proc *p = curproc;       /* XXX */
+       struct thread *td = curthread;  /* XXX */
        int privileged = 0;
        int rthdr_exist = 0;
 
 
-       if (p && !suser_xxx(p->p_ucred, 0))
+       if (suser(td) == 0)
                privileged++;
 
 #ifdef SO_TIMESTAMP