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.

118 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1999, Microsoft Corporation
  3. Module Name:
  4. net\routing\netsh\ip\protocols\vrrpcfg.h
  5. Abstract:
  6. VRRP configuration declarations
  7. Author:
  8. Peeyush Ranjan (peeyushr) 1-Mar-1999
  9. Revision History:
  10. --*/
  11. #ifndef _NETSH_VRRPHLPCFG_H_
  12. #define _NETSH_VRRPHLPCFG_H_
  13. #define VRRP_IPADDR_LENGTH 16
  14. #define MAX_MESSAGE_SIZE 256
  15. #define VRRP_INTF_VRID_MASK 0x00000001
  16. #define VRRP_INTF_IPADDR_MASK 0x00000002
  17. #define VRRP_INTF_AUTH_MASK 0x00000004
  18. #define VRRP_INTF_PASSWD_MASK 0x00000008
  19. #define VRRP_INTF_ADVT_MASK 0x00000010
  20. #define VRRP_INTF_PRIO_MASK 0x00000020
  21. #define VRRP_INTF_PREEMPT_MASK 0x00000040
  22. ULONG
  23. MakeVrrpGlobalInfo(
  24. OUT PUCHAR* GlobalInfo,
  25. OUT PULONG GlobalInfoSize
  26. );
  27. ULONG
  28. CreateVrrpGlobalInfo(
  29. OUT PVRRP_GLOBAL_CONFIG* GlobalInfo,
  30. IN DWORD LoggingLevel
  31. );
  32. ULONG
  33. MakeVrrpInterfaceInfo(
  34. ROUTER_INTERFACE_TYPE InterfaceType,
  35. OUT PUCHAR* InterfaceInfo,
  36. OUT PULONG InterfaceInfoSize
  37. );
  38. ULONG
  39. MakeVrrpVRouterInfo(
  40. IN PUCHAR VRouterInfo
  41. );
  42. ULONG
  43. ShowVrrpGlobalInfo(
  44. HANDLE FileHandle
  45. );
  46. ULONG
  47. ShowVrrpAllInterfaceInfo(
  48. HANDLE FileHandle
  49. );
  50. ULONG
  51. ShowVrrpInterfaceInfo(
  52. HANDLE FileHandle,
  53. PWCHAR InterfaceName
  54. );
  55. ULONG
  56. UpdateVrrpGlobalInfo(
  57. PVRRP_GLOBAL_CONFIG GlobalInfo
  58. );
  59. ULONG
  60. UpdateVrrpInterfaceInfo(
  61. PWCHAR InterfaceName,
  62. PVRRP_VROUTER_CONFIG VRouterInfo,
  63. ULONG BitVector,
  64. BOOL AddInterface
  65. );
  66. DWORD
  67. GetVrrpIfInfoSize(
  68. PVRRP_IF_CONFIG InterfaceInfo
  69. );
  70. ULONG
  71. DeleteVrrpInterfaceInfo(
  72. PWCHAR InterfaceName,
  73. PVRRP_VROUTER_CONFIG VRouterInfo,
  74. ULONG BitVector,
  75. BOOL DeleteInterface
  76. );
  77. ULONG
  78. SetArpRetryCount(
  79. DWORD Value
  80. );
  81. //
  82. // IP address conversion macros:
  83. //
  84. // calls inet_ntoa directly on a DWORD, by casting it as an IN_ADDR.
  85. //
  86. #define INET_NTOA(dw) inet_ntoa( *(PIN_ADDR)&(dw) )
  87. BOOL
  88. FoundIpAddress(
  89. DWORD IPAddress
  90. );
  91. #endif // _NETSH_VRRPHLPCFG_H_