2 * Copyright (C) 2011 Andreas Steffen, HSR Hochschule fuer Technik Rapperswil
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>.
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
17 * @defgroup imv_test_state_t imv_test_state
18 * @{ @ingroup imv_test_state
21 #ifndef IMV_TEST_STATE_H_
22 #define IMV_TEST_STATE_H_
24 #include <imv/imv_state.h>
27 typedef struct imv_test_state_t imv_test_state_t
;
30 * Internal state of an imv_test_t connection instance
32 struct imv_test_state_t
{
35 * imv_state_t interface
37 imv_state_t interface
;
40 * Set the IMC-IMV round-trip count
42 * @param rounds number of re-measurement rounds
44 void (*set_rounds
)(imv_test_state_t
*this, int rounds
);
47 * Check and decrease IMC-IMV round-trip count
49 * @return new connection state
51 bool (*another_round
)(imv_test_state_t
*this);
55 * Create an imv_test_state_t instance
57 * @param id connection ID
59 imv_state_t
* imv_test_state_create(TNC_ConnectionID id
);
61 #endif /** IMV_TEST_STATE_H_ @}*/