Exemple #1
0
static void cleanup() {
  log(LOG_DEBUG, 0, "CLEANING UP!");
  k_del_rte(AODV_BROADCAST, 0, 0);
  remove_modules();
  rt_table_destroy();
  packet_input_cleanup();
  aodv_socket_cleanup();
  log_cleanup();
}
Exemple #2
0
static void cleanup(void)
{
    DEBUG(LOG_DEBUG, 0, "CLEANING UP!");
    rt_table_destroy();
    aodv_socket_cleanup();
#ifdef LLFEEDBACK
    if (llfeedback)
	llf_cleanup();
#endif
    log_cleanup();
    nl_cleanup();
    remove_modules();
}
Exemple #3
0
bool
log_file_set(const char* f)
{
  log_cleanup();

  filename = strdup(f);
  output = fopen(filename, "w");
  if (output == NULL)
  {
    output = stdout;
    return false;
  }
  return true;
}
Exemple #4
0
void
log_finalize()
{
  log_cleanup();
}