Example #1
0
File: core.c Project: k0a1a/pom-ng
// Placeholder for all the stuff to do when processing stops
static int core_processing_stop() {

	if (*PTYPE_BOOL_GETVAL(core_param_offline_dns))
		dns_cleanup();

	// Free all the conntracks
	proto_finish();

	return POM_OK;
}
Example #2
0
static void __exit knamed_exit(void)
{
    nf_unregister_hooks(knamed_ops, ARRAY_SIZE(knamed_ops));

    knamed_sysctl_unregister();
    knamed_procfs_release();

    dns_cleanup();

    if (knamed_task) {
        kthread_stop(knamed_task);
        wait_for_completion(&comp);
    }

    knamed_memory_release();

    PR_INFO("removed");
}