MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rip_disconnect

Function rip_disconnect

freebsd/netinet/raw_ip.c:977–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

975}
976
977static int
978rip_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
992static int
993rip_bind(struct socket *so, struct sockaddr *nam, struct thread *td)

Callers

nothing calls this directly

Calls 1

rip_dodisconnectFunction · 0.85

Tested by

no test coverage detected