freewtp/src/wtp/wtp_dfa.h

52 lines
1.9 KiB
C
Raw Normal View History

2013-05-01 14:52:55 +02:00
#ifndef __WTP_DFA_HEADER__
#define __WTP_DFA_HEADER__
#include "capwap_network.h"
#include "capwap_protocol.h"
#include "capwap_element.h"
/* */ /* TODO da rifare */
2013-05-01 14:52:55 +02:00
struct wtp_discovery_response {
struct capwap_array* controlipv4;
struct capwap_array* controlipv6;
2013-05-01 14:52:55 +02:00
};
void wtp_free_discovery_response_array(void);
/* */
int wtp_bio_send(struct capwap_dtls* dtls, char* buffer, int length, void* param);
/* */
2013-11-07 22:06:29 +01:00
void wtp_teardown_connection(struct timeout_control* timeout);
2013-05-01 14:52:55 +02:00
/* */
2013-06-05 19:39:03 +02:00
void wtp_free_packet_rxmng(int isctrlmsg);
2013-05-01 14:52:55 +02:00
void wtp_free_reference_last_request(void);
void wtp_free_reference_last_response(void);
/* State machine */
int wtp_dfa_running(void);
2013-05-01 14:52:55 +02:00
void wtp_dfa_change_state(int state);
2013-11-07 22:06:29 +01:00
/* */
void wtp_start_dtlssetup(struct timeout_control* timeout);
void wtp_start_datachannel(struct timeout_control* timeout);
2013-05-01 14:52:55 +02:00
2013-11-07 22:06:29 +01:00
/* */
void wtp_send_join(struct timeout_control* timeout);
void wtp_send_configure(struct timeout_control* timeout);
void wtp_send_datacheck(struct timeout_control* timeout);
2013-05-01 14:52:55 +02:00
2013-11-07 22:06:29 +01:00
/* */
void wtp_dfa_state_idle(struct capwap_parsed_packet* packet, struct timeout_control* timeout);
void wtp_dfa_state_discovery(struct capwap_parsed_packet* packet, struct timeout_control* timeout);
void wtp_dfa_state_dtlsteardown(struct capwap_parsed_packet* packet, struct timeout_control* timeout);
void wtp_dfa_state_sulking(struct capwap_parsed_packet* packet, struct timeout_control* timeout);
void wtp_dfa_state_join(struct capwap_parsed_packet* packet, struct timeout_control* timeout);
void wtp_dfa_state_configure(struct capwap_parsed_packet* packet, struct timeout_control* timeout);
void wtp_dfa_state_datacheck(struct capwap_parsed_packet* packet, struct timeout_control* timeout);
void wtp_dfa_state_run(struct capwap_parsed_packet* packet, struct timeout_control* timeout);
void wtp_dfa_state_reset(struct capwap_parsed_packet* packet, struct timeout_control* timeout);
2013-05-01 14:52:55 +02:00
#endif /* __WTP_DFA_HEADER__ */