Commit Graph
25 Commits
Author SHA1 Message Date
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
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
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
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 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
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
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
Steve DiBenedetto b9906cf8f3 mgmt: add udp listening
refs: #1406

Change-Id: I45bc9fd2fbdbf0a7b3a287d23053f88db97e04ec
2014-03-27 12:34:35 -06: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 bbe3f0ccf3 mgmt: Inserting created multicast faces into the forwarder (FaceTable)
Change-Id: I124c9a96c5c82b29deca5492d34fdf90d7ff0353
Refs: #1394
2014-03-24 17:01:48 -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
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
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
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
Steve DiBenedetto 4aca99c601 mgmt: add UDP IPv4 and ethernet multicast face creation to face manager
refs: #1195

Change-Id: I693772d6a5c79873c5715718a6cacd80dc8c74e1
2014-03-12 16:07:39 -06:00
Steve DiBenedetto 2c2b889ea2 mgmt, main: add support for authorized commands
refs: #1227

Change-Id: I907d1fa6e78775470c5376fcdfe898be4c311001
2014-03-11 17:08:31 -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