home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / ipxconst.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  3.0 KB  |  129 lines

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