Commit Graph

1046 Commits

Author SHA1 Message Date
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
Davide Pesavento 68ab43d8b7 face: don't set TransportState to FAILED if connection is closed cleanly
Change-Id: I0989cdf49558574f30b55a172d467b39683f9bb6
Refs: #4099
2017-07-05 00:07:12 -04:00
Davide Pesavento 0b0a71d801 face: rename hasBeenUsedRecently to hasRecentlyReceived
The word "used" is misleading, because the flag is set only when
packets are received, not for any other use of the transport.

Change-Id: I8a940d7887955c47cef085149629591b6e80c2a1
2017-07-05 00:06:54 -04:00
Davide Pesavento 1816d4b190 face: implement close-on-idle and persistency change for Ethernet unicast
Change-Id: I255024990a72b8cea5a44fa89f515ad91aadba66
Refs: #4011
2017-07-05 00:06:39 -04:00
Junxiao Shi 3b0815486e tools: modularize ndn-autoconfig-server
refs #4158

Change-Id: I90eb570e2ca2ae611d48aeb1e456712c1d148531
2017-07-04 18:37:34 +00:00
Junxiao Shi dbb6b3e119 mgmt: use v2 ValidationPolicy in CommandAuthenticator
refs #4089

Change-Id: I9a1cc77a960abe1e58a744f9d065634ab7597d15
2017-07-03 12:42:07 +00:00
Junxiao Shi 8a1f170ea6 tests: sign command Interests with CommandInterestSigner
Previously used ndn::v2::KeyChain::sign creates signed Interests, not
command Interests.

refs #4089

Change-Id: I7b13926d676ff81041f036eaec1978d82e8e1dfd
2017-07-03 00:05:08 +00:00
Junxiao Shi 83be1dae4b use FaceUri and NetworkMonitor from ndn-cxx/net
This commit also contains a quick fix in LpReliability to avoid
ndn::lp::Packet::wireEncode(EncodingEstimator&).

refs #3940, #4156

Change-Id: Ice8e3649be21dd023ed1f6562c185f9e6721e45e
2017-06-30 13:37:37 +00:00
Junxiao Shi 08e96316be tools: simplify nfd-autoreg with range-based for
refs #4158

Change-Id: Ibe83df03a1618b987608d539173ad32f03aafc42
2017-06-29 18:07:27 +00:00
Davide Pesavento 8eb5f8f3ed build: sync default-compiler-flags.py with ndn-cxx
- explicitly require clang >= 3.4
 - move -Og to basic debug flags (supported by clang since 4.0)
 - use gold linker and enable linker optimizations

Change-Id: Ife0b645a94abfe86230bac179779fde6b529f075
2017-06-24 02:24:42 -04:00
Davide Pesavento 46afec48ec face: unicast support in EthernetFactory
Change-Id: I1886a87d79a7194b3320a5417404b17a7290fa5d
Refs: #4012
2017-06-22 14:11:29 -04:00
Davide Pesavento 43ff2a9254 face: EthernetChannel
Change-Id: I8d9be571a2b0abe0cfad09756ea6c691e0679450
Refs: #4011
2017-06-22 14:11:08 -04:00
Davide Pesavento 7744a4a298 ci: speed up Travis-CI osx jobs by upgrading only the packages we need
Change-Id: I8bb4ddb5dbb335bf4f9ea925fe87bd7739adcb9d
2017-06-20 21:29:56 -04:00
Yanbiao Li f32ca897c5 rib: make log messages of AutoPrefixPropagator more accurate
Change-Id: Ieadfb95cd97b6f4ad0397d927ab31b21da3aa431
ref: #3774
2017-06-13 11:56:08 -07:00
Davide Pesavento 221f53bb6f ci: filter websocketpp files from lcov output
Change-Id: Ibd1ce39b0bf936e280e0277eaabf98cc68a5d656
2017-06-04 19:32:53 -04:00
Eric Newberry 9f3973e7b7 tests: increase timeout in Face/TestWebSocketChannel/MultipleAccepts
prevents test case failure on Ubuntu 17.04

refs #4002

Change-Id: I379499eaa90f12137b8c31b4a4fbe16392780a7d
2017-05-31 17:13:45 -07:00
Eric Newberry 7d8695d9e7 tests: check for new FaceUri canonization result string syntax
refs #4095

Change-Id: I068d140f50375541dee159b675b2ecfe69eb56a8
2017-05-30 23:28:47 +00:00
Junxiao Shi 3f21e58a58 rib: simplify Route class
Route::expires is changed to an optional, with nullopt representing
"never expires". This avoids an integer overflow.

RouteFlags accessors are now provided by ndn::nfd::RouteFlagsTraits.

Stream insertion operator is improved.

refs #3502

Change-Id: Ia912eab771fb00020385bf84d486955feae6aafa
2017-05-29 15:26:32 +00:00
Junxiao Shi 6eb0271fae face: decode CachePolicy without requiring allowLocalFields
refs #3966

Change-Id: I9a0f3c72682a6bc66f8852f115789a450a168223
2017-05-27 22:48:02 +00:00
Junxiao Shi 33a24e8e8f ci: fix ndn-cxx-latest version detection
refs #3321

Change-Id: I25ff57b634772fae324459751d6a7375346012ff
2017-05-27 17:09:31 +00:00
Junxiao Shi 16a3adfafc switch to ndn-cxx KeyChain v2
refs #4089

Change-Id: I32bc19db156de49275b681ef67f684b76631d50b
2017-05-26 17:38:51 +00:00
Eric Newberry f4056d0242 cs+fw: omitted FreshnessPeriod implies always stale
refs #3944

Change-Id: I018242b3ba5850e8a126f956af4150b512406efd
2017-05-26 17:31:53 +00:00
Qi Zhao 9ae8857bce tools: fix the inconsistent logging among ndn-autoconfig stages
refs #4079

Change-Id: Ie1edd8d30dbe7a9f5bf7b3364a07e71910cd91eb
2017-05-23 16:19:31 -07:00
Davide Pesavento a94f3676c3 face: MulticastEthernetTransport: remove promiscuous mode fallback
Change-Id: I040704577e66951ab5d1298ac4f99d98af11f809
Refs: #4081
2017-05-18 19:52:55 -04:00
Davide Pesavento fe0580cb55 face: introduce PcapHelper class
Change-Id: I26f7d43394e1b17f314c226ca6bce723c2410ae3
Refs: #4011
2017-05-18 18:17:54 -04:00
Ashlesh Gawande 6f6ef012cb ci: check boost version change on OSX
refs #3321

Change-Id: Iedccc7588ecaa95b34e6592aa0fa4f8a593233fd
2017-05-11 16:07:15 -05:00
Junxiao Shi 5c1bb36ae9 tests: include Flags in mocked faces/create response
refs #3956

Change-Id: I2e9af94bbb525739a31623da71325178191297d3
2017-05-11 16:03:38 +00:00
Davide Pesavento 8d61c037a7 ci: add generation of HTML coverage report using lcov
Copied from ndn-cxx

Change-Id: Ie8c08a570afe67c9eb232b37ad0038566ad49572
2017-05-03 01:14:32 -04:00
Junxiao Shi 1cce2a3014 mgmt: enable LocalUri in faces/create command response
Display LocalUri in 'nfdc face create' output.

refs #3956

Change-Id: I3c9ce266f218547bd6ba9509437178d271f680f7
2017-05-02 02:39:55 +00:00
Eric Newberry 73bcad33b9 core: make SizeCounter use pointer instead of reference
Restore virtual inheritance of GenericLinkServiceCounters in
GenericLinkService

refs #3941

Change-Id: I368e4694fee7bc97173fddfc81d0c679da0d6eed
2017-04-27 18:53:34 -07:00
Davide Pesavento 22db53973d rib+tools: use ndn::nfd::RouteOrigin instead of uint64_t
Change-Id: Ic8cbe95491a41e1d34b66d406da8637aeb5fd9e3
Refs: #3903
2017-04-14 20:48:20 -04:00
Junxiao Shi 38c7d9e6d7 tests: add bad FaceUri tests in FaceManager/CreateFace
refs #3377

Change-Id: I8be096c9bd25a80f063113f3d04f544ed184cc7d
2017-04-13 14:22:50 +00:00
Junxiao Shi 8eda682a18 tools: nfdc route commands accept and print RouteOrigin strings
refs #3987

Change-Id: I47594546e3fe9279fff5ea6ade9ce38cb3b05b6c
2017-04-12 02:53:14 +00:00
Davide Pesavento a3c9ddb21c face: allow the creation of permanent TCP faces
Change-Id: I516c176b000a78012f2ef7bd7f1f3e74c1758a94
Refs: #3167
2017-04-11 02:46:47 -04:00
Davide Pesavento acca18ae12 face: use std::array in UdpChannel
Change-Id: I9dc209ef471601f73ae85a36a317d7abf7c1849d
2017-04-09 13:23:16 -04:00
Davide Pesavento 77911ccc73 face: make logging more uniform across channel types
Change-Id: I21db45f736e07464260dcc902c673d098ba3c549
Refs: #2561
2017-04-09 13:11:16 -04:00
Davide Pesavento c19408ddf2 face: move isListening()/size() to Channel as pure virtual methods
As a side effect, this ensures that Channel cannot be instantiated.

Change-Id: I875876ddf8fc0fbb04f3e88726c708ece8106702
2017-04-09 02:57:19 -04:00
Davide Pesavento e5eebad6d2 face: remove nfd::ProtocolFactory type alias
Change-Id: Iac0af82a5301245e621a39f3bfc98aaed8dbaa45
2017-04-06 20:39:41 -04:00
Davide Pesavento 8fd15e628a face: move Channel and subclasses into nfd::face namespace
Change-Id: I163ef20e11b65d19d68585ec075fd3cd224a573b
2017-04-06 20:39:05 -04:00
Junxiao Shi b283f52c78 tools: nfdc strategy set/unset commands
nfdc set-strategy and nfdc unset-strategy are deprecated.

refs #3865

Change-Id: I934cbfcd567ac7ee33381ae4baf00b668977a0aa
2017-04-06 20:46:15 +00:00