Options that control the behavior of GenericLinkService. More...
#include <generic-link-service.hpp>
Public Member Functions | |
Options () noexcept | |
Public Attributes | |
bool | allowLocalFields = false |
enables encoding of IncomingFaceId, and decoding of NextHopFaceId and CachePolicy More... | |
bool | allowFragmentation = false |
enables fragmentation More... | |
LpFragmenter::Options | fragmenterOptions |
options for fragmentation More... | |
bool | allowReassembly = false |
enables reassembly More... | |
LpReassembler::Options | reassemblerOptions |
options for reassembly More... | |
LpReliability::Options | reliabilityOptions |
options for reliability More... | |
bool | allowCongestionMarking = false |
enables send queue congestion detection and marking More... | |
time::nanoseconds | baseCongestionMarkingInterval = 100_ms |
starting value for congestion marking interval More... | |
size_t | defaultCongestionThreshold = 65536 |
default congestion threshold in bytes More... | |
bool | allowSelfLearning = true |
enables self-learning forwarding support More... | |
std::function< std::shared_ptr< ndn::lp::GeoTag >)> | enableGeoTags |
Enable encoding and decoding of GeoTags. More... | |
Options that control the behavior of GenericLinkService.
Definition at line 100 of file generic-link-service.hpp.
|
inlinenoexcept |
Definition at line 103 of file generic-link-service.hpp.
bool nfd::face::GenericLinkService::Options::allowLocalFields = false |
enables encoding of IncomingFaceId, and decoding of NextHopFaceId and CachePolicy
Definition at line 110 of file generic-link-service.hpp.
Referenced by nfd::face::makeInternalFace(), and nfd::updateLinkServiceOptions().
bool nfd::face::GenericLinkService::Options::allowFragmentation = false |
enables fragmentation
Definition at line 114 of file generic-link-service.hpp.
Referenced by nfd::face::EthernetFactory::createMulticastFace().
LpFragmenter::Options nfd::face::GenericLinkService::Options::fragmenterOptions |
options for fragmentation
Definition at line 118 of file generic-link-service.hpp.
Referenced by nfd::face::GenericLinkService::setOptions().
bool nfd::face::GenericLinkService::Options::allowReassembly = false |
enables reassembly
Definition at line 122 of file generic-link-service.hpp.
Referenced by nfd::face::EthernetFactory::createMulticastFace().
LpReassembler::Options nfd::face::GenericLinkService::Options::reassemblerOptions |
options for reassembly
Definition at line 126 of file generic-link-service.hpp.
Referenced by nfd::face::GenericLinkService::setOptions().
LpReliability::Options nfd::face::GenericLinkService::Options::reliabilityOptions |
options for reliability
Definition at line 130 of file generic-link-service.hpp.
Referenced by nfd::face::GenericLinkService::setOptions().
bool nfd::face::GenericLinkService::Options::allowCongestionMarking = false |
enables send queue congestion detection and marking
Definition at line 134 of file generic-link-service.hpp.
Referenced by nfd::face::UdpFactory::createMulticastFace().
time::nanoseconds nfd::face::GenericLinkService::Options::baseCongestionMarkingInterval = 100_ms |
starting value for congestion marking interval
Packets are marked if the queue size stays above THRESHOLD for at least one INTERVAL.
The default value (100 ms) is taken from RFC 8289 (CoDel).
Definition at line 142 of file generic-link-service.hpp.
size_t nfd::face::GenericLinkService::Options::defaultCongestionThreshold = 65536 |
default congestion threshold in bytes
Packets are marked if the queue size stays above THRESHOLD for at least one INTERVAL.
The default value (64 KiB) works well for a queue capacity of 200 KiB.
Definition at line 150 of file generic-link-service.hpp.
bool nfd::face::GenericLinkService::Options::allowSelfLearning = true |
enables self-learning forwarding support
Definition at line 154 of file generic-link-service.hpp.
std::function<std::shared_ptr<ndn::lp::GeoTag>)> nfd::face::GenericLinkService::Options::enableGeoTags |
Enable encoding and decoding of GeoTags.
To enable, set value of enableGeoTags option to a function that generates shared_ptr<GeoTag>
Definition at line 160 of file generic-link-service.hpp.