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.

115 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. routing\ip\rtrmgr\info.h
  5. Abstract:
  6. Header for info.c
  7. Revision History:
  8. Gurdeep Singh Pall 6/15/95 Created
  9. --*/
  10. //
  11. // Routes, filters, demand filters, nat, mcast boundaries
  12. //
  13. #define NUM_INFO_CBS 5
  14. #ifdef KSL_IPINIP
  15. #define NUM_INFO_CBS 6
  16. #endif //KSL_IPINIP
  17. typedef
  18. DWORD
  19. (*PINFOCB_GET_IF_INFO)(
  20. IN PICB picb,
  21. IN OUT PRTR_TOC_ENTRY pToc,
  22. IN OUT PDWORD pdwTocIndex,
  23. IN OUT PBYTE pbDataPtr,
  24. IN PRTR_INFO_BLOCK_HEADER pInfoHdr,
  25. IN OUT PDWORD pdwInfoSize
  26. );
  27. typedef
  28. DWORD
  29. (*PINFOCB_SET_IF_INFO)(
  30. IN PICB picb,
  31. IN PRTR_INFO_BLOCK_HEADER pInterfaceInfo
  32. );
  33. typedef
  34. DWORD
  35. (*PINFOCB_BIND_IF)(
  36. IN PICB picb
  37. );
  38. typedef
  39. DWORD
  40. (*PINFOCB_GET_GLOB_INFO)(
  41. IN OUT PRTR_TOC_ENTRY pToc,
  42. IN OUT PDWORD pdwTocIndex,
  43. IN OUT PBYTE pbDataPtr,
  44. IN PRTR_INFO_BLOCK_HEADER pInfoHdr,
  45. IN OUT PDWORD pdwInfoSize
  46. );
  47. typedef struct _INFO_CB
  48. {
  49. PCHAR pszInfoName;
  50. PINFOCB_GET_IF_INFO pfnGetInterfaceInfo;
  51. PINFOCB_SET_IF_INFO pfnSetInterfaceInfo;
  52. PINFOCB_BIND_IF pfnBindInterface;
  53. PINFOCB_GET_GLOB_INFO pfnGetGlobalInfo;
  54. }INFO_CB, *PINFO_CB;
  55. PRTR_TOC_ENTRY
  56. GetPointerToTocEntry(
  57. DWORD dwType,
  58. PRTR_INFO_BLOCK_HEADER pInfoHdr
  59. );
  60. DWORD
  61. GetSizeOfInterfaceConfig(
  62. PICB picb
  63. );
  64. DWORD
  65. GetInterfaceConfiguration(
  66. PICB picb,
  67. PRTR_INFO_BLOCK_HEADER pInfoHdrAndBuffer,
  68. DWORD dwInfoSize
  69. );
  70. DWORD
  71. GetInterfaceRoutingProtoInfo(
  72. PICB picb,
  73. PPROTO_CB pProtoCbPtr,
  74. PRTR_TOC_ENTRY pToc,
  75. PBYTE pbDataPtr,
  76. PRTR_INFO_BLOCK_HEADER pInfoHdrAndBuffer,
  77. PDWORD pdwSize
  78. );
  79. DWORD
  80. GetGlobalConfiguration(
  81. PRTR_INFO_BLOCK_HEADER pInfoHdrAndBuffer,
  82. DWORD dwInfoSize
  83. );
  84. DWORD
  85. GetSizeOfGlobalInfo(
  86. VOID
  87. );