Commit Graph
194 Commits
Author SHA1 Message Date
Steve DiBenedetto bf6a93da4e core: change logging from environment variable to configuration file-based
GlobalConfigurationFixture uses unit-tests.conf to determine default
and module specific logging levels. Logging will gracefully default to
INFO if unit-tests.conf is not found. See unit-tests.conf.sample for a
sample configuration file.

refs: #1375, #1267

Change-Id: Ib0c4eb4149748e6658f94ef1afa23ddd3072c0fa
2014-03-31 20:46:51 -06:00
Steve DiBenedetto 51d242a281 mgmt: refactor management modules to use ControlCommand
Change-Id: Icf5e10f2f2d0b95c85fd871e6484c3ed58ed6c46
2014-03-31 18:18:47 -07:00
Junxiao Shi 98e29f4731 core: delete deprecated getGlobalScheduler() API
refs #1290

Change-Id: If994e3bd303f0788d8e945351c182bbd4ab5e0b2
2014-03-31 10:27:26 -07:00
Junxiao Shi 2d2cde1baf mgmt/tools: fix build errors
Replace deprecated FaceStatus elements.

Fix unused-result warning in ndn-tlv-peek.

refs #1417

Change-Id: I6a8dcbfce1e0a112041ed2fedc2d485ff67ccf7d
2014-03-31 10:17:26 -07:00
Alexander Afanasyev 97e4cac007 build: Small reorganization with build scripts
Change-Id: Icf0f681b947e975dbbb396f4ae81139601864e25
2014-03-29 11:48:28 -07:00
Alexander Afanasyev 352e14eb7b tools: Update code to use unified NFD Management Protocol
Change-Id: I0e638f189afa87431292ca9471d95cba02ccd831
Refs: #1418
2014-03-28 15:08:12 -07:00
Alexander Afanasyev 08eecead13 docs: Replaced licence (now the code is GPL 3.0), author list, and updated installation instructions
Change-Id: Ieea063c7c4c5e1f08b8c8eb557493f78dfc0941e
2014-03-28 15:08:09 -07:00
Junxiao Shi 88d6937685 mgmt: StatusServer uses ndn::nfd::ForwarderStatus
refs #1422

Change-Id: Iea201b62391ecb2e4376ad85c5dcfefed4500515
2014-03-28 12:47:51 -07:00
Alexander Afanasyev 5a4388a829 main: Enabling system signal handling and small reorganization
Change-Id: I568c5b57e787d44b9d6a758fd7e8cdf22222234e
Refs: 1380
2014-03-27 23:26:19 -07:00
Junxiao Shi 1391d6183c fw: NccStrategy checks existence of PitEntryInfo
Strategy cannot assume StrategyInfo always exists,
because runtime strategy change may cause a Strategy
to start handling some new PIT entry.

refs #1420

Change-Id: Ibaa4337d80c02cdf074b6390e69ce30b239796de
2014-03-27 22:27:20 -07:00
Junxiao Shi 16d1b7dab4 mgmt: InternalFace processes Interest asynchronously
This avoids forwarding's incoming Data pipeline to be called
within incoming Interest pipeline - this property holds for
other faces, and is expected by forwarding.

refs #1419

Change-Id: I3eb1ca84830d5d8aefe0ae67a562acdd835ca5ca
2014-03-27 22:18:41 -07:00
Steve DiBenedetto b9906cf8f3 mgmt: add udp listening
refs: #1406

Change-Id: I45bc9fd2fbdbf0a7b3a287d23053f88db97e04ec
2014-03-27 12:34:35 -06:00
Alexander Afanasyev bc521a548b fw: Prevent re-insertion of faces into FaceTable
Change-Id: I48c92af965001e15af06b39de76893ce6a736b94
Refs: #1413
2014-03-26 23:49:34 -07:00
Steve DiBenedetto 7564d97d13 mgmt: refactor management modules to conform to NFD Management Protocol
Refactor management protocol specific option types to ControlParameters
Add control parameter field enforcement
Add missing control response "success" message bodies
Update fib management protocol response codes and behavior
Merge local control header manager into face manager
Refactor references of nfd::LocalControlHeaderFeature enum to ndn::nfd::LocalControlFeature
Remove "control-header" privilege from default configuration

refs: #1397, #1399, #1400

Change-Id: Id042daf00b3cee1f1c7fa38d2e4a4ff6d95c15c6
2014-03-25 17:46:31 -06:00
Alexander Afanasyev efea8fe804 build: Enabling -Werror in debug mode and fixing discovered issues
Change-Id: I29685dcb9240a3e0c8d7eaf28c8bc2ae720e55a1
2014-03-25 11:01:53 -07:00
Alexander Afanasyev 60a7ba55f8 tools: Fixing help message printing in nfd-status
Change-Id: I937e317b02989aa9f51168e101d203ecd9199de8
Refs: #1395
2014-03-25 11:01:53 -07:00
Alexander Afanasyev 82afa1a44a tools: nfd-autoreg
Change-Id: Id4fefea85cc240c476cb7e33022f05d5f839ae27
Refs: #1371
2014-03-25 11:01:43 -07:00
Junxiao Shi e17349ac00 fw: fix isPending condition
refs #1404

Change-Id: I18c565de915417f48ba812cded1d85f367304f5c
2014-03-25 00:55:38 -07:00
Alexander Afanasyev bbe3f0ccf3 mgmt: Inserting created multicast faces into the forwarder (FaceTable)
Change-Id: I124c9a96c5c82b29deca5492d34fdf90d7ff0353
Refs: #1394
2014-03-24 17:01:48 -07:00
Alexander Afanasyev 53a6fd33b9 face: Implementing forgotten isListening() feature in TcpChannel
Change-Id: Idfcd8337d16b414d2f739f936660dffdce413729
2014-03-24 17:01:45 -07:00
Alexander Afanasyev 06ae90756d mgmt: Making use of standard appendVersion/appendSegment calls
Change-Id: I41bde564f276c089ce55de8824c07a790d9f9164
2014-03-24 15:03:20 -07:00
Steve DiBenedetto ba7490517d mgmt: add body to face destroy control response
refs: #1392

Change-Id: I8b2e7927679224ab180692884f2d082ad3c66d4d
2014-03-22 20:01:39 -06:00
Alexander Afanasyev 5a8d8d848c face: Remove reliance on exceptions during TLV decoding
Change-Id: I8e96cc9369a5702805d3856ce70dfbe64834e1df
Refs: #1379
2014-03-22 17:27:15 -07:00
Alexander Afanasyev 7b7dfdd1ad tools: Fixing bugs in nfd-status
Also in this commit: implementing const_reverse_iterator in FaceTable.
It also would be good to have reverse iterator in Fib, but not strictly
necessary.

Change-Id: Ie9cf849b718f5db76db2957b4452790f9ae68fd3
Refs: #1378
2014-03-22 17:27:10 -07:00
Davide Pesavento e4631003a9 face: silence silly warning thrown by clang.
Clang 3.3 complains about a "missing field initializer" for struct ifreq.
However, according to the standard, if there are fewer initializers in a
brace-enclosed list than there are elements or members of an aggregate,
the remainder of the aggregate shall be initialized implicitly as if they
were declared static, i.e. with zero or default-constructed value.

Therefore using "= {0}" is correct (and common practice in C). Emitting
a warning doesn't make sense. As a matter of fact recent GCC releases
disabled it.

Luckily this is C++ and we can simply use the "empty braces" initializer
(which wouldn't be valid C99 syntax) to silence the compiler.

Change-Id: Ibee8d17cc9b5d0eaa5270c52f3596b7994b5e911
2014-03-21 15:44:42 -07:00
Davide Pesavento d8d4d98656 face: delete redundant protocol typedefs.
Change-Id: I32e1100e7395070a29ee813658aac82b63b6c4f2
2014-03-21 23:34:33 +01:00
Davide Pesavento 73c65d7bae face: mark UnixStreamFace constructor explicit.
The keyword was accidentally removed in commit
355c066fe1.

Change-Id: I1e345cf5ccb1d5ddc56419fb19493eb446590880
2014-03-21 18:08:59 +01:00
Davide Pesavento b60cc1298d face: use NetworkInterfaceInfo directly in EthernetFace.
Finally getting rid of EthernetFactory::findAllInterfaces()
and EthernetFace::getInterfaceAddress().

Change-Id: I94fe2016cc98778af3115569b1d21d5c48425d9c
2014-03-20 21:07:22 -07:00
Alexander Afanasyev 355c066fe1 face: Implementing new "isOnDemand" flag
This flags replaces isPermanent flag in datagram faces, but with the
reversed logic (isPermanent = !isOnDemand)

Change-Id: I37ba604e5f105ca95a79a08b8cfc3d640df8b412
Refs: #1376
2014-03-20 18:10:44 -07:00
Steve DiBenedetto fbb40a8d29 mgmt: add face event notification and notification stream
refs: #1244

Change-Id: I14bd327be53bcb607b457d6cb4bd66bd28a2feaa
2014-03-20 17:09:05 -06:00
jeraldabraham b6dde389bf tools/nfd-status: plain text status command
Change-Id: Id0f5eebd7d811ee8f4f76eb867687f78c445ad97
Refs: #1328
2014-03-19 22:50:34 -07:00
Davide Pesavento 6fc750f7cb tools: fix two warnings produced by gcc-4.8.
Change-Id: Ia27dd0b84b4a0e429f005ba4c0a5a5479dfc6769
2014-03-18 23:15:35 -07:00
Alexander Afanasyev eb3197fa35 all: Update code to compile with latest time-related changes in ndn-cpp-dev library
Change-Id: I7e859989c833001f49b286d4a9917f4dc740b4a4
2014-03-18 17:34:12 -07:00
Steve DiBenedetto 791c46a9b8 mgmt: enable UDP and Ethernet multicast in default configuration
refs: #1332

Change-Id: I44c5c74d114b869ddc8ca360ca50fe956797e0a3
2014-03-18 16:54:06 -07:00
Junxiao Shi bd392bf1e4 fw: FaceTable onAdd,onRemove events
refs #1244

Change-Id: I8710dedaba94c1fcd852bd3aa2f21d39ad0bd7ee
2014-03-18 15:24:19 -07:00
jeraldabraham 8d840000e9 ndn-tlv-poke: simple producer to read payload from stdin and send it to local NDN forwarder as a single Data packet
refs: #1350

Change-Id: I5f5f86819beadfa6ecb4e62944d774417de8d6c0
2014-03-17 13:43:48 -07:00
hilata dd50ada734 tools: NDN hub discovery server & client
refs: #1295, #1296

Change-Id: I2fb5a0a8d6435e39aca080cb51b683820dbd959e
2014-03-17 14:28:35 -05:00
Steve DiBenedetto 6214e568a9 mgmt: add support for FIB enumeration protocol
refs: #1192

Change-Id: If9198c7d90d8882e9590ce93165667923df59a03
2014-03-17 12:56:46 -06:00
Junxiao Shi ea48d8bb7c mgmt: StatusServer
refs #1199

Change-Id: Idf2181dde857970f026e8147b60d09dea45007a1
2014-03-17 11:11:44 -07:00
Steve DiBenedetto 1a3c6738a8 mgmt: add certificate generation/export instructions to nfd.conf.sample.in and README.md
rename configuration file's "keyfile" field to "certfile" to reflect usage of
  an NDN certificate
nfd.conf certfile paths are now interpreted as relative to nfd.conf's location

refs: #1332

Change-Id: Ib91cffd3d113ef084bf19e87a85172ddfd16b7eb
2014-03-17 09:01:06 -07:00
Junxiao Shi c542b2b6a9 fw: invoke FaceTable::remove upon Face::onFail
refs #1358

Change-Id: Ic19a88f0aea5adefbd3179de09f9f4e049922ff8
2014-03-16 23:00:58 -07:00
Junxiao Shi 57f0f311f2 fw: make strategies understand scope
refs #1253

Change-Id: I57f7a6008e6f08c9817e58f480020eb9219a4aec
2014-03-16 17:19:28 -07:00
hilata 141eaae99e nfdc: strategy-choice
Change-Id: I806ed8296b6cc3be4a142ac2b5e08629930614a2
refs: #1312
2014-03-16 17:00:28 -07:00
jeraldabraham 20b2dc5db2 ndn-tlv-peek: simple consumer program that sends one interest and expects one response
refs: #1349

Change-Id: I5b98baf63ffdea5ec1c9bf1e98953e2035339e41
2014-03-16 13:51:38 -07:00
Steve DiBenedetto 1d75f54e4b mgmt: refactor StrategyChoiceManager to use StrategyChoiceOptions (from FibManagementOptions)
refs: #1311

Change-Id: I104acede81d2ff00607b37ebccf741836aee3efb
2014-03-16 13:30:25 -07:00
Junxiao Shi 11bd9c28e8 fw: /localhop scope control on outgoing Interests
refs #1253

Change-Id: I359747688568934070d1583995957835ac690f28
2014-03-15 22:27:19 -07:00
Junxiao Shi b289cc18fc fw: ForwarderCounters
refs #1199

Change-Id: I0664825d7b09b4e7e893876aefc5af10e53b90b1
2014-03-15 16:22:33 -07:00
Steve DiBenedetto 9f6c3642ce mgmt: add face/list support and general purpose data segementer
refs: #1245

Change-Id: I3769941022b7ed6e2a8d39622032e4e16909f645
2014-03-15 11:40:17 -07:00
Davide Pesavento 9eaeac7716 face: enable promiscuous mode in Ethernet face.
This is a temporary hack to be able to receive NDN packets sent to
an Ethernet multicast address different from the broadcast address.
It'll be removed when task #1278 is properly implemented.

Change-Id: I87380637ef2993cf28889ab69f13dc8b75b9644e
2014-03-15 10:18:33 +01:00
Alexander Afanasyev eee71fd6bc face: Disable IPv4-mapping of IPv6 addresses in TCP and UDP channels
Change-Id: I9997ed4114b9708778ee55f82f567264dede6798
Refs: #1352
2014-03-13 17:49:00 -07:00