fork SmartCAWPAP as FreeWTP

This commit is contained in:
Andreas Schultz
2016-08-22 16:59:55 +02:00
parent 8cc6559f08
commit 0101ea6e56
341 changed files with 724 additions and 17737 deletions

26
src/dfa_sulking.c Normal file
View File

@ -0,0 +1,26 @@
#include "wtp.h"
#include "capwap_dfa.h"
#include "dfa.h"
/* */
static void wtp_dfa_state_sulking_timeout(EV_P_ ev_timer *w, int revents)
{
g_wtp.discoverycount = 0;
g_wtp.faileddtlssessioncount = 0;
g_wtp.faileddtlsauthfailcount = 0;
/* */
wtp_dfa_change_state(CAPWAP_IDLE_STATE);
}
/* */
void wtp_dfa_state_sulking_enter()
{
ev_timer_init(&g_wtp.timercontrol, wtp_dfa_state_sulking_timeout,
WTP_SILENT_INTERVAL / 1000.0, 0.);
ev_timer_start(EV_DEFAULT_UC_ &g_wtp.timercontrol);
}
/* */
void wtp_dfa_state_sulking(struct capwap_parsed_packet* packet) {
}