| 283 | } |
| 284 | |
| 285 | static int |
| 286 | stfmodevent(module_t mod, int type, void *data) |
| 287 | { |
| 288 | |
| 289 | switch (type) { |
| 290 | case MOD_LOAD: |
| 291 | stf_cloner = if_clone_advanced(stfname, 0, stf_clone_match, |
| 292 | stf_clone_create, stf_clone_destroy); |
| 293 | break; |
| 294 | case MOD_UNLOAD: |
| 295 | if_clone_detach(stf_cloner); |
| 296 | break; |
| 297 | default: |
| 298 | return (EOPNOTSUPP); |
| 299 | } |
| 300 | |
| 301 | return (0); |
| 302 | } |
| 303 | |
| 304 | static moduledata_t stf_mod = { |
| 305 | "if_stf", |
nothing calls this directly
no test coverage detected