modernize backfire 10.03 so it can be operational again
[openwrt-10.03/.git] / package / broadcom-wl / src / driver / proto / eap.h
1 /*
2  * Extensible Authentication Protocol (EAP) definitions
3  *
4  * See
5  * RFC 2284: PPP Extensible Authentication Protocol (EAP)
6  *
7  * Copyright (C) 2002 Broadcom Corporation
8  *
9  */
10
11 #ifndef _eap_h_
12 #define _eap_h_
13
14 /* EAP packet format */
15 typedef struct {
16         unsigned char code;     /* EAP code */
17         unsigned char id;       /* Current request ID */
18         unsigned short length;  /* Length including header */
19         unsigned char type;     /* EAP type (optional) */
20         unsigned char data[1];  /* Type data (optional) */
21 } eap_header_t;
22
23 #define EAP_HEADER_LEN 4
24
25 /* EAP codes */
26 #define EAP_REQUEST     1
27 #define EAP_RESPONSE    2
28 #define EAP_SUCCESS     3
29 #define EAP_FAILURE     4
30
31 /* EAP types */
32 #define EAP_IDENTITY            1
33 #define EAP_NOTIFICATION        2
34 #define EAP_NAK                 3
35 #define EAP_MD5                 4
36 #define EAP_OTP                 5
37 #define EAP_GTC                 6
38 #define EAP_TLS                 13
39 #define EAP_EXPANDED            254
40 #define BCM_EAP_SES             10
41 #define BCM_EAP_EXP_LEN         12  /* EAP_LEN 5 + 3 bytes for SMI ID + 4 bytes for ven type */
42 #define BCM_SMI_ID              0x113d
43
44 #endif /* _eap_h_ */