| 7405 | #endif |
| 7406 | |
| 7407 | void |
| 7408 | sctp_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 | |
| 7428 | int |
| 7429 | sctp_over_udp_start(void) |
no test coverage detected