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

Function rip_dodisconnect

freebsd/netinet/raw_ip.c:937–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

935}
936
937static void
938rip_dodisconnect(struct socket *so, struct inpcb *inp)
939{
940 struct inpcbinfo *pcbinfo;
941
942 pcbinfo = inp->inp_pcbinfo;
943 INP_INFO_WLOCK(pcbinfo);
944 INP_WLOCK(inp);
945 rip_delhash(inp);
946 inp->inp_faddr.s_addr = INADDR_ANY;
947 rip_inshash(inp);
948 SOCK_LOCK(so);
949 so->so_state &= ~SS_ISCONNECTED;
950 SOCK_UNLOCK(so);
951 INP_WUNLOCK(inp);
952 INP_INFO_WUNLOCK(pcbinfo);
953}
954
955static void
956rip_abort(struct socket *so)

Callers 3

rip_abortFunction · 0.85
rip_closeFunction · 0.85
rip_disconnectFunction · 0.85

Calls 2

rip_delhashFunction · 0.85
rip_inshashFunction · 0.85

Tested by

no test coverage detected