| 1288 | } |
| 1289 | |
| 1290 | int |
| 1291 | soaccept(struct socket *so, struct sockaddr **nam) |
| 1292 | { |
| 1293 | int error; |
| 1294 | |
| 1295 | SOCK_LOCK(so); |
| 1296 | KASSERT((so->so_state & SS_NOFDREF) != 0, ("soaccept: !NOFDREF")); |
| 1297 | so->so_state &= ~SS_NOFDREF; |
| 1298 | SOCK_UNLOCK(so); |
| 1299 | |
| 1300 | CURVNET_SET(so->so_vnet); |
| 1301 | error = (*so->so_proto->pr_usrreqs->pru_accept)(so, nam); |
| 1302 | CURVNET_RESTORE(); |
| 1303 | return (error); |
| 1304 | } |
| 1305 | |
| 1306 | int |
| 1307 | soconnect(struct socket *so, struct sockaddr *nam, struct thread *td) |
no outgoing calls
no test coverage detected