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.

109 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1997-1998 Microsoft Corporation
  3. Module Name:
  4. rtmcnfg.h
  5. Abstract:
  6. Configuration Information for RTMv2 DLL
  7. Author:
  8. Chaitanya Kodeboyina (chaitk) 17-Aug-1998
  9. Revision History:
  10. --*/
  11. #ifndef __ROUTING_RTMCNFG_H__
  12. #define __ROUTING_RTMCNFG_H__
  13. #ifdef __cplusplus
  14. extern "C"
  15. {
  16. #endif
  17. //
  18. // RTM Config Information for an RTM instance
  19. //
  20. typedef struct _RTM_INSTANCE_CONFIG
  21. {
  22. ULONG DummyConfig; // Nothing in the config at present
  23. }
  24. RTM_INSTANCE_CONFIG, *PRTM_INSTANCE_CONFIG;
  25. //
  26. // RTM Config Information for an address family
  27. //
  28. typedef struct _RTM_ADDRESS_FAMILY_CONFIG
  29. {
  30. UINT AddressSize; // Address size in this address family
  31. RTM_VIEW_SET ViewsSupported; // Views supported by this addr family
  32. UINT MaxOpaqueInfoPtrs; // Number of opaque ptr slots in dest
  33. UINT MaxNextHopsInRoute; // Max. number of equal cost next-hops
  34. UINT MaxHandlesInEnum; // Max. number of handles returned in
  35. // any RTMv2 call that returns handles
  36. UINT MaxChangeNotifyRegns; // Max. number of change notification
  37. // registrations at any single instant
  38. }
  39. RTM_ADDRESS_FAMILY_CONFIG, *PRTM_ADDRESS_FAMILY_CONFIG;
  40. //
  41. // Functions to read and write RTM configuration information
  42. //
  43. DWORD
  44. RtmWriteDefaultConfig (
  45. IN USHORT RtmInstanceId
  46. );
  47. DWORD
  48. WINAPI
  49. RtmReadInstanceConfig (
  50. IN USHORT RtmInstanceId,
  51. OUT PRTM_INSTANCE_CONFIG InstanceConfig
  52. );
  53. DWORD
  54. WINAPI
  55. RtmWriteInstanceConfig (
  56. IN USHORT RtmInstanceId,
  57. IN PRTM_INSTANCE_CONFIG InstanceConfig
  58. );
  59. DWORD
  60. WINAPI
  61. RtmReadAddressFamilyConfig (
  62. IN USHORT RtmInstanceId,
  63. IN USHORT AddressFamily,
  64. OUT PRTM_ADDRESS_FAMILY_CONFIG AddrFamilyConfig
  65. );
  66. DWORD
  67. WINAPI
  68. RtmWriteAddressFamilyConfig (
  69. IN USHORT RtmInstanceId,
  70. IN USHORT AddressFamily,
  71. IN PRTM_ADDRESS_FAMILY_CONFIG AddrFamilyConfig
  72. );
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76. #endif //__ROUTING_RTMCNFG_H__