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

Function sctp_over_udp_stop

freebsd/netinet/sctputil.c:7407–7426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7405#endif
7406
7407void
7408sctp_over_udp_stop(void)
7409{
7410 /*
7411 * This function assumes sysctl caller holds sctp_sysctl_info_lock()
7412 * for writting!
7413 */
7414#ifdef INET
7415 if (SCTP_BASE_INFO(udp4_tun_socket) != NULL) {
7416 soclose(SCTP_BASE_INFO(udp4_tun_socket));
7417 SCTP_BASE_INFO(udp4_tun_socket) = NULL;
7418 }
7419#endif
7420#ifdef INET6
7421 if (SCTP_BASE_INFO(udp6_tun_socket) != NULL) {
7422 soclose(SCTP_BASE_INFO(udp6_tun_socket));
7423 SCTP_BASE_INFO(udp6_tun_socket) = NULL;
7424 }
7425#endif
7426}
7427
7428int
7429sctp_over_udp_start(void)

Callers 2

sctp_over_udp_startFunction · 0.85
sctp_sysctl.cFile · 0.85

Calls 1

socloseFunction · 0.85

Tested by

no test coverage detected