//========================================================================== // PRODUCT: RusRoute - MaaSoftware routing firewall software driver // (C) Copyright Moiseenko A.A., MaaSoftware, 2003-2008. All Rights Reserved. // http://www.maasoftware.ru http://www.maasoftware.com // http://www.rusroute.ru http://www.rusroute.com // support@maasoftware.ru //========================================================================== // FILE: Const.h // // AUTHOR: Andrey A. Moiseenko // // OVERVIEW Driver constants. // ~~~~~~~~ // DATE: 26.10.2003 //========================================================================== #ifndef __MAARF_CONST_H #define __MAARF_CONST_H #define PACKETS (MAX_PACKET_POOL_SIZE) //#define PACKETS 128 #define CMaaMemBlockSize ( 64 * 1024 + 0x10 + MaxMacHeaderSize + Max_IP_HeaderLength ) // 0X05EA == 1514 for Ethernet // 0x1187 == 4487 for FDDI //~0x0FC0 == 4032 for Token Ring #define CRusRoute_FRAME_LIMIT_TOTAL ( 1514 + 8 + 0x10 ) #define MaaRF_ADAPTER_LOCAL 0 //#define MaaRF_MAX_MAC_LEN 22 //22=0x16 - Token Ring #define DRV_FRAME_ETH 0 #define DRV_FRAME_FDDI 1 #define DRV_FRAME_TOKEN_RING 2 #define DRV_PACKET_ERROR 0x01 #define DRV_PACKET_LAST_FRAGMENT 0x04 #define DRV_PACKET_DESTIN_BROADCAST 0x08 #define DRV_PACKET_SOURCE_BROADCAST 0x10 #define DRV_PACKET_DECRYPTED 0x40 #define DRV_PACKET_MUST_DROP 0x80 #define DRV_SEND 0x00 #define DRV_RECEIVE 0x02 #define DRV_MAX_MAC_SIZE 32 #define DRV_MAX_IPH_SIZE 80 #define DRV_IP_PACKET_BUFFER_SIZE ( 64 * 1024 - DRV_MAX_MAC_SIZE - DRV_MAX_IPH_SIZE /*- DRV_MAX_NAT_IPS_SIZE*/ - 16 ) #define DRV_MAX_IP_PACKET_SIZE ( 48 * 1024 ) #endif // __MAARF_CONST_H