Davide Pesavento
e277f8b9e8
tools: switch to Face::getIoContext()
...
Change-Id: I6be4c682d62e1061af45052d2141b9e5b9e897c5
2023-11-11 17:14:02 -05:00
Davide Pesavento
9a63bf22d0
face: add missing includes
...
Change-Id: I2d855f71310e824205d37d892749c3eab9f5b3c3
2023-11-11 17:12:51 -05:00
Davide Pesavento
ef6a528ae0
tests: randomize port used in multicast transport tests
...
Change-Id: I6030317ad10cf6f3c81f29c2a3898b41a1982c0e
2023-11-03 16:50:10 -04:00
Davide Pesavento
a9ec67c52b
tests: expand test coverage of EthernetFactory and UdpFactory
...
Change-Id: I469ac8682502ca7a0e360703b462bfb119eaedf1
2023-10-23 21:00:03 -04:00
Davide Pesavento
d7083a507f
tests: refactor EthernetFixture
...
Also, use BOOST_TEST_INFO_SCOPE in a few places.
Change-Id: I113f326207825949ed9d3d22ade0654976d49b76
2023-10-19 17:51:16 -04:00
Davide Pesavento
c5a9f81fce
face: more robust handling of multicast face creation errors
...
Refs: #5030 , #5297
Change-Id: I3ca985498d9d3756cbff94873063f3734bcea288
2023-10-19 02:12:05 -04:00
Davide Pesavento
0a05f7aea6
build: disable -Wnon-virtual-dtor compiler warning
...
It's overkill and suffers from annoying false positives that
prevent us from applying the "protected non-virtual destructor"
idiom in several perfectly valid cases. See for instance the
GCC bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102168
The -Wdelete-non-virtual-dtor warning (included in -Wall) is
the preferred alternative and is enough to catch the unsafe
cases without false positives.
Partially reverts 847de408cb
Change-Id: I46ee1f01e7d4e2b125c2c534c6550824ba1de4c0
2023-10-16 20:50:03 -04:00
Davide Pesavento
c0df94ed10
face: minor code cleanups
...
Change-Id: I154d2ad4dfd9e12e1fa9756f74884286b31298e4
2023-10-08 19:26:55 -04:00
Davide Pesavento
d91fe6d921
core+face: avoid deprecated Boost.Asio interfaces
...
Change-Id: I07ec286531edf63f258babe1561b4da2a88edd10
2023-10-04 21:40:02 -04:00
Davide Pesavento
5d64263dcb
daemon: use asio::defer() instead of asio::post() where appropriate
...
Change-Id: I24d0fab6499d6430dd500ca157daa87f48960d15
2023-10-03 00:36:08 -04:00
Davide Pesavento
a9e1ab2664
build: require boost >= 1.71.0
...
Refs: #5276
Change-Id: Ie428541639dcf1113acfb9e9d0a80f9be87d6cd3
2023-10-02 22:42:02 -04:00
Davide Pesavento
910232fce0
build: use python f-strings
...
Change-Id: I955739ac40508642509521760c1bc75286c94f30
2023-09-08 14:20:02 -04:00
Davide Pesavento
8f0b8b6063
Simplify some code with Boost.Operators
...
Change-Id: Ic873bcbaf6be00d5c35601cfc8090df534d815ee
2023-08-29 21:04:08 -04:00
Davide Pesavento
95afc6d8a4
fw: increment nOutNacks when sending a Nack from onInterestLoop
...
Also expand test coverage of all forwarder counters
Change-Id: I6948af05aca1b5589e2f1c8a1f23c002d39d0ec0
2023-08-02 21:20:05 -04:00
Davide Pesavento
ae43030f6f
Further reduce the use of std::bind()
...
And also avoid deprecated ndn-cxx type aliases
Change-Id: I87e903b9671a3cf1c1b9ab30d4594d595c3c6da9
2023-05-11 01:50:11 -04:00
Davide Pesavento
63b3ae818f
tools: fix compilation with latest ndn-cxx
...
Change-Id: Ifded624f3256452be98f288f9193dd26e464cd36
2023-03-27 14:05:04 -04:00
Davide Pesavento
4064127b97
mgmt+tools: add missing includes
...
Change-Id: I53aeaa6b223b616c170697662d02a028cea67400
2023-03-16 13:31:12 -04:00
Davide Pesavento
d6ea0b1e0e
tests: use std::nullopt
...
Change-Id: I7efdc8076c1bc4ced11dd3bdab7f199609009545
2023-03-13 22:54:15 -04:00
Davide Pesavento
aa9e3b2148
docs: fix capitalization in doxygen comments
...
Change-Id: Ibf5ee5119d12d60d382b0acef8dfd08277c18fcb
2022-10-29 21:45:24 -04:00
Davide Pesavento
b83d3df256
mgmt: finalize migration to the new signed Interest format
...
Change-Id: I6d3fe1bd092fa80e185d36746a42c188ab00a60e
2022-10-13 09:45:33 -04:00
Davide Pesavento
6d6f207661
mgmt: rename extractRequester() and support signed Interest v0.3
...
Change-Id: I6bb6635896fa1b9fa54beb70b902c5a35831dc9c
2022-10-13 08:55:42 -04:00
Davide Pesavento
20d94f67f8
Use inline on all namespace-scope constants defined in headers
...
Change-Id: Ic61f8d26f59fdc2895415ca47065c02d6eec28ed
2022-09-26 03:30:53 -04:00
Davide Pesavento
279af1ceac
tests: fix UDP multicast transport tests with IPv6
...
A valid scope id is always required on the multicast address
Change-Id: Ic676fcde0ee50daf75eb38c137e3cb917f43699f
2022-08-29 20:18:32 -04:00
Teng Liang
d94b7b3b24
face: reimplement EndpointId with std::variant
...
Refs: #5041
Change-Id: Ib8aced49a7aa14b137fb06de4a0ae8b979f07587
2022-08-24 19:38:47 -04:00
Davide Pesavento
e541d1b250
build+ci: support macOS on arm64
...
Refs: #5135
Change-Id: I86f1955366df12cfb8b3e6f9d5e9f202778cc211
2022-08-18 20:50:05 -04:00
Davide Pesavento
20cafa8715
tests: minor code cleanups
...
Change-Id: I9759ba4b7eb467d4d1df4b379efad91bc4f5cc3a
2022-07-25 01:15:03 -04:00
Davide Pesavento
a9b09b6994
build: make precompiled headers more useful
...
This can reduce the compilation time of a release
build (without tests) by more than 40%
Refs: #5212
Change-Id: I977aff0c0c7becbfee8a8b55605b81d0c014829b
2022-06-13 16:30:11 -04:00
Davide Pesavento
e422f9e1e9
Refactor and modernize namespace declarations
...
Move all unit tests to namespace nfd::tests
Delete unused header core/algorithm.hpp
Change-Id: I5591f0c5f3bb5db67f8b45fae95471f8a555ca68
2022-06-11 20:10:26 -04:00
Davide Pesavento
a3a7a4e330
Use more C++17 features
...
Mainly structured bindings, inline variables, and class template
argument deduction, plus many more smaller things.
Change-Id: I810d17e0adb470426e4e30c898e03b3140ad052f
2022-06-04 20:26:02 -04:00
Davide Pesavento
b7bfcb904a
build: switch to C++17
...
Change-Id: Ie68020a04b7e20b74778b6d0370544ded55c5e26
2022-05-23 03:42:32 -04:00
Junxiao Shi
4b84a2c9be
tests: expect certificate name in KeyLocator
...
Also, delete unused KeyChainFixture::makeCert function.
refs #5112
Change-Id: I59b1ca81fca0481a37126270c447f639080ec75f
2022-04-28 03:17:05 +00:00
Ashlesh Gawande
1ef93d0316
fw: add strategy parameters to configure exponential retx suppression
...
Supported by ASF, BestRoute, and Multicast strategies
Refs: #4924
Change-Id: I215d9212d90b93fa622cc65278703dc5198d0c9d
2022-04-08 00:27:27 -04:00
Davide Pesavento
deb5427bb4
daemon+tests: avoid deprecated ndn-cxx functions
...
Change-Id: Idfa341629919d63fac140eda0b465f8f8abd38e6
2022-03-11 18:51:05 -05:00
Davide Pesavento
1b22a8c156
tests: drop redundant calls to Interest::setCanBePrefix(false)
...
Change-Id: I6afd1028ab370633c64a74ab4310396dab3c8a03
2022-03-07 21:23:23 -05:00
Davide Pesavento
c52cd5eec1
build: align minimum build dependencies with ndn-cxx
...
* boost 1.65.1
* gcc 7.4
* clang 6.0
* Xcode 10.0 (11.3 or later recommended)
Change-Id: I5e41f2a70d6c510dcb889a083a51504121b4627d
2022-03-05 20:40:54 -05:00
Alexander Afanasyev
5006c1d6af
Prepare release 22.02
...
Change-Id: Ie0d8db596c11c4f298755aa4b7fde5e616f32ceb
Refs: #5172 , #5184
2022-02-17 16:07:18 -05:00
Davide Pesavento
a599d2aac9
Convert to span and avoid deprecated ndn-cxx functions
...
Change-Id: I45c50527fe53498b53a3d951458bdff8e7d7778c
2022-02-16 18:52:43 -05:00
Junxiao Shi
727b61087a
table+fw: update ForwardingHint format
...
refs #5187
Change-Id: Ic8e32c83caeb60404f1b035a4f7e9841cc513f0b
2022-01-11 18:40:04 +00:00
Alexander Afanasyev
c414ca5895
tools: Allow batch command processing by nfdc
...
Change-Id: Ia6f70fed88f2d4c918e2ca2b786222840dbd9076
Refs: #5169
2021-12-21 14:27:26 -05:00
Saurab Dulal
af3ff5a8c6
fw: rename n-silent-timeouts to max-timeouts in AsfStrategy
...
Change-Id: Ie2790a4e1fd545aacf8b297d7ec33b204f2cdbfc
2021-09-19 19:45:25 -04:00
Davide Pesavento
412c982a63
Reduce usage of std::bind()
...
C++14 lambdas are easier to read, easier to debug,
and can usually be better optimized by the compiler.
Change-Id: I294f275904f91942a8de946fe63e77078a7608a6
2021-07-02 00:21:05 -04:00
Philipp Moll
a103334b1c
fw: Add default HopLimit to Interest when missing
...
Refs: #5171
Change-Id: I5973811b5ca7c7cf5ff344872afa51b253b9cae8
2021-06-25 00:24:23 -04:00
Davide Pesavento
0498ce85b0
fw: reorder function params to make the strategy API more uniform
...
Also add a non-const overload of Face::getCounters to avoid const_cast
Refs: #5173
Change-Id: Iff0bfbdedb90e68a373090cf3f247d9a7501f58d
2021-06-14 14:18:03 -04:00
Varun Patil
67ad70fbd5
table: prevent duplicates in DeadNonceList
...
refs #5167
Change-Id: Ia7546f75b844cfa1d857a641b015fbc6e9dfaf3d
2021-06-07 16:18:02 -07:00
Davide Pesavento
d412393379
table: DeadNonceList code cleanup/modernization
...
Change-Id: I7d2bb8982b60b138c979470406b0a607301f2768
2021-05-28 19:21:03 -04:00
Davide Pesavento
6a699be8cd
tests: use InterestSigner instead of deprecated CommandInterestSigner
...
Change-Id: Iaf98026c9c0a7ee3950d79f4d810e0a7abba43b1
2021-05-17 02:13:37 -04:00
Eric Newberry
7249fb4d52
docs+tests: finalize migration to typed naming conventions
...
refs #5044
Change-Id: Ia6f52ae0a31db33ca0f9fa6c4553b8fbbc7809bc
2021-04-05 18:16:44 -04:00
Eric Newberry
358414d82f
fw: remove reliance upon marker name components
...
refs #5044
Change-Id: Iea6c98e03dbd3e4463f7bb6fca0be4953a2cdc40
2021-03-25 21:10:38 -07:00
Davide Pesavento
22085365d2
mgmt: fix construction of CertificateRequest in CommandAuthenticatorValidationPolicy
...
Just pass the KeyLocator name and let CertificateRequest deal
with constructing the Interest and setting CanBePrefix
Refs: #4582
Change-Id: I323d8ac5e16605bb978addc623e525b2536238bf
2021-03-18 22:08:03 -04:00
Saurab Dulal
432be57380
fw: use per-upstream suppression in ASF strategy
...
Refs: #5140
Change-Id: I49b27ce6b55d01724d0eafa792785d081c6009f7
2021-03-17 16:50:10 -04:00