Commit Graph
203 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
Chengyu Fan b07788af05 tools: add nfd-status-http-server.py as standalone http server
Change-Id: Ibb4a272d716b7f4c80b0e81be1fb86c3c5a13529
refs: #1181
2014-04-03 14:03:05 -06:00
Junxiao Shi 6e69432262 face/mgmt/fw/tools: add localUri to FaceStatus and FaceEventNotification
refs #1396

Change-Id: I6084745c62c44a409ecbd4a795cb712475e32416
2014-04-03 10:27:13 -07:00
Junxiao Shi 79494164c3 face: Face::getLocalUri
refs #1396

Change-Id: Icf02ae0a4136b6da3f6388cdce2f861bec44e940
2014-04-02 18:43:01 -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 bf9edeeaee logging: Reducing log level in several places
INFO level is suppose to be used for informational messages that are
useful for ordinary user, but in several places we used it as a DEBUG
output.

In CS the level is reduced even more, to TRACE.

Change-Id: I9058e25d95de79661099dd4624d802cc33420983
2014-04-01 22:24:50 -07:00
Haowei Yuan 694bfb6d72 table: Fixing a bug in Name Tree resize function
In the Name Tree resize() function, the pre pointer needs to be reset for each bucket.

Change-Id: I58526c5aaedc63f47aa64dbe285657b98b2a227c
2014-04-01 14:47:17 -05: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
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