Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't copy&change ns3::point-to-point-helper
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 25 Mar 2016 13:25:32 +0000 (14:25 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 25 Mar 2016 13:25:36 +0000 (14:25 +0100)
I'm sure there was a better way to force RED queues for routers,
but I dont' care because I decided that there is no reason to force RED queues for routers.

So kill dat code, dude.

src/surf/network_ns3.cpp
src/surf/ns3/my-point-to-point-helper.cc
src/surf/ns3/my-point-to-point-helper.h
src/surf/ns3/ns3_simulator.h

index f3ee8d4..dd5eb18 100644 (file)
@@ -538,7 +538,7 @@ void ns3_add_link(int src, int dst, char *bw, char *lat)
     LogComponentEnable("UdpEchoServerApplication", ns3::LOG_LEVEL_INFO);
   }
 
-  ns3::MyPointToPointHelper pointToPoint;
+  ns3::PointToPointHelper pointToPoint;
 
   ns3::NetDeviceContainer netA;
   ns3::Ipv4AddressHelper address;
index bfee854..1f92ccf 100644 (file)
@@ -57,7 +57,6 @@ namespace ns3 {
 MyPointToPointHelper::MyPointToPointHelper ()
 {
   m_queueFactory.SetTypeId ("ns3::DropTailQueue");
-  m_queueFactory_red.SetTypeId ("ns3::RedQueue");
   m_deviceFactory.SetTypeId ("ns3::PointToPointNetDevice");
   m_channelFactory.SetTypeId ("ns3::PointToPointChannel");
   m_remoteChannelFactory.SetTypeId ("ns3::PointToPointRemoteChannel");
index e199cee..9a2acf3 100644 (file)
@@ -189,7 +189,6 @@ private:
     bool explicitFilename);
 
   ObjectFactory m_queueFactory;
-  ObjectFactory m_queueFactory_red;
   ObjectFactory m_channelFactory;
   ObjectFactory m_remoteChannelFactory;
   ObjectFactory m_deviceFactory;
index 0a030f9..89c10d2 100644 (file)
 #include <cstdint>
 
 #include "ns3_interface.h"
-#include "ns3/core-module.h"
-#include "my-point-to-point-helper.h"
-
-#include "ns3/node.h"
-#include "ns3/global-route-manager.h"
-#include "ns3/csma-helper.h"
-#include "ns3/internet-stack-helper.h"
-#include "ns3/ipv4-address-helper.h"
-#include "ns3/point-to-point-helper.h"
-#include "ns3/packet-sink-helper.h"
-#include "ns3/inet-socket-address.h"
-#include "ns3/tcp-socket-factory.h"
+#include <ns3/core-module.h>
+
+#include <ns3/node.h>
+#include <ns3/global-route-manager.h>
+#include <ns3/csma-helper.h>
+#include <ns3/internet-stack-helper.h>
+#include <ns3/ipv4-address-helper.h>
+#include <ns3/point-to-point-helper.h>
+#include <ns3/packet-sink-helper.h>
+#include <ns3/inet-socket-address.h>
+#include <ns3/tcp-socket-factory.h>
 
 class SgFlow {
 public: