| 2532 | } |
| 2533 | |
| 2534 | static int |
| 2535 | pfsync_modevent(module_t mod, int type, void *data) |
| 2536 | { |
| 2537 | int error = 0; |
| 2538 | |
| 2539 | switch (type) { |
| 2540 | case MOD_LOAD: |
| 2541 | error = pfsync_init(); |
| 2542 | break; |
| 2543 | case MOD_UNLOAD: |
| 2544 | pfsync_uninit(); |
| 2545 | break; |
| 2546 | default: |
| 2547 | error = EINVAL; |
| 2548 | break; |
| 2549 | } |
| 2550 | |
| 2551 | return (error); |
| 2552 | } |
| 2553 | |
| 2554 | static moduledata_t pfsync_mod = { |
| 2555 | pfsyncname, |
nothing calls this directly
no test coverage detected