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.

142 lines
4.1 KiB

  1. //============================================================================
  2. // Copyright (C) Microsoft Corporation, 1996 - 1999
  3. //
  4. // File: strings.cpp
  5. //
  6. // History:
  7. // Abolade Gbadegesin Feb-11-1996 Created.
  8. //
  9. // Contains definitions of global constants.
  10. //============================================================================
  11. #include "stdafx.h"
  12. #include "mprapi.h"
  13. extern "C"
  14. {
  15. #include <routprot.h>
  16. #include <ipxrtdef.h>
  17. };
  18. #include "globals.h"
  19. //----------------------------------------------------------------------------
  20. // IPX RIP default interface configuration
  21. // (These values also reside in ipxsnap\globals.cpp).
  22. //
  23. //----------------------------------------------------------------------------
  24. //
  25. // Default values for non-LAN interface RIP configuration
  26. //
  27. RIP_IF_CONFIG
  28. g_ipxripInterfaceDefault = {
  29. {
  30. ADMIN_STATE_ENABLED, // Admin state
  31. IPX_NO_UPDATE, // Update Mode - RIP update mechanism
  32. IPX_STANDARD_PACKET_TYPE, // Packet type - RIP packet type
  33. ADMIN_STATE_ENABLED, // Supply - Send RIP updates
  34. ADMIN_STATE_ENABLED, // Listen - Listen to RIP updates
  35. 0, // Periodic Update interval - in seconds
  36. 0 // AgeIntervalMultiplier
  37. },
  38. {
  39. IPX_SERVICE_FILTER_DENY, // Supply filter action
  40. 0, // Supply filter count
  41. IPX_SERVICE_FILTER_DENY, // Listen filter action
  42. 0, // Listen filter count
  43. }
  44. };
  45. BYTE* g_pIpxRipInterfaceDefault = (BYTE*)&g_ipxripInterfaceDefault;
  46. //
  47. // Default values for LAN interface RIP configuration
  48. // (These values also reside in ipxsnap\globals.cpp).
  49. //
  50. RIP_IF_CONFIG
  51. g_ipxripLanInterfaceDefault = {
  52. {
  53. ADMIN_STATE_ENABLED, // Admin state
  54. IPX_STANDARD_UPDATE, // Update Mode - RIP update mechanism
  55. IPX_STANDARD_PACKET_TYPE, // Packet type - RIP packet type
  56. ADMIN_STATE_ENABLED, // Supply - Send RIP updates
  57. ADMIN_STATE_ENABLED, // Listen - Listen to RIP updates
  58. IPX_UPDATE_INTERVAL_DEFVAL, // Periodic Update interval - in seconds
  59. 3 // AgeIntervalMultiplier
  60. },
  61. {
  62. IPX_SERVICE_FILTER_DENY, // Supply filter action
  63. 0, // Supply filter count
  64. IPX_SERVICE_FILTER_DENY, // Listen filter action
  65. 0, // Listen filter count
  66. }
  67. };
  68. BYTE* g_pIpxRipLanInterfaceDefault = (BYTE*)&g_ipxripLanInterfaceDefault;
  69. //----------------------------------------------------------------------------
  70. // IPX SAP default interface configuration
  71. // (These values also reside in ipxsnap\globals.cpp).
  72. //
  73. //----------------------------------------------------------------------------
  74. //
  75. // Default values for non-LAN interface SAP configuration
  76. //
  77. SAP_IF_CONFIG
  78. g_ipxsapInterfaceDefault = {
  79. {
  80. ADMIN_STATE_ENABLED, // Admin state
  81. IPX_NO_UPDATE, // Update Mode - SAP update mechanism
  82. IPX_STANDARD_PACKET_TYPE, // Packet type - SAP packet type
  83. ADMIN_STATE_ENABLED, // Supply - Send SAP updates
  84. ADMIN_STATE_ENABLED, // Listen - Listen to SAP updates
  85. ADMIN_STATE_ENABLED, // Reply to GetNearestServer
  86. 0, // Periodic Update interval - in seconds
  87. 0 // AgeIntervalMultiplier
  88. },
  89. {
  90. IPX_SERVICE_FILTER_DENY, // Supply filter action
  91. 0, // Supply filter count
  92. IPX_SERVICE_FILTER_DENY, // Listen filter action
  93. 0, // Listen filter count
  94. }
  95. };
  96. BYTE* g_pIpxSapInterfaceDefault = (BYTE*)&g_ipxsapInterfaceDefault;
  97. //
  98. // Default values for LAN interface SAP configuration
  99. // (These values also reside in ipxsnap\globals.cpp).
  100. //
  101. SAP_IF_CONFIG
  102. g_ipxsapLanInterfaceDefault = {
  103. {
  104. ADMIN_STATE_ENABLED, // Admin state
  105. IPX_STANDARD_UPDATE, // Update Mode - SAP update mechanism
  106. IPX_STANDARD_PACKET_TYPE, // Packet type - SAP packet type
  107. ADMIN_STATE_ENABLED, // Supply - Send SAP updates
  108. ADMIN_STATE_ENABLED, // Listen - Listen to SAP updates
  109. ADMIN_STATE_ENABLED, // Reply to GetNearestServer
  110. IPX_UPDATE_INTERVAL_DEFVAL, // Periodic Update interval - in seconds
  111. 3 // AgeIntervalMultiplier
  112. },
  113. {
  114. IPX_SERVICE_FILTER_DENY, // Supply filter action
  115. 0, // Supply filter count
  116. IPX_SERVICE_FILTER_DENY, // Listen filter action
  117. 0, // Listen filter count
  118. }
  119. };
  120. BYTE* g_pIpxSapLanInterfaceDefault = (BYTE*)&g_ipxsapLanInterfaceDefault;