diff options
author | jhay <jhay@FreeBSD.org> | 1997-05-01 06:21:31 +0000 |
---|---|---|
committer | jhay <jhay@FreeBSD.org> | 1997-05-01 06:21:31 +0000 |
commit | 0e56117666533387c89ee4839fa7ca3c4062a388 (patch) | |
tree | ccf653b5dae3cc2fe36b01c0ad8d6cc71cdabb17 /sys/netipx/ipx.c | |
parent | ee514a2ef805dc75f685e22c001dc90cf76db411 (diff) | |
download | FreeBSD-src-0e56117666533387c89ee4839fa7ca3c4062a388.zip FreeBSD-src-0e56117666533387c89ee4839fa7ca3c4062a388.tar.gz |
Make ipx compile again after the network interface changes.
Diffstat (limited to 'sys/netipx/ipx.c')
-rw-r--r-- | sys/netipx/ipx.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/netipx/ipx.c b/sys/netipx/ipx.c index 77b11e6..895b8fd 100644 --- a/sys/netipx/ipx.c +++ b/sys/netipx/ipx.c @@ -33,7 +33,7 @@ * * @(#)ipx.c * - * $Id: ipx.c,v 1.7 1997/02/22 09:41:51 peter Exp $ + * $Id: ipx.c,v 1.8 1997/03/24 11:33:31 bde Exp $ */ #include <sys/param.h> @@ -41,6 +41,7 @@ #include <sys/systm.h> #include <sys/mbuf.h> #include <sys/sockio.h> +#include <sys/proc.h> #include <sys/protosw.h> #include <sys/errno.h> #include <sys/socket.h> @@ -62,11 +63,12 @@ int ipx_interfaces; */ /* ARGSUSED */ int -ipx_control(so, cmd, data, ifp) +ipx_control(so, cmd, data, ifp, p) struct socket *so; int cmd; caddr_t data; register struct ifnet *ifp; + struct proc *p; { register struct ifreq *ifr = (struct ifreq *)data; register struct ipx_aliasreq *ifra = (struct ipx_aliasreq *)data; @@ -110,8 +112,8 @@ ipx_control(so, cmd, data, ifp) return (0); } - if ((so->so_state & SS_PRIV) == 0) - return (EPERM); + if (p && (error = suser(p->p_ucred, &p->p_acflag)) != 0) + return (error); switch (cmd) { case SIOCAIFADDR: |