MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pfsync_modevent

Function pfsync_modevent

freebsd/netpfil/pf/if_pfsync.c:2534–2552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2532}
2533
2534static int
2535pfsync_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
2554static moduledata_t pfsync_mod = {
2555 pfsyncname,

Callers

nothing calls this directly

Calls 2

pfsync_initFunction · 0.85
pfsync_uninitFunction · 0.85

Tested by

no test coverage detected