⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dot1xeap.h

📁 dot1x认证源码,包括dot1x数据包的收发,认证的配置,MIB的设计等
💻 H
字号:
/* dot1xEap.h */

/* Copyright 2002 Linkage, Inc. */

/*
modification history
--------------------
2003/3/3  hujs@lianchuang.com create
*/

#ifndef __INCdot1xEap_h
#define __INCdot1xEap_h

#pragma pack(1)

/** EAP CODE FIELD - RFC 2284 Sec 2.1**/
enum {
	EAP_Request    = 0x01,
	EAP_Response   = 0x02, 
	EAP_Success    = 0x03,
	EAP_Failure    = 0x04
};

/** EAP Type Field - RFC 2284 Sec 3*/
enum {
	EAP_Type_Id     = 0x01,
	EAP_Type_Notify = 0x02,
	EAP_Type_Nak    = 0x03,
	EAP_Type_MD5    = 0x04,
	EAP_Type_PAP	= 0x52,
	EAP_Type_ADV	= 0x09,		/*wanghn 20031013 add*/
	EAP_Type_LCBAP = 0x99
};

/*********** STRUCTURE DEFINITIONS **************/

/** EAP Header with TYPE field */
struct Eap_Type_Header{
	uchar_t    code; /* EAP Code RFC 2284 Sec. 2.1 */
	uchar_t    id;   /* EAP identifier */
	ushort_t   len;  /* EAP data length */
	uchar_t    type;
};

#define EAP_LINKAGE_IDENTIFIER	"linkage"
#define EAP_LINKAGE_VERSION		1
#define EAP_LINKAGE_BUILD			1

/* EAP Private patch */
struct Eap_Private_Field{
	uchar_t		linkageId[8];	/* string "linkage" */
	ushort_t	version;   	/* version number */
	ushort_t	build; 			/* build number */
	ulong_t		msgType;		/* message type */
};

#define EAP_TYPE_HEADER_LEN 5

#endif //__INCdot1xEap_h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -