modularize nix and aodv, thanks lalith
This commit is contained in:
@@ -29,18 +29,6 @@ def build(bld):
|
||||
['point-to-point', 'internet', 'csma'])
|
||||
obj.source = 'mixed-global-routing.cc'
|
||||
|
||||
obj = bld.create_ns3_program('nix-simple',
|
||||
['point-to-point', 'internet', 'nix-vector-routing'])
|
||||
obj.source = 'nix-simple.cc'
|
||||
|
||||
obj = bld.create_ns3_program('nms-p2p-nix',
|
||||
['point-to-point', 'internet', 'nix-vector-routing'])
|
||||
obj.source = 'nms-p2p-nix.cc'
|
||||
|
||||
obj = bld.create_ns3_program('simple-routing-ping6',
|
||||
['csma', 'internet'])
|
||||
obj.source = 'simple-routing-ping6.cc'
|
||||
|
||||
obj = bld.create_ns3_program('aodv',
|
||||
['wifi', 'internet', 'aodv'])
|
||||
obj.source = 'aodv.cc'
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/ipv4-static-routing-helper.h"
|
||||
#include "ns3/ipv4-list-routing-helper.h"
|
||||
#include "ns3/ipv4-nix-vector-helper.h"
|
||||
|
||||
#include "ns3/topology-read-module.h"
|
||||
#include <list>
|
||||
|
||||
@@ -13,8 +13,6 @@ def build(bld):
|
||||
'v4ping-helper.cc',
|
||||
'nqos-wifi-mac-helper.cc',
|
||||
'qos-wifi-mac-helper.cc',
|
||||
'ipv4-nix-vector-helper.cc',
|
||||
'aodv-helper.cc',
|
||||
'mesh-helper.cc',
|
||||
'dot11s-installer.cc',
|
||||
'flame-installer.cc',
|
||||
@@ -45,8 +43,6 @@ def build(bld):
|
||||
'v4ping-helper.h',
|
||||
'nqos-wifi-mac-helper.h',
|
||||
'qos-wifi-mac-helper.h',
|
||||
'ipv4-nix-vector-helper.h',
|
||||
'aodv-helper.h',
|
||||
'mesh-helper.h',
|
||||
'mesh-stack-installer.h',
|
||||
'dot11s-installer.h',
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/contrib-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
#include "ns3/v4ping-helper.h"
|
||||
#include <iostream>
|
||||
6
src/routing/aodv/examples/wscript
Normal file
6
src/routing/aodv/examples/wscript
Normal file
@@ -0,0 +1,6 @@
|
||||
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
||||
|
||||
def build(bld):
|
||||
obj = bld.create_ns3_program('aodv',
|
||||
['wifi', 'internet', 'aodv'])
|
||||
obj.source = 'aodv.cc'
|
||||
@@ -18,10 +18,10 @@
|
||||
* Authors: Pavel Boyko <boyko@iitp.ru>
|
||||
*/
|
||||
#include "ns3/test.h"
|
||||
#include "aodv-neighbor.h"
|
||||
#include "aodv-packet.h"
|
||||
#include "aodv-rqueue.h"
|
||||
#include "aodv-rtable.h"
|
||||
#include "ns3/aodv-neighbor.h"
|
||||
#include "ns3/aodv-packet.h"
|
||||
#include "ns3/aodv-rqueue.h"
|
||||
#include "ns3/aodv-rtable.h"
|
||||
#include "ns3/ipv4-route.h"
|
||||
|
||||
namespace ns3
|
||||
@@ -4,14 +4,15 @@ def build(bld):
|
||||
module = bld.create_ns3_module('aodv', ['internet', 'contrib'])
|
||||
module.includes = '.'
|
||||
module.source = [
|
||||
'aodv-id-cache.cc',
|
||||
'aodv-dpd.cc',
|
||||
'aodv-rtable.cc',
|
||||
'aodv-rqueue.cc',
|
||||
'aodv-packet.cc',
|
||||
'aodv-neighbor.cc',
|
||||
'aodv-routing-protocol.cc',
|
||||
'aodv-test-suite.cc',
|
||||
'model/aodv-id-cache.cc',
|
||||
'model/aodv-dpd.cc',
|
||||
'model/aodv-rtable.cc',
|
||||
'model/aodv-rqueue.cc',
|
||||
'model/aodv-packet.cc',
|
||||
'model/aodv-neighbor.cc',
|
||||
'model/aodv-routing-protocol.cc',
|
||||
'helper/aodv-helper.cc',
|
||||
'test/aodv-test-suite.cc',
|
||||
'test/aodv-regression.cc',
|
||||
'test/bug-772.cc',
|
||||
'test/loopback.cc',
|
||||
@@ -20,12 +21,15 @@ def build(bld):
|
||||
headers = bld.new_task_gen('ns3header')
|
||||
headers.module = 'aodv'
|
||||
headers.source = [
|
||||
'aodv-id-cache.h',
|
||||
'aodv-dpd.h',
|
||||
'aodv-rtable.h',
|
||||
'aodv-rqueue.h',
|
||||
'aodv-packet.h',
|
||||
'aodv-neighbor.h',
|
||||
'aodv-routing-protocol.h',
|
||||
'model/aodv-id-cache.h',
|
||||
'model/aodv-dpd.h',
|
||||
'model/aodv-rtable.h',
|
||||
'model/aodv-rqueue.h',
|
||||
'model/aodv-packet.h',
|
||||
'model/aodv-neighbor.h',
|
||||
'model/aodv-routing-protocol.h',
|
||||
'helper/aodv-helper.h',
|
||||
]
|
||||
|
||||
if bld.env['ENABLE_EXAMPLES']:
|
||||
bld.add_subdirs('examples')
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/ipv4-static-routing-helper.h"
|
||||
#include "ns3/ipv4-list-routing-helper.h"
|
||||
#include "ns3/ipv4-nix-vector-helper.h"
|
||||
|
||||
/*
|
||||
* Simple point to point links:
|
||||
@@ -46,6 +46,7 @@
|
||||
#include "ns3/simulator.h"
|
||||
#include "ns3/ipv4-static-routing-helper.h"
|
||||
#include "ns3/ipv4-list-routing-helper.h"
|
||||
#include "ns3/ipv4-nix-vector-helper.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ns3;
|
||||
10
src/routing/nix-vector-routing/examples/wscript
Normal file
10
src/routing/nix-vector-routing/examples/wscript
Normal file
@@ -0,0 +1,10 @@
|
||||
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
||||
|
||||
def build(bld):
|
||||
obj = bld.create_ns3_program('nix-simple',
|
||||
['point-to-point', 'internet', 'nix-vector-routing'])
|
||||
obj.source = 'nix-simple.cc'
|
||||
|
||||
obj = bld.create_ns3_program('nms-p2p-nix',
|
||||
['point-to-point', 'internet', 'nix-vector-routing'])
|
||||
obj.source = 'nms-p2p-nix.cc'
|
||||
@@ -4,12 +4,16 @@ def build(bld):
|
||||
module = bld.create_ns3_module('nix-vector-routing', ['internet', 'contrib'])
|
||||
module.includes = '.'
|
||||
module.source = [
|
||||
'ipv4-nix-vector-routing.cc',
|
||||
'model/ipv4-nix-vector-routing.cc',
|
||||
'helper/ipv4-nix-vector-helper.cc',
|
||||
]
|
||||
|
||||
headers = bld.new_task_gen('ns3header')
|
||||
headers.module = 'nix-vector-routing'
|
||||
headers.source = [
|
||||
'ipv4-nix-vector-routing.h',
|
||||
'model/ipv4-nix-vector-routing.h',
|
||||
'helper/ipv4-nix-vector-helper.h',
|
||||
]
|
||||
|
||||
if bld.env['ENABLE_EXAMPLES']:
|
||||
bld.add_subdirs('examples')
|
||||
|
||||
6
test.py
6
test.py
@@ -124,14 +124,14 @@ example_tests = [
|
||||
("examples/routing/global-injection-slash32", "True", "True"),
|
||||
("examples/routing/global-routing-slash32", "True", "True"),
|
||||
("examples/routing/mixed-global-routing", "True", "True"),
|
||||
("examples/routing/nix-simple", "True", "True"),
|
||||
("examples/routing/nms-p2p-nix", "False", "True"), # Takes too long to run
|
||||
("src/routing/nix-vector-routing/examples/routing/nix-simple", "True", "True"),
|
||||
("src/routing/nix-vector-routing/examples/routing/nms-p2p-nix", "False", "True"), # Takes too long to run
|
||||
("examples/routing/simple-alternate-routing", "True", "True"),
|
||||
("examples/routing/simple-global-routing", "True", "True"),
|
||||
("src/routing/olsr/examples/simple-point-to-point-olsr", "True", "True"),
|
||||
("examples/routing/simple-routing-ping6", "True", "True"),
|
||||
("examples/routing/static-routing-slash32", "True", "True"),
|
||||
("examples/routing/aodv", "True", "True"),
|
||||
("src/routing/aodv/examples/routing/aodv", "True", "True"),
|
||||
|
||||
("src/spectrum/examples/adhoc-aloha-ideal-phy", "True", "True"),
|
||||
("src/spectrum/examples/adhoc-aloha-ideal-phy-with-microwave-oven", "True", "True"),
|
||||
|
||||
Reference in New Issue
Block a user