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

Function sctp_module_unload

freebsd/netinet/sctp_module.c:148–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static int __unused
149sctp_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
167static int
168sctp_modload(struct module *module, int cmd, void *arg)

Callers

nothing calls this directly

Calls 4

sctp_syscalls_uninitFunction · 0.85
ipproto_unregisterFunction · 0.85
pf_proto_unregisterFunction · 0.85
ip6proto_unregisterFunction · 0.85

Tested by

no test coverage detected