Source code of Windows XP (NT5)
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.

112 lines
2.1 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 6
  14. typedef
  15. DWORD
  16. (*PINFOCB_GET_IF_INFO)(
  17. IN PICB picb,
  18. IN OUT PRTR_TOC_ENTRY pToc,
  19. IN OUT PDWORD pdwTocIndex,
  20. IN OUT PBYTE pbDataPtr,
  21. IN PRTR_INFO_BLOCK_HEADER pInfoHdr,
  22. IN OUT PDWORD pdwInfoSize
  23. );
  24. typedef
  25. DWORD
  26. (*PINFOCB_SET_IF_INFO)(
  27. IN PICB picb,
  28. IN PRTR_INFO_BLOCK_HEADER pInterfaceInfo
  29. );
  30. typedef
  31. DWORD
  32. (*PINFOCB_BIND_IF)(
  33. IN PICB picb
  34. );
  35. typedef
  36. DWORD
  37. (*PINFOCB_GET_GLOB_INFO)(
  38. IN OUT PRTR_TOC_ENTRY pToc,
  39. IN OUT PDWORD pdwTocIndex,
  40. IN OUT PBYTE pbDataPtr,
  41. IN PRTR_INFO_BLOCK_HEADER pInfoHdr,
  42. IN OUT PDWORD pdwInfoSize
  43. );
  44. typedef struct _INFO_CB
  45. {
  46. PCHAR pszInfoName;
  47. PINFOCB_GET_IF_INFO pfnGetInterfaceInfo;
  48. PINFOCB_SET_IF_INFO pfnSetInterfaceInfo;
  49. PINFOCB_BIND_IF pfnBindInterface;
  50. PINFOCB_GET_GLOB_INFO pfnGetGlobalInfo;
  51. }INFO_CB, *PINFO_CB;
  52. PRTR_TOC_ENTRY
  53. GetPointerToTocEntry(
  54. DWORD dwType,
  55. PRTR_INFO_BLOCK_HEADER pInfoHdr
  56. );
  57. DWORD
  58. GetSizeOfInterfaceConfig(
  59. PICB picb
  60. );
  61. DWORD
  62. GetInterfaceConfiguration(
  63. PICB picb,
  64. PRTR_INFO_BLOCK_HEADER pInfoHdrAndBuffer,
  65. DWORD dwInfoSize
  66. );
  67. DWORD
  68. GetInterfaceRoutingProtoInfo(
  69. PICB picb,
  70. PPROTO_CB pProtoCbPtr,
  71. PRTR_TOC_ENTRY pToc,
  72. PBYTE pbDataPtr,
  73. PRTR_INFO_BLOCK_HEADER pInfoHdrAndBuffer,
  74. PDWORD pdwSize
  75. );
  76. DWORD
  77. GetGlobalConfiguration(
  78. PRTR_INFO_BLOCK_HEADER pInfoHdrAndBuffer,
  79. DWORD dwInfoSize
  80. );
  81. DWORD
  82. GetSizeOfGlobalInfo(
  83. VOID
  84. );