version 1.140, 2014/08/02 03:55:26 |
version 1.142, 2014/08/05 05:24:26 |
Line 558 rip_accept(struct socket *so, struct mbu |
|
Line 558 rip_accept(struct socket *so, struct mbu |
|
} |
} |
|
|
static int |
static int |
rip_bind(struct socket *so, struct mbuf *nam) |
rip_bind(struct socket *so, struct mbuf *nam, struct lwp *l) |
{ |
{ |
struct inpcb *inp = sotoinpcb(so); |
struct inpcb *inp = sotoinpcb(so); |
struct sockaddr_in *addr; |
struct sockaddr_in *addr; |
|
|
} |
} |
|
|
static int |
static int |
rip_listen(struct socket *so) |
rip_listen(struct socket *so, struct lwp *l) |
{ |
{ |
KASSERT(solocked(so)); |
KASSERT(solocked(so)); |
|
|
Line 604 rip_listen(struct socket *so) |
|
Line 604 rip_listen(struct socket *so) |
|
} |
} |
|
|
static int |
static int |
rip_connect(struct socket *so, struct mbuf *nam) |
rip_connect(struct socket *so, struct mbuf *nam, struct lwp *l) |
{ |
{ |
struct inpcb *inp = sotoinpcb(so); |
struct inpcb *inp = sotoinpcb(so); |
int error = 0; |
int error = 0; |
Line 770 rip_usrreq(struct socket *so, int req, s |
|
Line 770 rip_usrreq(struct socket *so, int req, s |
|
KASSERT(solocked(so)); |
KASSERT(solocked(so)); |
inp = sotoinpcb(so); |
inp = sotoinpcb(so); |
|
|
KASSERT(!control || (req == PRU_SEND || req == PRU_SENDOOB)); |
KASSERT(!control || (req == PRU_SEND)); |
if (inp == NULL) { |
if (inp == NULL) { |
splx(s); |
splx(s); |
return EINVAL; |
return EINVAL; |