| /* |
| * Extensible Authentication Protocol (EAP) definitions |
| * |
| * See |
| * RFC 2284: PPP Extensible Authentication Protocol (EAP) |
| * |
| * Copyright (C) 2002 Broadcom Corporation |
| * |
| * $Id: eap.h 405837 2013-06-05 00:13:20Z $ |
| */ |
| |
| #ifndef _eap_h_ |
| #define _eap_h_ |
| |
| /* This marks the start of a packed structure section. */ |
| #include <packed_section_start.h> |
| |
| /* EAP packet format */ |
| typedef BWL_PRE_PACKED_STRUCT struct { |
| unsigned char code; /* EAP code */ |
| unsigned char id; /* Current request ID */ |
| unsigned short length; /* Length including header */ |
| unsigned char type; /* EAP type (optional) */ |
| unsigned char data[1]; /* Type data (optional) */ |
| } BWL_POST_PACKED_STRUCT eap_header_t; |
| |
| #define EAP_HEADER_LEN 4 |
| |
| /* EAP codes */ |
| #define EAP_REQUEST 1 |
| #define EAP_RESPONSE 2 |
| #define EAP_SUCCESS 3 |
| #define EAP_FAILURE 4 |
| |
| /* EAP types */ |
| #define EAP_IDENTITY 1 |
| #define EAP_NOTIFICATION 2 |
| #define EAP_NAK 3 |
| #define EAP_MD5 4 |
| #define EAP_OTP 5 |
| #define EAP_GTC 6 |
| #define EAP_TLS 13 |
| #define EAP_EXPANDED 254 |
| #define BCM_EAP_SES 10 |
| #define BCM_EAP_EXP_LEN 12 /* EAP_LEN 5 + 3 bytes for SMI ID + 4 bytes for ven type */ |
| #define BCM_SMI_ID 0x113d |
| #define WFA_VENDOR_SMI 0x009F68 |
| |
| |
| /* This marks the end of a packed structure section. */ |
| #include <packed_section_end.h> |
| |
| #endif /* _eap_h_ */ |