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

Function in_pcbdisconnect

freebsd/netinet/in_pcb.c:1600–1610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1598}
1599
1600void
1601in_pcbdisconnect(struct inpcb *inp)
1602{
1603
1604 INP_WLOCK_ASSERT(inp);
1605 INP_HASH_WLOCK_ASSERT(inp->inp_pcbinfo);
1606
1607 inp->inp_faddr.s_addr = INADDR_ANY;
1608 inp->inp_fport = 0;
1609 in_pcbrehash(inp);
1610}
1611#endif /* INET */
1612
1613/*

Callers 3

udp_abortFunction · 0.85
udp_closeFunction · 0.85
udp_disconnectFunction · 0.85

Calls 1

in_pcbrehashFunction · 0.85

Tested by

no test coverage detected