Headers in core/ are now included as `#include "core/*.hpp"`.
This allows NFD to rely less on include paths when used as a submodule in
another codebase, such as ndnSIM and NFD-Android.
refs #3127
Change-Id: Ia38f3c97427e17ff7b5401281f1fe875b5d5313e
Without the full specification, compilation may fail if the logging
used outside ::nfd namespace, e.g., in NFD tools.
Change-Id: I24d733acf920bc90521ac457ae1fe6c846a1fe3e
nfd::NotificationStream is no longer necessary because NFD Management
has switched to ndn::util::NotificationStream from ndn-cxx.
refs #2144
Change-Id: I30678c58dea4ea0b41c88a0ef7e660b116579e44
GCC 5 is able to prove that in some translation units the static Logger
instance is defined but never used, and generates an unused variable
warning for each one of them. These warnings become fatal errors when
building in debug mode, due to -Werror.
Silence the compiler by not declaring the unused variables.
refs #2767
Change-Id: Icacc579d917d660582221ef090954ec827f46149
Two conditionals are introduced in this commit:
- if <ifaddrs.h> is not available, NetworkInterface helper will always return
an empty set of interfaces
- If dropping/elevating effective user/group is not supported, an error
will be thrown if used (e.g., if general.user or general.group is
configured)
Both conditionals are necessary on Android platform.
Change-Id: Ib360e03514af97ed2d68032fbcbe279a8dc84682
NFD still uses its own NotificationStream, as ApiFace needs to be
changed to use library's version of the class.
Change-Id: Ifc5727a555528a1aa48ccf7379fcbb61a33049d7
This commit also refactors FaceMonitor as generic NotificationSubscriber,
and refactors AutoregServer to use FaceMonitor.
refs #1837#1838
Change-Id: I8b40dfae118853d1224c8290cf92e7cc0daa116f
This change ensures interface uniformity between nfd::AppFace and
ndn::Face and allow now templated version of SegmentPublisher to be used
with either.
Change-Id: I82e29528b13b37bd2ae27ef47db30e8c87c15a38
Refs: #1749
The following elements from the config file are reloaded:
- effective user/group
- log levels
- multicast faces (enable/disable)
- security
Change-Id: I6ddf124702b30610dd0404d8fbaa9a9d800f02bf
Refs: #1584
The ether URI format "ether://01:00:5e:00:17:aa" violates
the URI specification, so it has been changed to
ether://[01:00:5e:00:17:aa] in this commit.
refs: #1438
Change-Id: I1218374b75f919a5e1ab158bbab2e217e64aced3
Note that as of this commit, there are several changes in location of
compiled binaries in `build/` folder:
* `nfd` has been moved to `build/bin/nfd`
* `unit-tests` has been split into `unit-tests-core` and `unit-tests-daemon`
Change-Id: I2c830c117879edbaa5457d6423c13f0273285919
Refs: #1486
As of this commit, libpcap is required unless specifically disabled
using --without-libpcap parameter during configure stage.
Change-Id: Iec6f8bd9babfe4da193c98a49043b08319311106
Refs: #1472
This allows us to compile NFD in C++11 mode, making use of std::shared_ptr,
std::function, std::bind, etc. rather than their boost equivalents
(provided that ndn-cpp-dev is also compiled in C++11 mode). This is an
experimental feature and may not work properly.
Change-Id: I310529f78e1e428a8530b087983130d1ef3a9d88