Commit Graph
240 Commits
Author SHA1 Message Date
Davide Pesavento e277f8b9e8 tools: switch to Face::getIoContext()
Change-Id: I6be4c682d62e1061af45052d2141b9e5b9e897c5
2023-11-11 17:14:02 -05:00
Davide Pesavento d91fe6d921 core+face: avoid deprecated Boost.Asio interfaces
Change-Id: I07ec286531edf63f258babe1561b4da2a88edd10
2023-10-04 21:40:02 -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 decaf509b4 tools: modernize nfd-status-http-server and improve error handling
Change-Id: I5715c35f79d7dcd8dbefed328ebb625e9150a846
2023-08-30 22:50:03 -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 bf4c131f82 docs: update several URLs to point to docs.named-data.net
Change-Id: I4bab897f17e2b929675119198c9eab0309b6cc3e
2023-02-23 20:32:01 -05:00
Davide Pesavento aa9e3b2148 docs: fix capitalization in doxygen comments
Change-Id: Ibf5ee5119d12d60d382b0acef8dfd08277c18fcb
2022-10-29 21:45:24 -04:00
Davide Pesavento 6cc9541220 docs: simplify conf.py and fix compatibility with upcoming Sphinx 6.0
Change-Id: Iacf4a72d30babc4a7c3fab0fea619a798eff2df1
2022-09-20 19:10:55 -04:00
Davide Pesavento 990620ac3b nfdc: merge canonizer.hpp and find-face.hpp into face-helpers.hpp
Change-Id: I19ca5cbce8cab54e61eb7af0a32c33c3aa73faf1
2022-06-13 16:33:25 -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
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
Davide Pesavento a599d2aac9 Convert to span and avoid deprecated ndn-cxx functions
Change-Id: I45c50527fe53498b53a3d951458bdff8e7d7778c
2022-02-16 18:52:43 -05:00
Alexander Afanasyev c414ca5895 tools: Allow batch command processing by nfdc
Change-Id: Ia6f70fed88f2d4c918e2ca2b786222840dbd9076
Refs: #5169
2021-12-21 14:27:26 -05: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
Davide Pesavento d69070ef50 ci+docs+tools: stop using deprecated ndnsec commands
Change-Id: If77f479b45581a9a70619c329e713524678e35fb
2021-06-04 18:50:52 -04: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
Davide Pesavento 264af77369 build: prepend "NFD_" to various macro names to avoid conflicts
Change-Id: Icc370968e3d38fef80ece35a2aed56450f54b653
2021-02-10 14:48:07 -05:00
Alexander Afanasyev a158370ecb Adjust includes for the updated locations of ndn-cxx security headers
Change-Id: I5a94879966de2c166fed8dedda0ed1d65c33c300
2020-06-06 16:30:06 -04:00
Eric Newberry 4995bf960d tools: erase all requested entries from CS in nfdc
This change modifies the behavior of nfdc cs
erase to erase up to the requested count of CS
entries, instead of requiring the user to
continually rerun the command to reach the
desired count of erases.

refs #4744

Change-Id: Ia9b6fa2b4f97769fe6fa911a7b0b5c641ce215dc
2020-04-21 15:31:53 -07:00
Eric Newberry d656aff913 tools: create face during nfdc route add
refs #4332

Change-Id: I1a30bf87abd57bab08a2c027870e779392de0104
2020-04-08 20:55:11 -07:00
Eric Newberry 13ff259ec8 mgmt+tools: allow MTU overrides on existing faces
refs #5056

Change-Id: I464a0c68773290bf1cfd0bf2afc4344e79fbb614
2020-03-31 17:50:55 -07:00
Davide Pesavento 5a897699cf Use NDN_CXX_UNREACHABLE where appropriate
Change-Id: Idb3d8eade91c9e4d6e09f45a54af170f9c74ff12
2019-11-24 13:48:47 -05:00
Ju Pan 57113d1369 Revert "tools: display EndpointId in 'nfdc fib list'"
This reverts commit 13839ac94a.

Refs: #4973
Change-Id: If03e8f22ff4c8c65b20b486302fda0ffc8192662
2019-08-07 21:21:47 +00:00
Ju Pan 13839ac94a tools: display EndpointId in 'nfdc fib list'
Refs: #4816
Change-Id: Id656939d9595adbd8c96a78e9aedfdd8dda2a555
2019-06-19 12:08:43 -07:00
Junxiao Shi 47c343b9f2 tools: set CanBePrefix in autoconfig
Also, rewrite RoutablePrefixesDataset test suite to use
SegmentFetcher.

refs #4581

Change-Id: I68e0ffcd59dcbae0856bfa2977545f06482f3515
2019-05-25 07:53:01 +00:00
Davide Pesavento 14e71f0fe8 tests+tools: minor code cleanup
Change-Id: Ic3356d4a18a8e5eeb45fc076fc0563c3d1549c8a
2019-03-28 18:46:47 -04:00
Davide Pesavento c6a65ad55e nfd-status-http-server: fix display of satisfied/unsatisfied Interests
Amends commit 7570e778e4

Refs: #4720
Change-Id: I61bd78076b0b8d14b106e056a0ea9e000d70369b
2019-03-27 18:30:25 -04:00
Davide Pesavento fa2aa50d8d face+tools: fix compilation with Boost 1.69.0
Refs: #4890
Change-Id: I64c2e6ac99767fbd0b8afa9669eb6097148f8628
2019-03-22 21:44:29 -04:00
Davide Pesavento 3dade00499 core+daemon: eliminate scheduler::{schedule,cancel} wrappers
Also move core/global-io.hpp to daemon/global.hpp

Refs: #4528, #4883
Change-Id: I0b99029f1a19d7451aab57099cd3303b7eb42ff3
2019-03-19 11:29:56 -06:00
Davide Pesavento 97e33024f2 Replace nfd::getExtendedErrorMessage with boost::diagnostic_information
Refs: #4834
Change-Id: I7fc00960d7e5a97748b2277c525a19775810377f
2019-02-15 18:48:22 -05:00
Davide Pesavento 19779d861e Replace all uses of BOOST_THROW_EXCEPTION with NDN_THROW
Refs: #4834
Change-Id: If2455e1830f310beea434ffb455d960e11c4c2ed
2019-02-14 20:48:34 -05:00
Junxiao Shi feddc3c054 core: use ndn-cxx scheduler::ScopedEventId
refs #4698

Change-Id: I5ab56855fb22824e129fd7e3ccfb53174cf34f82
2019-01-17 19:06:00 +00:00
Davide Pesavento 8b663a9528 tools: replace boost::any usage with ndn::any
Change-Id: I7048a64b7c17353037ea9a64a11366d2fae6fd49
2018-11-25 02:49:27 -05:00
Ju Pan 7570e778e4 tools: display satisfied and unsatisfied interests counters
refs: #4720

Change-Id: I69c2400a558997ff48f2b66883cc680dc497360a
2018-11-02 19:49:00 +00:00
Junxiao Shi a4d7fe0f22 tools: implement 'nfdc cs erase' command
refs #4318

Change-Id: If4dc401a3efff44a5bf4b3074d21797f8384cf9f
2018-07-20 06:51:41 -06:00
Davide Pesavento 457f135980 face+tools: use Boost.Endian for endianness conversions
Change-Id: Ia9c8777cc16130ace9f1ca478624d71e6a11fadd
2018-07-14 17:17:38 -04:00
Eric Newberry 4f8dd96fbf tools: add mtu option to 'nfdc face create'
refs #4789

Change-Id: I9e31c5fb460ee99199332ffb6fadc9f0f33125e9
2018-06-20 22:16:57 -07: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 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 45898d2215 tools: fix compilation with Boost 1.67
Change-Id: Ia2bdaa0c78757a03796acf64b15c781ec9fa6c0e
Refs: #4584
2018-04-19 12:32:40 -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
Junxiao Shi 7a36ac7d9d tools: include CS config in 'nfdc cs info'
Also, ForwarderGeneralModule::formatItemText now uses ItemAttributes.

refs #4050

Change-Id: I1b2bde29b82e4b3910d87b41efd90e273052b18d
2018-03-21 15:23:22 +00:00
Davide Pesavento 0064c1dd91 build: update waf to version 2.0.6
Major cleanup of all build scripts

Change-Id: I6904f034d40adc66366fdf08749900ffb31c68d9
2018-03-08 20:16:30 -05:00