Commit Graph
89 Commits
Author SHA1 Message Date
Steve DiBenedetto 2c2b889ea2 mgmt, main: add support for authorized commands
refs: #1227

Change-Id: I907d1fa6e78775470c5376fcdfe898be4c311001
2014-03-11 17:08:31 -07:00
Giulio Grassi 69871f03d3 face: close idle Datagram faces
refs #1281

Change-Id: Ifc766964f653d3991b55d76361c8b9bbe5d630cf
2014-03-11 15:54:48 -07:00
Davide Pesavento 248d6bd666 core: add free function to enumerate network interfaces.
Change-Id: Icd89662afe9e1295cd18a615970c5b4299529b38
Refs: #1306
2014-03-11 12:17:49 -07:00
Junxiao Shi efceadc378 fib: implicitly delete empty Entry
Fib::removeNextHopFromAllEntries automatically deletes fib::Entry
if the last nexthop record is being removed.

refs #1341

Change-Id: I36d42fe8f9fc8f03d194f845020aff408cd70488
2014-03-09 19:39:26 -07:00
Haowei Yuan e1079fc4e4 table: NameTree enumeration
refs #1318

Change-Id: I26f25cefe8f2939ca884103f1b081c0c02325207
2014-03-09 19:37:04 -05:00
Steve DiBenedetto 5330e0dda1 mgmt, main: add strategy choice management and deprecate fib/set-strategy
refs: #1311

Change-Id: Icc88f201f3c13a5a25ec1bdadec35f93c76b2b94
2014-03-08 21:45:28 -07:00
Steve DiBenedetto abe9e97a5e mgmt: added FaceManager to create and destroy faces
Change-Id: I5a7ca67faed1bfd850943fe4c93675d84c79ac39
Refs: #1195
2014-03-08 14:10:49 -07:00
Alexander Afanasyev 7e698e6aac face: Incrementing Face counters
Change-Id: Ia1d7917bb52cf01ab2ff304638bc9f6cbdb2626f
Refs: #1178
2014-03-08 20:27:43 +00:00
Alexander Afanasyev 6f5ff63f86 face: Fixing a bug in UdpChannel with missing async_receive
In cases when UdpChannel dispatches received UDP packet to a newly
created UdpFace, the Channel failed to resume reception of datagram on
the channel.

Change-Id: If876dacc237bd0a6a660d4d88581959782dc349b
2014-03-08 20:27:43 +00:00
Ilya Moiseenko 76cf77a5cb table: ContentStore based on skip list
ref: #1212

Change-Id: Iaa13aa7c110c3cd059438bf553a19b4fcd07e137
2014-03-06 15:29:38 +00:00
Junxiao Shi 7bb01512b0 table: MeasurementsAccessor uses StrategyChoice
This commit also deletes fib::Entry::set/getStrategy attribute.

refs #1276

Change-Id: I57dfe842a8024e0ad9908ba8a9c415d5f4ac1bbe
2014-03-06 07:06:29 -07:00
Alexander Afanasyev a39b90b2aa face: Implementing Face::getUri() method
Change-Id: I9a9f774b95784e5b7ec75472f1cc6cf64c4e5d7b
Refs: #1319
2014-03-06 09:25:06 +00:00
Junxiao Shi 61e3cc51ed faces: Channel base class
refs #1261

Change-Id: If17037c4802cb6ccec0201c3bff7fc4b6db41c6a
2014-03-05 11:56:10 -07:00
Junxiao Shi 2d9bdc8a5f fw: ClientControlStrategy
refs #1214

Change-Id: Ia382acad6c8eeac85663fd664d1d34ba6f2ad478
2014-03-05 01:46:12 -08:00
Junxiao Shi bb5105f218 table: Strategy Choice table
refs #1309

Change-Id: I6fd8efdfc98175a1cc39fdc3aa7175671596f470
2014-03-05 09:27:51 +00:00
Junxiao Shi a4f2be8248 fw: FaceTable
refs #1317

Change-Id: Ief04fe572407120ca6777c087a519c1749f0cdd2
2014-03-04 14:32:04 -07:00
Junxiao Shi 7e2413b959 tests: use LimitedIo API for time or IO limits
Change-Id: Id5cc1cea9bf1329e730d92c4099e80adbfc0f500
2014-03-03 11:56:07 -07:00
Junxiao Shi f124d7522f core: define NFD version
refs #1316

Change-Id: I56046cb7482a771d8d25fe1f0b78e201855b8eed
2014-03-03 10:18:45 -08:00
Junxiao Shi 4063184af0 table: NameTree::findLongestPrefixMatch predicate
refs #1313

Change-Id: I759c8ddf9bc0fe5b970c979f69131a98b1ef32e4
2014-03-03 09:27:13 -07:00
Giulio Grassi 624f6c610f face: UDP face/channel/factory
Change-Id: I4683b45378637133982efd23edd16a0c35148948
refs #1189
2014-03-02 13:29:10 +01:00
HangZhang c85a23c457 table: Measurements on NameTree
Change-Id: I17bab4a7a085c529b04b35b7fe47e02dd9d6ff00
refs #1200
refs #1201
2014-03-01 16:08:56 +08:00
HangZhang ad4afd1492 table: FIB on NameTree
Change-Id:Ie949ad2209ed841af498f45e2d0f365ac905c45d
Refs: #1190
2014-02-28 23:31:29 -08:00
Alexander Afanasyev 5f1ec25245 face: Minor updates of TCP faces
Change-Id: I9a11fb4b2cd1aaaa670313cab0b08f097554e1fc
2014-02-28 16:12:46 -08:00
Alexander Afanasyev d665530904 face: Adding new 'createFace' method in all Factories
This method accepts parsed URI object and attempts to create Face on the
right channel (e.g., if hostname in URI resolved to IPv6, IPv6 TCP channel
will be used).

Factories that do not support 'createFace' operation will throw an exception.

As of this commit, *Factory::create methods are renamed to more explicit
*Factory::createChannel, and *Factory::connect to *Factory::createFace.
All other Factory-specific methods should denote what exactly is
created: channel, face, or multicast face.

Change-Id: I6396dc84c4cd8bbcdde9f55cfac90635d99e93e9
Refs: #1195
2014-02-28 16:12:12 -08:00
Alexander Afanasyev 7b9347b09f core: Implementing FaceUri abstraction
Change-Id: Ia4e0e9bb1a8b8c440ae97d45f77f792a50f87e85
Refs: #1195
2014-02-28 14:21:16 -08:00
Alexander Afanasyev 0eb70659f7 face: Rename all ChannelFactories to protocol Factories
Base class is ProtocolFactory and implementations are TcpFactory,
UnixStreamFactory, EthernetFactory.

Since Factories are doing more than just creating channels (some can
create faces directly), more general name is more appropriate.

Change-Id: I3d6c2460a1b29e244f8462453720f4e7785893ca
2014-02-28 12:54:16 -08:00
Alexander Afanasyev 7329e02f60 face: Convert to use the global IO service by all ChannelFactories
Change-Id: Ibd8d5cea142171b5700d8920eb3eedc084bbd588
2014-02-28 11:04:40 -08:00
Alexander Afanasyev 452e2822e7 core: Generic resolver implementation with option to select address filter
Change-Id: I467ed9f49a55392e89417aa9925f30b2d7cbeda9
2014-02-28 11:04:40 -08:00
Alexander Afanasyev ef968e15d5 face: Ignoring fireware interfaces (fw*) in EthernetChannelFactory
Change-Id: Ibfb512ce1229e74eee4c66efd87d6dc4a18c057e
2014-02-27 21:25:33 -08:00
Junxiao Shi d9ee45c952 tests: resetGlobalIoService for every test
All tests must use BaseFixture or a fixture derived from it to get this feature.

This commit also fixes a few warnings in tests/mgmt, and moves test cases into nfd::tests namespace.

refs #1290

Change-Id: I891441a5abce170e35648d463f7157b18429f79f
2014-02-27 19:36:19 -07:00
Haowei Yuan 78c84d1ce5 table: PIT on NameTree
ref# 1194

Change-Id: I32f103374885445725fc5deeebda60b1b1e54c2f
2014-02-27 15:35:13 -06:00
Davide Pesavento 44deacc811 face: Ethernet{Face,ChannelFactory} implementation.
refs: #1191

Change-Id: I08b7ebfdc5d70fb494b1f23bd7b1a77cf18653a1
2014-02-27 18:18:34 +01:00
Junxiao Shi 0b5fbbb4ff fw: NccStrategy
refs #1242

Change-Id: I21f870728b7b361547adbde9d64357c93aeb1ed9
2014-02-26 23:53:53 -08:00
Junxiao Shi 9b27bd2d92 fw: /localhost scope control on outgoing path
refs #1230

Change-Id: I25e38e1b2bf538a72d2185889c1be5401ed93b68
2014-02-27 00:11:36 -07:00
Junxiao Shi 09498f0646 fw: rename "Interest rebuff" to "Interest reject"
Change-Id: I8275354a3eff6f4785187a8fb00da1d421df8460
2014-02-26 19:43:22 -07:00
Junxiao Shi c041ca36ed core: global io_service and scheduler
Scheduler and time are imported from ndn-cpp-dev.
Forwarder is using the new scheduler API.
Face system is not transitioned yet.

refs #1290

Change-Id: I5679cb50bbf9890a105f663b038f13951403c2b6
2014-02-26 12:40:22 -07:00
HYuan a9b85754b2 table: Name Tree Implementation
Change-Id: I27dbe50a1f484a7722b443dea6197a0f8d74aa0a
2014-02-26 10:35:16 -08:00
Junxiao Shi df3b438c40 face: NDNLP encoding change
FragIndex and FragCount fields are encoded as nonNegativeInteger.

refs #1283

Change-Id: I4654078c3bfd73c83ce06ce6a9cd97952a4f49f8
2014-02-25 17:20:43 -08:00
Alexander Afanasyev c1e2ee07fa tests: Making Scheduler and TCP test cases more resilient to time
These two tests were frequently falsely failing on overloaded build bots

Change-Id: I4e6dc09a647317514a7318e09bb095c7d7e6045a
2014-02-25 17:05:45 -08:00
Alexander Afanasyev b84cc92a8f core: Initial implementation for run-time selection of log level
Log level can be controlled using NFD_LOG environment variable. The
following options are available

Set up log level using mnemonic

    NFD_LOG=none|error|warn|info|debug|trace

Set up log level using log-level number (0 none, >=5 all)

    NFD_LOG=0|1|2|3|4|5|6|...

Change-Id: Id38c2775f1137a4e38e4896963ab9a01fc863d2c
Refs: #1267
2014-02-25 16:51:25 -08:00
Junxiao Shi dbe7173db1 table: MeasurementsAccessor for strategy
refs #1276

Change-Id: Idec8f615c726f51612236a55a7532fabeb81a32d
2014-02-24 23:32:48 -07:00
Junxiao Shi 7860d4820a face: declare face counters
refs #1280

Change-Id: Ia1c50ab2b31d6131728489b3b038dc6f7608266f
2014-02-24 17:00:40 -07:00
Alexander Afanasyev bd220a053b face: Implementation of encode/decode of LocalControlHeader
LocalControlHeader can only be used on faces that are derived from
LocalFace.  UnixStreamFace is directly inherited from LocalFace,
TCP face has two specializations: generic TcpFace (strictly not local),
and LocalTcpFace.

refs #1213

Change-Id: I8a158c3bc4bb929eedd15757cfddecc0d1049f9f
2014-02-20 15:54:22 -08:00
Junxiao Shi 727ed29cf3 fw: broadcast strategy
refs #1243

Change-Id: I9ca2164812ea3e1815fa27b73a68166c93f97b27
2014-02-20 01:56:42 -08:00
Alexander Afanasyev 93ce75e6f7 face: Fixing bug with InternalFace considered not local and changing "isLocal" method to be pure virtual
This way the decision about the face locality has to be done explicitly
inside specific face implementation and potentially avoids problems.

Change-Id: I5219cce87385313546453d14a5a7ca4542893911
2014-02-19 14:11:07 -08:00
Steve DiBenedetto 471c060e6b mgmt: added manager to enable/disable control header features
refs: #1210

Change-Id: If4eb182c4baaba41be7c5f8e22e4f436eef1dac3
2014-02-18 13:21:37 -07:00
Junxiao Shi 16b8bc9c18 face: LocalControlHeader attributes
refs #1264

Change-Id: Iab8b875ea8102103390d2da37ca3c08ef58a3d55
2014-02-17 23:02:25 -07:00
Junxiao Shi 65d0072aa1 table: mock Measurements table
refs #1259, #1197

Change-Id: Ie7cd2ff6fbbb413a77539eb9f1c5354405252cec
2014-02-17 20:09:58 -07:00
Junxiao Shi c0d0591c69 face: fix warnings in NDNLP code
refs #1262

Change-Id: Iec17e22eefb04ee69f917c2826a1550906062013
2014-02-17 19:07:17 -07:00
Davide Pesavento bc4dd8c812 face: UnixStream{Face,Channel,ChannelFactory} implementation.
refs: #1174

Change-Id: I14d1e357c96a02995355e7970323fe40847580aa
2014-02-17 23:03:06 +01:00