Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
Show First 20 Lines • Show All 237 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
); | ); | ||||
} else { | } else { | ||||
(void)ipf_pfil_hook(); | (void)ipf_pfil_hook(); | ||||
ipf_event_reg(); | ipf_event_reg(); | ||||
} | } | ||||
} | } | ||||
VNET_SYSINIT(vnet_ipf_init, SI_SUB_PROTO_FIREWALL, SI_ORDER_THIRD, | VNET_SYSINIT(vnet_ipf_init, SI_SUB_PROTO_FIREWALL, SI_ORDER_THIRD, | ||||
vnet_ipf_init, NULL); | vnet_ipf_init); | ||||
static int | static int | ||||
ipf_modload(void) | ipf_modload(void) | ||||
{ | { | ||||
char *c, *str; | char *c, *str; | ||||
int i, j, error; | int i, j, error; | ||||
if (ipf_load_all() != 0) | if (ipf_load_all() != 0) | ||||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | if (V_ipfmain.ipf_running >= 0) { | ||||
ipf_destroy_all(&V_ipfmain); | ipf_destroy_all(&V_ipfmain); | ||||
if (!IS_DEFAULT_VNET(curvnet)) { | if (!IS_DEFAULT_VNET(curvnet)) { | ||||
ipf_event_dereg(); | ipf_event_dereg(); | ||||
(void)ipf_pfil_unhook(); | (void)ipf_pfil_unhook(); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
VNET_SYSUNINIT(vnet_ipf_uninit, SI_SUB_PROTO_FIREWALL, SI_ORDER_THIRD, | VNET_SYSUNINIT(vnet_ipf_uninit, SI_SUB_PROTO_FIREWALL, SI_ORDER_THIRD, | ||||
vnet_ipf_uninit, NULL); | vnet_ipf_uninit); | ||||
static int | static int | ||||
ipf_modunload(void) | ipf_modunload(void) | ||||
{ | { | ||||
int error, i; | int error, i; | ||||
ipf_event_dereg(); | ipf_event_dereg(); | ||||
▲ Show 20 Lines • Show All 341 Lines • Show Last 20 Lines |