| 389 | #endif /* !KLD_MODULE */ |
| 390 | |
| 391 | static int |
| 392 | tcpmd5_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 | |
| 414 | static moduledata_t tcpmd5_mod = { |
| 415 | "tcpmd5", |
nothing calls this directly
no test coverage detected