atomic functions moved into separete header; added atomic function InterlockedExchang...
[public/netxms.git] / include / ieee8021x.h
1 /*
2 ** NetXMS - Network Management System
3 ** Copyright (C) 2003-2011 Victor Kirhenshtein
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU Lesser General Public License as published by
7 ** the Free Software Foundation; either version 3 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU General Public License for more details.
14 **
15 ** You should have received a copy of the GNU Lesser General Public License
16 ** along with this program; if not, write to the Free Software
17 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 **
19 ** File: ieee8021x.h
20 **
21 **/
22
23 #ifndef _ieee8021x_h
24 #define _ieee8021x_h
25
26
27 /**
28 * States of PAE state machine
29 */
30 #define PAE_STATE_UNKNOWN 0
31 #define PAE_STATE_INITIALIZE 1
32 #define PAE_STATE_DISCONNECTED 2
33 #define PAE_STATE_CONNECTING 3
34 #define PAE_STATE_AUTHENTICATING 4
35 #define PAE_STATE_AUTHENTICATED 5
36 #define PAE_STATE_ABORTING 6
37 #define PAE_STATE_HELD 7
38 #define PAE_STATE_FORCE_AUTH 8
39 #define PAE_STATE_FORCE_UNAUTH 9
40 #define PAE_STATE_RESTART 10
41
42 /**
43 * States of backend authentication state machine
44 */
45 #define BACKEND_STATE_UNKNOWN 0
46 #define BACKEND_STATE_REQUEST 1
47 #define BACKEND_STATE_RESPONSE 2
48 #define BACKEND_STATE_SUCCESS 3
49 #define BACKEND_STATE_FAIL 4
50 #define BACKEND_STATE_TIMEOUT 5
51 #define BACKEND_STATE_IDLE 6
52 #define BACKEND_STATE_INITIALIZE 7
53 #define BACKEND_STATE_IGNORE 8
54
55 #endif