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.

105 lines
1.8 KiB

  1. /*++
  2. Copyright(c) 1999-2000 Microsoft Corporation
  3. Module Name:
  4. brdgsta.h
  5. Abstract:
  6. Ethernet MAC level bridge
  7. Spanning-Tree Algorithm header file
  8. Author:
  9. Mark Aiken
  10. (original bridge by Jameel Hyder)
  11. Environment:
  12. Kernel mode driver
  13. Revision History:
  14. June 2000 - Original version
  15. --*/
  16. // ===========================================================================
  17. //
  18. // PROTOTYPES
  19. //
  20. // ===========================================================================
  21. NTSTATUS
  22. BrdgSTADriverInit();
  23. VOID
  24. BrdgSTACleanup();
  25. VOID
  26. BrdgSTADeferredInit(
  27. IN PUCHAR pBridgeMACAddress
  28. );
  29. VOID
  30. BrdgSTAEnableAdapter(
  31. IN PADAPT pAdapt
  32. );
  33. VOID
  34. BrdgSTAInitializeAdapter(
  35. IN PADAPT pAdapt
  36. );
  37. VOID
  38. BrdgSTADisableAdapter(
  39. IN PADAPT pAdapt
  40. );
  41. VOID
  42. BrdgSTAShutdownAdapter(
  43. IN PADAPT pAdapt
  44. );
  45. VOID
  46. BrdgSTAUpdateAdapterCost(
  47. IN PADAPT pAdapt,
  48. ULONG LinkSpeed
  49. );
  50. VOID
  51. BrdgSTAReceivePacket(
  52. IN PADAPT pAdapt,
  53. IN PNDIS_PACKET pPacket
  54. );
  55. VOID
  56. BrdgSTAGetAdapterSTAInfo(
  57. IN PADAPT pAdapt,
  58. PBRIDGE_STA_ADAPTER_INFO pInfo
  59. );
  60. VOID
  61. BrdgSTAGetSTAInfo(
  62. PBRIDGE_STA_GLOBAL_INFO pInfo
  63. );
  64. VOID
  65. BrdgSTACancelTimersGPO();
  66. VOID
  67. BrdgSTARestartTimersGPO();
  68. VOID
  69. BrdgSTAResetSTAInfoGPO();
  70. // ===========================================================================
  71. //
  72. // GLOBALS
  73. //
  74. // ===========================================================================
  75. // If TRUE, the STA is disabled for the lifetime of the bridge.
  76. // This global does not change after initialization time.
  77. extern BOOLEAN gDisableSTA;