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.

126 lines
2.8 KiB

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