Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.8 KiB

  1. //
  2. // Copyright (c) 1998-1999, Microsoft Corporation, all rights reserved
  3. //
  4. // ccdefs.h
  5. //
  6. // ATM - Ethernet Encapsulation Intermediate Driver
  7. //
  8. // '#defines' used in the driver.
  9. //
  10. // 03/23/2000 ADube Created.
  11. //
  12. #define TESTMODE 0
  13. //
  14. // Define spew levels. The code will be checked in with testmode turned off
  15. //
  16. #if TESTMODE
  17. #define DEFAULTTRACELEVEL TL_T
  18. #define DEFAULTTRACEMASK TM_NoRM
  19. #else
  20. #define DEFAULTTRACELEVEL TL_A
  21. #define DEFAULTTRACEMASK TM_Base
  22. #endif
  23. #define NDIS_WDM 1
  24. #define PKT_STACKS 0
  25. #if (DBG)
  26. // Define this to enable a whole lot of extra checking in the RM api'd -- things
  27. // like debug associations and extra checking while locking/unlocking.
  28. //
  29. #define RM_EXTRA_CHECKING 1
  30. #endif // DBG
  31. #define EPVC_NDIS_MAJOR_VERSION 5
  32. #define EPVC_NDIS_MINOR_VERSION 0
  33. #define DISCARD_NON_UNICAST TRUE
  34. #define MAX_BUNDLEID_LENGTH 50
  35. #define TAG 'Epvc'
  36. #define WAIT_INFINITE 0
  37. #define ATMEPVC_GLOBALS_SIG 'GvpE'
  38. #define ATMEPVC_MP_MEDIUM NdisMedium802_3
  39. #define ATMEPVC_DEF_MAX_AAL5_PDU_SIZE ((64*1024)-1)
  40. //
  41. // Maximum bytes for ethernet/802.3 header
  42. //
  43. #define EPVC_ETH_HEADERSIZE 14
  44. #define EPVC_HEADERSIZE 4
  45. #define MCAST_LIST_SIZE 32
  46. #define MAX_ETHERNET_FRAME 1514
  47. #define MAX_IPv4_FRAME MAX_ETHERNET_FRAME - sizeof(EPVC_ETH_HEADER)
  48. #define EPVC_MAX_FRAME_SIZE MAX_ETHERNET_FRAME
  49. #define EPVC_MAX_PT_SIZE EPVC_MAX_FRAME_SIZE + 20
  50. #define MIN_ETHERNET_SIZE sizeof (IPHeader) + sizeof (EPVC_ETH_HEADER)
  51. #define EPVC_ETH_ENCAP_SIZE 2
  52. //
  53. // Packet Releated definitions
  54. //
  55. #define MAX_PACKET_POOL_SIZE 0x0000FFFF
  56. #define MIN_PACKET_POOL_SIZE 0x000000FF
  57. #define ARPDBG_REF_EVERY_PACKET 1
  58. #define DEFAULT_MAC_HEADER_SIZE 14