src/internet-stack/wscript
author Hajime Tazaki <tazaki@sfc.wide.ad.jp>
Fri, 04 Jun 2010 07:12:20 +0900
changeset 6335 069840de4fac
parent 6173 6ff89f45451c
child 6434 ac8b4bf77e50
permissions -rw-r--r--
update RELEASE_NOTES
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
5237
516f47d7beff bump up nsc version requirement
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 5217
diff changeset
    11
NSC_RELEASE_NAME = "nsc-0.5.1"
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
    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
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4064 4033
diff changeset
    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 = [
4472
e20a31541404 src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4377
diff changeset
    75
        'tcp-test.cc',
e20a31541404 src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4377
diff changeset
    76
        'udp-test.cc',
4571
2c9c600270e0 cleanup ip alias unfinished cases (bug 591)
Tom Henderson <tomh@tomh.org>
parents: 4561
diff changeset
    77
        'ipv4-test.cc',
6173
6ff89f45451c bug 859 - Output interface estimation for the source address bound socket in IPv4 Raw socket
Hajime Tazaki <tazaki@sfc.wide.ad.jp>
parents: 6172
diff changeset
    78
        'ipv4-raw-test.cc',
537
e8a4183dfe00 Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
    79
        'ipv4-l4-protocol.cc',
e8a4183dfe00 Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
    80
        'udp-header.cc',
2224
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1496
diff changeset
    81
        'tcp-header.cc',
537
e8a4183dfe00 Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
    82
        '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
    83
        'ipv4-l3-protocol.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',
760
975a88259e2e Re-sync WAF build with the latest SConstruct changes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 729
diff changeset
    89
        'arp-l3-protocol.cc',
3130
881cc06cd651 rename UdpSocket to UdpSocketImpl
Tom Henderson <tomh@tomh.org>
parents: 3126
diff changeset
    90
        'udp-socket-impl.cc',
3131
d82336dfd269 change TcpSocket to TcpSocketImpl
Tom Henderson <tomh@tomh.org>
parents: 3130
diff changeset
    91
        'tcp-socket-impl.cc',
537
e8a4183dfe00 Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
    92
        'ipv4-end-point-demux.cc',
3126
68d35477a842 s/UdpImpl/UdpSocketFactoryImpl
Tom Henderson <tomh@tomh.org>
parents: 2830
diff changeset
    93
        'udp-socket-factory-impl.cc',
3133
295e061719fc change TcpImpl to TcpSocketFactoryImpl
Tom Henderson <tomh@tomh.org>
parents: 3131
diff changeset
    94
        'tcp-socket-factory-impl.cc',
2224
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1496
diff changeset
    95
        'pending-data.cc',
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1496
diff changeset
    96
        'sequence-number.cc',
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1496
diff changeset
    97
        'rtt-estimator.cc',
3820
c04ecfdce1ef apply icmp patch
Craig Dowell <craigdo@ee.washington.edu>
parents: 3703
diff changeset
    98
        'ipv4-raw-socket-factory-impl.cc',
c04ecfdce1ef apply icmp patch
Craig Dowell <craigdo@ee.washington.edu>
parents: 3703
diff changeset
    99
        'ipv4-raw-socket-impl.cc',
c04ecfdce1ef apply icmp patch
Craig Dowell <craigdo@ee.washington.edu>
parents: 3703
diff changeset
   100
        'icmpv4.cc',
c04ecfdce1ef apply icmp patch
Craig Dowell <craigdo@ee.washington.edu>
parents: 3703
diff changeset
   101
        'icmpv4-l4-protocol.cc',
4472
e20a31541404 src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4377
diff changeset
   102
        'loopback-net-device.cc',
5782
f5299c974f1b Add IPv6 extension files from old ns-3-ipv6 repository (not working yet).
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 5237
diff changeset
   103
        'ndisc-cache.cc',
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4667
diff changeset
   104
        'ipv6-interface.cc',
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4667
diff changeset
   105
        'icmpv6-header.cc',
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4667
diff changeset
   106
        'ipv6-l3-protocol.cc',
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4667
diff changeset
   107
        'ipv6-end-point.cc',
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4667
diff changeset
   108
        'ipv6-end-point-demux.cc',
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4667
diff changeset
   109
        'ipv6-l4-protocol.cc',
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4667
diff changeset
   110
        'ipv6-raw-socket-factory-impl.cc',
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4667
diff changeset
   111
        'ipv6-raw-socket-impl.cc',
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4667
diff changeset
   112
        'ipv6-autoconfigured-prefix.cc',
5782
f5299c974f1b Add IPv6 extension files from old ns-3-ipv6 repository (not working yet).
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 5237
diff changeset
   113
        'ipv6-extension.cc',
f5299c974f1b Add IPv6 extension files from old ns-3-ipv6 repository (not working yet).
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 5237
diff changeset
   114
        'ipv6-extension-header.cc',
f5299c974f1b Add IPv6 extension files from old ns-3-ipv6 repository (not working yet).
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 5237
diff changeset
   115
        'ipv6-extension-demux.cc',
f5299c974f1b Add IPv6 extension files from old ns-3-ipv6 repository (not working yet).
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 5237
diff changeset
   116
        'ipv6-option.cc',
f5299c974f1b Add IPv6 extension files from old ns-3-ipv6 repository (not working yet).
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 5237
diff changeset
   117
        'ipv6-option-header.cc',
f5299c974f1b Add IPv6 extension files from old ns-3-ipv6 repository (not working yet).
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 5237
diff changeset
   118
        'ipv6-option-demux.cc',
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4667
diff changeset
   119
        'icmpv6-l4-protocol.cc',
5806
032bee420987 Add Ipv6ExtensionHeader tests (from Fabian Mauchle).
Sebastien Vincent <sebastien.vincent@turnserver.org>
parents: 5801
diff changeset
   120
        'ipv6-test.cc',
032bee420987 Add Ipv6ExtensionHeader tests (from Fabian Mauchle).
Sebastien Vincent <sebastien.vincent@turnserver.org>
parents: 5801
diff changeset
   121
        'ipv6-extension-header-test-suite.cc',
537
e8a4183dfe00 Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
   122
        ]
e8a4183dfe00 Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
   123
4064
10222f483860 Upgrade to new WAF, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3977
diff changeset
   124
    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
   125
    headers.module = 'internet-stack'
537
e8a4183dfe00 Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
   126
    headers.source = [
1244
9ee2a9242c10 make sure udp-header.h is exported for main-packet-printer
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1177
diff changeset
   127
        'udp-header.h',
2224
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1496
diff changeset
   128
        '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
   129
        'sequence-number.h',
3820
c04ecfdce1ef apply icmp patch
Craig Dowell <craigdo@ee.washington.edu>
parents: 3703
diff changeset
   130
        'icmpv4.h',
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4667
diff changeset
   131
        'icmpv6-header.h',
5681
795c049199c5 Includes cleanup + layer 2 link failure detection (untested)
Pavel Boyko <boyko@iitp.ru>
parents: 5677
diff changeset
   132
        # used by routing
5703
9cf2221d92ec merge with ns-3-dev
Borovkova Elena <borovkovaes@iitp.ru>
parents: 5702 4740
diff changeset
   133
        'ipv4-interface.h',
4740
34acfd7ad508 export headers from internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4731
diff changeset
   134
        'ipv4-l3-protocol.h',
5213
9f9acf33660f Modifications to the Ipv6L3Protocol::Drop trace source to align with Ipv4L3Protocol::Drop
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4740
diff changeset
   135
        'ipv6-l3-protocol.h',
5789
68cbb1f3c020 Update.
Sebastien Vincent <sebastien.vincent@turnserver.org>
parents: 5782
diff changeset
   136
        'ipv6-extension-header.h',
5801
86b47c42316c Ipv6Extension-Option link
Fabian Mauchle <fabian.mauchle@hsr.ch>
parents: 5789
diff changeset
   137
        'ipv6-option-header.h',
4740
34acfd7ad508 export headers from internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4731
diff changeset
   138
        'arp-l3-protocol.h',
34acfd7ad508 export headers from internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4731
diff changeset
   139
        'udp-l4-protocol.h',
34acfd7ad508 export headers from internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4731
diff changeset
   140
        'tcp-l4-protocol.h',
34acfd7ad508 export headers from internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4731
diff changeset
   141
        'icmpv4-l4-protocol.h',
34acfd7ad508 export headers from internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4731
diff changeset
   142
        'ipv4-l4-protocol.h',
34acfd7ad508 export headers from internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4731
diff changeset
   143
        'arp-cache.h',
5217
8a9dbc333e76 Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 5213
diff changeset
   144
        'icmpv6-l4-protocol.h',
8a9dbc333e76 Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 5213
diff changeset
   145
        'ipv6-l4-protocol.h',
6172
5abac7c4cb8d export missing header
Hajime Tazaki <tazaki@sfc.wide.ad.jp>
parents: 5856
diff changeset
   146
        'ipv6-interface.h',
5217
8a9dbc333e76 Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 5213
diff changeset
   147
        'ndisc-cache.h',
5856
7fd20c798a7d bug 742: Implementation of SO_BINDTODEVICE
Antti Mäkelä <zarhan@cc.hut.fi>
parents: 5811
diff changeset
   148
	'loopback-net-device.h'
4740
34acfd7ad508 export headers from internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4731
diff changeset
   149
       ]
3579
9e5eaef3e082 nsc: enable network simulation cradle
Florian Westphal <fw@strlen.de>
parents: 3380
diff changeset
   150
4245
49d337cba9db win32 build fixes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4117
diff changeset
   151
    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
   152
        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
   153
        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
   154
        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
   155
        obj.source.append ('nsc-sysctl.cc')
4740
34acfd7ad508 export headers from internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4731
diff changeset
   156
        headers.source.append('nsc-tcp-l4-protocol.h')
3651
9a2b20293ae5 bug 316: make nsc compilation conditional again
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3637
diff changeset
   157
        obj.uselib = 'DL'