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.

82 lines
2.1 KiB

  1. /*++
  2. Copyright(c) 1999-2000 Microsoft Corporation
  3. Module Name:
  4. brdgstad.h
  5. Abstract:
  6. Ethernet MAC level bridge.
  7. STA type and structure declarations 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. // A number of type and constant definitions are in bioctl.h, which must be
  18. // included before this file.
  19. //
  20. // ===========================================================================
  21. //
  22. // STRUCTURES
  23. //
  24. // ===========================================================================
  25. // STA information associated with every port (adapter)
  26. typedef struct _STA_ADAPT_INFO
  27. {
  28. // Unique ID for this port
  29. PORT_ID ID;
  30. // Cost of this link
  31. ULONG PathCost;
  32. // The bridge reported as root on this link
  33. UCHAR DesignatedRootID[BRIDGE_ID_LEN];
  34. // The reported cost to reach the root on this link
  35. PATH_COST DesignatedCost;
  36. // The designated bridge on this link
  37. UCHAR DesignatedBridgeID[BRIDGE_ID_LEN];
  38. // The designated port on this link
  39. PORT_ID DesignatedPort;
  40. // Topology Change Acknowledge for this link
  41. BOOLEAN bTopologyChangeAck;
  42. // Whether a BPDU transmit was attempted while not allowed
  43. // because of the maximum inter-BPDU time enforcement
  44. BOOLEAN bConfigPending;
  45. // Timer to age out the last received config information on this link
  46. BRIDGE_TIMER MessageAgeTimer;
  47. // Timestamp of when the last config we received was generated
  48. // (this is gMaxAge - (time left on MessageAgeTimer) ms ago)
  49. // When the message age timer is not running, this is set to 0L.
  50. ULONG LastConfigTime;
  51. // Timer for transitioning between port states
  52. BRIDGE_TIMER ForwardDelayTimer;
  53. // Timer for preventing BPDUs from being transmitted too frequently
  54. BRIDGE_TIMER HoldTimer;
  55. } STA_ADAPT_INFO, *PSTA_ADAPT_INFO;