diff options
Diffstat (limited to 'sys/netipx/ipx_usrreq.c')
-rw-r--r-- | sys/netipx/ipx_usrreq.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/sys/netipx/ipx_usrreq.c b/sys/netipx/ipx_usrreq.c index 4939568..fdd6917 100644 --- a/sys/netipx/ipx_usrreq.c +++ b/sys/netipx/ipx_usrreq.c @@ -70,17 +70,17 @@ SYSCTL_INT(_net_ipx_ipx, OID_AUTO, ipxrecvspace, CTLFLAG_RW, &ipxrecvspace, 0, ""); static int ipx_usr_abort(struct socket *so); -static int ipx_attach(struct socket *so, int proto, struct proc *p); -static int ipx_bind(struct socket *so, struct sockaddr *nam, struct proc *p); +static int ipx_attach(struct socket *so, int proto, struct thread *td); +static int ipx_bind(struct socket *so, struct sockaddr *nam, struct thread *td); static int ipx_connect(struct socket *so, struct sockaddr *nam, - struct proc *p); + struct thread *td); static int ipx_detach(struct socket *so); static int ipx_disconnect(struct socket *so); static int ipx_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *addr, struct mbuf *control, - struct proc *p); + struct thread *td); static int ipx_shutdown(struct socket *so); -static int ripx_attach(struct socket *so, int proto, struct proc *p); +static int ripx_attach(struct socket *so, int proto, struct thread *td); static int ipx_output(struct ipxpcb *ipxp, struct mbuf *m0); struct pr_usrreqs ipx_usrreqs = { @@ -432,10 +432,10 @@ ipx_usr_abort(so) } static int -ipx_attach(so, proto, p) +ipx_attach(so, proto, td) struct socket *so; int proto; - struct proc *p; + struct thread *td; { int error; int s; @@ -444,7 +444,7 @@ ipx_attach(so, proto, p) if (ipxp != NULL) return (EINVAL); s = splnet(); - error = ipx_pcballoc(so, &ipxpcb, p); + error = ipx_pcballoc(so, &ipxpcb, td); splx(s); if (error == 0) error = soreserve(so, ipxsendspace, ipxrecvspace); @@ -452,21 +452,21 @@ ipx_attach(so, proto, p) } static int -ipx_bind(so, nam, p) +ipx_bind(so, nam, td) struct socket *so; struct sockaddr *nam; - struct proc *p; + struct thread *td; { struct ipxpcb *ipxp = sotoipxpcb(so); - return (ipx_pcbbind(ipxp, nam, p)); + return (ipx_pcbbind(ipxp, nam, td)); } static int -ipx_connect(so, nam, p) +ipx_connect(so, nam, td) struct socket *so; struct sockaddr *nam; - struct proc *p; + struct thread *td; { int error; int s; @@ -475,7 +475,7 @@ ipx_connect(so, nam, p) if (!ipx_nullhost(ipxp->ipxp_faddr)) return (EISCONN); s = splnet(); - error = ipx_pcbconnect(ipxp, nam, p); + error = ipx_pcbconnect(ipxp, nam, td); splx(s); if (error == 0) soisconnected(so); @@ -525,13 +525,13 @@ ipx_peeraddr(so, nam) } static int -ipx_send(so, flags, m, nam, control, p) +ipx_send(so, flags, m, nam, control, td) struct socket *so; int flags; struct mbuf *m; struct sockaddr *nam; struct mbuf *control; - struct proc *p; + struct thread *td; { int error; struct ipxpcb *ipxp = sotoipxpcb(so); @@ -548,7 +548,7 @@ ipx_send(so, flags, m, nam, control, p) * Must block input while temporarily connected. */ s = splnet(); - error = ipx_pcbconnect(ipxp, nam, p); + error = ipx_pcbconnect(ipxp, nam, td); if (error) { splx(s); goto send_release; @@ -593,19 +593,19 @@ ipx_sockaddr(so, nam) } static int -ripx_attach(so, proto, p) +ripx_attach(so, proto, td) struct socket *so; int proto; - struct proc *p; + struct thread *td; { int error = 0; int s; struct ipxpcb *ipxp = sotoipxpcb(so); - if (p != NULL && (error = suser(p)) != 0) + if (td != NULL && (error = suser_td(td)) != 0) return (error); s = splnet(); - error = ipx_pcballoc(so, &ipxrawpcb, p); + error = ipx_pcballoc(so, &ipxrawpcb, td); splx(s); if (error) return (error); |