home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / ipxconst.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  3KB  |  123 lines

  1. /*++
  2.  
  3. Copyright (c) 1995 Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     ipxconst.h
  8.  
  9. Abstract:
  10.  
  11.     This module contains the common constants and macros used
  12.     by the IPX Routing Protocols
  13.  
  14. Author:
  15.  
  16.     Stefan Solomon  07/10/1995
  17.  
  18. Revision History:
  19.  
  20.  
  21. --*/
  22.  
  23. #ifndef _IPXCONST_
  24. #define _IPXCONST_
  25.  
  26. //
  27. // Administrative States Definitions
  28. //
  29. // Note: these states correspond to the MIB admin states of ENABLED and DISABLED
  30.  
  31. #define ADMIN_STATE_DISABLED            1
  32. #define ADMIN_STATE_ENABLED            2
  33.  
  34. // additional admin states used for netbios delivery.
  35. //
  36. // Note: these states correspond to the MIB states of:
  37. //
  38. // ENABLED_ONLY_FOR_NETBIOS_STATIC_ROUTING and
  39. // ENABLED_ONLY_FOR_OPER_STATE_UP
  40.  
  41. #define ADMIN_STATE_ENABLED_ONLY_FOR_NETBIOS_STATIC_ROUTING    3
  42. #define ADMIN_STATE_ENABLED_ONLY_FOR_OPER_STATE_UP        4
  43.  
  44. //
  45. // Interface Operational States Definitions
  46. //
  47. // Note 1: applies to the IPX, RIP and SAP operational states
  48. // Note 2: these states correspond to the MIB operational states of
  49. //       UP, DOWN and SLEEPING
  50. //
  51.  
  52. #define OPER_STATE_DOWN               1 // not operational
  53. #define OPER_STATE_UP               2 // operational & can pass packets
  54. #define OPER_STATE_SLEEPING           3 // operational but has to connect to pass packets
  55.  
  56. //
  57. // Additional operational states in starting/stopping the router
  58. //
  59.  
  60. #define OPER_STATE_STARTING            4
  61. #define OPER_STATE_STOPPING            5
  62.  
  63. //
  64. // Definitions and default values for the RIP and SAP Interface Info
  65. //
  66.  
  67. // UpdateMode definitions
  68. //
  69.  
  70. #define IPX_STANDARD_UPDATE        1 // Periodic update, every UpdateInterval
  71. #define IPX_NO_UPDATE            2 // No update, used for static routes config
  72. #define IPX_AUTO_STATIC_UPDATE        3 // AutoStatic triggered update
  73.  
  74. // PacketType definitions
  75. //
  76.  
  77. #define IPX_STANDARD_PACKET_TYPE        1
  78. #define IPX_RELIABLE_DELIVERY_PACKET_TYPE    2
  79.  
  80. // Pace definitions
  81.  
  82. #define IPX_PACE_DEFVAL     18 // This corresponds to a 55 ms interpacketgap
  83.  
  84. // UpdateInterval definitions
  85.  
  86. #define IPX_UPDATE_INTERVAL_DEFVAL  60
  87.  
  88. //*********************************************************
  89. //                              *
  90. //         IPX Route Entry Definitions          *
  91. //                              *
  92. //*********************************************************
  93.  
  94. //
  95. // IPX route entry defs for RTM mapping
  96. //
  97.  
  98. #define   R_Interface               RR_InterfaceID
  99. #define   R_Protocol               RR_RoutingProtocol
  100.  
  101. #define   R_Network               RR_Network.N_NetNumber
  102. #define   R_TickCount               RR_FamilySpecificData.FSD_TickCount
  103. #define   R_HopCount               RR_FamilySpecificData.FSD_HopCount
  104. #define   R_NextHopMacAddress           RR_NextHopAddress.NHA_Mac
  105.  
  106. #define   R_Flags               RR_FamilySpecificData.FSD_Flags
  107.  
  108. //
  109. // Some particular interface indices values
  110. //
  111.  
  112. #define MAX_INTERFACE_INDEX        0xFFFFFFFE
  113. #define GLOBAL_INTERFACE_INDEX        0xFFFFFFFF
  114.  
  115. //
  116. // Flags definitions
  117. //
  118.  
  119. #define GLOBAL_WAN_ROUTE        0x00000001
  120. #define DO_NOT_ADVERTISE_ROUTE        0x00000002
  121.  
  122. #endif
  123.