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.

174 lines
3.4 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. routing\monitor2\ip\ipcfg.h
  5. Abstract:
  6. ProtoTypes for fns in ipcfg.c
  7. Revision History:
  8. Anand Mahalingam 7/10/98 Created
  9. --*/
  10. DWORD
  11. AddProtocolInfo(
  12. IN LPCWSTR pwszIfName,
  13. IN DWORD dwRoutingProtId,
  14. IN BOOL bInterface
  15. );
  16. DWORD
  17. DeleteProtocolInfo(
  18. IN LPCWSTR pwszIfName,
  19. IN DWORD dwRoutingProtId,
  20. IN BOOL bInterface
  21. );
  22. DWORD
  23. MakeIpRipGlobalInfo(
  24. OUT PBYTE *ppbStart,
  25. OUT PDWORD pdwSize
  26. );
  27. DWORD
  28. MakeIpRipInterfaceInfo(
  29. IN ROUTER_INTERFACE_TYPE rifType,
  30. OUT PBYTE *ppbStart,
  31. OUT PDWORD pdwSize
  32. );
  33. DWORD
  34. MakeIpOspfGlobalInfo(
  35. OUT PBYTE *ppbStart,
  36. OUT PDWORD pdwSize
  37. );
  38. DWORD
  39. MakeIpOspfInterfaceInfo(
  40. IN ROUTER_INTERFACE_TYPE rifType,
  41. OUT PBYTE *ppbStart,
  42. OUT PDWORD pdwSize
  43. );
  44. DWORD
  45. MakeProtocolBlock(
  46. DWORD dwProtId,
  47. BOOL bGlobal,
  48. DWORD dwIfType,
  49. PBYTE *ppbBlk,
  50. PDWORD pdwSize
  51. );
  52. DWORD
  53. AddDeleteRoutePrefLevel (
  54. IN PPROTOCOL_METRIC ppm,
  55. IN DWORD dwNumProto,
  56. IN BOOL bAdd
  57. );
  58. DWORD
  59. AddNewRoutePrefToBlock (
  60. IN PPRIORITY_INFO ppi,
  61. IN DWORD dwBlkSize,
  62. IN PPROTOCOL_METRIC ppm,
  63. IN DWORD dwNumProto,
  64. OUT PPRIORITY_INFO *pppi,
  65. OUT PDWORD pdwSize
  66. );
  67. DWORD
  68. DeleteRoutePrefFromBlock (
  69. IN PPRIORITY_INFO ppi,
  70. IN DWORD dwBlkSize,
  71. IN PPROTOCOL_METRIC ppm,
  72. IN DWORD dwNumProto,
  73. OUT PPRIORITY_INFO *pppi,
  74. OUT PDWORD pdwSize
  75. );
  76. DWORD
  77. SetRoutePrefLevel (
  78. IN PROTOCOL_METRIC pm
  79. );
  80. DWORD
  81. UpdateRtrPriority(
  82. IN PPRIORITY_INFO ppi,
  83. IN PROTOCOL_METRIC pm
  84. );
  85. DWORD
  86. SetGlobalConfigInfo(
  87. IN DWORD dwLoggingLevel
  88. );
  89. DWORD
  90. ShowRoutePref(
  91. HANDLE hFile OPTIONAL
  92. );
  93. DWORD
  94. ShowIpProtocol(
  95. VOID
  96. );
  97. DWORD
  98. ShowIpGlobal(
  99. IN HANDLE hFile OPTIONAL
  100. );
  101. DWORD
  102. ListIpInterface(
  103. VOID
  104. );
  105. DWORD
  106. ShowIpInterface(
  107. IN DWORD dwFormat,
  108. IN LPCWSTR pwszIfName,
  109. IN OUT PDWORD pdwNumRows
  110. );
  111. #define FORMAT_TABLE 1
  112. #define FORMAT_VERBOSE 2
  113. #define FORMAT_DUMP 3
  114. DWORD
  115. UpdateInterfaceStatusInfo(
  116. IN DWORD dwAction,
  117. IN LPCWSTR pwszIfName,
  118. IN DWORD dwStatus
  119. );
  120. DWORD
  121. CreateDumpFile(
  122. IN LPCWSTR pwszName,
  123. OUT PHANDLE phFile
  124. );
  125. VOID
  126. DumpIpInformation(
  127. HANDLE hFile
  128. );
  129. VOID
  130. CloseDumpFile(
  131. HANDLE hFile
  132. );
  133. DWORD
  134. UpdateAutoStaticRoutes(
  135. IN LPCWSTR pwszIfName
  136. );
  137. PWCHAR
  138. GetProtoProtoString(
  139. IN DWORD dwProtoType,
  140. IN DWORD dwProtoVendor,
  141. IN DWORD dwProtoProto
  142. );