Alexander Afanasyev
b78ec7d111
build: Fixing code to compile using the latest version of ndn-cpp-dev
...
The latest version of ndn-cpp-dev updated Name and Name::Components.
One issue is that name components now need to be explicitly constructed
either with name::Component or Name::Component constructor (implicit
construction is reserved for NDN names).
Another issue is that both Name and Name::Components are now internally
stored as "Blocks". Access to the value is possible through value(),
value_begin(), value_end(), value_size(), and blockFromValue() methods.
Change-Id: I25835da2c67567b2a20ecaa573ddd14edb6d6c0b
2014-02-09 12:22:47 -08:00
Steve DiBenedetto
0b73f4455f
mgmt: added FIB manager support for insert, delete, and remove-nexthop verbs
...
Refactor option decoding, verb authorization (placeholder),
and response sending into single location.
Added unit tests for ManagerBase.
refs: #1223
Change-Id: I731be586ee8f06defb00fcadc6010409560891a1
2014-02-07 12:49:22 -07:00
Alexander Afanasyev
94ceb12a4c
core: Fixing scheduler, so it doesn't crash when an event is cancelled from the event invocation
...
Change-Id: I219df36a4ed19d75e97e676bedeba023fd53326e
2014-02-05 15:42:37 -08:00
Steve DiBenedetto
d5f87930a1
table: added findExactMatch and remove methods to Fib
...
Added methods required to implement remaining FIB
management commands.
refs: #1223
Change-Id: Idf27a60a19286ab1d5712bbc00cca7f41092807b
2014-02-05 16:21:04 -07:00
Steve DiBenedetto
214563c2e9
main: Added fib manager to management initialization
...
Change-Id: Ib0553998aee8e47f79180acdb20f75e15f765aac
refs: #1139
2014-02-04 14:10:11 -08:00
Alexander Afanasyev
ca920cd5aa
Merge branch for issue #1138
...
Change-Id: Id4c2ddb3707983cc07177ebd834f8fb3a40f9606
2014-02-03 12:40:58 -08:00
Steve DiBenedetto
bdedce9252
mgmt: moved signing into AppFace, code streamlining, and bug fixes
...
tests/management: improved callback validation
Fixed bad shared_ptr NULL checks
Fixed bad iterator decrement in InternalFace.sendInterest
Removed semi-useless constants in FibManager
Clarified ControlResponse text messages
Change-Id: Ic327a0b6b57827e401c7c3115d0ee92bae996a34
refs: #1138
2014-02-03 12:06:20 -07:00
Steve DiBenedetto
80ddc2195b
mgmt: improved control response identification and bug fixes
...
tests/management: extended unit tests for new response types
Change-Id: Iebed4b3172ff6a07b71021a0ffa4870013d86f48
refs: #1138
2014-02-02 19:07:18 -07:00
Steve DiBenedetto
43cd037536
mgmt: improved interest filter matching and bug fixes
...
tests/mgmt: added test fixtures to simplify unit testing
Added control response Data signing
Fixed control response payload parsing
Simplified fib-manager unit test assumptions
Expanded internal-face unit tests
refs: #1138
Change-Id: Ibe5d95ab9c42f890c0691c9040e4ae792e598974
2014-02-02 19:07:18 -07:00
Steve DiBenedetto
3970c89293
mgmt: loosened coupling between FibManager and InternalFace
...
Implemented InternalFace.setInterestFilter to loosen
coupling
refs: #1138
Change-Id: Ie58daed35bc3613398c8d3fc1de8b796e29907b8
2014-02-02 19:07:18 -07:00
Steve DiBenedetto
042bfe935a
mgmt: Initial fib manager with support for fib/add-nexthop
...
fw: Added FaceId to Face conversion method
Linked InternalFace's sendInterest to FibManager's
onFibRequest
refs: #1138
Change-Id: I0b18f2d41c9ba9d8749c586e3553b51a1e8b1269
2014-02-02 19:07:18 -07:00
Steve DiBenedetto
26b730fcdb
fw: Added FaceId to Face conversion method
...
Change-Id: I7b751cd51e138875929e7c680420070be3ce15c7
2014-02-02 19:06:44 -07:00
Junxiao Shi
09bf7c4321
daemon: mock program integration
...
Change-Id: I77940c7efb7a52251a8f25f6104717ba5253dc1c
refs #1140 , #1139
2014-02-01 17:08:03 -08:00
Alexander Afanasyev
a16abd2822
face/tcp: Fixing multiple accept on a channel
...
Also, this commit includes more thorough test for TCP channel (testing
if multiple connections can be made to the same channel).
Change-Id: I3b89a6d994b5b17286448013aa04a77c92c0267a
refs: #1134
2014-01-31 18:13:36 -08:00
Alexander Afanasyev
3958b015d5
face/tcp: Fixing TcpChannel and TcpFace implementation and enable basic logging in both
...
Change-Id: If9a00c13caccbeb117204655ced293d49860d6e4
refs: #1134 , #1133
2014-01-31 17:24:23 -08:00
Alexander Afanasyev
6688681966
core: Logger extension to allow in-class-defined logger
...
Change-Id: Ifa31fb65eda772df47a81ad5db1c501eaa5f8ca1
2014-01-31 17:24:23 -08:00
Alexander Afanasyev
46f664711e
face: Fixing a small bug
...
Change-Id: I02d6e5de2046a9cf4c9ab00a309609dfa26f6dfb
2014-01-31 17:24:23 -08:00
Junxiao Shi
8c8d2187b3
fw: integrate forwarder, strategy, tables
...
refs #1131 , #1136
Change-Id: Ica58341cdc1ea1dc421693a87f35fc50177a707d
2014-01-31 00:53:45 -07:00
Junxiao Shi
234a532c0a
core: Scheduler::cancelEvent allows empty EventId
...
refs #1176
Change-Id: I80f10ed8026d64b46b4634ced9278f145f54c4a7
2014-01-30 22:40:48 -07:00
Junxiao Shi
d3c792f95c
fw: basic forwarding procedure & strategy skeleton
...
refs #1131 #1136
Change-Id: I3e97cb17bf85082b6499a310120409379f8eaa65
2014-01-30 16:39:21 -07:00
Ilya Moiseenko
a807e6530b
core: Implementation of the logging module for NFD
...
ref: #1113
Change-Id: Ifb958ace38610b154841aab4f317b2ea9fde46e9
2014-01-30 13:33:10 -08:00
Junxiao Shi
7f02c1e1ec
core: move event-emitter to core
...
Change-Id: I76f6fc7d8c4731bbbb95ea257e339e15b96dbea1
2014-01-29 22:23:20 -08:00
Steve DiBenedetto
5b433984c1
mgmt: Added skeleton for InternalFace
...
refs: #1137
Change-Id: I5aab5a9cac8da5f31603fb755b934347b63045eb
2014-01-29 22:22:46 -08:00
Alexander Afanasyev
18bbf81601
src: Changing namespace ndn to namespace nfd
...
Also, this commit imports used classes from ::ndn namespace (from
NDN-CPP library) directly to ::nfd namespace.
refs: #1163
Change-Id: I9cc9d72e00af495b4ed0c84e6d418a7c9ba986cb
2014-01-29 14:12:58 -08:00
Alexander Afanasyev
9b74c2ce8b
Merge branch for issue: #1132
2014-01-29 14:07:36 -08:00
Alexander Afanasyev
334b714823
face/tcp: Add map of remoteEndpoint-Face within channel
...
If connect operation requested twice for the same remote endpoint (and
the first connection was successful), the second request will call
FaceCreated callback immediately (or after endpoint resolution) with the
previously created face.
refs: #1132 , #1134
Change-Id: I5f7e5237a42289a96d7fd9d16bda47fc7cda4dfc
2014-01-28 22:59:25 -08:00
Alexander Afanasyev
d32cb9657c
face/tcp: Implementing mock version of TcpFace
...
The real version should avoid all exceptions in the processing path,
enable lazy decoding of Interest/Data packets, and implement
LocalControlHeader processing and association with Interest/Data
packets.
Change-Id: Ied907b3d10b7110a1dcc05d0d6d3c0dd277df8e1
refs: #1132 , #1133 , #1134 , #1135
2014-01-28 22:59:20 -08:00
Alexander Afanasyev
855a53c51e
face/tcp: Adding success/fail callbacks for TCP channel connect/listen
...
refs: #1132 , #1133 , #1134 , #1135
Change-Id: I7df15dd9cd24f26b1ed96a4781934ffd93bc8f6e
2014-01-28 22:52:28 -08:00
Alexander Afanasyev
8ad71bac3e
face/tcp: Implementing accepting and establishing connections with TCP Channel
...
refs: #1132 , #1133 , #1134 , #1135
Change-Id: I8878784059fd962187bfcdd23b5adcaf9135cf4e
2014-01-28 22:49:42 -08:00
Alexander Afanasyev
33b7277de6
fw: Basic Forwarder class definition
...
refs #1131
Change-Id: I6650e88fd60600a8768e1ff236e2cfe4be1c1a4f
2014-01-27 09:46:39 -08:00
Junxiao Shi
cbba04c997
table: mock PIT
...
refs #1128
Change-Id: I8943ad07d93422dc456fd051b2e4c0d5f38bc227
2014-01-27 05:49:28 -07:00
Alexander Afanasyev
a9034b0e0f
face: Skeleton implementation for the TCP protocol (face, channel, factory)
...
refs: #1132 , #1133 , #1134 , #1135
Change-Id: I4a5935a078c7289dc6ea9b33f358f1a578c4405c
2014-01-27 00:20:04 -08:00
Alexander Afanasyev
fd603eee93
table: Small stylistic update in CS API
...
Change-Id: I113a62b7ca580fe7b25bb893fc239ed404b7f012
2014-01-26 13:51:16 -08:00
Alexander Afanasyev
920af2f419
core: Basic implementation of Scheduler
...
refs #1119 (http://redmine.named-data.net/issues/1119 )
Change-Id: I1783857452941794a2538534d3492d30ac58dd25
2014-01-26 13:44:17 -08:00
Junxiao Shi
c1e1236b04
table: Mock implementation of FIB
...
refs #1127
Change-Id: Ie0bc1fc2ddcc61dd1f1cf10fb1935edde4aff6c5
2014-01-26 14:22:48 -07:00
Alexander Afanasyev
c9765dffb6
cs: Update interface
...
Change-Id: I9b637c21ae15e784317568affdc530c21ec32e9a
2014-01-25 23:05:50 -08:00
Junxiao Shi
32bfeb3401
abstract Face class
...
refs #1153
Change-Id: I0b0dd71300d9b2d747a48c72fa8850c9afb75448
2014-01-25 20:40:13 -07:00
Junxiao Shi
61c5ef3830
core: time::Duration, time:Point, time::now
...
refs #1148
Change-Id: I19c3d2f9b638797a6a36ce41a98be4463b4b7a2d
2014-01-25 18:31:02 -08:00
Junxiao Shi
2c29f3abdb
face: declare Face class and FaceId type
...
Change-Id: Iaff4e3b146d8d26de32ca745b6f9d52454d933cf
2014-01-24 22:07:08 -07:00
Alexander Afanasyev
b927a3a5c6
src: Creating daemon/common.hpp for all generic includes and import of commonly used abstractions to ndn namespace
...
This commit also update CS interface (find should return
shared_ptr<Data>, CS entry is internal to CS, the design diagrams are
corrected too).
Change-Id: Ib6377b6d9b8478640ac35d3cfb6c9180cc57c4fe
2014-01-24 15:22:18 -08:00
Junxiao Shi
0fcb41e6de
cs: Implementing fake CS
...
refs #1129
Change-Id: I1aa2e9dcea5a8f298b254f13ad651ced22118471
2014-01-24 10:19:51 -08:00
Junxiao Shi
1a2a856733
util: EventEmitter
...
refs #1118
Change-Id: Ib2c080f7ad0f70f2fcd9cc738b8d3601dcc2a98c
2014-01-23 16:04:57 -07:00
Alexander Afanasyev
2aa396272b
Adding build system, README, COPYING, basic INSTALL.md, and skeleton for unit tests
...
Change-Id: I00a58106e43f6eaaec6eedf9fa7d217a22c19d2b
2014-01-22 13:34:03 -08:00