Skip to content

Commit 11dfcb7

Browse files
committed
Upgrade NFD to version 0.6.6
Change-Id: Iebfcde0692cf98a8520954ea4d7d51238af6e822
1 parent 8fbcc64 commit 11dfcb7

File tree

5 files changed

+26
-10
lines changed

5 files changed

+26
-10
lines changed

NFD

Submodule NFD updated 393 files

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ version:
1212
- ndnSIM uses implementation of basic NDN primitives from
1313
[ndn-cxx library (NDN C++ library with eXperimental eXtensions)](http://named-data.net/doc/ndn-cxx/)
1414

15-
Based on version `0.6.5`
15+
Based on version `0.6.6`
1616

1717
- All NDN forwarding and management is implemented directly using source code of
1818
[Named Data Networking Forwarding Daemon (NFD)](http://named-data.net/doc/NFD/)
1919

20-
Based on version `0.6.5`
20+
Based on version `0.6.6`
2121

2222
- Allows [simulation of real applications](http://ndnsim.net/guide-to-simulate-real-apps.html)
2323
written against ndn-cxx library

model/ndn-l3-protocol.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@
4747
#include "ns3/ndnSIM/NFD/daemon/mgmt/tables-config-section.hpp"
4848
#include "ns3/ndnSIM/NFD/daemon/mgmt/command-authenticator.hpp"
4949

50-
#include "ns3/ndnSIM/NFD/rib/service.hpp"
50+
#include "ns3/ndnSIM/NFD/daemon/rib/service.hpp"
5151

5252
#include "ns3/ndnSIM/NFD/daemon/face/null-face.hpp"
5353
#include "ns3/ndnSIM/NFD/daemon/face/internal-face.hpp"
5454

55-
#include "ns3/ndnSIM/NFD/core/config-file.hpp"
55+
#include "ns3/ndnSIM/NFD/daemon/common/global.hpp"
56+
#include "ns3/ndnSIM/NFD/daemon/common/config-file.hpp"
5657

5758
#include <ndn-cxx/mgmt/dispatcher.hpp>
5859

@@ -379,7 +380,7 @@ L3Protocol::DoDispose(void)
379380
// MUST HAPPEN BEFORE Simulator IS DESTROYED
380381
m_impl.reset();
381382

382-
nfd::scheduler::resetGlobalScheduler();
383+
nfd::resetGlobalScheduler();
383384

384385
m_node = 0;
385386

ndn-cxx

Submodule ndn-cxx updated 229 files

wscript

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ def build(bld):
8585
VERSION=int(split[0]) * 1000000 + int(split[1]) * 1000 + int(split[2]),
8686
VERSION_MAJOR=split[0], VERSION_MINOR=split[1], VERSION_PATCH=split[2])
8787

88+
bld(features="subst",
89+
name="versioncpp-NFD",
90+
source='NFD/core/version.cpp.in', target='NFD/core/version.cpp',
91+
install_path=None,
92+
VERSION_STRING=base,
93+
VERSION_BUILD="%s-ndnSIM" % build,
94+
VERSION=int(split[0]) * 1000000 + int(split[1]) * 1000 + int(split[2]),
95+
VERSION_MAJOR=split[0], VERSION_MINOR=split[1], VERSION_PATCH=split[2])
96+
8897
(base, build, split) = bld.getVersion('ndn-cxx')
8998
bld(features="subst",
9099
name="version-ndn-cxx",
@@ -95,6 +104,12 @@ def build(bld):
95104
VERSION=int(split[0]) * 1000000 + int(split[1]) * 1000 + int(split[2]),
96105
VERSION_MAJOR=split[0], VERSION_MINOR=split[1], VERSION_PATCH=split[2])
97106

107+
bld.objects(
108+
target='version-NFD-objects',
109+
source='NFD/core/version.cpp',
110+
includes='../../ns3/ndnSIM/NFD',
111+
use='version-NFD versioncpp-NFD')
112+
98113
deps = ['core', 'network', 'point-to-point', 'topology-read', 'mobility', 'internet']
99114
if 'ns3-visualizer' in bld.env['NS3_ENABLED_MODULES']:
100115
deps.append('visualizer')
@@ -110,7 +125,7 @@ def build(bld):
110125
'ndn-cxx/ndn-cxx/detail/*osx.cpp',
111126
'ndn-cxx/ndn-cxx/net/network-interface.cpp'])
112127

113-
nfdSrc = bld.path.ant_glob(['%s/**/*.cpp' % dir for dir in ['NFD/core', 'NFD/daemon', 'NFD/rib']],
128+
nfdSrc = bld.path.ant_glob(['%s/**/*.cpp' % dir for dir in ['NFD/core', 'NFD/daemon']],
114129
excl=['NFD/daemon/main.cpp',
115130
'NFD/daemon/nfd.cpp',
116131
'NFD/daemon/face/*ethernet*',
@@ -123,7 +138,7 @@ def build(bld):
123138
module = bld.create_ns3_module('ndnSIM', deps)
124139
module.module = 'ndnSIM'
125140
module.features += ' ns3fullmoduleheaders ndncxxheaders'
126-
module.use += ['version-ndn-cxx', 'version-NFD', 'BOOST', 'SQLITE3', 'RT', 'PTHREAD', 'OPENSSL']
141+
module.use += ['version-ndn-cxx', 'version-NFD-objects', 'BOOST', 'SQLITE3', 'RT', 'PTHREAD', 'OPENSSL']
127142
module.includes = ['../..', '../../ns3/ndnSIM/NFD', './NFD/core', './NFD/daemon', './NFD/rib', '../../ns3/ndnSIM', '../../ns3/ndnSIM/ndn-cxx']
128143
module.export_includes = ['../../ns3/ndnSIM/NFD', './NFD/core', './NFD/daemon', './NFD/rib', '../../ns3/ndnSIM']
129144
if 'ns3-visualizer' in bld.env['NS3_ENABLED_MODULES']:
@@ -142,7 +157,7 @@ def build(bld):
142157
excl=[
143158
'model/ip-faces/*']) + ndnCxxSrc + nfdSrc
144159

145-
module_dirs = ['NFD/core', 'NFD/daemon', 'NFD/rib', 'apps', 'helper', 'model', 'utils', 'bindings']
160+
module_dirs = ['NFD/core', 'NFD/daemon', 'apps', 'helper', 'model', 'utils', 'bindings']
146161
module.full_headers = bld.path.ant_glob(['%s/**/*.hpp' % dir for dir in module_dirs])
147162
module.full_headers += bld.path.ant_glob('NFD/common.hpp')
148163

0 commit comments

Comments
 (0)