author | Gustavo J. A. M. Carneiro <gjc@inescporto.pt> |
Sat, 28 Feb 2009 15:02:15 +0000 | |
changeset 4248 | 6e0c97efccd0 |
parent 4245 | 49d337cba9db |
child 4377 | 2a05a47dba22 |
permissions | -rw-r--r-- |
537
e8a4183dfe00
Add support for building with WAF
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; -*- |
3579
9e5eaef3e082
nsc: enable network simulation cradle
Florian Westphal <fw@strlen.de>
parents:
3380
diff
changeset
|
2 |
import os |
4245
49d337cba9db
win32 build fixes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4117
diff
changeset
|
3 |
import sys |
3579
9e5eaef3e082
nsc: enable network simulation cradle
Florian Westphal <fw@strlen.de>
parents:
3380
diff
changeset
|
4 |
|
4064
10222f483860
Upgrade to new WAF, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3977
diff
changeset
|
5 |
import Options |
10222f483860
Upgrade to new WAF, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3977
diff
changeset
|
6 |
import Logs |
10222f483860
Upgrade to new WAF, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3977
diff
changeset
|
7 |
import Utils |
10222f483860
Upgrade to new WAF, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3977
diff
changeset
|
8 |
import Task |
10222f483860
Upgrade to new WAF, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3977
diff
changeset
|
9 |
|
4078
af7080be99d4
Put back the variable NSC_RELEASE_NAME in the wscript; it is read by the download script in allinone.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4077
diff
changeset
|
10 |
# Required NSC version |
af7080be99d4
Put back the variable NSC_RELEASE_NAME in the wscript; it is read by the download script in allinone.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4077
diff
changeset
|
11 |
NSC_RELEASE_NAME = "nsc-0.5.0" |
af7080be99d4
Put back the variable NSC_RELEASE_NAME in the wscript; it is read by the download script in allinone.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4077
diff
changeset
|
12 |
|
af7080be99d4
Put back the variable NSC_RELEASE_NAME in the wscript; it is read by the download script in allinone.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4077
diff
changeset
|
13 |
|
3628
a9c05c7e54f2
Move all NSC related build code into src/internet-stack, to unclutter a bit the main wscript
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3626
diff
changeset
|
14 |
def set_options(opt): |
4033
6abf5a0f12d7
Add --with-nsc configuration option
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3977
diff
changeset
|
15 |
opt.add_option('--with-nsc', |
6abf5a0f12d7
Add --with-nsc configuration option
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3977
diff
changeset
|
16 |
help=('Use Network Simulation Cradle, given by the indicated path,' |
6abf5a0f12d7
Add --with-nsc configuration option
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3977
diff
changeset
|
17 |
' to allow the use of real-world network stacks'), |
6abf5a0f12d7
Add --with-nsc configuration option
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3977
diff
changeset
|
18 |
default='', dest='with_nsc') |
6abf5a0f12d7
Add --with-nsc configuration option
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3977
diff
changeset
|
19 |
|
3628
a9c05c7e54f2
Move all NSC related build code into src/internet-stack, to unclutter a bit the main wscript
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3626
diff
changeset
|
20 |
|
3579
9e5eaef3e082
nsc: enable network simulation cradle
Florian Westphal <fw@strlen.de>
parents:
3380
diff
changeset
|
21 |
def configure(conf): |
3703
71d93292bc49
Apply Sam's nsc regression patch
Craig Dowell <craigdo@ee.washington.edu>
parents:
3673
diff
changeset
|
22 |
conf.env['ENABLE_NSC'] = False |
71d93292bc49
Apply Sam's nsc regression patch
Craig Dowell <craigdo@ee.washington.edu>
parents:
3673
diff
changeset
|
23 |
|
3579
9e5eaef3e082
nsc: enable network simulation cradle
Florian Westphal <fw@strlen.de>
parents:
3380
diff
changeset
|
24 |
# checks for flex and bison, which is needed to build NSCs globaliser |
4077
d2e461e575f4
Don't build or fetch NSC/pybindgen, those tasks are now moved to ns-3-allinone
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4074
diff
changeset
|
25 |
# TODO: how to move these checks into the allinone scripts? |
d2e461e575f4
Don't build or fetch NSC/pybindgen, those tasks are now moved to ns-3-allinone
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4074
diff
changeset
|
26 |
#def check_nsc_buildutils(): |
d2e461e575f4
Don't build or fetch NSC/pybindgen, those tasks are now moved to ns-3-allinone
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4074
diff
changeset
|
27 |
# import flex |
d2e461e575f4
Don't build or fetch NSC/pybindgen, those tasks are now moved to ns-3-allinone
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4074
diff
changeset
|
28 |
# import bison |
d2e461e575f4
Don't build or fetch NSC/pybindgen, those tasks are now moved to ns-3-allinone
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4074
diff
changeset
|
29 |
# conf.check_tool('flex bison') |
d2e461e575f4
Don't build or fetch NSC/pybindgen, those tasks are now moved to ns-3-allinone
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4074
diff
changeset
|
30 |
# conf.check(lib='fl', mandatory=True) |
3579
9e5eaef3e082
nsc: enable network simulation cradle
Florian Westphal <fw@strlen.de>
parents:
3380
diff
changeset
|
31 |
|
4117
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
32 |
# Check for the location of NSC |
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
33 |
if Options.options.with_nsc: |
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
34 |
if os.path.isdir(Options.options.with_nsc): |
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
35 |
conf.check_message("NSC location", '', True, ("%s (given)" % Options.options.with_nsc)) |
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
36 |
conf.env['WITH_NSC'] = os.path.abspath(Options.options.with_nsc) |
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
37 |
else: |
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
38 |
nsc_dir = os.path.join('..', "nsc") |
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
39 |
if os.path.isdir(nsc_dir): |
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
40 |
conf.check_message("NSC location", '', True, ("%s (guessed)" % nsc_dir)) |
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
41 |
conf.env['WITH_NSC'] = os.path.abspath(nsc_dir) |
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
42 |
del nsc_dir |
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
43 |
if not conf.env['WITH_NSC']: |
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
44 |
conf.check_message("NSC location", '', False) |
3625
30afad8324d5
Add a summary of optional features at the end of the configuration stage.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3595
diff
changeset
|
45 |
conf.report_optional_feature("nsc", "Network Simulation Cradle", False, |
4117
5a5f0c04b98b
Try to guess NSC location (finally closes #478)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4078
diff
changeset
|
46 |
"NSC not found (see option --with-nsc)") |
3579
9e5eaef3e082
nsc: enable network simulation cradle
Florian Westphal <fw@strlen.de>
parents:
3380
diff
changeset
|
47 |
return |
4245
49d337cba9db
win32 build fixes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4117
diff
changeset
|
48 |
|
49d337cba9db
win32 build fixes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4117
diff
changeset
|
49 |
if sys.platform in ['linux2']: |
49d337cba9db
win32 build fixes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4117
diff
changeset
|
50 |
arch = os.uname()[4] |
49d337cba9db
win32 build fixes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4117
diff
changeset
|
51 |
else: |
49d337cba9db
win32 build fixes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4117
diff
changeset
|
52 |
arch = None |
3579
9e5eaef3e082
nsc: enable network simulation cradle
Florian Westphal <fw@strlen.de>
parents:
3380
diff
changeset
|
53 |
ok = False |
9e5eaef3e082
nsc: enable network simulation cradle
Florian Westphal <fw@strlen.de>
parents:
3380
diff
changeset
|
54 |
if arch == 'x86_64' or arch == 'i686' or arch == 'i586' or arch == 'i486' or arch == 'i386': |
9e5eaef3e082
nsc: enable network simulation cradle
Florian Westphal <fw@strlen.de>
parents:
3380
diff
changeset
|
55 |
conf.env['NSC_ENABLED'] = 'yes' |
3669
e96e61efb9a5
enable nsc when nsc enabled
Craig Dowell <craigdo@ee.washington.edu>
parents:
3664
diff
changeset
|
56 |
conf.env.append_value('CXXDEFINES', 'NETWORK_SIMULATION_CRADLE') |
4065 | 57 |
conf.check(mandatory=True, lib='dl', define_name='HAVE_DL', uselib='DL') |
3579
9e5eaef3e082
nsc: enable network simulation cradle
Florian Westphal <fw@strlen.de>
parents:
3380
diff
changeset
|
58 |
ok = True |
9e5eaef3e082
nsc: enable network simulation cradle
Florian Westphal <fw@strlen.de>
parents:
3380
diff
changeset
|
59 |
conf.check_message('NSC supported architecture', arch, ok) |
3625
30afad8324d5
Add a summary of optional features at the end of the configuration stage.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3595
diff
changeset
|
60 |
conf.report_optional_feature("nsc", "Network Simulation Cradle", ok, |
30afad8324d5
Add a summary of optional features at the end of the configuration stage.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3595
diff
changeset
|
61 |
"architecture %r not supported" % arch) |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
62 |
|
4074
5780617d9521
Append the NSC kernel dirs to LD_LIBRARY_PATH
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4065
diff
changeset
|
63 |
# append the NSC kernel dirs to the module path so that these dirs |
5780617d9521
Append the NSC kernel dirs to LD_LIBRARY_PATH
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4065
diff
changeset
|
64 |
# will end up in the LD_LIBRARY_PATH, thus allowing the NSC NS-3 |
5780617d9521
Append the NSC kernel dirs to LD_LIBRARY_PATH
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4065
diff
changeset
|
65 |
# module to find the necessary NSC shared libraries. |
5780617d9521
Append the NSC kernel dirs to LD_LIBRARY_PATH
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4065
diff
changeset
|
66 |
for nsc_module in ['linux-2.6.18', 'linux-2.6.26']: |
5780617d9521
Append the NSC kernel dirs to LD_LIBRARY_PATH
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4065
diff
changeset
|
67 |
conf.env.append_value('NS3_MODULE_PATH', |
5780617d9521
Append the NSC kernel dirs to LD_LIBRARY_PATH
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4065
diff
changeset
|
68 |
os.path.abspath(os.path.join(conf.env['WITH_NSC'], nsc_module))) |
5780617d9521
Append the NSC kernel dirs to LD_LIBRARY_PATH
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4065
diff
changeset
|
69 |
|
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
70 |
|
3628
a9c05c7e54f2
Move all NSC related build code into src/internet-stack, to unclutter a bit the main wscript
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3626
diff
changeset
|
71 |
|
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
72 |
def build(bld): |
3260
8c0ab08144e6
bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3216
diff
changeset
|
73 |
obj = bld.create_ns3_module('internet-stack', ['node']) |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
74 |
obj.source = [ |
2707
1c353c7aef5b
introduce AddInternetStack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2609
diff
changeset
|
75 |
'internet-stack.cc', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
76 |
'ipv4-l4-protocol.cc', |
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
77 |
'udp-header.cc', |
2224
6f97d21a99c2
Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents:
1496
diff
changeset
|
78 |
'tcp-header.cc', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
79 |
'ipv4-checksum.cc', |
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
80 |
'ipv4-interface.cc', |
760
975a88259e2e
Re-sync WAF build with the latest SConstruct changes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
729
diff
changeset
|
81 |
'ipv4-l3-protocol.cc', |
983
47c42bd66fb7
Support dynamic routing and multiple routing protocols; static routing table is refactored as a "routing protocol".
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
976
diff
changeset
|
82 |
'ipv4-static-routing.cc', |
3959
ec65107df095
Segregate Ipv4GlobalRouting from Ipv4StaticRouting; add API for deleting and recomputing global routes
Tom Henderson <tomh@tomh.org>
parents:
3876
diff
changeset
|
83 |
'ipv4-global-routing.cc', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
84 |
'ipv4-end-point.cc', |
760
975a88259e2e
Re-sync WAF build with the latest SConstruct changes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
729
diff
changeset
|
85 |
'udp-l4-protocol.cc', |
2224
6f97d21a99c2
Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents:
1496
diff
changeset
|
86 |
'tcp-l4-protocol.cc', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
87 |
'arp-header.cc', |
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
88 |
'arp-cache.cc', |
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
89 |
'arp-ipv4-interface.cc', |
760
975a88259e2e
Re-sync WAF build with the latest SConstruct changes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
729
diff
changeset
|
90 |
'arp-l3-protocol.cc', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
91 |
'ipv4-loopback-interface.cc', |
3130
881cc06cd651
rename UdpSocket to UdpSocketImpl
Tom Henderson <tomh@tomh.org>
parents:
3126
diff
changeset
|
92 |
'udp-socket-impl.cc', |
3131
d82336dfd269
change TcpSocket to TcpSocketImpl
Tom Henderson <tomh@tomh.org>
parents:
3130
diff
changeset
|
93 |
'tcp-socket-impl.cc', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
94 |
'ipv4-end-point-demux.cc', |
760
975a88259e2e
Re-sync WAF build with the latest SConstruct changes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
729
diff
changeset
|
95 |
'ipv4-impl.cc', |
3126
68d35477a842
s/UdpImpl/UdpSocketFactoryImpl
Tom Henderson <tomh@tomh.org>
parents:
2830
diff
changeset
|
96 |
'udp-socket-factory-impl.cc', |
3133
295e061719fc
change TcpImpl to TcpSocketFactoryImpl
Tom Henderson <tomh@tomh.org>
parents:
3131
diff
changeset
|
97 |
'tcp-socket-factory-impl.cc', |
2224
6f97d21a99c2
Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents:
1496
diff
changeset
|
98 |
'pending-data.cc', |
6f97d21a99c2
Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents:
1496
diff
changeset
|
99 |
'sequence-number.cc', |
6f97d21a99c2
Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents:
1496
diff
changeset
|
100 |
'rtt-estimator.cc', |
3820 | 101 |
'ipv4-raw-socket-factory-impl.cc', |
102 |
'ipv4-raw-socket-impl.cc', |
|
103 |
'icmpv4.cc', |
|
104 |
'icmpv4-l4-protocol.cc', |
|
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
105 |
] |
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
106 |
|
4064
10222f483860
Upgrade to new WAF, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3977
diff
changeset
|
107 |
headers = bld.new_task_gen('ns3header') |
3260
8c0ab08144e6
bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3216
diff
changeset
|
108 |
headers.module = 'internet-stack' |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
109 |
headers.source = [ |
2707
1c353c7aef5b
introduce AddInternetStack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2609
diff
changeset
|
110 |
'internet-stack.h', |
1244
9ee2a9242c10
make sure udp-header.h is exported for main-packet-printer
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1177
diff
changeset
|
111 |
'udp-header.h', |
2224
6f97d21a99c2
Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents:
1496
diff
changeset
|
112 |
'tcp-header.h', |
2321
f1a18a24d318
Make sequence-number.h a public header file (because it is included by another public header, tcp-header.h)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
2224
diff
changeset
|
113 |
'sequence-number.h', |
3959
ec65107df095
Segregate Ipv4GlobalRouting from Ipv4StaticRouting; add API for deleting and recomputing global routes
Tom Henderson <tomh@tomh.org>
parents:
3876
diff
changeset
|
114 |
'ipv4-global-routing.h', |
3820 | 115 |
'icmpv4.h', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
116 |
] |
3579
9e5eaef3e082
nsc: enable network simulation cradle
Florian Westphal <fw@strlen.de>
parents:
3380
diff
changeset
|
117 |
|
4245
49d337cba9db
win32 build fixes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4117
diff
changeset
|
118 |
if bld.env['NSC_ENABLED']: |
3651
9a2b20293ae5
bug 316: make nsc compilation conditional again
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3637
diff
changeset
|
119 |
obj.source.append ('nsc-tcp-socket-impl.cc') |
9a2b20293ae5
bug 316: make nsc compilation conditional again
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3637
diff
changeset
|
120 |
obj.source.append ('nsc-tcp-l4-protocol.cc') |
9a2b20293ae5
bug 316: make nsc compilation conditional again
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3637
diff
changeset
|
121 |
obj.source.append ('nsc-tcp-socket-factory-impl.cc') |
9a2b20293ae5
bug 316: make nsc compilation conditional again
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3637
diff
changeset
|
122 |
obj.source.append ('nsc-sysctl.cc') |
9a2b20293ae5
bug 316: make nsc compilation conditional again
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3637
diff
changeset
|
123 |
obj.uselib = 'DL' |