OLD | NEW |
1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8;
-*- | 1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8;
-*- |
2 import os | 2 import os |
3 import sys | 3 import sys |
4 | 4 |
5 import Options | 5 import Options |
6 import Logs | 6 import Logs |
7 import Utils | 7 import Utils |
8 import Task | 8 import Task |
9 | 9 |
10 # Required NSC version | 10 # Required NSC version |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 conf.report_optional_feature("nsc", "Network Simulation Cradle", False, | 87 conf.report_optional_feature("nsc", "Network Simulation Cradle", False, |
88 "NSC library %s is missing: NSC has not bee
n built?" % lib_to_check) | 88 "NSC library %s is missing: NSC has not bee
n built?" % lib_to_check) |
89 else: | 89 else: |
90 conf.report_optional_feature("nsc", "Network Simulation Cradle", True, "
") | 90 conf.report_optional_feature("nsc", "Network Simulation Cradle", True, "
") |
91 | 91 |
92 | 92 |
93 def build(bld): | 93 def build(bld): |
94 # bridge and mpi dependencies are due to global routing | 94 # bridge and mpi dependencies are due to global routing |
95 obj = bld.create_ns3_module('internet', ['bridge', 'mpi', 'network', 'core']
) | 95 obj = bld.create_ns3_module('internet', ['bridge', 'mpi', 'network', 'core']
) |
96 obj.source = [ | 96 obj.source = [ |
97 'model/ipv4-l4-protocol.cc', | 97 'model/ip-l4-protocol.cc', |
98 'model/udp-header.cc', | 98 'model/udp-header.cc', |
99 'model/tcp-header.cc', | 99 'model/tcp-header.cc', |
100 'model/ipv4-interface.cc', | 100 'model/ipv4-interface.cc', |
101 'model/ipv4-l3-protocol.cc', | 101 'model/ipv4-l3-protocol.cc', |
102 'model/ipv4-end-point.cc', | 102 'model/ipv4-end-point.cc', |
103 'model/udp-l4-protocol.cc', | 103 'model/udp-l4-protocol.cc', |
104 'model/tcp-l4-protocol.cc', | 104 'model/tcp-l4-protocol.cc', |
105 'model/arp-header.cc', | 105 'model/arp-header.cc', |
106 'model/arp-cache.cc', | 106 'model/arp-cache.cc', |
107 'model/arp-l3-protocol.cc', | 107 'model/arp-l3-protocol.cc', |
108 'model/udp-socket-impl.cc', | 108 'model/udp-socket-impl.cc', |
109 'model/ipv4-end-point-demux.cc', | 109 'model/ipv4-end-point-demux.cc', |
110 'model/udp-socket-factory-impl.cc', | 110 'model/udp-socket-factory-impl.cc', |
111 'model/tcp-socket-factory-impl.cc', | 111 'model/tcp-socket-factory-impl.cc', |
112 'model/pending-data.cc', | 112 'model/pending-data.cc', |
113 'model/rtt-estimator.cc', | 113 'model/rtt-estimator.cc', |
114 'model/ipv4-raw-socket-factory-impl.cc', | 114 'model/ipv4-raw-socket-factory-impl.cc', |
115 'model/ipv4-raw-socket-impl.cc', | 115 'model/ipv4-raw-socket-impl.cc', |
116 'model/icmpv4.cc', | 116 'model/icmpv4.cc', |
117 'model/icmpv4-l4-protocol.cc', | 117 'model/icmpv4-l4-protocol.cc', |
118 'model/loopback-net-device.cc', | 118 'model/loopback-net-device.cc', |
119 'model/ndisc-cache.cc', | 119 'model/ndisc-cache.cc', |
120 'model/ipv6-interface.cc', | 120 'model/ipv6-interface.cc', |
121 'model/icmpv6-header.cc', | 121 'model/icmpv6-header.cc', |
122 'model/ipv6-l3-protocol.cc', | 122 'model/ipv6-l3-protocol.cc', |
123 'model/ipv6-end-point.cc', | 123 'model/ipv6-end-point.cc', |
124 'model/ipv6-end-point-demux.cc', | 124 'model/ipv6-end-point-demux.cc', |
125 'model/ipv6-l4-protocol.cc', | |
126 'model/ipv6-raw-socket-factory-impl.cc', | 125 'model/ipv6-raw-socket-factory-impl.cc', |
127 'model/ipv6-raw-socket-impl.cc', | 126 'model/ipv6-raw-socket-impl.cc', |
128 'model/ipv6-autoconfigured-prefix.cc', | 127 'model/ipv6-autoconfigured-prefix.cc', |
129 'model/ipv6-extension.cc', | 128 'model/ipv6-extension.cc', |
130 'model/ipv6-extension-header.cc', | 129 'model/ipv6-extension-header.cc', |
131 'model/ipv6-extension-demux.cc', | 130 'model/ipv6-extension-demux.cc', |
132 'model/ipv6-option.cc', | 131 'model/ipv6-option.cc', |
133 'model/ipv6-option-header.cc', | 132 'model/ipv6-option-header.cc', |
134 'model/ipv6-option-demux.cc', | 133 'model/ipv6-option-demux.cc', |
135 'model/icmpv6-l4-protocol.cc', | 134 'model/icmpv6-l4-protocol.cc', |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 'test/error-channel.cc', | 198 'test/error-channel.cc', |
200 'test/error-net-device.cc', | 199 'test/error-net-device.cc', |
201 'test/ipv4-test.cc', | 200 'test/ipv4-test.cc', |
202 'test/ipv6-extension-header-test-suite.cc', | 201 'test/ipv6-extension-header-test-suite.cc', |
203 'test/ipv6-list-routing-test-suite.cc', | 202 'test/ipv6-list-routing-test-suite.cc', |
204 'test/ipv6-packet-info-tag-test-suite.cc', | 203 'test/ipv6-packet-info-tag-test-suite.cc', |
205 'test/ipv6-test.cc', | 204 'test/ipv6-test.cc', |
206 'test/tcp-test.cc', | 205 'test/tcp-test.cc', |
207 'test/udp-test.cc', | 206 'test/udp-test.cc', |
208 'test/ipv6-address-generator-test-suite.cc', | 207 'test/ipv6-address-generator-test-suite.cc', |
| 208 'test/ipv6-dual-stack-test-suite.cc', |
209 ] | 209 ] |
210 | 210 |
211 headers = bld.new_task_gen(features=['ns3header']) | 211 headers = bld.new_task_gen(features=['ns3header']) |
212 headers.module = 'internet' | 212 headers.module = 'internet' |
213 headers.source = [ | 213 headers.source = [ |
214 'model/udp-header.h', | 214 'model/udp-header.h', |
215 'model/tcp-header.h', | 215 'model/tcp-header.h', |
216 'model/icmpv4.h', | 216 'model/icmpv4.h', |
217 'model/icmpv6-header.h', | 217 'model/icmpv6-header.h', |
218 # used by routing | 218 # used by routing |
219 'model/ipv4-interface.h', | 219 'model/ipv4-interface.h', |
220 'model/ipv4-l3-protocol.h', | 220 'model/ipv4-l3-protocol.h', |
221 'model/ipv6-l3-protocol.h', | 221 'model/ipv6-l3-protocol.h', |
222 'model/ipv4-end-point.h', | 222 'model/ipv4-end-point.h', |
223 'model/ipv6-extension-header.h', | 223 'model/ipv6-extension-header.h', |
224 'model/ipv6-option-header.h', | 224 'model/ipv6-option-header.h', |
225 'model/arp-l3-protocol.h', | 225 'model/arp-l3-protocol.h', |
226 'model/udp-l4-protocol.h', | 226 'model/udp-l4-protocol.h', |
227 'model/tcp-l4-protocol.h', | 227 'model/tcp-l4-protocol.h', |
228 'model/icmpv4-l4-protocol.h', | 228 'model/icmpv4-l4-protocol.h', |
229 'model/ipv4-l4-protocol.h', | 229 'model/ip-l4-protocol.h', |
230 'model/arp-header.h', | 230 'model/arp-header.h', |
231 'model/arp-cache.h', | 231 'model/arp-cache.h', |
232 'model/icmpv6-l4-protocol.h', | 232 'model/icmpv6-l4-protocol.h', |
233 'model/ipv6-l4-protocol.h', | |
234 'model/ipv6-interface.h', | 233 'model/ipv6-interface.h', |
235 'model/ndisc-cache.h', | 234 'model/ndisc-cache.h', |
236 'model/loopback-net-device.h', | 235 'model/loopback-net-device.h', |
237 'model/ipv4-packet-info-tag.h', | 236 'model/ipv4-packet-info-tag.h', |
238 'model/ipv6-packet-info-tag.h', | 237 'model/ipv6-packet-info-tag.h', |
239 'model/ipv4-interface-address.h', | 238 'model/ipv4-interface-address.h', |
240 'model/ipv4-address-generator.h', | 239 'model/ipv4-address-generator.h', |
241 'model/ipv4-header.h', | 240 'model/ipv4-header.h', |
242 'model/ipv4-route.h', | 241 'model/ipv4-route.h', |
243 'model/ipv4-routing-protocol.h', | 242 'model/ipv4-routing-protocol.h', |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 obj.source.append ('model/nsc-sysctl.cc') | 287 obj.source.append ('model/nsc-sysctl.cc') |
289 headers.source.append('model/nsc-tcp-l4-protocol.h') | 288 headers.source.append('model/nsc-tcp-l4-protocol.h') |
290 obj.use.append('DL') | 289 obj.use.append('DL') |
291 internet_test.use.append('DL') | 290 internet_test.use.append('DL') |
292 | 291 |
293 if (bld.env['ENABLE_EXAMPLES']): | 292 if (bld.env['ENABLE_EXAMPLES']): |
294 bld.add_subdirs('examples') | 293 bld.add_subdirs('examples') |
295 | 294 |
296 bld.ns3_python_bindings() | 295 bld.ns3_python_bindings() |
297 | 296 |
OLD | NEW |