summaryrefslogtreecommitdiffstats
path: root/sys/netatm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netatm')
-rw-r--r--sys/netatm/atm_aal5.c38
-rw-r--r--sys/netatm/atm_proto.c8
-rw-r--r--sys/netatm/atm_usrreq.c20
-rw-r--r--sys/netatm/atm_var.h4
4 files changed, 35 insertions, 35 deletions
diff --git a/sys/netatm/atm_aal5.c b/sys/netatm/atm_aal5.c
index ba79a5b..f0beaca 100644
--- a/sys/netatm/atm_aal5.c
+++ b/sys/netatm/atm_aal5.c
@@ -68,21 +68,21 @@ u_long atm_aal5_recvspace = 64 * 1024; /* XXX */
/*
* Local functions
*/
-static int atm_aal5_attach __P((struct socket *, int, struct proc *));
+static int atm_aal5_attach __P((struct socket *, int, struct thread *td));
static int atm_aal5_detach __P((struct socket *));
static int atm_aal5_bind __P((struct socket *, struct sockaddr *,
- struct proc *));
-static int atm_aal5_listen __P((struct socket *, struct proc *));
+ struct thread *td));
+static int atm_aal5_listen __P((struct socket *, struct thread *td));
static int atm_aal5_connect __P((struct socket *, struct sockaddr *,
- struct proc *));
+ struct thread *td));
static int atm_aal5_accept __P((struct socket *, struct sockaddr **));
static int atm_aal5_disconnect __P((struct socket *));
static int atm_aal5_shutdown __P((struct socket *));
static int atm_aal5_send __P((struct socket *, int, KBuffer *,
- struct sockaddr *, KBuffer *, struct proc *));
+ struct sockaddr *, KBuffer *, struct thread *td));
static int atm_aal5_abort __P((struct socket *));
static int atm_aal5_control __P((struct socket *, u_long, caddr_t,
- struct ifnet *, struct proc *));
+ struct ifnet *, struct thread *td));
static int atm_aal5_sense __P((struct socket *, struct stat *));
static int atm_aal5_sockaddr __P((struct socket *, struct sockaddr **));
static int atm_aal5_peeraddr __P((struct socket *, struct sockaddr **));
@@ -244,10 +244,10 @@ static Atm_attributes atm_aal5_defattr = {
*
*/
static int
-atm_aal5_attach(so, proto, p)
+atm_aal5_attach(so, proto, td)
struct socket *so;
int proto;
- struct proc *p;
+ struct thread *td;
{
Atm_pcb *atp;
@@ -314,10 +314,10 @@ atm_aal5_detach(so)
*
*/
static int
-atm_aal5_bind(so, addr, p)
+atm_aal5_bind(so, addr, td)
struct socket *so;
struct sockaddr *addr;
- struct proc *p;
+ struct thread *td;
{
ATM_INTRO("bind");
@@ -340,9 +340,9 @@ atm_aal5_bind(so, addr, p)
*
*/
static int
-atm_aal5_listen(so, p)
+atm_aal5_listen(so, td)
struct socket *so;
- struct proc *p;
+ struct thread *td;
{
ATM_INTRO("listen");
@@ -366,10 +366,10 @@ atm_aal5_listen(so, p)
*
*/
static int
-atm_aal5_connect(so, addr, p)
+atm_aal5_connect(so, addr, td)
struct socket *so;
struct sockaddr *addr;
- struct proc *p;
+ struct thread *td;
{
Atm_pcb *atp;
@@ -385,7 +385,7 @@ atm_aal5_connect(so, addr, p)
size = atp->atp_attr.aal.v.aal5.forward_max_SDU_size;
if (size != T_ATM_ABSENT)
- if (!sbreserve(&so->so_snd, size, so, p)) {
+ if (!sbreserve(&so->so_snd, size, so, td)) {
err = ENOBUFS;
ATM_OUTRO();
}
@@ -493,13 +493,13 @@ atm_aal5_shutdown(so)
*
*/
static int
-atm_aal5_send(so, flags, m, addr, control, p)
+atm_aal5_send(so, flags, m, addr, control, td)
struct socket *so;
int flags;
KBuffer *m;
struct sockaddr *addr;
KBuffer *control;
- struct proc *p;
+ struct thread *td;
{
Atm_pcb *atp;
@@ -585,12 +585,12 @@ atm_aal5_abort(so)
*
*/
static int
-atm_aal5_control(so, cmd, data, ifp, p)
+atm_aal5_control(so, cmd, data, ifp, td)
struct socket *so;
u_long cmd;
caddr_t data;
struct ifnet *ifp;
- struct proc *p;
+ struct thread *td;
{
ATM_INTRO("control");
diff --git a/sys/netatm/atm_proto.c b/sys/netatm/atm_proto.c
index c28f919..6de7a83 100644
--- a/sys/netatm/atm_proto.c
+++ b/sys/netatm/atm_proto.c
@@ -158,10 +158,10 @@ atm_proto_notsupp1(so)
*
*/
int
-atm_proto_notsupp2(so, addr, p)
+atm_proto_notsupp2(so, addr, td)
struct socket *so;
struct sockaddr *addr;
- struct proc *p;
+ struct thread *td;
{
return (EOPNOTSUPP);
}
@@ -203,13 +203,13 @@ atm_proto_notsupp3(so, addr)
*
*/
int
-atm_proto_notsupp4(so, i, m, addr, m2, p)
+atm_proto_notsupp4(so, i, m, addr, m2, td)
struct socket *so;
int i;
KBuffer *m;
struct sockaddr *addr;
KBuffer *m2;
- struct proc *p;
+ struct thread *td;
{
return (EOPNOTSUPP);
}
diff --git a/sys/netatm/atm_usrreq.c b/sys/netatm/atm_usrreq.c
index 6965d9c..361665b 100644
--- a/sys/netatm/atm_usrreq.c
+++ b/sys/netatm/atm_usrreq.c
@@ -62,9 +62,9 @@ __RCSID("@(#) $FreeBSD$");
/*
* Local functions
*/
-static int atm_dgram_attach __P((struct socket *, int, struct proc *));
+static int atm_dgram_attach __P((struct socket *, int, struct thread *));
static int atm_dgram_control __P((struct socket *, u_long, caddr_t,
- struct ifnet *, struct proc *));
+ struct ifnet *, struct thread *));
static int atm_dgram_info __P((caddr_t));
@@ -143,10 +143,10 @@ struct pr_usrreqs atm_dgram_usrreqs = {
*
*/
static int
-atm_dgram_attach(so, proto, p)
+atm_dgram_attach(so, proto, td)
struct socket *so;
int proto;
- struct proc *p;
+ struct thread *td;
{
ATM_INTRO();
@@ -173,12 +173,12 @@ atm_dgram_attach(so, proto, p)
*
*/
static int
-atm_dgram_control(so, cmd, data, ifp, p)
+atm_dgram_control(so, cmd, data, ifp, td)
struct socket *so;
u_long cmd;
caddr_t data;
struct ifnet *ifp;
- struct proc *p;
+ struct thread *td;
{
ATM_INTRO();
@@ -192,7 +192,7 @@ atm_dgram_control(so, cmd, data, ifp, p)
struct atmcfgreq *acp = (struct atmcfgreq *)data;
struct atm_pif *pip;
- if (p && (suser(p) != 0))
+ if (td && (suser_td(td) != 0))
ATM_RETERR(EPERM);
switch (acp->acr_opcode) {
@@ -225,7 +225,7 @@ atm_dgram_control(so, cmd, data, ifp, p)
struct atmaddreq *aap = (struct atmaddreq *)data;
Atm_endpoint *epp;
- if (p && (suser(p) != 0))
+ if (td && (suser_td(td) != 0))
ATM_RETERR(EPERM);
switch (aap->aar_opcode) {
@@ -275,7 +275,7 @@ atm_dgram_control(so, cmd, data, ifp, p)
struct sigmgr *smp;
Atm_endpoint *epp;
- if (p && (suser(p) != 0))
+ if (td && (suser_td(td) != 0))
ATM_RETERR(EPERM);
switch (adp->adr_opcode) {
@@ -328,7 +328,7 @@ atm_dgram_control(so, cmd, data, ifp, p)
struct sigmgr *smp;
struct ifnet *ifp2;
- if (p && (suser(p) != 0))
+ if (td && (suser_td(td) != 0))
ATM_RETERR(EPERM);
switch (asp->asr_opcode) {
diff --git a/sys/netatm/atm_var.h b/sys/netatm/atm_var.h
index 66edeb5..4c76bab 100644
--- a/sys/netatm/atm_var.h
+++ b/sys/netatm/atm_var.h
@@ -150,10 +150,10 @@ struct atm_nif *
#if (defined(__FreeBSD__) && (BSD >= 199506))
int atm_proto_notsupp1 __P((struct socket *));
int atm_proto_notsupp2 __P((struct socket *, struct sockaddr *,
- struct proc *));
+ struct thread *));
int atm_proto_notsupp3 __P((struct socket *, struct sockaddr **));
int atm_proto_notsupp4 __P((struct socket *, int, KBuffer *,
- struct sockaddr *, KBuffer *, struct proc *));
+ struct sockaddr *, KBuffer *, struct thread *));
#endif
/* atm_signal.c */
OpenPOWER on IntegriCloud