Commit Graph
221 Commits
Author SHA1 Message Date
Steve DiBenedetto ef04f27892 face, mgmt: add channel status dataset publisher
Expose channel maps in protocol factories

Change-Id: I057b1bba638bfc9372867318653d71ba7d0e9888
Refs: #1631, #1653
2014-06-13 11:30:36 -07:00
Junxiao Shi 08d07a764e face: avoid multiple onFail events
refs #1497

Change-Id: I8fda3fea5cd8a314b30eef45da104109e9748afc
2014-06-10 20:41:42 -07:00
Alexander Afanasyev 281b916a35 tables: Adjust pre-allocated CS entry queue on Cs::setLimit call
Change-Id: I7611dfb671060864e40cadb707ad0a89f0359c07
Fixes: #1646
2014-06-09 08:44:03 +03:00
Steve DiBenedetto 3fff5614a5 mgmt: publish Strategy Choice dataset
refs: #1632

Change-Id: I4ed09d191433fd80071367e7b2ffcd2ac81c5c17
2014-06-07 22:35:39 -07:00
Alexander Afanasyev c87bbf8d7f face: "Closing" WebSocket face when WebSocket tunnel closes
Change-Id: Ief2d643b09469eac7fc92aa5139e41bcb8d1e210
Refs: #1637
2014-06-06 07:36:54 +03:00
Alexander Afanasyev 5959b014c5 mgmt: Reinitialize multicast faces and partially reload config file on HUP signal
The following elements from the config file are reloaded:
- effective user/group
- log levels
- multicast faces (enable/disable)
- security

Change-Id: I6ddf124702b30610dd0404d8fbaa9a9d800f02bf
Refs: #1584
2014-06-04 09:15:03 +03:00
Alexander Afanasyev 251f3c1317 face: fire onFail event on WebSocket and Ethernet face close
Change-Id: I3d24c7b2e5003253ff04dab68ec1a2cb37b7d023
Refs: #1637
2014-06-03 18:37:04 +03:00
Alexander Afanasyev f4e89b4000 src: Small improvements
Change-Id: I9850cd6ec2330482915f815d94a2ac2ccaeae7f1
2014-05-31 15:54:18 +03:00
Junxiao Shi b5888d2ed9 table: make StrategyChoice enumerable
refs #1633

Change-Id: I203d76645649cc8ef2e3dcfbd254fa4ebab6e9dc
2014-05-26 13:53:15 -07:00
Steve DiBenedetto 2599928409 mgmt: update face created Control Response with URI's canonical form
refs: #1619

Change-Id: I7c0304ce390de9757d2352e182a075ac902020d2
2014-05-22 15:27:06 -06:00
Junxiao Shi 02e32247ac fw: RttEstimator
refs #1568

Change-Id: Ife59d8d4715e293aec44f8fbe24582bb684452c4
2014-05-20 01:21:34 -07:00
Junxiao Shi da006f5a05 fw: incoming Data pipeline avoid sending to inFace
refs #1556

Change-Id: I1e38e3142f9c6536180f2aa494d7e2032ad76c2d
2014-05-16 11:18:00 -07:00
Junxiao Shi d938a6bb89 fw: Strategy::sendInterest allows changing Nonce
This commit also includes some tweaks in forwarding pipelines.

refs #1596

Change-Id: I65a4129be24089357b28fa9d35a3451e0d9ae258
2014-05-15 11:37:53 -07:00
Alexander Afanasyev f6980284e6 src: Remove unnecessary uses of boost::cref in make_shared and replace boost::cref/boost::ref with just cref/ref
In some cases, due to argument-dependent lookup, it is necessary to use
ndn::ref, instead of just ref.

Change-Id: I682180a007609535855f77511b49622154ad4f11
Refs: #1591
2014-05-15 09:52:28 -07:00
Junxiao Shi 66f91f87a3 table: PIT entry InRecord/OutRecord getters
refs #1569

Change-Id: I52d9516fa6154036904e163f918890579a745e4f
2014-05-10 23:58:08 -07:00
Davide Pesavento f0ae4421a6 face: enable immediate mode for packet capture on EthernetFace.
Fixes #1511

Change-Id: I6551de8d650c5d14e27713258d958ac3c77a1649
2014-05-08 17:16:43 -07:00
Wentao Shang 53df163b62 face: Implement WebSocket channel, face, and factory.
Change-Id: Ic4dbb1abdbbdbec028746ba14b11be8ab9cc1edb
Refs: #1468
2014-05-08 17:16:43 -07:00
Alexander Afanasyev ff489a230a core: Fixing regression in PrivilegeHelper that prevented running as non-root
PrivilegeHelper was properly initialized only when general section was
present.  When section was omitted, s_privilegedUid/s_privilegedGid/s_normalUid/s_normalGid
variables was not properly initialized (set to 0), resulting in
exception during the subsequent PrivilegeHelper::drop call.

Change-Id: Iffd7f05e7e6c86d227da2c9b7920ca6e3b607211
2014-05-08 17:16:43 -07:00
Steve DiBenedetto 24b9a64298 core: add support for temporary privilege drop and elevation
Added "user" and "group" options to general section of configuration file.
NFD will attempt to set the effective group and user id to these values
after initializing all management modules.

Added privilege helper to drop and temporarily elevate privileges on demand.

Updated README.md with instructions to configure NFD to drop privileges.

Added handler for general confguration file section.

refs: #1370

Change-Id: Id27140ad2dc2ca14751058691511132a35649d58
2014-05-08 17:14:52 -07:00
Alexander Afanasyev b47d53842a build+core: Add printing of version number in daemons and tools
This commit also changes how version number is handled.  Version is now
fully controlled from top-level wscript.  In addition to that, a new
NFD_VERSION_BUILD_STRING macro is set to include more detailed
information, including commit ID (e.g., "0.1.0-rc1-1-g5c86570").

Change-Id: I448eb627e0c42dc814de1107cf7bb0dc94fa2a89
Refs: #1575
2014-05-06 18:42:04 -07:00
Yingdi Yu c8f214c4b6 security: Support wildcard in NFD configuration
Change-Id: Ie27abd2315be0adf2e813049208e9cb96d16aff5
Refs: #1559
2014-04-30 17:59:50 -07:00
Yingdi Yu e5224e9343 rib: Separate trust models for /localhost and /localhop RIB management commands
Change-Id: I10fd9a1c8a2e0e572ea28f6e97d57b0b5b9750c8
Refs: #1557
Refs: #1558
2014-04-30 17:51:11 -07:00
Alexander Afanasyev 650028d5c5 face: Gracefully handle tlv::Error when received TLV block is malformed
Change-Id: I954b13d0e26fec7bc7fe23edcbc015dfac654ef8
Refs: #1494
2014-04-25 22:55:24 -07:00
Alexander Afanasyev 4a77136894 build: == Dependency change == NFD now depends on ndn-cxx library
Change-Id: Ia9dd324a536573b5ac4fe1b73d82af772dc84923
Refs: #1536
2014-04-25 10:09:23 -07:00
Alexander Afanasyev 5d2820dfc5 mgmt: Fixing regression introduced by change in the library
After more consistent usage of exceptions (most of the exceptions now
derived from Tlv::Error), `ndn::io::load` would not normally throw an
exception.

Change-Id: Ifd32653e681b94829007db3750e04754e9976fbd
2014-04-24 00:10:31 -07:00
Alexander Afanasyev 85b6b01af5 core: Adding workaround for missing <byteswap.h> on FreeBSD
This commit also fixes a couple of compilation issues with gcc 4.2.1

Change-Id: Iacc5a742b666849694b6ee947482e78340f74336
2014-04-21 20:55:35 -07:00
Alexander Afanasyev 20d3144721 rib: Switch RibManager to use NFD RIB Management protocol
Change-Id: I725529a96b5ad4318e0e0a8c2bd61b84ae439a32
Refs: #1490
2014-04-20 00:30:23 -07:00
Steve DiBenedetto 34c95f71bd core, main: make missing config file section behavior configurable
refs: #1499

Change-Id: I01cce3c73214f592d8c342d8aeda4fbafc6804b8
2014-04-18 12:16:35 -06:00
Alexander Afanasyev 89cf5e0b0c rib: Making single configuration file for both nrd and nfd
Change-Id: I4f03896459e8dc8564c44a7b610cd1351473d966
Refs: #1486, #1412
2014-04-17 18:01:42 -07:00
Giulio Grassi 6d7176dc43 face: bugfix of MulticastUdpFace receiving packets from all available NICs on Linux
Now on Linux the creation of MulticastUdpFace requires
CAP_NET_RAW capability if the name of the interface is specified

Change-Id: Iff53035371fb26c6ee40e1065a0935e5ed16dc60
Refs: #1475
2014-04-18 00:13:05 +02:00
Alexander Afanasyev 613e2a9ba3 src: Reorganizing source code in preparation to merge NRD code
Note that as of this commit, there are several changes in location of
compiled binaries in `build/` folder:

* `nfd` has been moved to `build/bin/nfd`
* `unit-tests` has been split into `unit-tests-core` and `unit-tests-daemon`

Change-Id: I2c830c117879edbaa5457d6423c13f0273285919
Refs: #1486
2014-04-16 11:54:35 -07:00
Davide Pesavento e22d8c8495 face: UnixStreamChannel: improved handling of existing socket files.
Add logic to prevent accidental removal of a socket file that belongs
to another (still running) NFD process.

Refs: #1360, #1367

Change-Id: Ibf755cd55e27f5a4cf165a0fbcdbf01fdb33005a
2014-04-15 04:46:37 +02:00
Alexander Afanasyev 885a85bf90 build+face: Fixing regression that broke ethernet support
As of this commit, libpcap is required unless specifically disabled
using --without-libpcap parameter during configure stage.

Change-Id: Iec6f8bd9babfe4da193c98a49043b08319311106
Refs: #1472
2014-04-13 21:15:31 -07:00
Steve DiBenedetto 9515287da7 mgmt: add support for enabling/disabling IPv4 or v6 channels
refs: #1461

Change-Id: I00bda4098c9a7722bce9d498acce339809af3f01
2014-04-11 13:36:54 -06:00
Ilya Moiseenko 9c9231b0e3 table: Processing of PublisherPublicKeyLocator in CS
refs: #1424

Change-Id: Ia4ad2c92a7a6860b73674444ba4a0120a90e5342
2014-04-11 10:42:19 -07:00
Haowei Yuan f52dac7f03 table: NameTree optimization
This commit adds platform-specific hash function selection and hash
table shrink function.

Change-Id: Iaaa0e5b86842d4e0582d3523f0a6b6836e152239
Refs: #1305
2014-04-10 16:46:49 -07:00
Alexander Afanasyev 11b9f3fccd table: Correcting type of Cost parameter in fib::Entry::addNextHop
Change-Id: I594dfb921367cff163ca07d987cbf61df8c10d0b
Refs: #1457
2014-04-10 15:14:19 -07:00
Alexander Afanasyev 8881162509 table: Calling the correct version of Cs::setData when refreshing CS entry
Change-Id: I9d33716a56c6aafb061716eed44d8e3f54363129
Refs: #1458
2014-04-10 15:14:19 -07:00
Davide Pesavento 52a18f9428 all: cleanup common.hpp and import typenames from ndn namespace.
This allows us to compile NFD in C++11 mode, making use of std::shared_ptr,
std::function, std::bind, etc. rather than their boost equivalents
(provided that ndn-cpp-dev is also compiled in C++11 mode). This is an
experimental feature and may not work properly.

Change-Id: I310529f78e1e428a8530b087983130d1ef3a9d88
2014-04-10 15:14:15 -07:00
Davide Pesavento 1bdef28419 build: update default CXXFLAGS.
* Add -std=c++03 and -pedantic, and fix the resulting warnings. The
  long-long-int warning is explicitly suppressed because it's not
  trivial to workaround in a platform-independent and ISO-conformant
  way without using C++11.

* Initial support for building with -std=c++11 (experimental).

* Prefer -Og optimization level in debug builds if supported by the
  compiler.

Change-Id: I744a25c8b52842dc3ea3a733d6ab2fa66171e6f8
2014-04-10 15:07:00 -07:00
Junxiao Shi 72c3e040ed mgmt: fix InternalFace::processInterest crash when Interest is gone
Interest may be satisfied by Notification and be removed from PIT
between sendInterest and processInterest.

refs #1452

Change-Id: I0c3e05c34f0d8607d96dcfd156a3e87c1ecb26f2
2014-04-09 23:04:00 -07:00
Davide Pesavento edae353eae face: change default separator for ethernet::Address::toString() to ':'
Change-Id: I4c8d2e90bd0279cc6221ec58790de19d656f4ca3
2014-04-10 04:16:19 +02:00
Ilya Moiseenko 96b80bb645 table: Content Store performance fix
Change-Id: I7f6752ec279e64e81c90c0b3e8d756da34194965
Refs: #1432
2014-04-09 00:26:22 -07:00
Junxiao Shi 9f7455b6dd fw: avoid setting PIT unsatisfy timer twice
refs #1448

Change-Id: If48a90be2b554bc7c1ea4b869e1a927bad578e0a
2014-04-07 21:02:16 -07:00
Junxiao Shi 30d3599ff6 table: PIT PublisherPublicKeyLocator processing
refs #1425

Change-Id: I031d9699e10bf2cb90eb0811c7fa8afe493f26f0
2014-04-07 12:01:04 -07:00
Alexander Afanasyev 9bcbc7c130 docs: Update of copyright and license statement in all .hpp and .cpp files
Change-Id: I4082db67f2390482615a780d91a513f09d57a9a4
Refs: #1266
2014-04-07 09:18:25 -07:00
Steve DiBenedetto 4d43a45871 core: change NFD_LOG_* macros to use std::clog
This change makes all logging output BUFFERED

refs: #1440

Change-Id: Ief60c43b532e4524a70aad2bf15aa06490847535
2014-04-06 18:58:05 -06:00
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 6e69432262 face/mgmt/fw/tools: add localUri to FaceStatus and FaceEventNotification
refs #1396

Change-Id: I6084745c62c44a409ecbd4a795cb712475e32416
2014-04-03 10:27:13 -07:00