examples/wscript
author Duy Nguyen <duy@soe.ucsc.edu>
Fri, 25 Sep 2009 14:38:12 -0700
changeset 5256 7bd503be20c9
parent 5230 4c56aca26ad3
child 5369 86beb5869f67
child 5707 d4bcda8a76ed
permissions -rw-r--r--
Replace multi-rate-first.cc and multi-rate-second.cc with better example multirate.cc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
600
fd944dbf33c6 WAF: simplify wscripts using the new chained uselib_local dependencies feature of WAF SVN; now build all samples and examples; add --disable-rpath configure option; add WAF build instructions.
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
     1
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
fd944dbf33c6 WAF: simplify wscripts using the new chained uselib_local dependencies feature of WAF SVN; now build all samples and examples; add --disable-rpath configure option; add WAF build instructions.
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
     2
fd944dbf33c6 WAF: simplify wscripts using the new chained uselib_local dependencies feature of WAF SVN; now build all samples and examples; add --disable-rpath configure option; add WAF build instructions.
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
     3
def build(bld):
3331
7305032b6100 add updated tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 3302
diff changeset
     4
    obj = bld.create_ns3_program('hello-simulator')
7305032b6100 add updated tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 3302
diff changeset
     5
    obj.source = 'hello-simulator.cc'
7305032b6100 add updated tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 3302
diff changeset
     6
        
4013
c032743d087c New examples, build and test tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 4012
diff changeset
     7
    obj = bld.create_ns3_program('first',
c032743d087c New examples, build and test tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 4012
diff changeset
     8
                                 ['core', 'simulator', 'point-to-point', 'internet-stack'])
c032743d087c New examples, build and test tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 4012
diff changeset
     9
    obj.source = 'first.cc'
c032743d087c New examples, build and test tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 4012
diff changeset
    10
        
c032743d087c New examples, build and test tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 4012
diff changeset
    11
    obj = bld.create_ns3_program('second',
c032743d087c New examples, build and test tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 4012
diff changeset
    12
                                 ['core', 'simulator', 'point-to-point', 'csma', 'internet-stack'])
c032743d087c New examples, build and test tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 4012
diff changeset
    13
    obj.source = 'second.cc'
c032743d087c New examples, build and test tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 4012
diff changeset
    14
        
c032743d087c New examples, build and test tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 4012
diff changeset
    15
    obj = bld.create_ns3_program('third',
c032743d087c New examples, build and test tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 4012
diff changeset
    16
                                 ['core', 'simulator', 'point-to-point', 'csma', 'wifi', 'internet-stack'])
c032743d087c New examples, build and test tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 4012
diff changeset
    17
    obj.source = 'third.cc'
c032743d087c New examples, build and test tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 4012
diff changeset
    18
        
4155
88a793cc5540 rename names.cc to object-names.cc
Craig Dowell <craigdo@ee.washington.edu>
parents: 4139
diff changeset
    19
    obj = bld.create_ns3_program('object-names',
4139
d45e62c78504 add an object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 4013
diff changeset
    20
                                 ['core', 'simulator', 'csma', 'internet-stack'])
4155
88a793cc5540 rename names.cc to object-names.cc
Craig Dowell <craigdo@ee.washington.edu>
parents: 4139
diff changeset
    21
    obj.source = 'object-names.cc'
4139
d45e62c78504 add an object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 4013
diff changeset
    22
        
2896
cb77c96e6149 revive mixed-wireless example from Simutools tutorial
Tom Henderson <tomh@tomh.org>
parents: 2819
diff changeset
    23
    obj = bld.create_ns3_program('mixed-wireless',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
    24
                                 ['core', 'simulator', 'mobility', 'wifi', 'point-to-point', 'internet-stack'])
2896
cb77c96e6149 revive mixed-wireless example from Simutools tutorial
Tom Henderson <tomh@tomh.org>
parents: 2819
diff changeset
    25
    obj.source = 'mixed-wireless.cc'
cb77c96e6149 revive mixed-wireless example from Simutools tutorial
Tom Henderson <tomh@tomh.org>
parents: 2819
diff changeset
    26
4012
7dc122811f0c add dynamic global routing example script
Tom Henderson <tomh@tomh.org>
parents: 3935
diff changeset
    27
    obj = bld.create_ns3_program('dynamic-global-routing',
7dc122811f0c add dynamic global routing example script
Tom Henderson <tomh@tomh.org>
parents: 3935
diff changeset
    28
                                 ['point-to-point', 'csma', 'internet-stack', 'global-routing'])
7dc122811f0c add dynamic global routing example script
Tom Henderson <tomh@tomh.org>
parents: 3935
diff changeset
    29
    obj.source = 'dynamic-global-routing.cc'
7dc122811f0c add dynamic global routing example script
Tom Henderson <tomh@tomh.org>
parents: 3935
diff changeset
    30
7dc122811f0c add dynamic global routing example script
Tom Henderson <tomh@tomh.org>
parents: 3935
diff changeset
    31
    obj = bld.create_ns3_program('static-routing-slash32',
7dc122811f0c add dynamic global routing example script
Tom Henderson <tomh@tomh.org>
parents: 3935
diff changeset
    32
                                 ['point-to-point', 'internet-stack', 'global-routing'])
7dc122811f0c add dynamic global routing example script
Tom Henderson <tomh@tomh.org>
parents: 3935
diff changeset
    33
    obj.source = 'static-routing-slash32.cc'
7dc122811f0c add dynamic global routing example script
Tom Henderson <tomh@tomh.org>
parents: 3935
diff changeset
    34
7dc122811f0c add dynamic global routing example script
Tom Henderson <tomh@tomh.org>
parents: 3935
diff changeset
    35
    obj = bld.create_ns3_program('global-routing-slash32',
7dc122811f0c add dynamic global routing example script
Tom Henderson <tomh@tomh.org>
parents: 3935
diff changeset
    36
                                 ['point-to-point', 'internet-stack', 'global-routing'])
7dc122811f0c add dynamic global routing example script
Tom Henderson <tomh@tomh.org>
parents: 3935
diff changeset
    37
    obj.source = 'global-routing-slash32.cc'
7dc122811f0c add dynamic global routing example script
Tom Henderson <tomh@tomh.org>
parents: 3935
diff changeset
    38
4745
a0e27af57c8d Allow injection of routes to Ipv4GlobalRouting
Antti Makela <zarhan@cc.hut.fi>
parents: 4731
diff changeset
    39
    obj = bld.create_ns3_program('global-injection-slash32',
a0e27af57c8d Allow injection of routes to Ipv4GlobalRouting
Antti Makela <zarhan@cc.hut.fi>
parents: 4731
diff changeset
    40
                                 ['point-to-point', 'internet-stack', 'global-routing'])
a0e27af57c8d Allow injection of routes to Ipv4GlobalRouting
Antti Makela <zarhan@cc.hut.fi>
parents: 4731
diff changeset
    41
    obj.source = 'global-injection-slash32.cc'
a0e27af57c8d Allow injection of routes to Ipv4GlobalRouting
Antti Makela <zarhan@cc.hut.fi>
parents: 4731
diff changeset
    42
1217
2f7791ae388d WAF: add new bld.create_ns3_module() and bld.create_ns3_program() methods to make declaration of modules and programs simpler, and allowing us to change how ns-3 is built in a centralized way, without needing to change every module wscript file.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 1198
diff changeset
    43
    obj = bld.create_ns3_program('simple-global-routing',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
    44
                                 ['point-to-point', 'internet-stack', 'global-routing'])
1217
2f7791ae388d WAF: add new bld.create_ns3_module() and bld.create_ns3_program() methods to make declaration of modules and programs simpler, and allowing us to change how ns-3 is built in a centralized way, without needing to change every module wscript file.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 1198
diff changeset
    45
    obj.source = 'simple-global-routing.cc'
2f7791ae388d WAF: add new bld.create_ns3_module() and bld.create_ns3_program() methods to make declaration of modules and programs simpler, and allowing us to change how ns-3 is built in a centralized way, without needing to change every module wscript file.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 1198
diff changeset
    46
4541
e943b94bf523 Rename TapNetDevice to VirtualNetDevice
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4539
diff changeset
    47
    obj = bld.create_ns3_program('virtual-net-device',
e943b94bf523 Rename TapNetDevice to VirtualNetDevice
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4539
diff changeset
    48
                                 ['point-to-point', 'internet-stack', 'global-routing', 'virtual-net-device'])
e943b94bf523 Rename TapNetDevice to VirtualNetDevice
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4539
diff changeset
    49
    obj.source = 'virtual-net-device.cc'
4538
3048bd67e5cf Add an example for TapNetDevice
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4418
diff changeset
    50
1776
0d5be0c3d229 Add support for non-unit-cost metrics for Ipv4Interfaces (for use in routing); add example script simple-alternate-routing.cc
Tom Henderson <tomh@tomh.org>
parents: 1747
diff changeset
    51
    obj = bld.create_ns3_program('simple-alternate-routing',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
    52
                                 ['point-to-point', 'internet-stack', 'global-routing'])
1776
0d5be0c3d229 Add support for non-unit-cost metrics for Ipv4Interfaces (for use in routing); add example script simple-alternate-routing.cc
Tom Henderson <tomh@tomh.org>
parents: 1747
diff changeset
    53
    obj.source = 'simple-alternate-routing.cc'
0d5be0c3d229 Add support for non-unit-cost metrics for Ipv4Interfaces (for use in routing); add example script simple-alternate-routing.cc
Tom Henderson <tomh@tomh.org>
parents: 1747
diff changeset
    54
1820
736919bd4874 Add src/common/error-model implementation and example script, and add to NetDevices
Tom Henderson <tomh@tomh.org>
parents: 1781
diff changeset
    55
    obj = bld.create_ns3_program('simple-error-model',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
    56
                                 ['point-to-point', 'internet-stack'])
1820
736919bd4874 Add src/common/error-model implementation and example script, and add to NetDevices
Tom Henderson <tomh@tomh.org>
parents: 1781
diff changeset
    57
    obj.source = 'simple-error-model.cc'
736919bd4874 Add src/common/error-model implementation and example script, and add to NetDevices
Tom Henderson <tomh@tomh.org>
parents: 1781
diff changeset
    58
1272
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    59
    obj = bld.create_ns3_program('csma-one-subnet',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
    60
                                 ['csma', 'internet-stack'])
1272
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    61
    obj.source = 'csma-one-subnet.cc'
1217
2f7791ae388d WAF: add new bld.create_ns3_module() and bld.create_ns3_program() methods to make declaration of modules and programs simpler, and allowing us to change how ns-3 is built in a centralized way, without needing to change every module wscript file.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 1198
diff changeset
    62
3440
4cedf996375d Start of a BridgeNetDevice example, using csma (basically an Ethernet Switch).
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3336
diff changeset
    63
    obj = bld.create_ns3_program('csma-bridge',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
    64
                                 ['bridge', 'csma', 'internet-stack'])
3440
4cedf996375d Start of a BridgeNetDevice example, using csma (basically an Ethernet Switch).
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3336
diff changeset
    65
    obj.source = 'csma-bridge.cc'
4cedf996375d Start of a BridgeNetDevice example, using csma (basically an Ethernet Switch).
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3336
diff changeset
    66
3935
4b18d1e1e2e5 add bridged routing example
Craig Dowell <craigdo@ee.washington.edu>
parents: 3854
diff changeset
    67
    obj = bld.create_ns3_program('csma-bridge-one-hop',
4b18d1e1e2e5 add bridged routing example
Craig Dowell <craigdo@ee.washington.edu>
parents: 3854
diff changeset
    68
                                 ['bridge', 'csma', 'internet-stack'])
4b18d1e1e2e5 add bridged routing example
Craig Dowell <craigdo@ee.washington.edu>
parents: 3854
diff changeset
    69
    obj.source = 'csma-bridge-one-hop.cc'
4b18d1e1e2e5 add bridged routing example
Craig Dowell <craigdo@ee.washington.edu>
parents: 3854
diff changeset
    70
1496
0ad4c18b475c start of udp echo applications
Craig Dowell <craigdo@ee.washington.edu>
parents: 1449
diff changeset
    71
    obj = bld.create_ns3_program('udp-echo',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
    72
                                 ['csma', 'internet-stack'])
1496
0ad4c18b475c start of udp echo applications
Craig Dowell <craigdo@ee.washington.edu>
parents: 1449
diff changeset
    73
    obj.source = 'udp-echo.cc'
0ad4c18b475c start of udp echo applications
Craig Dowell <craigdo@ee.washington.edu>
parents: 1449
diff changeset
    74
3560
5aa65b1ea001 add realtime simulator and associated tests
Craig Dowell <craigdo@ee.washington.edu>
parents: 3523
diff changeset
    75
    obj = bld.create_ns3_program('realtime-udp-echo',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
    76
                                 ['csma', 'internet-stack'])
3560
5aa65b1ea001 add realtime simulator and associated tests
Craig Dowell <craigdo@ee.washington.edu>
parents: 3523
diff changeset
    77
    obj.source = 'realtime-udp-echo.cc'
5aa65b1ea001 add realtime simulator and associated tests
Craig Dowell <craigdo@ee.washington.edu>
parents: 3523
diff changeset
    78
1318
89b78e2d521e Fix for bug69: set local address correctly upon UDP connect; apply correct UDP connect() semantics (that sendto cannot override addresses on a connected socket); if destination is IPv4 limited broadcast address, convert to subnet-directed broadcast and send out on each interface; provide example csma-broadcast.cc script
Tom Henderson <tomh@tomh.org>
parents: 1305
diff changeset
    79
    obj = bld.create_ns3_program('csma-broadcast',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
    80
                                 ['csma', 'internet-stack'])
1318
89b78e2d521e Fix for bug69: set local address correctly upon UDP connect; apply correct UDP connect() semantics (that sendto cannot override addresses on a connected socket); if destination is IPv4 limited broadcast address, convert to subnet-directed broadcast and send out on each interface; provide example csma-broadcast.cc script
Tom Henderson <tomh@tomh.org>
parents: 1305
diff changeset
    81
    obj.source = 'csma-broadcast.cc'
89b78e2d521e Fix for bug69: set local address correctly upon UDP connect; apply correct UDP connect() semantics (that sendto cannot override addresses on a connected socket); if destination is IPv4 limited broadcast address, convert to subnet-directed broadcast and send out on each interface; provide example csma-broadcast.cc script
Tom Henderson <tomh@tomh.org>
parents: 1305
diff changeset
    82
1272
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    83
    obj = bld.create_ns3_program('csma-packet-socket',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
    84
                                 ['csma', 'internet-stack'])
1272
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    85
    obj.source = 'csma-packet-socket.cc'
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents: 1272
diff changeset
    86
1428
a8f3d01d4a2c untested multicast support
Craig Dowell <craigdo@ee.washington.edu>
parents: 1272
diff changeset
    87
    obj = bld.create_ns3_program('csma-multicast',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
    88
                                 ['csma', 'internet-stack'])
1428
a8f3d01d4a2c untested multicast support
Craig Dowell <craigdo@ee.washington.edu>
parents: 1272
diff changeset
    89
    obj.source = 'csma-multicast.cc'
a8f3d01d4a2c untested multicast support
Craig Dowell <craigdo@ee.washington.edu>
parents: 1272
diff changeset
    90
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents: 1272
diff changeset
    91
    obj = bld.create_ns3_program( 'mixed-global-routing',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
    92
                                  ['point-to-point', 'internet-stack', 'global-routing' , 'csma-cd'])
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents: 1272
diff changeset
    93
    obj.source = 'mixed-global-routing.cc'
1738
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 1730 1305
diff changeset
    94
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 1730 1305
diff changeset
    95
    obj = bld.create_ns3_program('simple-point-to-point-olsr',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
    96
                                 ['point-to-point', 'internet-stack', 'olsr'])
1740
3d3168e8fef6 Update OLSR code to NS-3 API changes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 1738
diff changeset
    97
    obj.source = 'simple-point-to-point-olsr.cc'
2224
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1820
diff changeset
    98
5224
06f639d05b8f Merge NixVector Routing code
Josh Pelkey <jpelkey@gatech.edu>
parents: 5184
diff changeset
    99
    obj = bld.create_ns3_program('nix-simple',
06f639d05b8f Merge NixVector Routing code
Josh Pelkey <jpelkey@gatech.edu>
parents: 5184
diff changeset
   100
                                 ['point-to-point', 'internet-stack', 'nix-vector-routing'])
06f639d05b8f Merge NixVector Routing code
Josh Pelkey <jpelkey@gatech.edu>
parents: 5184
diff changeset
   101
    obj.source = 'nix-simple.cc'
06f639d05b8f Merge NixVector Routing code
Josh Pelkey <jpelkey@gatech.edu>
parents: 5184
diff changeset
   102
06f639d05b8f Merge NixVector Routing code
Josh Pelkey <jpelkey@gatech.edu>
parents: 5184
diff changeset
   103
    obj = bld.create_ns3_program('nms-p2p-nix',
06f639d05b8f Merge NixVector Routing code
Josh Pelkey <jpelkey@gatech.edu>
parents: 5184
diff changeset
   104
                                 ['point-to-point', 'internet-stack', 'nix-vector-routing'])
06f639d05b8f Merge NixVector Routing code
Josh Pelkey <jpelkey@gatech.edu>
parents: 5184
diff changeset
   105
    obj.source = 'nms-p2p-nix.cc'
06f639d05b8f Merge NixVector Routing code
Josh Pelkey <jpelkey@gatech.edu>
parents: 5184
diff changeset
   106
2224
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1820
diff changeset
   107
    obj = bld.create_ns3_program('tcp-large-transfer',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
   108
                                 ['point-to-point', 'internet-stack'])
2224
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1820
diff changeset
   109
    obj.source = 'tcp-large-transfer.cc'
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1820
diff changeset
   110
3580
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
   111
    obj = bld.create_ns3_program('tcp-nsc-lfn',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
   112
                                 ['point-to-point', 'internet-stack'])
3580
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
   113
    obj.source = 'tcp-nsc-lfn.cc'
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
   114
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
   115
    obj = bld.create_ns3_program('tcp-nsc-zoo',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
   116
                                 ['csma', 'internet-stack'])
3580
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
   117
    obj.source = 'tcp-nsc-zoo.cc'
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
   118
3366
923e47a54fe8 Add a tcp server example
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 3336
diff changeset
   119
    obj = bld.create_ns3_program('tcp-star-server',
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
   120
                                 ['point-to-point', 'internet-stack'])
3366
923e47a54fe8 Add a tcp server example
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 3336
diff changeset
   121
    obj.source = 'tcp-star-server.cc'
923e47a54fe8 Add a tcp server example
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 3336
diff changeset
   122
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
   123
    obj = bld.create_ns3_program('star',
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
   124
                                 ['point-to-point', 'internet-stack'])
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
   125
    obj.source = 'star.cc'
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3643
diff changeset
   126
3795
707acdf0f8b3 csma version of install star and example
Craig Dowell <craigdo@ee.washington.edu>
parents: 3793
diff changeset
   127
    obj = bld.create_ns3_program('csma-star',
707acdf0f8b3 csma version of install star and example
Craig Dowell <craigdo@ee.washington.edu>
parents: 3793
diff changeset
   128
                                 ['csma', 'internet-stack'])
707acdf0f8b3 csma version of install star and example
Craig Dowell <craigdo@ee.washington.edu>
parents: 3793
diff changeset
   129
    obj.source = 'csma-star.cc'
707acdf0f8b3 csma version of install star and example
Craig Dowell <craigdo@ee.washington.edu>
parents: 3793
diff changeset
   130
2662
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
   131
    obj = bld.create_ns3_program('wifi-adhoc',
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
   132
                                 ['core', 'simulator', 'mobility', 'wifi'])
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
   133
    obj.source = 'wifi-adhoc.cc'
2224
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1820
diff changeset
   134
4470
51b5c1a272d3 802.11b PHY support
Gary Pei <guangyu.pei@boeing.com>
parents: 4418
diff changeset
   135
    obj = bld.create_ns3_program('wifi-clear-channel-cmu',
51b5c1a272d3 802.11b PHY support
Gary Pei <guangyu.pei@boeing.com>
parents: 4418
diff changeset
   136
                                 ['core', 'simulator', 'mobility', 'wifi'])
51b5c1a272d3 802.11b PHY support
Gary Pei <guangyu.pei@boeing.com>
parents: 4418
diff changeset
   137
    obj.source = 'wifi-clear-channel-cmu.cc'
51b5c1a272d3 802.11b PHY support
Gary Pei <guangyu.pei@boeing.com>
parents: 4418
diff changeset
   138
2662
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
   139
    obj = bld.create_ns3_program('wifi-ap',
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
   140
                                 ['core', 'simulator', 'mobility', 'wifi'])
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
   141
    obj.source = 'wifi-ap.cc'
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
   142
4793
4f6a6772628e Merge 802.11s code.
Andrey Mazo <mazo@iitp.ru>
parents: 4193
diff changeset
   143
    obj = bld.create_ns3_program('mesh',
5184
a109c38131dd Cosmetics
Pavel Boyko <boyko@iitp.ru>
parents: 5179
diff changeset
   144
                                 ['core', 'simulator', 'mobility', 'wifi', 'mesh'])
4793
4f6a6772628e Merge 802.11s code.
Andrey Mazo <mazo@iitp.ru>
parents: 4193
diff changeset
   145
    obj.source = 'mesh.cc'
4f6a6772628e Merge 802.11s code.
Andrey Mazo <mazo@iitp.ru>
parents: 4193
diff changeset
   146
3570
44b0bc6817c6 Stats module and example merged in.
tjkopena@cs.drexel.edu
parents: 3560
diff changeset
   147
    bld.add_subdirs('stats')
3616
660d3a0c40cd testcase for wifi bridging
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3581
diff changeset
   148
660d3a0c40cd testcase for wifi bridging
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3581
diff changeset
   149
    obj = bld.create_ns3_program('wifi-wired-bridging',
660d3a0c40cd testcase for wifi bridging
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3581
diff changeset
   150
                                 ['core', 'simulator', 'mobility', 'wifi', 
660d3a0c40cd testcase for wifi bridging
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3581
diff changeset
   151
                                  'csma', 'helper', 'bridge'])
660d3a0c40cd testcase for wifi bridging
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3581
diff changeset
   152
    obj.source = 'wifi-wired-bridging.cc'
3821
9ea825f066a2 Apply icmp-application patch frm lacage
Craig Dowell <craigdo@ee.washington.edu>
parents: 3795
diff changeset
   153
9ea825f066a2 Apply icmp-application patch frm lacage
Craig Dowell <craigdo@ee.washington.edu>
parents: 3795
diff changeset
   154
    obj = bld.create_ns3_program('csma-raw-ip-socket',
9ea825f066a2 Apply icmp-application patch frm lacage
Craig Dowell <craigdo@ee.washington.edu>
parents: 3795
diff changeset
   155
        ['csma', 'internet-stack'])
9ea825f066a2 Apply icmp-application patch frm lacage
Craig Dowell <craigdo@ee.washington.edu>
parents: 3795
diff changeset
   156
    obj.source = 'csma-raw-ip-socket.cc'
9ea825f066a2 Apply icmp-application patch frm lacage
Craig Dowell <craigdo@ee.washington.edu>
parents: 3795
diff changeset
   157
9ea825f066a2 Apply icmp-application patch frm lacage
Craig Dowell <craigdo@ee.washington.edu>
parents: 3795
diff changeset
   158
    obj = bld.create_ns3_program('csma-ping',
9ea825f066a2 Apply icmp-application patch frm lacage
Craig Dowell <craigdo@ee.washington.edu>
parents: 3795
diff changeset
   159
        ['csma', 'internet-stack', 'v4ping'])
9ea825f066a2 Apply icmp-application patch frm lacage
Craig Dowell <craigdo@ee.washington.edu>
parents: 3795
diff changeset
   160
    obj.source = 'csma-ping.cc'
3852
9cf7ad0cac85 Initial IPv6 capability
vincent@clarinet.u-strasbg.fr
parents: 3831
diff changeset
   161
9cf7ad0cac85 Initial IPv6 capability
vincent@clarinet.u-strasbg.fr
parents: 3831
diff changeset
   162
    obj = bld.create_ns3_program('test-ipv6',
9cf7ad0cac85 Initial IPv6 capability
vincent@clarinet.u-strasbg.fr
parents: 3831
diff changeset
   163
      ['point-to-point', 'internet-stack'])
9cf7ad0cac85 Initial IPv6 capability
vincent@clarinet.u-strasbg.fr
parents: 3831
diff changeset
   164
    obj.source = 'test-ipv6.cc'
3854
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3852
diff changeset
   165
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   166
    obj = bld.create_ns3_program('ping6',
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   167
      ['csma', 'internet-stack'])
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   168
    obj.source = 'ping6.cc'
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   169
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   170
    obj = bld.create_ns3_program('simple-routing-ping6',
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   171
      ['csma', 'internet-stack'])
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   172
    obj.source = 'simple-routing-ping6.cc'
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   173
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   174
    obj = bld.create_ns3_program('icmpv6-redirect',
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   175
      ['csma', 'internet-stack'])
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   176
    obj.source = 'icmpv6-redirect.cc'
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   177
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   178
    obj = bld.create_ns3_program('radvd',
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   179
      ['csma', 'internet-stack'])
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   180
    obj.source = 'radvd.cc'
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   181
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   182
    obj = bld.create_ns3_program('radvd-two-prefix',
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   183
      ['csma', 'internet-stack'])
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   184
    obj.source = 'radvd-two-prefix.cc'
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4706
diff changeset
   185
3854
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3852
diff changeset
   186
    env = bld.env_of_name('default')
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3852
diff changeset
   187
    if env['ENABLE_EMU']:
4418
74983e885cdd new emu-ping example
Craig Dowell <craigdo@ee.washington.edu>
parents: 4408
diff changeset
   188
        obj = bld.create_ns3_program('emu-udp-echo', ['emu', 'internet-stack'])
3854
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3852
diff changeset
   189
        obj.source = 'emu-udp-echo.cc'
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3852
diff changeset
   190
4418
74983e885cdd new emu-ping example
Craig Dowell <craigdo@ee.washington.edu>
parents: 4408
diff changeset
   191
        obj = bld.create_ns3_program('emu-ping', ['emu', 'internet-stack'])
74983e885cdd new emu-ping example
Craig Dowell <craigdo@ee.washington.edu>
parents: 4408
diff changeset
   192
        obj.source = 'emu-ping.cc'
74983e885cdd new emu-ping example
Craig Dowell <craigdo@ee.washington.edu>
parents: 4408
diff changeset
   193
4185
6740cafc08a9 don't build tap-bridge-helper or tap-wifi-dumbbell if tap-bride not enabled
Craig Dowell <craigdo@ee.washington.edu>
parents: 4182
diff changeset
   194
    if env['ENABLE_TAP']:
6740cafc08a9 don't build tap-bridge-helper or tap-wifi-dumbbell if tap-bride not enabled
Craig Dowell <craigdo@ee.washington.edu>
parents: 4182
diff changeset
   195
        obj = bld.create_ns3_program('tap-wifi-dumbbell',
6740cafc08a9 don't build tap-bridge-helper or tap-wifi-dumbbell if tap-bride not enabled
Craig Dowell <craigdo@ee.washington.edu>
parents: 4182
diff changeset
   196
                                     ['wifi', 'csma', 'point-to-point', 'tap-bridge', 'internet-stack'])
6740cafc08a9 don't build tap-bridge-helper or tap-wifi-dumbbell if tap-bride not enabled
Craig Dowell <craigdo@ee.washington.edu>
parents: 4182
diff changeset
   197
        obj.source = 'tap-wifi-dumbbell.cc'
4408
76a169b3db3d add qos MACs
Mirko Banchi <mk.banchi@gmail.com>
parents: 4193
diff changeset
   198
76a169b3db3d add qos MACs
Mirko Banchi <mk.banchi@gmail.com>
parents: 4193
diff changeset
   199
    obj = bld.create_ns3_program('simple-wifi-frame-aggregation',
76a169b3db3d add qos MACs
Mirko Banchi <mk.banchi@gmail.com>
parents: 4193
diff changeset
   200
                                 ['core', 'simulator', 'mobility', 'wifi'])
76a169b3db3d add qos MACs
Mirko Banchi <mk.banchi@gmail.com>
parents: 4193
diff changeset
   201
    obj.source = 'simple-wifi-frame-aggregation.cc'
4706
c1c7c44be568 add minstrel examples
Duy Nguyen <duy@soe.ucsc.edu>
parents: 4541
diff changeset
   202
5256
7bd503be20c9 Replace multi-rate-first.cc and multi-rate-second.cc with better example multirate.cc
Duy Nguyen <duy@soe.ucsc.edu>
parents: 5230
diff changeset
   203
    obj = bld.create_ns3_program('multirate',
4706
c1c7c44be568 add minstrel examples
Duy Nguyen <duy@soe.ucsc.edu>
parents: 4541
diff changeset
   204
                                 ['core', 'simulator', 'mobility', 'wifi'])
5256
7bd503be20c9 Replace multi-rate-first.cc and multi-rate-second.cc with better example multirate.cc
Duy Nguyen <duy@soe.ucsc.edu>
parents: 5230
diff changeset
   205
    obj.source = 'multirate.cc'