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

Function tcpmd5_modevent

freebsd/netipsec/xform_tcp.c:391–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389#endif /* !KLD_MODULE */
390
391static int
392tcpmd5_modevent(module_t mod, int type, void *data)
393{
394
395 switch (type) {
396 case MOD_LOAD:
397 xform_attach(&tcpsignature_xformsw);
398#ifdef KLD_MODULE
399 tcpmd5_support_enable(&tcpmd5_methods);
400#endif
401 break;
402 case MOD_UNLOAD:
403#ifdef KLD_MODULE
404 tcpmd5_support_disable();
405#endif
406 xform_detach(&tcpsignature_xformsw);
407 break;
408 default:
409 return (EOPNOTSUPP);
410 }
411 return (0);
412}
413
414static moduledata_t tcpmd5_mod = {
415 "tcpmd5",

Callers

nothing calls this directly

Calls 4

xform_attachFunction · 0.85
tcpmd5_support_enableFunction · 0.85
tcpmd5_support_disableFunction · 0.85
xform_detachFunction · 0.85

Tested by

no test coverage detected