| 146 | } |
| 147 | |
| 148 | static int __unused |
| 149 | sctp_module_unload(void) |
| 150 | { |
| 151 | |
| 152 | (void)sctp_syscalls_uninit(); |
| 153 | |
| 154 | #ifdef INET |
| 155 | (void)ipproto_unregister(IPPROTO_SCTP); |
| 156 | (void)pf_proto_unregister(PF_INET, IPPROTO_SCTP, SOCK_STREAM); |
| 157 | (void)pf_proto_unregister(PF_INET, IPPROTO_SCTP, SOCK_SEQPACKET); |
| 158 | #endif |
| 159 | #ifdef INET6 |
| 160 | (void)ip6proto_unregister(IPPROTO_SCTP); |
| 161 | (void)pf_proto_unregister(PF_INET6, IPPROTO_SCTP, SOCK_STREAM); |
| 162 | (void)pf_proto_unregister(PF_INET6, IPPROTO_SCTP, SOCK_SEQPACKET); |
| 163 | #endif |
| 164 | return (0); |
| 165 | } |
| 166 | |
| 167 | static int |
| 168 | sctp_modload(struct module *module, int cmd, void *arg) |
nothing calls this directly
no test coverage detected