Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1122)

Unified Diff: src/bridge/model/bridge-net-device.cc

Issue 277230044: class of service
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/bridge/model/bridge-net-device.cc
===================================================================
--- a/src/bridge/model/bridge-net-device.cc
+++ b/src/bridge/model/bridge-net-device.cc
@@ -23,6 +23,7 @@
#include "ns3/boolean.h"
#include "ns3/simulator.h"
#include "ns3/uinteger.h"
+#include "ns3/class-of-service-tag.h"
namespace ns3 {
@@ -384,6 +385,11 @@
BridgeNetDevice::SendFrom (Ptr<Packet> packet, const Address& src, const Address& dest, uint16_t protocolNumber)
{
NS_LOG_FUNCTION_NOARGS ();
+
+ // Class of Service is ignored by this NetDevice
+ ClassOfServiceTag cosTag;
+ packet->RemovePacketTag (cosTag);
+
Mac48Address dst = Mac48Address::ConvertFrom (dest);
// try to use the learned state if data is unicast

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b