Commit Graph
26 Commits
Author SHA1 Message Date
Steve DiBenedetto 3a61fb4758 core: prepend seconds.microseconds since epoch to logging messages
refs: #1440

Change-Id: I4ed478e574cf4eff68c3e80b3db1a6dbaab54089
2014-04-06 18:39:23 -06:00
Steve DiBenedetto ca53ac6b00 face, mgmt: improve face creation failure and bad URI handling
Prevent creation of faces to endpoints owned by NFD instance

Prevent creation of UDP broadcast faces (255.255.255.255 and
those belonging to machine's interfaces) in response to
face creation command

Sanity check configuration file port numbers in face manager

refs: #1414, #1427

Change-Id: Ia3f0a9337f3d97c34388773eab05bc39ad6dd804
2014-04-06 10:54:20 -07:00
Junxiao Shi e38b1c4e8f core: extend FaceUri with fd, ether, dev schemes
refs #1396

Change-Id: I6680eb2013c335a14c9fa76b965c2d1e63202334
2014-04-02 05:00:41 -07:00
Alexander Afanasyev 500b253d33 build: Runtime and compilation fixes for FreeBSD 10.0
Change-Id: Idf1dfad0125c8505e60301172e205243dcd840da
Refs: #1348
2014-03-31 21:13:22 -07:00
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
Junxiao Shi 98e29f4731 core: delete deprecated getGlobalScheduler() API
refs #1290

Change-Id: If994e3bd303f0788d8e945351c182bbd4ab5e0b2
2014-03-31 10:27:26 -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
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
Davide Pesavento 248d6bd666 core: add free function to enumerate network interfaces.
Change-Id: Icd89662afe9e1295cd18a615970c5b4299529b38
Refs: #1306
2014-03-11 12:17:49 -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 a4f2be8248 fw: FaceTable
refs #1317

Change-Id: Ief04fe572407120ca6777c087a519c1749f0cdd2
2014-03-04 14:32:04 -07:00
Junxiao Shi f124d7522f core: define NFD version
refs #1316

Change-Id: I56046cb7482a771d8d25fe1f0b78e201855b8eed
2014-03-03 10:18:45 -08:00
Alexander Afanasyev 7b9347b09f core: Implementing FaceUri abstraction
Change-Id: Ia4e0e9bb1a8b8c440ae97d45f77f792a50f87e85
Refs: #1195
2014-02-28 14:21:16 -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
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
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
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
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
Alexander Afanasyev 6688681966 core: Logger extension to allow in-class-defined logger
Change-Id: Ifa31fb65eda772df47a81ad5db1c501eaa5f8ca1
2014-01-31 17:24:23 -08:00
Junxiao Shi 234a532c0a core: Scheduler::cancelEvent allows empty EventId
refs #1176

Change-Id: I80f10ed8026d64b46b4634ced9278f145f54c4a7
2014-01-30 22:40:48 -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
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 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 61c5ef3830 core: time::Duration, time:Point, time::now
refs #1148

Change-Id: I19c3d2f9b638797a6a36ce41a98be4463b4b7a2d
2014-01-25 18:31:02 -08:00