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.

99 lines
2.6 KiB

  1. //=============================================================================
  2. // Copyright (c) 1998 Microsoft Corporation
  3. // Module Name: debug.c
  4. // Abstract:
  5. //
  6. // Author: K.S.Lokesh (lokeshs@) 1-1-98
  7. //=============================================================================
  8. #include "pchdvmrp.h"
  9. #pragma hdrstop
  10. VOID
  11. DebugPrintGlobalConfig(
  12. PDVMRP_GLOBAL_CONFIG pGlobalConfig
  13. )
  14. {
  15. Trace0(CONFIG, "\n================================================");
  16. Trace0(CONFIG, "Printing Dvmrp Global Config");
  17. Trace1(CONFIG, "MajorVersion: 0x%x",
  18. pGlobalConfig->MajorVersion);
  19. Trace1(CONFIG, "MinorVersion: 0x%x",
  20. pGlobalConfig->MinorVersion);
  21. Trace1(CONFIG, "LoggingLevel: %d",
  22. pGlobalConfig->LoggingLevel);
  23. Trace1(CONFIG, "RouteReportInterval: %d",
  24. pGlobalConfig->RouteReportInterval);
  25. Trace1(CONFIG, "RouteExpirationInterval: %d",
  26. pGlobalConfig->RouteExpirationInterval);
  27. Trace1(CONFIG, "RouteHolddownInterval: %d",
  28. pGlobalConfig->RouteHolddownInterval);
  29. Trace1(CONFIG, "PruneLifetimeInterval: %d",
  30. pGlobalConfig->PruneLifetimeInterval);
  31. return;
  32. }
  33. VOID
  34. DebugPrintIfConfig(
  35. ULONG IfIndex,
  36. PDVMRP_IF_CONFIG pIfConfig
  37. )
  38. {
  39. DWORD i;
  40. PDVMRP_PEER_FILTER pPeerFilter;
  41. Trace0(CONFIG, "\n================================================");
  42. Trace1(CONFIG, "Printing Dvmrp Config for Interface:%d", IfIndex);
  43. Trace1(CONFIG, "Metric: %d",
  44. pIfConfig->Metric);
  45. Trace1(CONFIG, "ProbeInterval: %d",
  46. pIfConfig->ProbeInterval);
  47. Trace1(CONFIG, "PeerTimeoutInterval: %d",
  48. pIfConfig->PeerTimeoutInterval);
  49. Trace1(CONFIG, "MinTriggeredUpdateInterval: %d",
  50. pIfConfig->MinTriggeredUpdateInterval);
  51. Trace1(CONFIG, "PeerFilterMode: %d",
  52. pIfConfig->PeerFilterMode);
  53. Trace1(CONFIG, "NumPeerFilters: %d",
  54. pIfConfig->NumPeerFilters);
  55. pPeerFilter = GET_FIRST_DVMRP_PEER_FILTER(pIfConfig);
  56. for (i=0; i<pIfConfig->NumPeerFilters; i++,pPeerFilter++) {
  57. CHAR Str[16];
  58. sprintf(Str, "%d.%d.%d.%d", PRINT_IPADDR(pPeerFilter->IpAddr));
  59. Trace2(CONFIG, " %-16s %d.%d.%d.%d", Str, pPeerFilter->Mask);
  60. }
  61. return;
  62. }//end _DebugPrintIfConfig
  63. //----------------------------------------------------------------------------
  64. //
  65. //----------------------------------------------------------------------------