Added the code that handles the result code of a request.

This commit is contained in:
vemax78
2013-08-11 18:38:23 +02:00
parent b15e0148b2
commit 7ddb32d217
16 changed files with 448 additions and 133 deletions

View File

@ -5,6 +5,15 @@
/* */
static unsigned long wtp_datacheck_ac(struct capwap_parsed_packet* packet) {
struct capwap_resultcode_element* resultcode;
/* Check the success of the Request */
resultcode = (struct capwap_resultcode_element*)capwap_get_message_element_data(packet, CAPWAP_ELEMENT_RESULTCODE);
if (resultcode && !CAPWAP_RESULTCODE_OK(resultcode->code)) {
capwap_logging_warning("Receive Data Check Response with error: %d", (int)resultcode->code);
return CAPWAP_DATA_CHECK_TO_DTLS_TEARDOWN_STATE;
}
/* TODO: gestione richiesta */
return CAPWAP_DATA_CHECK_TO_RUN_STATE;