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.

128 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1999, Microsoft Corporation
  3. Module Name:
  4. net\routing\netsh\ip\protocols\msdpcfg.h
  5. Abstract:
  6. MSDP configuration declarations
  7. Author:
  8. Dave Thaler (peeyushr) 1-Mar-1999
  9. Revision History:
  10. --*/
  11. #ifndef _NETSH_MSDPCFG_H_
  12. #define _NETSH_MSDPCFG_H_
  13. #define MSDP_IPADDR_LENGTH 16
  14. #define MAX_MESSAGE_SIZE 256
  15. #define MSDP_INTF_VRID_MASK 0x00000001
  16. #define MSDP_INTF_IPADDR_MASK 0x00000002
  17. #define MSDP_INTF_AUTH_MASK 0x00000004
  18. #define MSDP_INTF_PASSWD_MASK 0x00000008
  19. #define MSDP_INTF_ADVT_MASK 0x00000010
  20. #define MSDP_INTF_PRIO_MASK 0x00000020
  21. #define MSDP_INTF_PREEMPT_MASK 0x00000040
  22. DWORD
  23. GetMsdpGlobalConfig(
  24. OUT PMSDP_GLOBAL_CONFIG *ppGlobalInfo
  25. );
  26. DWORD
  27. SetMsdpGlobalConfig(
  28. OUT PMSDP_GLOBAL_CONFIG pGlobalInfo
  29. );
  30. DWORD
  31. MakeMsdpGlobalConfig(
  32. OUT PUCHAR* GlobalInfo,
  33. OUT PULONG GlobalInfoSize
  34. );
  35. DWORD
  36. CreateMsdpGlobalConfig(
  37. OUT PMSDP_GLOBAL_CONFIG* GlobalInfo,
  38. IN DWORD LoggingLevel
  39. );
  40. ULONG
  41. MakeMsdpIPv4PeerConfig(
  42. PMSDP_IPV4_PEER_CONFIG *ppPeer
  43. );
  44. DWORD
  45. SetMsdpInterfaceConfig(
  46. PWCHAR pwszInterfaceName,
  47. PMSDP_IPV4_PEER_CONFIG pConfigInfo
  48. );
  49. DWORD
  50. GetMsdpInterfaceConfig(
  51. PWCHAR pwszInterfaceName,
  52. PMSDP_IPV4_PEER_CONFIG *ppConfigInfo
  53. );
  54. DWORD
  55. ShowMsdpGlobalInfo(
  56. IN DWORD dwFormat
  57. );
  58. DWORD
  59. ShowMsdpPeerInfo(
  60. DWORD dwFormat,
  61. PWCHAR pwszPeerAddress,
  62. PWCHAR pwszPeerName
  63. );
  64. DWORD
  65. UpdateMsdpGlobalInfo(
  66. PMSDP_GLOBAL_CONFIG GlobalInfo
  67. );
  68. DWORD
  69. UpdateMsdpPeerInfo(
  70. PWCHAR PeerName,
  71. PMSDP_IPV4_PEER_CONFIG PeerInfo,
  72. ULONG BitVector,
  73. BOOL AddPeer
  74. );
  75. DWORD
  76. MsdpAddIPv4PeerInterface(
  77. IN LPCWSTR pwszMachineName,
  78. IN LPCWSTR pwszInterfaceName,
  79. IN PMSDP_IPV4_PEER_CONFIG pPeer
  80. );
  81. DWORD
  82. MsdpDeletePeerInterface(
  83. IN LPCWSTR pwszMachineName,
  84. IN LPCWSTR pwszInterfaceName
  85. );
  86. DWORD
  87. GetMsdpPeerInfoSize(
  88. PMSDP_IPV4_PEER_CONFIG PeerInfo
  89. );
  90. //
  91. // IP address conversion macros:
  92. //
  93. // calls inet_ntoa directly on a DWORD, by casting it as an IN_ADDR.
  94. //
  95. #define INET_NTOA(dw) inet_ntoa( *(PIN_ADDR)&(dw) )
  96. #define FORMAT_TABLE 1
  97. #define FORMAT_VERBOSE 2
  98. #define FORMAT_DUMP 3
  99. #endif // _NETSH_MSDPCFG_H_