added ITA Scanner IMC/IMV pair which detects open server ports on TNC clients
[strongswan.git] / src / libimcv / plugins / imv_scanner / imv_scanner_state.h
1 /*
2 * Copyright (C) 2011 Andreas Steffen, HSR Hochschule fuer Technik Rapperswil
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * for more details.
13 */
14
15 /**
16 *
17 * @defgroup imv_scanner_state_t imv_scanner_state
18 * @{ @ingroup imv_scanner_state
19 */
20
21 #ifndef IMV_SCANNER_STATE_H_
22 #define IMV_SCANNER_STATE_H_
23
24 #include <imv/imv_state.h>
25 #include <library.h>
26
27 typedef struct imv_scanner_state_t imv_scanner_state_t;
28
29 /**
30 * Internal state of an imv_scanner_t connection instance
31 */
32 struct imv_scanner_state_t {
33
34 /**
35 * imv_state_t interface
36 */
37 imv_state_t interface;
38
39 /**
40 * list of violating TCP and UDP ports
41 */
42 void (*set_violating_ports)(imv_scanner_state_t *this, char *ports);
43 };
44
45 /**
46 * Create an imv_scanner_state_t instance
47 *
48 * @param id connection ID
49 */
50 imv_state_t* imv_scanner_state_create(TNC_ConnectionID id);
51
52 #endif /** IMV_SCANNER_STATE_H_ @}*/