| 2500 | vnet_pfsync_uninit, NULL); |
| 2501 | |
| 2502 | static int |
| 2503 | pfsync_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 | |
| 2523 | static void |
| 2524 | pfsync_uninit() |
no test coverage detected