Leaked source code of windows server 2003
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.

161 lines
7.3 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_ADD L"add"
  7. #define CMD_GROUP_DELETE L"delete"
  8. #define CMD_GROUP_SHOW L"show"
  9. #define CMD_GROUP_SET L"set"
  10. #define CMD_GROUP_RESET L"reset"
  11. #define CMD_DUMP L"dump"
  12. #define CMD_HELP1 L"help"
  13. #define CMD_HELP2 L"?"
  14. #define CMD_IF_DUMP CMD_DUMP
  15. #define CMD_IF_HELP1 CMD_HELP1
  16. #define CMD_IF_HELP2 CMD_HELP2
  17. #define CMD_IF_ADD_IF L"interface"
  18. #define CMD_IF_DEL_IF L"interface"
  19. #define CMD_IF_SHOW_IF L"interface"
  20. #define CMD_IF_SET_CREDENTIALS L"credentials"
  21. #define CMD_IF_SHOW_CREDENTIALS L"credentials"
  22. #define CMD_IF_SET_INTERFACE L"interface"
  23. #define CMD_IF_RESET_ALL L"all"
  24. // IF_IP commands
  25. #define CMD_IFIP_SHOW_CONFIG L"config"
  26. #define CMD_IFIP_ADD_IPADDR L"address"
  27. #define CMD_IFIP_SET_IPADDR L"address"
  28. #define CMD_IFIP_DEL_IPADDR L"address"
  29. #define CMD_IFIP_SHOW_IPADDR L"address"
  30. #define CMD_IFIP_ADD_DNS L"dns"
  31. #define CMD_IFIP_SET_DNS L"dns"
  32. #define CMD_IFIP_DEL_DNS L"dns"
  33. #define CMD_IFIP_SHOW_DNS L"dns"
  34. #define CMD_IFIP_ADD_WINS L"wins"
  35. #define CMD_IFIP_SET_WINS L"wins"
  36. #define CMD_IFIP_DEL_WINS L"wins"
  37. #define CMD_IFIP_SHOW_WINS L"wins"
  38. #define CMD_IFIP_SHOW_OFFLOAD L"offload"
  39. #define CMD_IPMIB_SHOW_INTERFACE L"interface"
  40. #define CMD_IPMIB_SHOW_IPSTATS L"ipstats"
  41. #define CMD_IPMIB_SHOW_IPADDRESS L"ipaddress"
  42. #define CMD_IPMIB_SHOW_IPNET L"ipnet"
  43. #define CMD_IPMIB_SHOW_ICMP L"icmp"
  44. #define CMD_IPMIB_SHOW_TCPSTATS L"tcpstats"
  45. #define CMD_IPMIB_SHOW_TCPCONN L"tcpconn"
  46. #define CMD_IPMIB_SHOW_UDPSTATS L"udpstats"
  47. #define CMD_IPMIB_SHOW_UDPCONN L"udpconn"
  48. #define CMD_IPMIB_SHOW_JOINS L"joins"
  49. #define CMD_IFIP_DEL_ARPCACHE L"arpcache"
  50. #define CMD_IFIP_RESET L"reset"
  51. //
  52. // TOKEN_Xxx are tokens for arguments
  53. // These must be in lower case
  54. //
  55. #define TOKEN_NAME _T("name")
  56. #define TOKEN_TYPE _T("type")
  57. #define TOKEN_FULL _T("full")
  58. #define TOKEN_USER _T("user")
  59. #define TOKEN_DOMAIN _T("domain")
  60. #define TOKEN_PASSWORD _T("password")
  61. #define TOKEN_ADMIN _T("admin")
  62. #define TOKEN_CONNECT _T("connect")
  63. #define TOKEN_NEWNAME _T("newname")
  64. // tokens for interface/ip
  65. #define TOKEN_SOURCE _T("source")
  66. #define TOKEN_ADDR _T("addr")
  67. #define TOKEN_MASK _T("mask")
  68. #define TOKEN_GATEWAY _T("gateway")
  69. #define TOKEN_GWMETRIC _T("gwmetric")
  70. #define TOKEN_INDEX _T("index")
  71. #define TOKEN_REGISTER _T("register")
  72. #define TOKEN_MIB_OBJECT_INTERFACE L"interface"
  73. #define TOKEN_MIB_OBJECT_IPSTATS L"ipstats"
  74. #define TOKEN_MIB_OBJECT_IPADDRESS L"ipaddress"
  75. #define TOKEN_MIB_OBJECT_IPNET L"ipnet"
  76. #define TOKEN_MIB_OBJECT_ICMP L"icmp"
  77. #define TOKEN_MIB_OBJECT_TCPSTATS L"tcpstats"
  78. #define TOKEN_MIB_OBJECT_TCPCONN L"tcpconn"
  79. #define TOKEN_MIB_OBJECT_UDPSTATS L"udpstats"
  80. #define TOKEN_MIB_OBJECT_UDPCONN L"udpconn"
  81. #define TOKEN_MIB_OBJECT_JOINS L"joins"
  82. //
  83. // TOKEN_VALUE_Xxx are tokens for possible values than an argument
  84. // can take
  85. // These must be in upper case
  86. //
  87. #define TOKEN_VALUE_ENABLED _T("ENABLED")
  88. #define TOKEN_VALUE_DISABLED _T("DISABLED")
  89. #define TOKEN_VALUE_CONNECTED _T("CONNECTED")
  90. #define TOKEN_VALUE_DISCONNECTED _T("DISCONNECTED")
  91. // token values for ifIp
  92. #define TOKEN_VALUE_DHCP _T("DHCP")
  93. #define TOKEN_VALUE_STATIC _T("STATIC")
  94. #define TOKEN_VALUE_NONE _T("NONE")
  95. #define TOKEN_VALUE_ALL _T("ALL")
  96. #define TOKEN_VALUE_PRIMARY _T("PRIMARY")
  97. #define TOKEN_VALUE_BOTH _T("BOTH")
  98. //
  99. // Messages used to dump config - these closely follow the
  100. // set/add help messages
  101. //
  102. #define DMP_IF_NEWLINE L"\n"
  103. #define DMP_IF_ADD_IF L"\nadd interface name=%1!s! type=%2!s!"
  104. #define DMP_IF_SET_IF L"\nset interface name=%1!s! admin=%2!s!"
  105. #define DMP_IF_SET_CRED_IF L"\nset credentials name=%1!s! user=%2!s! domain=%3!s!"
  106. #define DMP_IF_SET_CRED_IF_NOD L"\nset credentials name=%1!s! user=%2!s!"
  107. #define DMP_IF_HEADER L"pushd interface\n\nreset all\n"
  108. #define DMP_IF_FOOTER L"\n\npopd\n"
  109. #define DMP_IF_NOT_SUPPORTED L"# Not yet supported"
  110. #define DMP_IF_IPTUNNEL_CONFIG L" srcaddr=%1!s! destaddr=%2!s! ttl=%3!d!"
  111. #define DMP_IFIP_PUSHD L"pushd interface ip\n"
  112. #define DMP_IFIP_POPD L"\n\n\npopd\n"
  113. #define DMP_DHCP L"\nset address name=%1!s! source=dhcp "
  114. #define DMP_STATIC L"\nset address name=%1!s! source=static "
  115. #define DMP_IPADDR1 L"addr=%1!s! mask=%2!s!"
  116. #define DMP_IPADDR2 L"\nadd address name=%1!s! addr=%2!s! mask=%3!s!"
  117. #define DMP_GATEWAY1 L"\nset address name=%1!s! gateway=none"
  118. #define DMP_GATEWAY2 L"\nset address name=%1!s! gateway=%2!s! gwmetric=%3!s!"
  119. #define DMP_GATEWAY3 L"\nadd address name=%1!s! gateway=%2!s! gwmetric=%3!s!"
  120. #define DMP_DNS_DHCP L"\nset dns name=%1!s! source=dhcp"
  121. #define DMP_DNS_STATIC_NONE L"\nset dns name=%1!s! source=static addr=none"
  122. #define DMP_DNS_STATIC_ADDR1 L"\nset dns name=%1!s! source=static addr=%2!s!"
  123. #define DMP_DNS_STATIC_ADDR2 L"\nadd dns name=%1!s! addr=%2!s!"
  124. #define DMP_WINS_DHCP L"\nset wins name=%1!s! source=dhcp"
  125. #define DMP_WINS_STATIC_NONE L"\nset wins name=%1!s! source=static addr=none"
  126. #define DMP_WINS_STATIC_ADDR1 L"\nset wins name=%1!s! source=static addr=%2!s!"
  127. #define DMP_WINS_STATIC_ADDR2 L"\nadd wins name=%1!s! addr=%2!s!"
  128. #define DMP_STRING_ARG L" %1!s!=%2!s!"
  129. #define DMP_INTEGER_ARG L" %1!s!=%2!d!"