www.pudn.com > DMBDRV.rar > SmsNdis.h


 
#ifndef SMS_NDIS_H 
#define SMS_NDIS_H 
 
#include  
#include  
#include  
#include  
 
/************************************************************************/ 
 
#define MAX_MULTICAST_LIST_SIZE		12 
#define ETHERNET_ADDRESS_LEN		6 
#define ETHERNET_HEADER_LEN			14 
#define IPV6_HEADER_LEN				40 
#define MAX_IP_PACKET_LEN			1500 
#define MAX_IP_FRAME_LEN			(ETHERNET_HEADER_LEN + MAX_IP_PACKET_LEN) 
#define IPV6_MULTICAST_INDICATOR	0xFF 
#define PACKET_TYPE_IP				0x0800 
#define PACKET_TYPE_IPV6			0x86dd 
 
#define SUPPORTED_PACKET_FILTER (NDIS_PACKET_TYPE_ALL_MULTICAST | NDIS_PACKET_TYPE_MULTICAST) 
 
/************************************************************************/ 
 
/* set aligment to one byte */ 
#pragma pack( push, headers , 1 ) 
 
typedef struct ETHERNETHEADER_S 
{ 
  UCHAR DestAdd[6]; 
  UCHAR SrcAdd[6]; 
  USHORT PacketType; 
 
} ETHERNETHEADER_ST ,*PETHERNETHEADER_ST; 
 
/* rollback aligment to default */ 
#pragma pack( pop, headers ) 
 
/************************************************************************/ 
/* Debug Zones definitions.                                             */ 
/************************************************************************/ 
 
/* Debug zones: */ 
#define ZONE_NONE_SET		0x0000 
#define ZONE_ERROR			DEBUGZONE(0) 
#define ZONE_ERROR_SET		0x0001 
#define ZONE_WARNING		DEBUGZONE(1) 
#define ZONE_WARNING_SET	0x0002 
#define ZONE_INIT			DEBUGZONE(2) 
#define ZONE_INIT_SET		0x0004 
#define ZONE_INFO			DEBUGZONE(3) 
#define ZONE_INFO_SET		0x0008 
#define ZONE_ALL_SET		0xFFFF /* All of the zones */ 
 
#ifdef ENABLE_LOGS 
 
#ifdef LOG_TO_FILE 
 
	#define REGISTERZONES(hMod) 
	#define DBGMSG(m, s) ((m & dpCurSettings.ulZoneMask) ? (LogStrToFile s),1:0) 
 
#else 
	#if defined(DEBUG) 
 
		#define REGISTERZONES(hMod) DEBUGREGISTER(hMod) 
		#define DBGMSG				DEBUGMSG 
 
	#else 
 
		#define REGISTERZONES(hMod) RETAILREGISTERZONES(hMod) 
		#define DBGMSG				RETAILMSG 
 
	#endif 
#endif 
 
#else 
 
	#define REGISTERZONES(hMod) 
	#define DBGMSG 
 
#endif 
/************************************************************************/ 
 
#endif