Commit Graph

670 Commits

Author SHA1 Message Date
Davide Pesavento d96744d968 mgmt: don't crash if no authorizations are configured
Change-Id: I02d439a73c9b02fcb7141104d62a67aa1fa5aefb
Refs: #4487
2018-02-03 20:19:09 -05:00
Davide Pesavento 85244373f9 core: don't complain if the configuration file is empty
It is not an error in itself.

Change-Id: I2d100203c9c63ef4774e00dfa17fd1087e381122
2018-02-03 20:19:09 -05:00
Junxiao Shi 75306351ff rib: limit route prefix length in rib/register command
refs #4262

Change-Id: I567934419f6872cb0f5a823400f53014b9c6e85e
2018-02-01 21:59:44 +00:00
Junxiao Shi 3d2049fbc1 table: add CS enablement flags
This commit also:

* deletes never-implemented and unused Cs::erase method
* groups CS configuration methods together
* uses Table::emplace in Cs::insert

refs #4050

Change-Id: If8cf29dd33921da2f2c4ce56e02395d43cd3ee99
2018-01-30 09:15:15 -08:00
Eric Newberry 0c3e57b399 face+mgmt: allow congestion marking parameters to be enabled and set
refs #4465

Change-Id: I9d49135ab32bacb2885b70031c573f7c8709ac1f
2018-01-29 21:52:53 -07:00
Davide Pesavento 15b5505e01 face: group parameters to createFace and connect into a common structure
Change-Id: Icb6857602ed7e897be6c5334b05be23793d133bb
2018-01-29 18:56:12 -05:00
Davide Pesavento 97a010178c tests: prevent unsigned integer underflow in TestUdpFactory/Blacklist
Change-Id: If00bb69fc2ddaded91c199c6ba17d94e12b1ffea
2018-01-22 19:37:44 -05:00
Davide Pesavento 5cc706c8cb tests: update copyright in test case example
Change-Id: Ifb12152dc56b59c038751c53abc169f3d36c8b17
2018-01-22 17:39:00 -05:00
Eric Newberry 0c84164fd0 face: allow enabling/disabling congestion marking through config file
refs #4465

Change-Id: I888b83b1fdbe8e3fc36a902bf7af52147807d829
2018-01-22 01:00:16 +00:00
Davide Pesavento a6f2d245d7 tests: use BOOST_TEST_GLOBAL_CONFIGURATION with boost >= 1.65
Change-Id: I12b06a97955f611a48642bc20ebc896e1007ccb1
Refs: #4255
2018-01-21 16:18:00 -05:00
Md Ashiqur Rahman 8ce09032ff face: implement IPv6 UDP multicast transport
Change-Id: Ib6ab956354dbbba00694c7949fa9ee4639579879
Refs: #4222
2018-01-14 22:43:25 -05:00
Eric Newberry b49313db62 face: congestion detection in TCP, UDP, and Unix socket transports
refs #4362

Change-Id: Idaa5d65e1f33663d95bad56de42640183b2cda6d
2018-01-14 17:50:01 -07:00
Junxiao Shi 3160a3f820 tools: implement 'nfdc cs info' command
refs #4219

Change-Id: I4252878943c3f6c88f306f83f5023fffc82326b0
2018-01-09 21:25:15 +00:00
Junxiao Shi f2bfb44a4a mgmt: CS information dataset (hit/miss counters)
refs #4219

Change-Id: If3ede6b3cba3b836e4e3190989c65f13280fa972
2018-01-05 12:34:57 +00:00
Davide Pesavento 8215a3ada6 face: deduplicate multicast UDP socket setup
In preparation for adding IPv6 support.

Change-Id: I5a3be2007f7fecc44915a5d6794093143ce9c0f9
Refs: #4222
2017-12-26 13:58:24 -05:00
Eric Newberry 4738f15594 tests: make CongestionMarkStrategy parameters human-readable
Change-Id: I45448640b9125015a0ae2711f14fc3c1472603c3
2017-12-21 21:10:50 -05:00
Eric Newberry 00d39fda3c tests: improve LpReliability unit tests
count retransmitted, but received packets properly in LpReliability

refs #4391

Change-Id: I6867a70a1e7d7e949a250982df2ff97e49848996
2017-12-13 05:25:24 -08:00
Eric Newberry 78ef901f24 tests: allow parameters to be specified to CongestionMarkStrategy
refs #4327

Change-Id: If33efc23cc0e4d85aaa99cfcb5411e42b409c899
2017-12-12 13:49:01 -08:00
Junxiao Shi 3f9234b2cf table: limit prefix length in Measurements
refs #4262

Change-Id: Ife04f8df1fb833b477d055a1cd1f37d2af474e7f
2017-12-07 17:41:50 +00:00
Alexander Afanasyev 0c63c63ed7 build: Fix build when std::to_string is not available
Change-Id: If34fcebe17bd7e3de23655680957fa6e0df27676
Refs: #4393
2017-12-05 11:27:41 -05:00
Eric Newberry 69b63dcdd4 tests: add integration test helper strategy CongestionMarkStrategy
refs #4327

Change-Id: I966ed4fb4526338138712017e326cc80a1a3be7a
2017-11-22 00:06:53 -07:00
Eric Newberry 41aba10d3d fw: add strategy notification for Interests dropped by LpReliability
add dropped Interest counter to faces

refs #3823

Change-Id: I9910b66932d74383203e8f3732bb45cade83b972
2017-11-20 18:10:52 -08:00
Eric Newberry 52ae3296bd tests: remove reliance of other tests on WITH_TESTS
refs #3609

Change-Id: I8fa858d207cd060cfcda7c86af56dac4afb48fe1
2017-11-18 20:45:32 -07:00
Davide Pesavento bb734df9f6 face: pass the whole NetworkInterface to UdpFactory::createMulticastFace
Instead of just the interface name. This is in preparation
for adding IPv6 support to createMulticastFace.

Change-Id: Ie3c02af4483b041d39d4e85c85cd712368e9bb8f
Refs: #4222
2017-10-28 15:54:48 -04:00
Davide Pesavento bc79bd63c7 tests: fix Face/TestTcpTransport/PermanentReconnectWithExponentialBackoff
Change-Id: I9728c8e4f350589fd2f5af03fc82fcdb0f8bfe24
Refs: #4301
2017-10-28 15:54:17 -04:00
Davide Pesavento 22fba35327 tests: test IP transports under various combos of address family/scope
In particular, link-local addresses are now tested as well.

Additionally, WebSocketTransport send/receive tests are extended
to check transport counters.

Change-Id: I5b35f498a5d8d70cb1f7a2bea3ce99d22370e050
Refs: #1428
2017-10-17 16:00:11 -04:00
Davide Pesavento b8d1fc7562 tests: add support for link-local addresses in getTestIp
Change-Id: If57cb93f1c25a18b680aef12895ee5924ca90cfa
2017-10-09 16:09:55 -04:00
Davide Pesavento 6d1c1c320b tests: stop using deprecated Buffer::buf()
Change-Id: I48b7672098cfe57ccb470a247eed0c80e24cfffe
2017-10-09 15:53:37 -04:00
Davide Pesavento 4b89a6e943 face: move createChannel overloads that take strings to unit tests
They are used only there.

Change-Id: I0c70221bbcad36024223cc6e3c929b9c08b683c0
2017-10-07 15:29:50 -04:00
Yanbiao Li afb2059377 use ndn::ip::address(V6)FromString for scope-id aware conversion
Change-Id: Ifdc31771b8a990867c0a79ba42b71c87a97bcd56
Refs: #1428
2017-10-06 10:15:51 -07:00
Junxiao Shi 4e837f8d12 table: limit prefix length in StrategyChoice
refs #4262

Change-Id: Iddebeb555b2f3315515a298f8cded353fb51854d
2017-10-02 22:14:43 +00:00
Davide Pesavento b5eee2066b face: delete deprecated FaceSystem constructor
Change-Id: I54d623f1432428c2c3516a00f66dfe3f847bbc2c
Refs: #3377, #4021
2017-09-22 21:20:02 -04:00
Davide Pesavento 0804f5dd1f tests: stop using deprecated Block constructor
Change-Id: If50d5f0e2a4d6cef3a5e84e0f1da4a388b216233
2017-09-22 21:19:42 -04:00
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
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 f54d0301c6 table: advisory limit of NameTree depth
refs #4262

Change-Id: I691f9615e2b8a3b146a683919c6d5833f53f6122
2017-09-07 18:16:38 +00: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
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 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
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
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