Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netpfil/pf/if_pfsync.c
Show First 20 Lines • Show All 2,425 Lines • ▼ Show 20 Lines | |||||
pfsync_modevent(module_t mod, int type, void *data) | pfsync_modevent(module_t mod, int type, void *data) | ||||
{ | { | ||||
int error = 0; | int error = 0; | ||||
switch (type) { | switch (type) { | ||||
case MOD_LOAD: | case MOD_LOAD: | ||||
error = pfsync_init(); | error = pfsync_init(); | ||||
break; | break; | ||||
case MOD_QUIESCE: | |||||
/* | |||||
* Module should not be unloaded due to race conditions. | |||||
*/ | |||||
error = EBUSY; | |||||
break; | |||||
case MOD_UNLOAD: | case MOD_UNLOAD: | ||||
pfsync_uninit(); | pfsync_uninit(); | ||||
break; | break; | ||||
default: | default: | ||||
error = EINVAL; | error = EINVAL; | ||||
break; | break; | ||||
} | } | ||||
Show All 15 Lines |