Add management backend for close WTP sessions or reset a WTP

This commit is contained in:
vemax78
2013-11-10 22:11:56 +01:00
parent 5f635602ce
commit df4161dae7
7 changed files with 56 additions and 15 deletions

View File

@ -157,6 +157,4 @@ void wtp_dfa_state_dtlsteardown(struct capwap_parsed_packet* packet, struct time
capwap_set_timeout(0, timeout, CAPWAP_TIMER_CONTROL_CONNECTION);
wtp_dfa_change_state(CAPWAP_IDLE_STATE);
}
/* TODO controllare se <20> richiesto il ravvio del sistema */
}

View File

@ -6,6 +6,9 @@
void wtp_dfa_state_reset(struct capwap_parsed_packet* packet, struct timeout_control* timeout) {
ASSERT(timeout != NULL);
/* TODO */
/* Teardown connection and close application */
g_wtp.running = 0;
wtp_teardown_connection(timeout);
/* TODO schedule reboot device */
}