Junxiao Shi
feddc3c054
core: use ndn-cxx scheduler::ScopedEventId
...
refs #4698
Change-Id: I5ab56855fb22824e129fd7e3ccfb53174cf34f82
2019-01-17 19:06:00 +00:00
Davide Pesavento
e271260c49
core: seed the global PRNG with more entropy
...
Change-Id: I874b742e0d7cccfc71eb4ea21c60e6e1042d7d6f
2019-01-03 15:50:54 -05:00
Yanbiao Li
f48d0809f0
rib: reimplement auto prefix propagation based on readvertise
...
Change-Id: I6c4d81b829cf78084d26121c81d977d0a86c9a0c
Refs: #3819
2018-10-20 10:31:50 +00:00
Davide Pesavento
7015694293
tests: use "daemon" user/group in Test{PrivilegeHelper,GeneralConfigSection}
...
Change-Id: I40ff8317a11e8fb88555f6c85dae3430295ac435
Refs: #3403
2018-09-15 18:40:21 -04:00
Teng Liang
f59e58f202
core: add a facility to execute functions on the main io_service
...
Change-Id: I38e5f4ad5ed6798a14e0075fb7a14b792f8b2413
refs: #4683
2018-09-10 12:42:01 -07:00
Teng Liang
04d5ce685d
rib: make Service globally accessible via get() static function
...
Change-Id: I2101fb81a613d301acbce7f26e062caa692c5e29
Refs: #4683
2018-08-11 00:54:18 +08:00
Teng Liang
952d6fd3d7
core: add a facility to execute functions on the RIB io_service
...
refs #4279
Change-Id: I29222053348e5d1737d47c85a59d29280b4b791b
2018-08-05 14:12:14 -04:00
Davide Pesavento
e4b2238b33
Improve and simplify code with modern C++ features
...
Change-Id: I83bf5513c2a1f90ba5a59e93c473306864b27d94
2018-06-11 20:26:47 -04:00
Davide Pesavento
c0822fa4a5
build: switch to C++14
...
Change-Id: I7a32dad01e74ef5b7c5f37a5464d0b17a7882c61
Refs: #3076
2018-06-06 16:24:22 -04:00
Davide Pesavento
9c33b90fd3
core+face+tools: use asio::ip::address::from_string directly
...
The compatibility wrappers in ndn-cxx are no longer needed
and will be deprecated soon.
Change-Id: I394164c11dfe776f1d5a6f7c0dceffe9ce6ad85f
2018-05-22 18:22:49 -04:00
Davide Pesavento
a3148081ce
core: reimplement logging using ndn-cxx's facility
...
Change-Id: Ifc7c5d70a61ad405dc1f1adfa522a2c0ad1586ab
Refs: #4580
2018-05-05 23:04:22 -04:00
Davide Pesavento
e34a2825f1
core: silence truncation warning in LoggerTimestamp's operator<<
...
Change-Id: I85882bf5589fbdb8239deec285509c123740ec25
Refs: #4365
2018-04-20 13:10:18 -04:00
Davide Pesavento
87fc0f8d6f
core: drop std::function and ndn::Exclude from common.hpp, add ndn::optional
...
Change-Id: Ie3983d8b6f9929430efd8ada8d942e3f95755cd4
2018-04-12 14:23:40 -04:00
Davide Pesavento
981db808cb
Delete core/asserts.hpp and use ndn-cxx's util/concepts.hpp instead
...
Change-Id: I13a3460c1c3a90ea0fdca3d8212267353f72af4f
2018-04-11 19:24:54 -04:00
Davide Pesavento
1cb619e63b
docs: fully qualify types documented via doxygen's \class command
...
Change-Id: I38594e4d358078d3c6dc7c588695c4b299a44895
2018-04-11 19:24:48 -04:00
Alexander Afanasyev
e4d745d41f
core: Add IpAddressPredicate for white-/blacklisting IP address subnets
...
Change-Id: I9f67c4bcbc55e8a8de0bb70812c5562ba083c948
Refs: #4546
2018-04-10 19:28:07 -04:00
Alexander Afanasyev
3bdc1decf6
core: Add support for IPv6 subnets in Network::isValidCidr
...
This change effectively adds support for IPv6 subnets in white-/blacklists
of NetworkInterfacePredicate
Change-Id: I1962100329d398b4659c4d1a4a0975fa354af026
Refs: #4546
2018-04-09 19:25:14 +00:00
Davide Pesavento
acd00876f9
core: optimize PrivilegeHelper::runElevated()
...
Using std::function is overkill
Change-Id: I0e60592aea1b2fb82c3ea780701dae5e129a9810
2018-02-15 18:26:18 -05:00
Davide Pesavento
85244373f9
core: don't complain if the configuration file is empty
...
It is not an error in itself.
Change-Id: I2d100203c9c63ef4774e00dfa17fd1087e381122
2018-02-03 20:19:09 -05:00
Junxiao Shi
75306351ff
rib: limit route prefix length in rib/register command
...
refs #4262
Change-Id: I567934419f6872cb0f5a823400f53014b9c6e85e
2018-02-01 21:59:44 +00:00
Davide Pesavento
15b5505e01
face: group parameters to createFace and connect into a common structure
...
Change-Id: Icb6857602ed7e897be6c5334b05be23793d133bb
2018-01-29 18:56:12 -05:00
Yanbiao Li
afb2059377
use ndn::ip::address(V6)FromString for scope-id aware conversion
...
Change-Id: Ifdc31771b8a990867c0a79ba42b71c87a97bcd56
Refs: #1428
2017-10-06 10:15:51 -07:00
Davide Pesavento
c25737cd9a
ci+docs: remove all references to cryptopp/crypto++
...
Change-Id: I40fc72a8fa27c1a73c349e8cbaeb402a8b6af742
Refs: #3946
2017-08-26 16:39:56 -04:00
Davide Pesavento
a997d29622
Fix compilation with Boost 1.65.0
...
Change-Id: Ib88b7e13bddb1728dd882c086e97edffdd696f0d
Refs: #4258
2017-08-25 23:30:24 -04:00
Junxiao Shi
a5765d647b
core: delete NetworkInterfaceInfo class
...
nfd::NetworkInterfaceInfo has been replaced by
ndn::net::NetworkInterface.
refs #4021
Change-Id: Ic023b935f47f99f3bd74bbd4dc6c0e5bb2b3bf1c
2017-08-09 04:07:46 +00:00
Junxiao Shi
fc2e13d58d
fw: replace Link with forwarding hint
...
Forwarding now processes forwarding hint on Interests,
and no longer considers the Link object.
refs #4055
Change-Id: I0331687ee8ec31afa2f1a105e903670689647c4d
2017-07-25 02:08:48 +00:00
Junxiao Shi
0d82d0459c
face: construct EthernetTransport with NetworkInterface
...
EthernetTransport and EthernetChannel constructors now accept
ndn::net::NetworkInterface instead of NetworkInterfaceInfo,
in preparation for the transition to NetworkMonitor.
refs #4021
Change-Id: I1687a13dfaafde4ab3795a6f8c76c728c12929b9
2017-07-07 06:15:27 +00:00
Junxiao Shi
2760adcb80
core: NetworkInterfacePredicate accepts ndn::net::NetworkInterface
...
refs #4021
Change-Id: I6612a67db03b6651e8fbccad91f776ae502283d9
2017-07-06 05:44:52 +00:00
Junxiao Shi
83be1dae4b
use FaceUri and NetworkMonitor from ndn-cxx/net
...
This commit also contains a quick fix in LpReliability to avoid
ndn::lp::Packet::wireEncode(EncodingEstimator&).
refs #3940 , #4156
Change-Id: Ice8e3649be21dd023ed1f6562c185f9e6721e45e
2017-06-30 13:37:37 +00:00
Davide Pesavento
43ff2a9254
face: EthernetChannel
...
Change-Id: I8d9be571a2b0abe0cfad09756ea6c691e0679450
Refs: #4011
2017-06-22 14:11:08 -04:00
Eric Newberry
73bcad33b9
core: make SizeCounter use pointer instead of reference
...
Restore virtual inheritance of GenericLinkServiceCounters in
GenericLinkService
refs #3941
Change-Id: I368e4694fee7bc97173fddfc81d0c679da0d6eed
2017-04-27 18:53:34 -07:00
Eric Newberry
185ab29325
face: add best-effort link-layer reliability
...
refs #3931
Change-Id: I009fabe000f4dd4ceb62acab6b0c735c13112430
2017-03-28 06:45:39 +00:00
susmit
21f22e692f
core: enable wildcard matching on interface names for whitelist/blacklist
...
Change-Id: Iabf5084028d7e8c4a26ec5289c331f4a779c0bf7
Refs: #4009
2017-03-26 18:35:04 -04:00
Davide Pesavento
d396b61ba1
rib: a few cleanups and simplifications in RibManager
...
Change-Id: I77699525ab372c4f4f3bbcae74e65bec24a86b4c
Refs: #3903
2017-03-12 19:53:54 -04:00
Alexander Afanasyev
635bf20ef5
Remove use of deprecated code
...
Notably, faces/enable-local-control and faces/disable-local-control
management commands are removed in this commit.
Change-Id: I9ba45c9697eca418315c1c749a3c0c602a36f34e
Refs: #3988
2017-03-09 21:57:34 +00:00
Junxiao Shi
7003c609b8
face: process face_system.ether config section in EthernetFactory
...
This commit also fixes a potential memory access error in EthernetTransport.
refs #3904
Change-Id: I08296e7c6f1039b59b2859d277fc95326af34f52
2017-01-10 13:35:28 +00:00
Junxiao Shi
38b24c7b94
face: process face_system.tcp config section in TcpFactory
...
refs #3904
Change-Id: I509f07e6835a96c7ba05137529f29da76a6514fd
2017-01-05 02:59:31 +00:00
Junxiao Shi
3aba7548f4
table: make FIB and StrategyChoice iterators default-constructible
...
They were previously not default-constructible when compiled with gcc 4.8.4.
refs #3882
Change-Id: I2431c869fb61b7adbe83d5551705981bf8618280
2016-12-24 02:42:52 +00:00
Davide Pesavento
ac767aad0f
core: Network: fix uncaught bad_lexical_cast in isValidCidr()
...
Change-Id: Ibeac1bb5d637324e880f00a0ae0ff9e65506efd4
Refs: #3858
2016-11-20 02:35:06 +01:00
Davide Pesavento
89567d3b31
core: Network: misc code cleanups
...
Change-Id: Idc37b5f834220e8e980958953785806687435f36
Refs: #3858
2016-11-20 02:19:25 +01:00
Weiwei Liu
dcdf6212cc
face: support permanent persistency in TcpTransport
...
refs #3167
Change-Id: I217c5f0fe0dfbbd759861ee262920cc03394b0ed
2016-11-19 02:43:53 +01:00
Davide Pesavento
5f47aa6140
core: use C++11 <random> instead of Boost.Random
...
Change-Id: I8f22965b86c681581762a47995f29f888421a558
Refs: #3599
2016-11-04 17:56:14 +01:00
susmit
91e1d7ce48
mgmt: create Ethernet multicast faces according to whitelist/blacklist
...
Refs: #1712
Change-Id: Iaabaeaf58e460c86ca58f9099b5c2b904a5a5c93
2016-10-26 20:45:02 -06:00
Junxiao Shi
c06746182b
core: delete unused SegmentPublisher
...
SegmentPublisher was used in RibStatusPublisher which has been deleted.
refs #2857
Change-Id: I2c294f58a6444a99a2453057e4718cef27afe517
2016-09-17 12:32:35 +00:00
Alexander Afanasyev
6459e64f36
core: initialize Boost.Log backend through ndn-cxx
...
ndn-cxx logging facility and NFD logging both use Boost.Log.
When each of ndn-cxx and NFD adds a std::clog sink, messages are
appearing twice on OS X, resulting in scrambled log output.
This commit removes NFD's Boost.Log backend initialization and
let ndn-cxx logging facility initialize Boost.Log.
Change-Id: Ib25efe5c924d530424c275f9c8f168683f4ef039
Refs: #3761
2016-09-12 10:01:36 -07:00
Junxiao Shi
25c6ce41d5
mgmt+rib: include ndn-cxx/mgmt/nfd/*
...
refs #3760
Change-Id: I9a2e3012af2f72495ce3259fa4f51ebaa8ea7096
2016-09-09 13:49:59 +00:00
Junxiao Shi
0cc125c365
mgmt: TablesConfigSection constructor accepts Forwarder&
...
refs #2181
Change-Id: I1a87dd573f25f3806bc1b1f3c60ec9eef0eca4e3
2016-08-25 21:50:04 +00:00
Junxiao Shi
9ddf1b5c26
mgmt: NfdManagerBase::makeAuthorization uses CommandAuthenticator
...
This commit also eliminates Forwarder in Mgmt/TestFaceManager/CreateFace test suite
and uses FaceTable directly.
refs #2063
Change-Id: I596e8c2a12dad64ee75082f384955f30d574f53e
2016-08-22 03:58:55 +00:00
Junxiao Shi
217384025e
core: change ManagerBase::authorize to makeAuthorization
...
refs #2063
Change-Id: I0e6faced6e4e1733362e3ec018e2ee60fcefafa1
2016-08-22 03:58:28 +00:00
Junxiao Shi
9f5b01dfd8
core: move common.hpp to core/
...
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
2016-08-05 03:54:28 +00:00