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

Function pfsync_init

freebsd/netpfil/pf/if_pfsync.c:2502–2521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2500 vnet_pfsync_uninit, NULL);
2501
2502static int
2503pfsync_init()
2504{
2505#ifdef INET
2506 int error;
2507
2508 pfsync_detach_ifnet_ptr = pfsync_detach_ifnet;
2509
2510 error = pf_proto_register(PF_INET, &in_pfsync_protosw);
2511 if (error)
2512 return (error);
2513 error = ipproto_register(IPPROTO_PFSYNC);
2514 if (error) {
2515 pf_proto_unregister(PF_INET, IPPROTO_PFSYNC, SOCK_RAW);
2516 return (error);
2517 }
2518#endif
2519
2520 return (0);
2521}
2522
2523static void
2524pfsync_uninit()

Callers 1

pfsync_modeventFunction · 0.85

Calls 3

pf_proto_registerFunction · 0.85
ipproto_registerFunction · 0.85
pf_proto_unregisterFunction · 0.85

Tested by

no test coverage detected