Converts csma, emu, tap-bridge, point-to-point, wifi and wimax modules into modular format
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "ns3/contrib-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
#include "ns3/energy-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv6-static-routing-helper.h"
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv6-static-routing-helper.h"
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv6-header.h"
|
||||
using namespace ns3;
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
#include "ns3/ipv6-routing-table-entry.h"
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
#include "ns3/radvd.h"
|
||||
|
||||
@@ -48,6 +48,8 @@
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/global-route-manager.h"
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <fstream>
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
@@ -70,6 +70,9 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
#include "ns3/csma-net-device.h"
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-static-routing.h"
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
#include "ns3/csma-net-device.h"
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
@@ -38,7 +38,9 @@
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
#include <cassert>
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
@@ -41,6 +41,8 @@
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/flow-monitor-helper.h"
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv6-static-routing-helper.h"
|
||||
|
||||
|
||||
@@ -24,9 +24,11 @@
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
||||
#include "ns3/csma-net-device.h"
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-static-routing-helper.h"
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/ipv4-static-routing-helper.h"
|
||||
#include "ns3/ipv4-list-routing-helper.h"
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-static-routing-helper.h"
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
|
||||
#include "ns3/stats-module.h"
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
#include <fstream>
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/packet-sink.h"
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
@@ -51,6 +51,8 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-static-routing-helper.h"
|
||||
#include "ns3/ipv4-list-routing-helper.h"
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
@@ -15,11 +15,13 @@
|
||||
*/
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
// Default Network Topology
|
||||
|
||||
@@ -25,7 +25,9 @@
|
||||
|
||||
#include <fstream>
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <fstream>
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <fstream>
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/contrib-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/olsr-helper.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
#include "ns3/contrib-module.h"
|
||||
#include "ns3/random-variable.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/flow-monitor-helper.h"
|
||||
#include "ns3/olsr-helper.h"
|
||||
#include "ns3/ipv4-static-routing-helper.h"
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "ns3/wifi-module.h"
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
#include "ns3/internet-module.h"
|
||||
|
||||
//This is a simple example in order to show how 802.11n frame aggregation feature (A-MSDU) works.
|
||||
//
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/contrib-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/contrib-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
@@ -35,7 +35,9 @@
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/flow-monitor-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/contrib-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/olsr-helper.h"
|
||||
#include "ns3/ipv4-static-routing-helper.h"
|
||||
#include "ns3/ipv4-list-routing-helper.h"
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/contrib-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/contrib-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
@@ -86,6 +86,7 @@
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/contrib-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/bridge-helper.h"
|
||||
#include <vector>
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/bridge-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/bridge-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-static-routing-helper.h"
|
||||
#include "ns3/ipv4-list-routing-helper.h"
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-star-helper.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
@@ -3,14 +3,21 @@
|
||||
def build(bld):
|
||||
obj = bld.create_ns3_module('csma', ['network'])
|
||||
obj.source = [
|
||||
'backoff.cc',
|
||||
'csma-net-device.cc',
|
||||
'csma-channel.cc',
|
||||
'model/backoff.cc',
|
||||
'model/csma-net-device.cc',
|
||||
'model/csma-channel.cc',
|
||||
'helper/csma-helper.cc',
|
||||
'helper/csma-star-helper.cc',
|
||||
]
|
||||
headers = bld.new_task_gen('ns3header')
|
||||
headers.module = 'csma'
|
||||
headers.source = [
|
||||
'backoff.h',
|
||||
'csma-net-device.h',
|
||||
'csma-channel.h',
|
||||
'model/backoff.h',
|
||||
'model/csma-net-device.h',
|
||||
'model/csma-channel.h',
|
||||
'helper/csma-helper.h',
|
||||
'helper/csma-star-helper.h',
|
||||
]
|
||||
|
||||
if bld.env['ENABLE_EXAMPLES']:
|
||||
bld.add_subdirs('examples')
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
|
||||
#include "ns3/abort.h"
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/emu-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
@@ -88,7 +89,7 @@ main (int argc, char *argv[])
|
||||
cmd.Parse (argc, argv);
|
||||
|
||||
Ipv4Address remoteIp (remote.c_str ());
|
||||
Ipv4Address localIp ("1.2.3.4");
|
||||
Ipv4Address localIp ("192.168.1.94");
|
||||
NS_ABORT_MSG_IF (localIp == "1.2.3.4", "You must change the local IP address before running this example");
|
||||
|
||||
Ipv4Mask localMask ("255.255.255.0");
|
||||
@@ -170,7 +171,7 @@ main (int argc, char *argv[])
|
||||
// the default gateway on your host and add it below, replacing the
|
||||
// "1.2.3.4" string.
|
||||
//
|
||||
Ipv4Address gateway ("1.2.3.4");
|
||||
Ipv4Address gateway ("192.168.1.254");
|
||||
NS_ABORT_MSG_IF (gateway == "1.2.3.4", "You must change the gateway IP address before running this example");
|
||||
|
||||
Ipv4StaticRoutingHelper ipv4RoutingHelper;
|
||||
@@ -64,6 +64,7 @@
|
||||
#include <fstream>
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/emu-helper.h"
|
||||
|
||||
@@ -26,23 +26,26 @@ def build(bld):
|
||||
headers = bld.new_task_gen('ns3header')
|
||||
headers.module = 'emu'
|
||||
headers.source = [
|
||||
'emu.h',
|
||||
'doc/emu.h',
|
||||
]
|
||||
|
||||
env = bld.env_of_name('default')
|
||||
if env['ENABLE_EMU']:
|
||||
module.source.extend([
|
||||
'emu-net-device.cc',
|
||||
'emu-encode-decode.cc',
|
||||
'model/emu-net-device.cc',
|
||||
'model/emu-encode-decode.cc',
|
||||
'helper/emu-helper.cc',
|
||||
])
|
||||
headers.source.extend([
|
||||
'emu-net-device.h',
|
||||
'model/emu-net-device.h',
|
||||
'helper/emu-helper.h',
|
||||
])
|
||||
|
||||
obj = bld.create_suid_program('emu-sock-creator')
|
||||
obj.source = [
|
||||
'emu-sock-creator.cc',
|
||||
'emu-encode-decode.cc',
|
||||
'model/emu-sock-creator.cc',
|
||||
'model/emu-encode-decode.cc',
|
||||
]
|
||||
|
||||
|
||||
if bld.env['ENABLE_EXAMPLES']:
|
||||
bld.add_subdirs('examples')
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/contrib-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/lte-module.h"
|
||||
#include <iostream>
|
||||
#include "ns3/global-route-manager.h"
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/contrib-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/lte-module.h"
|
||||
#include <iostream>
|
||||
#include "ns3/global-route-manager.h"
|
||||
|
||||
@@ -47,14 +47,13 @@
|
||||
* |+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <ns3/core-module.h>
|
||||
#include <ns3/network-module.h>
|
||||
#include <ns3/single-model-spectrum-channel.h>
|
||||
#include <ns3/log.h>
|
||||
#include <string>
|
||||
#include <ns3/mobility-module.h>
|
||||
#include <ns3/spectrum-helper.h>
|
||||
#include <ns3/internet-module.h>
|
||||
#include <ns3/helper-module.h>
|
||||
#include <ns3/lte-helper.h>
|
||||
#include <ns3/enb-phy.h>
|
||||
@@ -62,6 +61,9 @@
|
||||
#include <ns3/packet-burst.h>
|
||||
#include <ns3/constant-position-mobility-model.h>
|
||||
#include <ns3/constant-velocity-mobility-model.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
#include <ns3/mobility-module.h>
|
||||
#include <ns3/spectrum-helper.h>
|
||||
#include <ns3/helper-module.h>
|
||||
#include <ns3/internet-module.h>
|
||||
#include <ns3/lte-helper.h>
|
||||
#include <ns3/enb-phy.h>
|
||||
#include <ns3/ue-phy.h>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user