| version 1.50, 2000/03/30 09:27:14 |
version 1.50.4.3, 2001/10/08 19:47:51 |
| Line 126 socreate(dom, aso, type, proto) |
|
| Line 126 socreate(dom, aso, type, proto) |
|
| } |
} |
| |
|
| int |
int |
| sobind(so, nam) |
sobind(so, nam, p) |
| struct socket *so; |
struct socket *so; |
| struct mbuf *nam; |
struct mbuf *nam; |
| |
struct proc *p; |
| { |
{ |
| struct proc *p = curproc; /* XXX */ |
|
| int s = splsoftnet(); |
int s = splsoftnet(); |
| int error; |
int error; |
| |
|
| Line 262 soaccept(so, nam) |
|
| Line 262 soaccept(so, nam) |
|
| struct mbuf *nam; |
struct mbuf *nam; |
| { |
{ |
| int s = splsoftnet(); |
int s = splsoftnet(); |
| int error; |
int error = 0; |
| |
|
| if ((so->so_state & SS_NOFDREF) == 0) |
if ((so->so_state & SS_NOFDREF) == 0) |
| panic("soaccept: !NOFDREF"); |
panic("soaccept: !NOFDREF"); |
| Line 271 soaccept(so, nam) |
|
| Line 271 soaccept(so, nam) |
|
| error = (*so->so_proto->pr_usrreq)(so, PRU_ACCEPT, |
error = (*so->so_proto->pr_usrreq)(so, PRU_ACCEPT, |
| (struct mbuf *)0, nam, (struct mbuf *)0, (struct proc *)0); |
(struct mbuf *)0, nam, (struct mbuf *)0, (struct proc *)0); |
| else |
else |
| error = 0; |
nam->m_len = 0; |
| |
|
| splx(s); |
splx(s); |
| return (error); |
return (error); |
| } |
} |
|
|
| splx(s); |
splx(s); |
| error = uiomove(mtod(m, caddr_t) + moff, (int)len, uio); |
error = uiomove(mtod(m, caddr_t) + moff, (int)len, uio); |
| s = splsoftnet(); |
s = splsoftnet(); |
| |
if (error) |
| |
goto release; |
| } else |
} else |
| uio->uio_resid -= len; |
uio->uio_resid -= len; |
| if (len == m->m_len - moff) { |
if (len == m->m_len - moff) { |