reset WTP state when going into DTLS TD

This commit is contained in:
Andreas Schultz
2016-03-26 21:08:25 +01:00
parent 7eddb74767
commit a3c2e52d3c
4 changed files with 21 additions and 5 deletions

View File

@ -70,10 +70,10 @@ static int wtp_init(void) {
g_wtp.validdtlsdatapolicy = CAPWAP_ACDESC_CLEAR_DATA_CHANNEL_ENABLED;
/* Tx fragment packets */
g_wtp.mtu = CAPWAP_MTU_DEFAULT;
g_wtp.requestfragmentpacket = capwap_list_create();
g_wtp.responsefragmentpacket = capwap_list_create();
g_wtp.remoteseqnumber = WTP_INIT_REMOTE_SEQUENCE;
wtp_reset_state();
/* AC information */
g_wtp.discoverytype.type = CAPWAP_DISCOVERYTYPE_TYPE_UNKNOWN;