Junxiao Shi
fbe8efea55
fw: UnsolicitedDataPolicy
...
The decision of whether to cache or drop an unsolicited Data is moved from
Data unsolicited pipeline to UnsolicitedDataPolicy.
refs #2181
Change-Id: Iba3e72c2214e0ac5f6f305c2c1c0ed182b008e85
2016-08-22 16:02:30 +00:00
Junxiao Shi
2e526d70d2
rib: delete RibStatusPublisher
...
RibStatusPublisher is unused since RibManager switches to ndn::mgmt::Dispatcher.
This commit also corrects a typo in rib-entry.hpp
refs #2857
Change-Id: I968a836e46c9a7e70513d45c90099678ef587f86
2016-08-22 16:02:13 +00:00
Junxiao Shi
06d6ba666d
rib: add proper #include line for ndn::OBufferStream
...
refs #3741
Change-Id: If08719fac9e977bd5d68c1aba491738eacbfa900
2016-08-22 15:59:03 +00:00
Junxiao Shi
37175489ca
mgmt: delete CommandValidator
...
CommandValidator has been replaced with CommandAuthenticator.
refs #2063
Change-Id: I6569db6ff103de5f56cac480e334f32ff9f9a40f
2016-08-22 03:59:15 +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
29b4128397
rib+tools: adapt to Controller::CommandFailCallback with ControlResponse
...
refs #3739
Change-Id: Icf5b3ed0bd997730a024bad2ccd258c8168b4ccb
2016-08-22 03:47:02 +00:00
Junxiao Shi
331ade75da
tools: merge nfd-status into nfdc
...
nfd-status functionality is accessible through `nfdc legacy-nfd-status` subcommand,
and nfd-status is replaced with a shell script calling this subcommand.
refs #3749
Change-Id: Iab03f3bc9ddb4333a0b6ca5fb9c67f54e9960ab4
2016-08-19 14:07:19 +00:00
Junxiao Shi
d243d71bf5
tools: split nfdc into multiple files
...
refs #3749
Change-Id: I24a3fd287773d0577d438e9ca24dc1dfab335a4f
2016-08-19 06:45:31 +00:00
Junxiao Shi
5b3feb6008
table: rename StrategyInfoHost::getOrCreateStrategyInfo to insertStrategyInfo
...
refs #3205
Change-Id: Icd3ab9e4fdb5a2ffc39a8d0e0c713e22f13fe28c
2016-08-19 01:51:41 +00:00
Junxiao Shi
d7631279f7
mgmt: CommandAuthenticator
...
refs #2063
Change-Id: I19a82d8d1fdfb3cc5a003166b1a8c1c32bbf24b5
2016-08-17 04:16:31 +00:00
Junxiao Shi
f5409d434a
table: Pit::deleteInOutRecords accepts Entry* instead of shared_ptr
...
refs #3164
Change-Id: I512da6200d4d744d5631fc78900795d19ad5dd52
2016-08-17 02:47:12 +00:00
Davide Pesavento
1c2c6c45e2
table: silence unused variable warning in release builds
...
Warning introduced in commit 80f9fcdaa1
refs #3164
Change-Id: I3e97a1f6adf3beedc4b5608cac75a276735891cb
2016-08-16 12:36:06 +00:00
Junxiao Shi
b30863e0e2
table: simplify StrategyChoice iterator with Boost.Range
...
This commit also improves Doxygen in NameTree, Fib, and Pit enumeration.
refs #3738
Change-Id: Ibb56f958df4d1bc2564192d905cfc2e499a7875e
2016-08-15 21:32:01 +00:00
Junxiao Shi
13ad4b7a42
table: simplify FIB iterator with Boost.Range
...
refs #3738
Change-Id: I0bfe985c9dac86a67988f77a89f4d2694c4fd9f5
2016-08-15 04:51:21 +00:00
Junxiao Shi
9f6ca60f74
table: declare name_tree::Range type
...
Declare that NameTree enumeration returns name_tree::Range type
instead of an unspecified type usable with range-based for.
refs #3738
Change-Id: I132c583704d0c6164077abf70a694e833b448e85
2016-08-15 04:50:29 +00:00
Junxiao Shi
dbef6dc8e2
table: Pit::erase accepts Entry* instead of shared_ptr
...
refs #3164
Change-Id: I9ff47c80865da42b09870c632707dffd78ed76b9
2016-08-15 02:58:36 +00:00
Junxiao Shi
3248205bb7
table: PIT iterator dereferences to const shared_ptr<pit::Entry>&
...
refs #3164
Change-Id: Id857e214a727917009f865c2cfac782077844799
2016-08-15 02:05:17 +00:00
Junxiao Shi
09cf13cd9f
table: move PIT iterator to a separate file
...
This commit only moves code around and renames variables.
There's no functional change.
refs #3164
Change-Id: Icb6b249cc0c07fcfe42f7a6d6987de31285566e7
2016-08-15 02:05:00 +00:00
Junxiao Shi
8ff0a86e18
tests: don't store shared_ptr<pit::Entry> in StrategyTester
...
refs #3205
Change-Id: I20ed5023fe07ba71d8df56a02228013acb8a8cb6
2016-08-13 04:50:50 +00:00
Junxiao Shi
b9420cf0c1
fw: accept const shared_ptr<pit::Entry>& in Forwarder pipelines and Strategy actions
...
refs #3205
Change-Id: Ia683fb1a9e301270f99bcdd4d97493abf3dbec9f
2016-08-13 04:38:52 +00:00
Junxiao Shi
340d5533ea
table: make name_tree::Node the sole owner of name_tree::Entry
...
This commit also improves name_tree::Entry test coverage.
refs #3687
Change-Id: I92375f29fbebab82c67da7dff2ea7a2952ba2cca
2016-08-13 04:00:35 +00:00
Junxiao Shi
e7258ffa88
table: cleanupOnFaceRemoval doesn't rely on shared_ptr<name_tree::Entry> anymore
...
refs #3687
Change-Id: I3901f053bf370ca5a19a0fea72aec8eb58fcfe10
2016-08-12 23:55:47 +00:00
Junxiao Shi
dd8f66140b
table: NameTree::findLongestPrefixMatch accepts all table entry types
...
This simplifies longest prefix match procedures in FIB and StrategyChoice.
refs #3687
Change-Id: I9aa93232124b91bae7890d065337ac9389e8398e
2016-08-12 15:42:52 +00:00
Junxiao Shi
15e98b00f5
fw: pass const shared_ptr<pit::Entry>& to Strategy triggers
...
refs #3205
Change-Id: I8f227c57ee6733526f0569de81f20677210cafa4
2016-08-12 11:21:44 +00:00
Junxiao Shi
759993b922
table: delete unnecessary name_tree::Iterator destructor
...
refs #3687
Change-Id: Iccb755c0b1234d31bea84797db348fd229b2fde9
2016-08-12 11:19:08 +00:00
Junxiao Shi
7f35843d58
table: NameTree::lookup return Entry& instead of shared_ptr
...
refs #3687
Change-Id: Ie86057337dd36ff2bc6ef3ea0c73fd4ffc4b13d0
2016-08-11 17:06:33 +00:00
Junxiao Shi
f2420fc7a3
table: ensure NameTree::lookup(tableEntry) does not return nullptr
...
NameTree::lookup(tableEntry) is always equivalent to NameTree::lookup(Name).
NameTree::getEntry(tableEntry) should be used when inserting new name tree entry is undesired.
refs #3687
Change-Id: I0b17cd07dde83341976cfe66c85855dfb2fa6e89
2016-08-11 13:18:21 +00:00
Junxiao Shi
811c010098
table: NameTree findExactMatch, findLongestPrefixMatch return Entry*
...
refs #3687
Change-Id: I32752fd711b9641228fbb7f356e72144780cf9ec
2016-08-10 04:12:45 +00:00
Davide Pesavento
67f30273dd
build: add waf-tool to simplify building with AddressSanitizer & friends
...
Change-Id: I769be2650c0c174b9e12e0832a5d2eea9bcad2d6
Refs: #2589
2016-08-10 01:55:16 +00:00
Junxiao Shi
352fc82185
fw: AccessStrategy test suite avoid deprecated ndn::Face::expressInterest overload
...
refs #3703
Change-Id: Ib8f79d56551315c4ebc54f1574a4afbe95b99d9f
2016-08-09 03:53:05 +00:00
Junxiao Shi
9ede5bd312
tests: TopologyTester avoid deprecated ndn::Face::expressInterest overload
...
refs #3702
Change-Id: I6dcb76be1fcfaa184068390b5ab25640d21a937b
2016-08-09 03:51:27 +00:00
Junxiao Shi
e3cf285ee7
table: delete deprecated functions in NameTree
...
NameTree::eraseEntryIfEmpty is renamed to eraseIfEmpty;
the deprecated overload that accepts shared_ptr<name_tree::Entry> is deleted.
name_tree::Entry::getPrefix is deleted in favor of getName.
This commit also improves Doxygen in NameTree class.
refs #3687
Change-Id: Ia98ca676ce6d3bc7b2e97328adccac911c8167d7
2016-08-09 03:50:56 +00:00
Junxiao Shi
f9f7cf35ae
tests: fix assertion failure in PIT+FIB benchmark
...
refs #3571
Change-Id: Icb06adfd9460cd65fdd77428d79f0f75d1e71133
2016-08-08 05:51:06 +00:00
Junxiao Shi
b660b4c9c0
table: refactor NameTree hashtable
...
refs #3687
Change-Id: I908c1d7e67da861fc86a756fc0bc69b99ee696f7
2016-08-06 20:47:44 +00:00
Junxiao Shi
029401f6cc
table: refactor NameTree iterator
...
refs #3687
Change-Id: Icf5be98d79cfaa27597f62832fcd0189df2731d1
2016-08-05 12:55:14 +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
Junxiao Shi
38f4ce9f25
tools: refactor nfd-status
...
refs #3658
Change-Id: Ia347074bea802eba5f539208e276e849a60db8a4
2016-08-04 10:01:52 +00:00
Junxiao Shi
9cff779038
table: pit::FaceRecord stores Face& instead of shared_ptr
...
refs #3164
Change-Id: Ib23ab2341a37213fee791f2070f13b76da851d53
2016-08-01 21:45:11 +00:00
Junxiao Shi
02b73f5705
table: delete PIT in-record and out-record when face is destroyed
...
refs #3685
Change-Id: I3c20417c9a30db69c90c9d59a30af1529bc1f98e
2016-07-28 01:48:27 +00:00
Junxiao Shi
2570f3ec4f
table: NameTree code style corrections
...
refs #3687
Change-Id: I25cfac1d8b11236c251c2ab717facb82b62dcb10
2016-07-27 02:48:29 +00:00
Junxiao Shi
dcffdaafb5
fw: decouple Forwarder and FaceTable
...
refs #3679
Change-Id: I449e20e58a0a67a7172bdf3ab02b0d655149690f
2016-07-26 02:23:56 +00:00
Junxiao Shi
80f9fcdaa1
table: don't use shared_ptr in Measurements
...
refs #3164
Change-Id: I7705d00ac155b15b5db69809610b68e96360a0ae
2016-07-24 22:52:28 -07:00
Junxiao Shi
71d12148c8
daemon: display extended exception information in NfdRunner::run
...
refs #2541
Change-Id: I1fdc22571e7bce74d430b7938951170765b72bff
2016-07-23 20:10:18 +00:00
Junxiao Shi
d23de8b9ef
tests: don't inline functions in test-common.hpp
...
This commit also adds a signData(Data&) overload.
refs #1694
Change-Id: I8e3ff5be7c6734dec8b481d6c20eb6b6eaef0725
2016-07-23 20:05:42 +00:00
Eric Newberry
4a4ccfe7d6
face: Set FaceScope to local for IPv4-mapped IPv6 loopback addresses
...
refs #3682
Change-Id: I33c22d3585c8fee081b1317cdd6587ec0f0e4ef5
2016-07-23 09:40:27 -07:00
Junxiao Shi
5149320e5b
tools: don't use deprecated ndn::encoding::dataBlock
...
refs #2950
Change-Id: Ibda4af7ab50df5a7f5700d7db5de1da938b7e020
2016-07-23 02:03:08 +00:00
Eric Newberry
cb27ea8185
build: Fix build issue with Boost.Asio on Ubuntu+clang
...
refs #3588
Change-Id: Ica155f22fa615eed8a14b5765cdce0f6e480b1de
2016-07-20 19:59:57 +02:00
Junxiao Shi
ae04d34c17
fw: FaceTable signals use Face& instead of shared_ptr
...
refs #3205
Change-Id: I53ecd0d6a13d379eb1dfb872041bdde8501f05e7
2016-07-19 13:20:22 +00:00
Junxiao Shi
b84e6743be
fw: FaceTable iterator dereferences to Face& instead of shared_ptr
...
This commit also improves the speed and reliability of
Mgmt/TestFaceManager/CreateFace test suite.
refs #3205
Change-Id: Idd013488ced2d7f8072ef8a3d910f94da2e0c8ac
2016-07-19 13:16:22 +00:00