Davide Pesavento
0c31537e48
Fix compilation with Boost 1.70.0
...
Refs: #4923
Change-Id: Ic0cb78586cee1ad5e527f7d2a23fd2e1bdbd0bcb
6 years ago
Davide Pesavento
6b33040eae
encoding: treat TLV-TYPE zero as invalid
...
* Use tlv::Invalid to indicate an invalid Block, instead of
UINT32_MAX (which is a valid type), thus fixing bug #4726
* Introduce Block::isValid as a replacement for Block::empty
and soft-deprecate the latter
* Improve test coverage of Block and tlv::readType
Refs: #4726 , #4895
Change-Id: I1cd3336fcbfe83555f3111738da67041dfae64f3
6 years ago
Davide Pesavento
599ee3f242
ci: adapt to new repo layout for CentOS boost RPMs
...
Change-Id: I5fc9ed6f94887a4b6125e843474623d1a4ccac95
6 years ago
Davide Pesavento
78e3549c16
util: update bundled copies of {any,optional,variant}-lite
...
any-lite commit b210d89239c3ffa969bffe8731d287674901a7fb
optional-lite commit a08fda6c674ae4c9ff43dcad89f630da512c24d6
variant-lite commit 94e2844cae3bfe19ab3c0f3a9aaa13f69a43c026
Change-Id: I859eb3d2fca8a74899d887a14f4e1a4361b79a8e
6 years ago
Davide Pesavento
b310efbdaa
docs+ndnsec: improve description and parsing of command options, rewrite man pages
...
Replace custom redmine_issue extension with sphinx.ext.extlinks
Refs: #4907
Change-Id: Ib0cb94156ae4fc80cdcaf4c70d7c8d55c16fcbc3
6 years ago
Davide Pesavento
fa995ac3d3
docs+tools: improve ndnsec help, error messages, and manual page
...
Exit with status code 2 on malformed command line
Refs: #3777
Change-Id: Id682a5d69c15c74cfa1903db38b5389936f5be58
6 years ago
Davide Pesavento
3891244ec3
interest: improve setApplicationParameters() behavior
...
Refs: #4658
Change-Id: Iecc476613d81b2958198a222717e9b5b522d72e2
6 years ago
Davide Pesavento
9c19a3900b
interest: rename Parameters to ApplicationParameters
...
Refs: #4658
Change-Id: I7eee6366545e1832efa07d5503c52f35c3ca6ed0
6 years ago
Davide Pesavento
4bb06bcedf
interest: improve the "CanBePrefix unset" warning
...
Refs: #4581
Change-Id: I4efd885ad4cd502e5fb1630239be08b8f2d39026
6 years ago
Davide Pesavento
46b04a5f84
docs: improve README.md
...
Change-Id: Iba7aea52bb67dd8ee788734e1141ab2459167090
6 years ago
Junxiao Shi
e7b90e5575
face: rework list structures
...
refs #3919
Change-Id: Ib734923ef5f701d733d5b0f915183f10434ce30b
6 years ago
Davide Pesavento
5437aa2375
tests: fix compilation with Boost 1.69.0
...
Also fix flawed logic in the same test case
Refs: #4890
Change-Id: Id99e412a2316747e55539955b59d6f6a4c98be47
6 years ago
Alexander Afanasyev
1660d00046
security: Add option to disable infrastructure interest in CertificateFetcherDirectFetch
...
Refs: #4879
Change-Id: I4ee7f831fde1fe6e951857c279546f7b7433def0
6 years ago
Junxiao Shi
a5f233e103
util: rename Scheduler::scheduleEvent to schedule
...
Deprecate Scheduler::scheduleEvent and Scheduler::cancelEvent
refs #4883
Change-Id: I2bb16922aff04300d92dfd276dd436958a96929a
6 years ago
Davide Pesavento
fd6123173d
util: add ndn::scheduler namespace alias
...
This is the new preferred way to refer to Scheduler and related
classes. The Scheduler class itself is also available as ndn::Scheduler
like before. ndn::util::Scheduler and ndn::EventId are deprecated.
Refs: #4883
Change-Id: I825c2a0911a959caa60d7d8a547ca7199c58f61e
6 years ago
Davide Pesavento
4fc9080417
ci: update Travis-CI configuration
...
* Drop clang 3.6 and 3.7
* Add clang 9 (trunk)
* Disable ASan on clang 7 and later due to a problem
with the ubuntu binary packages from apt.llvm.org
* Remove all OSX-10.11 configs (no longer supported)
* Add Xcode 10.2 on macOS 10.14
Change-Id: Ie1baad933798e9c11332050c58a47393c1011615
6 years ago
Davide Pesavento
fc27d3b659
Fix build with Xcode 10.2
...
Refs: #4860
Change-Id: I6a5ee5259185ac6311cc3ea75921a8d0ce522f1b
7 years ago
Davide Pesavento
77f1c7665e
build: do not look for unneeded libraries
...
Change-Id: Ifcf45442b947bf23355e270f1f9bda298792d4a2
7 years ago
Junxiao Shi
e209961817
name-component: encode/decode Convention rev2
...
Naming Conventions rev2 encode sequence numbers, version
numbers, segment numbers, byte offsets, and timestamps as
typed name components.
Markers as defined in Naming Conventions rev1 are still
supported.
The library by default recognizes both styles, and encodes as
markers. These defaults can be changed via
ndn::name::setConventionDecoding and
ndn::name::setConventionEncoding functions.
"segment offset" is renamed to "byte offset". Functions bearing
"SegmentOffset" in the name are deprecated in favor of their
"ByteOffset" counterparts.
refs #4777
Change-Id: I265d69af474ab27d274ee49619f5cae5fb2c429d
7 years ago
Davide Pesavento
923ba4415f
Replace all uses of BOOST_THROW_EXCEPTION with NDN_THROW
...
Refs: #4834
Change-Id: I1f9a614c83954873888d13c7b2b17a4fbff81058
7 years ago
Davide Pesavento
fccb2dc91c
encoding+interest: change Parameters to use non-critical type 36
...
Refs: #4780
Change-Id: I2cde10da4586737bb5c687a8aa9589beff1a80e1
7 years ago
Junxiao Shi
4fdcb274a3
face: deprecate Id types in favor of Handles
...
This includes:
PendingInterestId => PendingInterestHandle
RegisteredPrefixId => RegisteredPrefixHandle
InterestFilterId => InterestFilterHandle
refs #4316 , #3919
Change-Id: I3a2d2f813d36a2d6edbb8c460aaa6e2e380f41e3
7 years ago
Junxiao Shi
da9761f8e6
face: don't use memory address as PendingInterestId
...
Using memory address as PendingInterestId may cause false
removal of PendingInterest record if the memory allocator places
a different Interest at the same position in the heap.
refs #2865
Change-Id: Icf4d11509ad5c2acd56f180a333a68aa96f31768
7 years ago
Davide Pesavento
fd674016ab
util: introduce NDN_THROW
...
Refs: #4834
Change-Id: I35ff77a1d4e96caa17523cbdbb6f169390975d1b
7 years ago
Alexander Afanasyev
8fdae8909d
build: Propagate DEFINES of dependent libraries to libndn-cxx.pc
...
Refs: #3982
Change-Id: Id3c3bb219fe074c0e7427d34e0a0da4981952be3
7 years ago
Davide Pesavento
d0fef21ce5
common: drop inclusion of unistd.h
...
Change-Id: I1d2a5038f1ecf568eb7ba5cbab28c04c7ca62199
7 years ago
Davide Pesavento
5c803b9b28
encoding: improve documentation of Block class
...
Also add missing test cases for two constructor overloads
Change-Id: Iab76867b12684481ff5fc2587a3ebc8f5d176e71
7 years ago
Davide Pesavento
459a653226
util: update bundled copies of {any,optional,variant}-lite
...
any-lite commit 27d4f7dbb853bd28d5324b984bb030d0c7c6eca6
optional-lite commit 6a96f5199c746ac862a2ae184a10f8800b86e20f
variant-lite commit 1051f91afd28fdfc05b2d2b8d1a0359090aabe3e
Change-Id: I8b644419c4e3c1668ae97666af11499db8c3d2b2
7 years ago
Alexander Afanasyev
b72360faee
Prepare release 0.6.5
...
Change-Id: Ifc28a3a32d572b2455353bf164427ca2d37aebf9
Refs: #4821
7 years ago
Junxiao Shi
80609d44c3
face: scoped pending Interest
...
refs #4316
Change-Id: I79f832ce599f09a4d5bbf8cd8c4656d677dd164c
7 years ago
Alexander Afanasyev
7c5bc1e218
build: Upgrade waf build system to version 2.0.14
...
Version 2.0.6 had some strange issues with Python 3.7.2 on macOS with
Homebrew.
Change-Id: I518659141477f0ca0deee8fbc4608408642bc619
7 years ago
Junxiao Shi
07115cc106
util: reimplement scheduler::EventId with CancelHandle
...
<ndn-cxx/util/scheduler-scoped-event-id.hpp> header is deprecated.
It has been combined into <ndn-cxx/util/scheduler.hpp>.
Implicit conversion from nullptr to EventId is also deprecated.
refs #4698
Change-Id: I0310d41ac9638cb5be02ae61b887538f562541b2
7 years ago
Alexander Afanasyev
4e0cc6cf21
security: Remove use of ChildSelector in CertificateBundleFetcher
...
This commit also removes (unused) references to ChildSelector in
CertificateCache and TrustAnchorContainer.
Change-Id: I556382e41442dae172c25cd2de60ccdc28da3876
Refs: #4665
7 years ago
Davide Pesavento
322e76e7ed
Use Boost.Range to simplify some code
...
Change-Id: I8ea55e324205c3f13096be6037e82aaab302bb55
7 years ago
Chavoosh Ghasemi
6b99b6f185
Add MetadataObject class to encode/decode RDR-style metadata
...
Change-Id: I6688b630a4889614e7df5c1f91b91be370a350cd
Refs: #4707
7 years ago
Davide Pesavento
ca48851110
tests: delete goodness-of-fit tests from Util/TestRandom
...
They're not implemented correctly and fail too frequently.
Change-Id: Ibb228ba3193cd4491b330e22f5d6d8502adf8d3c
7 years ago
Junxiao Shi
c53df03ff3
lp: stop accepting NonNegativeInteger as sequence number
...
This commit also improves Lp/TestPacket/FieldAccess test case.
refs #4598
Change-Id: Iab480226da619a69bb5959c935c63f92d3bb3234
7 years ago
Junxiao Shi
60aaef0622
face: scoped Interest filter
...
refs #3919
Change-Id: I4e1aed63b2fabe463e9572b99bb3d97b278cabd6
7 years ago
Davide Pesavento
8db6152556
util: add random::getRandomNumberEngine() to the public API
...
Change-Id: I03d572e3c51a7256f53060e66c9eae0d1ab84c65
7 years ago
Junxiao Shi
ec475a7da5
face: scoped prefix registration
...
refs #3919
Change-Id: I858bf38000014a295cf853635b9c2a4275267d32
7 years ago
Davide Pesavento
c554551d96
Add git .mailmap
...
Change-Id: I949ca290b1a78fc7e2e7ec7659e1068f5348df0b
7 years ago
Davide Pesavento
bfe3139ede
util: seed the PRNG with more entropy
...
Change-Id: I0e54079bac039db0a10b2f443a3b02b85dd2bb68
7 years ago
Davide Pesavento
22f7bc3006
tests: don't throw if NetworkMonitor lacks CAP_ENUM
...
Gracefully handle this case by returning an empty list of interfaces
Change-Id: Ib07215c76dec60ec4bdc86358e1dbecd30a3ca62
Refs: #4796
7 years ago
Davide Pesavento
64ae55d781
build: ensure /usr/local/include is treated as system include path on FreeBSD
...
Also use the LLD linker by default on FreeBSD.
Change-Id: I42fc1b3688008e6fa40ee5f399501e54dba25a83
Refs: #4790
7 years ago
Davide Pesavento
534b841bc0
docs: refresh installation instructions and general cleanup
...
Change-Id: Ibfe945887e5cad979c1f9a78fd5a3062bb20a8b5
7 years ago
Ashlesh Gawande
ebe156c92f
util: fix SegmentFetcher undefined behavior caused by uncanceled pending interest
...
Change-Id: I4ca80ad00fc52024f35908b21d7c42bffc8a5396
Refs: #4770
7 years ago
Junxiao Shi
19b87de693
detail: move cf-*-osx.hpp to 'detail'
...
refs #4782
Change-Id: Ie00846ea0afad65ff0e10fb615163318832f127e
7 years ago
Junxiao Shi
70d76eb4da
transport: move Impl templates into 'detail'
...
refs #4782
Change-Id: I011ed5b75430d4235eccdbd5e1b9270ed413cc31
7 years ago
Junxiao Shi
1d23ff9277
detail: move asio-fwd to 'detail'
...
refs #4782
Change-Id: I9e39e3776669a2b3f69d7a964c0caf6333d1d79c
7 years ago
Junxiao Shi
1e36ceb0ff
detail: move packet-base|tag-host.hpp to 'detail'
...
refs #4782
Change-Id: I3e2e95a1286703bd1fea9c1a7abee9684b2fbd08
7 years ago