| 975 | } |
| 976 | |
| 977 | static int |
| 978 | rip_disconnect(struct socket *so) |
| 979 | { |
| 980 | struct inpcb *inp; |
| 981 | |
| 982 | if ((so->so_state & SS_ISCONNECTED) == 0) |
| 983 | return (ENOTCONN); |
| 984 | |
| 985 | inp = sotoinpcb(so); |
| 986 | KASSERT(inp != NULL, ("rip_disconnect: inp == NULL")); |
| 987 | |
| 988 | rip_dodisconnect(so, inp); |
| 989 | return (0); |
| 990 | } |
| 991 | |
| 992 | static int |
| 993 | rip_bind(struct socket *so, struct sockaddr *nam, struct thread *td) |
nothing calls this directly
no test coverage detected