Add structure for identifying bridges in BPDU's in the manner specified by 802.11D
authorRichard Whitehouse <github@richardwhiuk.com>
Sun, 17 Apr 2011 21:05:05 +0000 (22:05 +0100)
committerRichard Whitehouse <github@richardwhiuk.com>
Sun, 17 Apr 2011 21:05:05 +0000 (22:05 +0100)
src/devices/bridge/model/bpdu-header.h

index eb2dc57404d93ff8cd3735de2776bad7f017db8f..18df92a4127ac7bf9d23fa9f666b7d6ce9a09482 100644 (file)
@@ -22,6 +22,7 @@
 #define BRIDGE_BPDU_HEADER_H
 
 #include "ns3/header.h"
+#include "ns3/mac48-address.h"
 #include <string>
 
 namespace ns3 {
@@ -58,6 +59,11 @@ private:
 
 };
 
+struct BpduBridgeIdentifier {
+       uint16_t priority;
+       Mac48Address address;
+};
+
 /**
  * \ingroup bridge
  * \brief The packet header for an Configuration BPDU packet header