Commit Graph

1085 Commits

Author SHA1 Message Date
Alexander Afanasyev 847de408cb build: Add warning for non-virtual destructor and fix discovered issues
Change-Id: I1d67b9b63d84d8524580e80ac06c3efef860c56a
2017-09-22 15:00:29 -04:00
Alexander Afanasyev b5220706c6 build: Add -isystem and set specialized flags as a last configuration step
This change prevents global flags from interacting with library/feature
detection scripts.

Change-Id: Id4d1d3f6cba6672ef04309b881bcff36a106f236
Refs: #4296
2017-09-22 15:00:03 -04:00
Alexander Afanasyev 38fb251c44 Update security section in sample config for V2 certificate
Change-Id: I50225d5019040a85e6df3584fb48b6b6386ed56d
Refs: #4276
2017-09-17 18:33:44 -07:00
Chavoosh Ghasemi 60b7d51063 docs: Fix reference to ValidatorConfig documentation
Change-Id: I43d96c64d031ad318333de8613e589633e58b52e
refs: #4184
2017-09-15 13:07:27 -04:00
Davide Pesavento 085b9e3a6f ci: add clang-5.0 build job to Travis-CI
Change-Id: Iea59e4f4687485dd4f076d41a4d6d6f1c8da7797
2017-09-15 12:53:12 -04:00
Junxiao Shi cfe81d5098 face: increase tolerance in WebSocketChannel test
Face/TestWebSocketChannel/SetPingInterval now allows 80ms
absolute tolerance, so that the test case is more stable on
slower machines.

refs #4244

Change-Id: I897f3b33a0ea2eb9006f0dd8d70ef2a4624953e2
2017-09-15 03:26:08 +00:00
Junxiao Shi 042a331582 table: attach PIT entry to NameTree node within depth limit
refs #4262

Change-Id: I64d76a337c3b491efa2f93c803046cea70c87000
2017-09-15 02:51:20 +00:00
Davide Pesavento ac238f29be tests+tools: fix build with clang-5.0
Change-Id: I75eeb01b071c1702517a65a8099e52d4092a4638
Refs: #4278
2017-09-12 15:22:02 -04:00
Junxiao Shi f940ae70f2 fw: use lp::isLessSevere from ndn-cxx
refs #4228

Change-Id: Ib430810ef356c309aa1f800f9b09c51d09dbc012
2017-09-11 03:24:29 +00:00
Junxiao Shi f54d0301c6 table: advisory limit of NameTree depth
refs #4262

Change-Id: I691f9615e2b8a3b146a683919c6d5833f53f6122
2017-09-07 18:16:38 +00:00
Nick Gordon 88043fcbe8 docs: clarify adding gerrit as remote repo
Change-Id: I92498afc362d254534ca03168fb8f0dca6a37f8e
refs: #3898
2017-09-07 08:49:03 -07:00
Junxiao Shi 06a1eab063 fw: Forwarder provides CS hit/miss counters
refs #4219

Change-Id: I7058c43bac4a5508d4b9907f6e684663b8953656
2017-09-04 13:13:02 +00:00
Junxiao Shi a907980840 tests: do not encode invalid SignatureInfo
refs #3200

Change-Id: I54199080439a41cf91c190e64a68540afabc7414
2017-08-27 11:38:56 -07:00
Davide Pesavento c25737cd9a ci+docs: remove all references to cryptopp/crypto++
Change-Id: I40fc72a8fa27c1a73c349e8cbaeb402a8b6af742
Refs: #3946
2017-08-26 16:39:56 -04:00
Eric Newberry 84d3adcd6c tools: add reliability option to nfdc face create
add LpReliability flag to FaceManager face status output

refs #4004

Change-Id: Ibcdfe7ff0fc9790cbcc4f2aa5e57e27b8a76023c
2017-08-26 12:39:10 -07:00
Davide Pesavento a997d29622 Fix compilation with Boost 1.65.0
Change-Id: Ib88b7e13bddb1728dd882c086e97edffdd696f0d
Refs: #4258
2017-08-25 23:30:24 -04:00
Md Ashiqur Rahman c8f17e51ed tools: Make ndn-autoconfig register / instead of /ndn
Hosts in consumer region should use / instead of /ndn as default route.

refs #4201

Change-Id: I6dd15c6657cfe9110c7a4dc3e9046370cbaf2733
2017-08-22 15:08:58 -07:00
Davide Pesavento c0a5a39a4f Add -Wextra-semi -Wundefined-func-template to the default CXXFLAGS
And fix the resulting compilation errors.

Change-Id: I2f8a8406542d297bfeeb4c922812ff1879a4dff6
Refs: #4248
2017-08-20 14:29:18 -04:00
Alexander Afanasyev 01bbd09ed8 tools: delete nfdId from 'nfdc status' output
refs #4089

Change-Id: I95f8a4346b2c4601acdc63daac20259b076a1d7e
2017-08-14 23:56:19 +00:00
Junxiao Shi 15902efdef tools: delete legacy nfdc and nfd-status invocations
The following legacy nfdc sub-commands are deleted:
- register
- unregister
- create
- destroy
- set-strategy
- unset-strategy
- add-nexthop
- remove nexthop

nfd-status no longer accepts command line arguments.

refs #4198

Change-Id: I3ec61fd24c09599c87f07bd92d8f0b5f4e7c70de
2017-08-11 22:58:35 +00:00
Davide Pesavento 00a3c9dc86 face: enable fragmentation and reassembly on unicast Ethernet faces
Change-Id: I81a065866610ec499a88b451bfaeea8ad40c17e2
Refs: #4011
2017-08-10 22:40:16 -04:00
Davide Pesavento 8ca138de13 ci: preserve PATH when running waf under sudo
Change-Id: Ideb6f9d4ec3d92af134b923b9abafc952ee868e6
Refs: #4186
2017-08-10 21:36:30 -04:00
Junxiao Shi a5765d647b core: delete NetworkInterfaceInfo class
nfd::NetworkInterfaceInfo has been replaced by
ndn::net::NetworkInterface.

refs #4021

Change-Id: Ic023b935f47f99f3bd74bbd4dc6c0e5bb2b3bf1c
2017-08-09 04:07:46 +00:00
Eric Newberry 2642cd250b mgmt: support LpReliability flag in faces/create and faces/update
refs #4003

Change-Id: Iddf94ea55c630b038187c2503783591b118230ec
2017-08-08 18:00:28 -07:00
Davide Pesavento b15276f90e tests: improve EthernetFactory test coverage
Also simplify other factories' GetChannels test case
by using checkChannelListEqual().

Change-Id: I02ecbd06fad498ea84b11d32b61ed4d63d929f2d
Refs: #4012
2017-08-08 20:32:22 -04:00
Davide Pesavento 6126547e53 face: EthernetFactory: skip non-Ethernet interfaces
Change-Id: Ifa42755b032cf23ea688e055477820d27e7dc8df
Refs: #4021
2017-08-08 15:48:10 -04:00
Davide Pesavento b8eebcb4aa face: EthernetTransport: use MTU provided by ndn::net::NetworkInterface
Change-Id: I949f054625ae6584d99505ea3fea2c4ab65b9cfb
Refs: #4021
2017-08-08 15:03:17 -04:00
Junxiao Shi 79a92089e7 face: use NetworkMonitor in EthernetFactory
EthernetFactory now creates unicast channels and multicast faces
on eligible netifs found by NetworkMonitor. However,
EthernetFactory does not yet react to fine-grained signals from
NetworkMonitor.

refs #4021

Change-Id: I58aac67d5a1b00d3cda76e78627b887f93ffa541
2017-08-08 02:40:59 +00:00
Nick Gordon 27b3854eb7 docs: write contributing guide and code of conduct
refs: #3898
Change-Id: Ife8936030527dba9020f0b298793c1121ae1fd6c
2017-08-07 12:37:05 -07:00
Junxiao Shi bbace1de47 face: use NetworkMonitor in UdpFactory
UdpFactory now creates multicast UDP faces on eligible netifs
found by NetworkMonitor. However, UdpFactory currently does not
react to fine-grained signals from NetworkMonitor.

refs #4021

Change-Id: I7802acb6f3aaa19db8f3c3141bbcdfc338e34eba
2017-08-06 20:03:37 +00:00
Junxiao Shi 4e1b6eee32 tests: avoid misaligned memory access in CS test
refs #4191

Change-Id: Idbc59c7d64805f6af239d66635821647956daf6d
2017-08-03 02:20:50 +00:00
Junxiao Shi 849e12a068 docs: corrections in Getting Started page
* Replace nfdc command lines with new syntax
* Remove mentioning of deprecated 'ndnd' and 'ndnd-tlv'
* Remove 'start nrd' step which has been removed
* Remove mentioning of ndn-cxx 'ndncatchunks3' and
  'ndnputchunks3' which have been moved into ndn-tools

refs #4194, #3570, #3700

Change-Id: Ie52c727400f7a1b4b076b3a94e48c72724139713
2017-08-02 00:14:57 +00:00
Ashlesh Gawande 90015991bc fw: per upstream retx exponential suppression for multicast strategy
refs: #4066

Change-Id: Ic1047b871dc9dc040e95ac5edceaae9994cd2849
2017-07-31 12:06:56 -05:00
Junxiao Shi bb6146ef74 tests: use ndn::util::Sha256 instead of ndn::crypto
refs #3940

Change-Id: I87c9cbfa9ae3592a053dd7eb0cb09d857668d111
2017-07-26 23:07:52 +00:00
Junxiao Shi 6028619f71 face: remove prohibited endpoint set
Prior to this commit, TcpFactory and UdpFactory each had a "prohibited
endpoint set" which prevents creating a face that connects to NFD
itself. This feature is no longer necessary after Nack-Duplicate has
been introduced, and is now removed.

refs #4189

Change-Id: I3b80ddc76ca1afb83b6f62061ccdbb69200e1841
2017-07-26 01:07:48 +00:00
Junxiao Shi fc2e13d58d fw: replace Link with forwarding hint
Forwarding now processes forwarding hint on Interests,
and no longer considers the Link object.

refs #4055

Change-Id: I0331687ee8ec31afa2f1a105e903670689647c4d
2017-07-25 02:08:48 +00:00
Eric Newberry 944f38bb49 face: move face parameters into CreateFaceParams struct
refs #4003

Change-Id: I6e1149e7075eb055912fd452a21b22fcb610829a
2017-07-23 20:37:06 -04:00
Junxiao Shi b347b7f189 tools: switch to v2::Validator in nfdc
"nfdid" field in 'nfdc status show' command is temporarily unavailable
because NfdIdCollector relies on v1 Validator. It will be re-implemented
in a future commit.

refs #4089

Change-Id: I21feae43055a17438d8bd3c0439ae4e0a2d5d14c
2017-07-23 14:01:58 +00:00
Davide Pesavento 6837d4f732 tests: cleanup FaceManager test cases
Change-Id: I1fd379fc1e01de331523260bd98ba96d6a7de88e
Refs: #3903
2017-07-18 00:47:11 -04:00
Junxiao Shi 0ba6d64e5a face: pass addFace and NetworkMonitor to ProtocolFactory constructor
refs #4021

Change-Id: I842515eb044bb1c655b347e6069e63c55c4e2d54
2017-07-17 00:53:22 +00:00
Junxiao Shi 2d49175d6e face: give ProtocolFactory access to NetworkMonitor
Subclasses of ProtocolFactory can access NetworkMonitor and
addFace callback anytime via member fields. They are supplied
to ProtocolFactory::create from FaceSystem.

This is in preparation for letting ProtocolFactory subclasses
react to fine-grained signals from NetworkMonitor.

refs #4021

Change-Id: I8da116bffc83d1bdeed7fd3b2e12c8872f19177b
2017-07-14 21:32:05 +00:00
Junxiao Shi 84d62cbbc6 face: use NetworkMonitor::listNetworkInterfaces() in tests
refs #4021

Change-Id: I6daccc3872a0c6b2e2e49390bc5881c796503926
2017-07-12 16:15:18 +00:00
Eric Newberry 7b0071e6a9 face: Acks acknowledge TxSequence instead of Sequence
refs #3931

Change-Id: I83919fe815c2a43e47eb09d754f77166c051d013
2017-07-09 07:31:51 -07:00
Junxiao Shi a5a3a87ae0 tools: simplify autoconfig MulticastDiscovery stage
refs #4158

Change-Id: Ib44804a0ac97b59d567fe8c0493c7d9ec4915137
2017-07-08 12:42:11 +00:00
Junxiao Shi cb76686ecc tools: refactor ndn-autoconfig
Hub face creation and prefix registrations are moved into a new
Procedure class. Main function is simplified.

refs #4158

Change-Id: I15b660e3b8a1bde89498a1cb549a87788de46c7a
2017-07-07 22:21:04 +00:00
Junxiao Shi 0d82d0459c face: construct EthernetTransport with NetworkInterface
EthernetTransport and EthernetChannel constructors now accept
ndn::net::NetworkInterface instead of NetworkInterfaceInfo,
in preparation for the transition to NetworkMonitor.

refs #4021

Change-Id: I1687a13dfaafde4ab3795a6f8c76c728c12929b9
2017-07-07 06:15:27 +00:00
Junxiao Shi 2760adcb80 core: NetworkInterfacePredicate accepts ndn::net::NetworkInterface
refs #4021

Change-Id: I6612a67db03b6651e8fbccad91f776ae502283d9
2017-07-06 05:44:52 +00:00
Junxiao Shi f748a4e9e2 tools: rename autoconfig Base to Stage
Also, turn BaseDns into non-member functions.

refs #4158

Change-Id: Id3ab862497a07cc261ed34b2ab116f4014a4c6fa
2017-07-05 23:41:48 +00:00
Davide Pesavento 84c65c0546 docs: update doxygen configuration
Most notably:
 - use relative paths in file list instead of file name only
 - enable sorting of brief descriptions of class members
 - show one enum value per line

refs #4163

Change-Id: Ib08601bc90f6eeb4e8754ed4335a447d5d0cc26c
2017-07-05 18:40:34 +00:00
Davide Pesavento 9ac95d3c1c ci: expand Travis-CI build matrix and use two parallel build jobs
Change-Id: I7dbba5bcd63274daa9b0da2ee9d631a55c1eca9e
2017-07-05 00:10:25 -04:00