home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / IPXCONST.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  3.0 KB  |  125 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. #pragma option push -b -a8 -pc -A- /*P_O_Push_S*/
  25. #define _IPXCONST_
  26.  
  27. //
  28. // Administrative States Definitions
  29. //
  30. // Note: these states correspond to the MIB admin states of ENABLED and DISABLED
  31.  
  32. #define ADMIN_STATE_DISABLED            1
  33. #define ADMIN_STATE_ENABLED            2
  34.  
  35. // additional admin states used for netbios delivery.
  36. //
  37. // Note: these states correspond to the MIB states of:
  38. //
  39. // ENABLED_ONLY_FOR_NETBIOS_STATIC_ROUTING and
  40. // ENABLED_ONLY_FOR_OPER_STATE_UP
  41.  
  42. #define ADMIN_STATE_ENABLED_ONLY_FOR_NETBIOS_STATIC_ROUTING    3
  43. #define ADMIN_STATE_ENABLED_ONLY_FOR_OPER_STATE_UP        4
  44.  
  45. //
  46. // Interface Operational States Definitions
  47. //
  48. // Note 1: applies to the IPX, RIP and SAP operational states
  49. // Note 2: these states correspond to the MIB operational states of
  50. //       UP, DOWN and SLEEPING
  51. //
  52.  
  53. #define OPER_STATE_DOWN               1 // not operational
  54. #define OPER_STATE_UP               2 // operational & can pass packets
  55. #define OPER_STATE_SLEEPING           3 // operational but has to connect to pass packets
  56.  
  57. //
  58. // Additional operational states in starting/stopping the router
  59. //
  60.  
  61. #define OPER_STATE_STARTING            4
  62. #define OPER_STATE_STOPPING            5
  63.  
  64. //
  65. // Definitions and default values for the RIP and SAP Interface Info
  66. //
  67.  
  68. // UpdateMode definitions
  69. //
  70.  
  71. #define IPX_STANDARD_UPDATE        1 // Periodic update, every UpdateInterval
  72. #define IPX_NO_UPDATE            2 // No update, used for static routes config
  73. #define IPX_AUTO_STATIC_UPDATE        3 // AutoStatic triggered update
  74.  
  75. // PacketType definitions
  76. //
  77.  
  78. #define IPX_STANDARD_PACKET_TYPE        1
  79. #define IPX_RELIABLE_DELIVERY_PACKET_TYPE    2
  80.  
  81. // Pace definitions
  82.  
  83. #define IPX_PACE_DEFVAL     18 // This corresponds to a 55 ms interpacketgap
  84.  
  85. // UpdateInterval definitions
  86.  
  87. #define IPX_UPDATE_INTERVAL_DEFVAL  60
  88.  
  89. //*********************************************************
  90. //                              *
  91. //         IPX Route Entry Definitions          *
  92. //                              *
  93. //*********************************************************
  94.  
  95. //
  96. // IPX route entry defs for RTM mapping
  97. //
  98.  
  99. #define   R_Interface               RR_InterfaceID
  100. #define   R_Protocol               RR_RoutingProtocol
  101.  
  102. #define   R_Network               RR_Network.N_NetNumber
  103. #define   R_TickCount               RR_FamilySpecificData.FSD_TickCount
  104. #define   R_HopCount               RR_FamilySpecificData.FSD_HopCount
  105. #define   R_NextHopMacAddress           RR_NextHopAddress.NHA_Mac
  106.  
  107. #define   R_Flags               RR_FamilySpecificData.FSD_Flags
  108.  
  109. //
  110. // Some particular interface indices values
  111. //
  112.  
  113. #define MAX_INTERFACE_INDEX        0xFFFFFFFE
  114. #define GLOBAL_INTERFACE_INDEX        0xFFFFFFFF
  115.  
  116. //
  117. // Flags definitions
  118. //
  119.  
  120. #define GLOBAL_WAN_ROUTE        0x00000001
  121. #define DO_NOT_ADVERTISE_ROUTE        0x00000002
  122.  
  123. #pragma option pop /*P_O_Pop*/
  124. #endif
  125.