| 864 | } |
| 865 | |
| 866 | int |
| 867 | sobindat(int fd, struct socket *so, struct sockaddr *nam, struct thread *td) |
| 868 | { |
| 869 | int error; |
| 870 | |
| 871 | CURVNET_SET(so->so_vnet); |
| 872 | error = (*so->so_proto->pr_usrreqs->pru_bindat)(fd, so, nam, td); |
| 873 | CURVNET_RESTORE(); |
| 874 | return (error); |
| 875 | } |
| 876 | |
| 877 | /* |
| 878 | * solisten() transitions a socket from a non-listening state to a listening |