/* Cleans up, i.e. releases allocated resources. Called via atexit() */ static void clean(void) { mroute4_disable(); mroute6_disable(); ipc_exit(); smclog(LOG_NOTICE, 0, "Exiting."); }
/* Cleans up, i.e. releases allocated resources. Called via atexit() */ static void clean(void) { mroute4_disable(1); mroute6_disable(1); mcgroup4_disable(); mcgroup6_disable(); ipc_exit(); iface_exit(); smclog(LOG_NOTICE, "Exiting."); }
static void restart(void) { mroute4_disable(0); mroute6_disable(0); mcgroup4_disable(); mcgroup6_disable(); /* No need to close the IPC, only at cleanup. */ /* Update list of interfaces and create new virtual interface mappings in kernel. */ iface_init(); mroute4_enable(do_vifs, table_id, cache_tmo); mroute6_enable(do_vifs, table_id); }