Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TNCC_H
00016 #define TNCC_H
00017
00018 struct tncc_data;
00019
00020 struct tncc_data * tncc_init(void);
00021 void tncc_deinit(struct tncc_data *tncc);
00022 void tncc_init_connection(struct tncc_data *tncc);
00023 size_t tncc_total_send_len(struct tncc_data *tncc);
00024 u8 * tncc_copy_send_buf(struct tncc_data *tncc, u8 *pos);
00025 char * tncc_if_tnccs_start(struct tncc_data *tncc);
00026 char * tncc_if_tnccs_end(void);
00027
00028 enum tncc_process_res {
00029 TNCCS_PROCESS_ERROR = -1,
00030 TNCCS_PROCESS_OK_NO_RECOMMENDATION = 0,
00031 TNCCS_RECOMMENDATION_ERROR,
00032 TNCCS_RECOMMENDATION_ALLOW,
00033 TNCCS_RECOMMENDATION_NONE,
00034 TNCCS_RECOMMENDATION_ISOLATE
00035 };
00036
00037 enum tncc_process_res tncc_process_if_tnccs(struct tncc_data *tncc,
00038 const u8 *msg, size_t len);
00039
00040 struct wpabuf * tncc_process_soh_request(int ver, const u8 *data, size_t len);
00041
00042 #endif