Deleted Added
full compact
36c36
< * $Id: ipx_usrreq.c,v 1.11 1997/02/22 09:41:57 peter Exp $
---
> * $Id: ipx_usrreq.c,v 1.12 1997/04/05 20:05:09 jhay Exp $
44a45
> #include <sys/proc.h>
78,80c79,81
< static int ipx_attach(struct socket *so, int proto);
< static int ipx_bind(struct socket *so, struct mbuf *nam);
< static int ipx_connect(struct socket *so, struct mbuf *nam);
---
> static int ipx_attach(struct socket *so, int proto, struct proc *p);
> static int ipx_bind(struct socket *so, struct mbuf *nam, struct proc *p);
> static int ipx_connect(struct socket *so, struct mbuf *nam, struct proc *p);
84c85
< struct mbuf *addr, struct mbuf *control);
---
> struct mbuf *addr, struct mbuf *control, struct proc *p);
86c87
< static int ripx_attach(struct socket *so, int proto);
---
> static int ripx_attach(struct socket *so, int proto, struct proc *p);
315c316
< ipx_ctloutput(req, so, level, name, value)
---
> ipx_ctloutput(req, so, level, name, value, p)
319a321
> struct proc *p;
411c413
< error = ipxip_route(so, *value);
---
> error = ipxip_route(so, *value, p);
416c418
< error = ipxtun_route(so, *value);
---
> error = ipxtun_route(so, *value, p);
445c447
< ipx_attach(so, proto)
---
> ipx_attach(so, proto, p)
447a450
> struct proc *p;
456c459
< error = ipx_pcballoc(so, &ipxpcb);
---
> error = ipx_pcballoc(so, &ipxpcb, p);
464c467
< ipx_bind(so, nam)
---
> ipx_bind(so, nam, p)
466a470
> struct proc *p;
470c474
< return (ipx_pcbbind(ipxp, nam));
---
> return (ipx_pcbbind(ipxp, nam, p));
474c478
< ipx_connect(so, nam)
---
> ipx_connect(so, nam, p)
476a481
> struct proc *p;
485c490
< error = ipx_pcbconnect(ipxp, nam);
---
> error = ipx_pcbconnect(ipxp, nam, p);
535c540
< ipx_send(so, flags, m, nam, control)
---
> ipx_send(so, flags, m, nam, control, p)
540a546
> struct proc *p;
557c563
< error = ipx_pcbconnect(ipxp, nam);
---
> error = ipx_pcbconnect(ipxp, nam, p);
603c609
< ripx_attach(so, proto)
---
> ripx_attach(so, proto, p)
605a612
> struct proc *p;
611,612c618,619
< if (!(so->so_state & SS_PRIV) || (ipxp != NULL))
< return (EINVAL);
---
> if (p && (error = suser(p->p_ucred, &p->p_acflag)) != 0)
> return (error);
614c621
< error = ipx_pcballoc(so, &ipxrawpcb);
---
> error = ipx_pcballoc(so, &ipxrawpcb, p);