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.

240 lines
11 KiB

  1. #define MSG_HELP_START _T("%1!-14s! - ")
  2. //
  3. // Tokens for commands
  4. // These must be in lower case
  5. //
  6. #define CMD_GROUP_SHOW L"show"
  7. #define CMD_GROUP_SET L"set"
  8. #define CMD_GROUP_ADD L"add"
  9. #define CMD_GROUP_DELETE L"delete"
  10. // IPv6 commands
  11. #define CMD_IPV6_INSTALL L"install"
  12. #define CMD_IPV6_RENEW L"renew"
  13. #define CMD_IPV6_RESET L"reset"
  14. #define CMD_IPV6_UNINSTALL L"uninstall"
  15. #define CMD_IPV6_ADD_ADDRESS L"address"
  16. #define CMD_IPV6_SET_ADDRESS L"address"
  17. #define CMD_IPV6_DEL_ADDRESS L"address"
  18. #define CMD_IPV6_SHOW_ADDRESS L"address"
  19. #define CMD_IPV6_SHOW_BINDINGCACHEENTRIES L"bindingcacheentries"
  20. #define CMD_IPV6_ADD_DNS L"dns"
  21. #define CMD_IPV6_DEL_DNS L"dns"
  22. #define CMD_IPV6_SHOW_DNS L"dns"
  23. #define CMD_IPV6_SHOW_GLOBAL L"global"
  24. #define CMD_IPV6_SET_GLOBAL L"global"
  25. #define CMD_IPV6_SET_INTERFACE L"interface"
  26. #define CMD_IPV6_DEL_INTERFACE L"interface"
  27. #define CMD_IPV6_SHOW_INTERFACE L"interface"
  28. #define CMD_IPV6_DEL_NEIGHBORS L"neighbors"
  29. #define CMD_IPV6_SHOW_NEIGHBORS L"neighbors"
  30. #define CMD_IPV6_ADD_PREFIXPOLICY L"prefixpolicy"
  31. #define CMD_IPV6_SET_PREFIXPOLICY L"prefixpolicy"
  32. #define CMD_IPV6_DEL_PREFIXPOLICY L"prefixpolicy"
  33. #define CMD_IPV6_SHOW_PREFIXPOLICY L"prefixpolicy"
  34. #define CMD_IPV6_SET_PRIVACY L"privacy"
  35. #define CMD_IPV6_SHOW_PRIVACY L"privacy"
  36. #define CMD_IPV6_ADD_ROUTE L"route"
  37. #define CMD_IPV6_SET_ROUTE L"route"
  38. #define CMD_IPV6_DEL_ROUTE L"route"
  39. #define CMD_IPV6_SHOW_ROUTES L"routes"
  40. #define CMD_IPV6_DEL_DESTINATIONCACHE L"destinationcache"
  41. #define CMD_IPV6_SHOW_DESTINATIONCACHE L"destinationcache"
  42. #define CMD_IPV6_SHOW_SITEPREFIXES L"siteprefixes"
  43. #define CMD_IPV6_ADD_V6V4TUNNEL L"v6v4tunnel"
  44. #define CMD_IPV6_ADD_6OVER4TUNNEL L"6over4tunnel"
  45. #define CMD_IPV6_SET_MOBILITY L"mobility"
  46. #define CMD_IPV6_SHOW_MOBILITY L"mobility"
  47. #define CMD_IPV6_SHOW_JOINS L"joins"
  48. #define CMD_IPV6_SET_STATE L"state"
  49. #define CMD_IPV6_SHOW_STATE L"state"
  50. // Teredo commands
  51. #define CMD_IPV6_SET_TEREDO L"teredo"
  52. #define CMD_IPV6_SHOW_TEREDO L"teredo"
  53. // 6to4 commands
  54. #define CMD_IP6TO4_RESET L"reset"
  55. #define CMD_IP6TO4_SHOW_INTERFACE L"interface"
  56. #define CMD_IP6TO4_SHOW_RELAY L"relay"
  57. #define CMD_IP6TO4_SHOW_ROUTING L"routing"
  58. #define CMD_IP6TO4_SHOW_STATE L"state"
  59. #define CMD_IP6TO4_SET_INTERFACE L"interface"
  60. #define CMD_IP6TO4_SET_RELAY L"relay"
  61. #define CMD_IP6TO4_SET_ROUTING L"routing"
  62. #define CMD_IP6TO4_SET_STATE L"state"
  63. // ISATAP commands
  64. #define CMD_ISATAP_SHOW_ROUTER L"router"
  65. #define CMD_ISATAP_SET_ROUTER L"router"
  66. //
  67. // TOKEN_Xxx are tokens for arguments
  68. // These must be in lower case
  69. //
  70. #define TOKEN_NAME L"name"
  71. #define TOKEN_STATE L"state"
  72. #define TOKEN_SITELOCALS L"sitelocals"
  73. #define TOKEN_INTERVAL L"interval"
  74. #define TOKEN_RELAY_NAME L"name"
  75. #define TOKEN_UNDO_ON_STOP L"undoonstop"
  76. #define TOKEN_6OVER4 L"6over4"
  77. #define TOKEN_V4COMPAT L"v4compat"
  78. #define TOKEN_ROUTING L"routing"
  79. #define TOKEN_INDEX L"index"
  80. // token values for teredo
  81. #define TOKEN_VALUE_CLIENT L"client"
  82. #define TOKEN_VALUE_SERVER L"server"
  83. #define TOKEN_VALUE_DISABLE L"disable"
  84. #define TOKEN_TYPE L"type"
  85. #define TOKEN_SERVERNAME L"servername"
  86. #define TOKEN_REFRESH_INTERVAL L"refreshinterval"
  87. // token values for 6to4
  88. #define TOKEN_VALUE_AUTOMATIC L"automatic"
  89. #define TOKEN_VALUE_ENABLED L"enabled"
  90. #define TOKEN_VALUE_DISABLED L"disabled"
  91. #define TOKEN_VALUE_DEFAULT L"default"
  92. // token values for ipv6
  93. #define TOKEN_ADDRESS L"address"
  94. #define TOKEN_ADVERTISE L"advertise"
  95. #define TOKEN_BINDINGCACHELIMIT L"bindingcachelimit"
  96. #define TOKEN_DEFAULTCURHOPLIMIT L"defaultcurhoplimit"
  97. #define TOKEN_FORWARDING L"forwarding"
  98. #define TOKEN_INTERFACE L"interface"
  99. #define TOKEN_LABEL L"label"
  100. #define TOKEN_LEVEL L"level"
  101. #define TOKEN_LIFETIME L"lifetime"
  102. #define TOKEN_LOCALADDRESS L"localaddress"
  103. #define TOKEN_MAXDADATTEMPTS L"maxdadattempts"
  104. #define TOKEN_MAXPREFERREDLIFETIME L"maxpreferredlifetime"
  105. #define TOKEN_MAXRANDOMTIME L"maxrandomtime"
  106. #define TOKEN_MAXVALIDLIFETIME L"maxvalidlifetime"
  107. #define TOKEN_METRIC L"metric"
  108. #define TOKEN_MTU L"mtu"
  109. #define TOKEN_NEIGHBORCACHELIMIT L"neighborcachelimit"
  110. #define TOKEN_NEIGHBORDISCOVERY L"neighbordiscovery"
  111. #define TOKEN_NEXTHOP L"nexthop"
  112. #define TOKEN_PRECEDENCE L"precedence"
  113. #define TOKEN_PREFIX L"prefix"
  114. #define TOKEN_PUBLISH L"publish"
  115. #define TOKEN_RANDOMTIME L"randomtime"
  116. #define TOKEN_REASSEMBLYLIMIT L"reassemblylimit"
  117. #define TOKEN_REGENERATETIME L"regeneratetime"
  118. #define TOKEN_REMOTEADDRESS L"remoteaddress"
  119. #define TOKEN_DESTINATIONCACHELIMIT L"destinationcachelimit"
  120. #define TOKEN_SECURITY L"security"
  121. #define TOKEN_SITEID L"siteid"
  122. #define TOKEN_SITEPREFIXLENGTH L"siteprefixlength"
  123. #define TOKEN_STORE L"store"
  124. #define TOKEN_TYPE L"type"
  125. #define TOKEN_PREFERREDLIFETIME L"preferredlifetime"
  126. #define TOKEN_VALIDLIFETIME L"validlifetime"
  127. #define TOKEN_VALUE_NORMAL L"normal"
  128. #define TOKEN_VALUE_VERBOSE L"verbose"
  129. #define TOKEN_VALUE_UNICAST L"unicast"
  130. #define TOKEN_VALUE_ANYCAST L"anycast"
  131. #define TOKEN_VALUE_NO L"no"
  132. #define TOKEN_VALUE_YES L"yes"
  133. #define TOKEN_VALUE_AGE L"age"
  134. #define TOKEN_VALUE_INFINITE L"infinite"
  135. #define TOKEN_VALUE_ACTIVE L"active"
  136. #define TOKEN_VALUE_PERSISTENT L"persistent"
  137. #define TOKEN_VALUE_ALL L"all"
  138. //
  139. // Port Proxy commands.
  140. //
  141. #define CMD_PP_SHOW_ALL L"all"
  142. #define CMD_V4TOV4 L"v4tov4"
  143. #define CMD_V4TOV6 L"v4tov6"
  144. #define CMD_V6TOV4 L"v6tov4"
  145. #define CMD_V6TOV6 L"v6tov6"
  146. #define CMD_PP_ADD_V4TOV4 CMD_V4TOV4
  147. #define CMD_PP_SET_V4TOV4 CMD_V4TOV4
  148. #define CMD_PP_DEL_V4TOV4 CMD_V4TOV4
  149. #define CMD_PP_SHOW_V4TOV4 CMD_V4TOV4
  150. #define CMD_PP_ADD_V4TOV6 CMD_V4TOV6
  151. #define CMD_PP_SET_V4TOV6 CMD_V4TOV6
  152. #define CMD_PP_DEL_V4TOV6 CMD_V4TOV6
  153. #define CMD_PP_SHOW_V4TOV6 CMD_V4TOV6
  154. #define CMD_PP_ADD_V6TOV4 CMD_V6TOV4
  155. #define CMD_PP_SET_V6TOV4 CMD_V6TOV4
  156. #define CMD_PP_DEL_V6TOV4 CMD_V6TOV4
  157. #define CMD_PP_SHOW_V6TOV4 CMD_V6TOV4
  158. #define CMD_PP_ADD_V6TOV6 CMD_V6TOV6
  159. #define CMD_PP_SET_V6TOV6 CMD_V6TOV6
  160. #define CMD_PP_DEL_V6TOV6 CMD_V6TOV6
  161. #define CMD_PP_SHOW_V6TOV6 CMD_V6TOV6
  162. #define TOKEN_LISTENADDRESS L"listenaddress"
  163. #define TOKEN_LISTENPORT L"listenport"
  164. #define TOKEN_CONNECTADDRESS L"connectaddress"
  165. #define TOKEN_CONNECTPORT L"connectport"
  166. #define TOKEN_PROTOCOL L"protocol"
  167. #define TOKEN_VALUE_TCP L"tcp"
  168. #define DMP_PP_PUSHD L"pushd interface portproxy\n\nreset\n"
  169. #define DMP_PP_POPD L"\n\npopd\n"
  170. //
  171. // Messages used to dump config - these closely follow the
  172. // set/add help messages
  173. //
  174. #define DMP_NEWLINE L"\n"
  175. #define DMP_IPV6_PUSHD L"pushd interface ipv6\n\nreset\n"
  176. #define DMP_IPV6_POPD L"\n\npopd\n"
  177. #define DMP_IPV6_ADD_6OVER4TUNNEL L"add 6over4tunnel"
  178. #define DMP_IPV6_ADD_V6V4TUNNEL L"add v6v4tunnel"
  179. #define DMP_IPV6_ADD_DNS L"add dns"
  180. #define DMP_IPV6_ADD_PREFIXPOLICY L"add prefixpolicy"
  181. #define DMP_IPV6_ADD_ROUTE L"add route"
  182. #define DMP_IPV6_ADD_SITEPREFIX L"add siteprefix"
  183. #define DMP_IPV6_SET_GLOBAL L"set global"
  184. #define DMP_IPV6_SET_INTERFACE L"set interface"
  185. #define DMP_IPV6_SET_MOBILITY L"set mobility"
  186. #define DMP_IPV6_SET_PRIVACY L"set privacy"
  187. #define DMP_IPV6_SET_TEREDO L"set teredo"
  188. #define DMP_IP6TO4_PUSHD L"pushd interface ipv6 6to4\n\nreset\n"
  189. #define DMP_IP6TO4_POPD L"\n\n\npopd\n"
  190. #define DMP_IP6TO4_SET_STATE L"set state"
  191. #define DMP_IP6TO4_SET_INTERFACE L"set interface"
  192. #define DMP_IP6TO4_SET_ROUTING L"set routing"
  193. #define DMP_IP6TO4_SET_RELAY L"set relay"
  194. #define DMP_ISATAP_PUSHD L"pushd interface ipv6 isatap\n"
  195. #define DMP_ISATAP_POPD L"\n\n\npopd\n"
  196. #define DMP_ISATAP_SET_ROUTER L"set router"
  197. #define DMP_ADD_PORT_PROXY L"add %1!s!"
  198. #define DMP_STRING_ARG L" %1!s!=%2!s!"
  199. #define DMP_INTEGER_ARG L" %1!s!=%2!d!"
  200. #define DMP_QUOTED_STRING_ARG L" %1!s!=\"%2!s!\""