Skip to content

Instantly share code, notes, and snippets.

@guilleiguaran
Created May 18, 2014 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guilleiguaran/8d091b45be390c1eaa3d to your computer and use it in GitHub Desktop.
Save guilleiguaran/8d091b45be390c1eaa3d to your computer and use it in GitHub Desktop.
diff -r 67ee979a1807 src/applications/model/onoff-application.cc
--- a/src/applications/model/onoff-application.cc Tue Apr 08 14:07:33 2014 -0700
+++ b/src/applications/model/onoff-application.cc Sun May 18 14:18:06 2014 -0500
@@ -39,6 +39,7 @@
#include "ns3/trace-source-accessor.h"
#include "onoff-application.h"
#include "ns3/udp-socket-factory.h"
+#include "ns3/qos-tag.h"
#include "ns3/string.h"
#include "ns3/pointer.h"
@@ -270,6 +271,7 @@
NS_ASSERT (m_sendEvent.IsExpired ());
Ptr<Packet> packet = Create<Packet> (m_pktSize);
+ packet->AddPacketTag (QosTag (UP_VO));
m_txTrace (packet);
m_socket->Send (packet);
m_totBytes += m_pktSize;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment