26 #ifndef NFD_DAEMON_FACE_GENERIC_LINK_SERVICE_HPP 27 #define NFD_DAEMON_FACE_GENERIC_LINK_SERVICE_HPP 114 bool allowLocalFields =
false;
118 bool allowFragmentation =
false;
126 bool allowReassembly =
false;
138 bool allowCongestionMarking =
false;
154 size_t defaultCongestionThreshold = 65536;
158 bool allowSelfLearning =
true;
168 ssize_t overrideMtu = std::numeric_limits<ssize_t>::max();
174 std::function<std::shared_ptr<ndn::lp::GeoTag>()> enableGeoTags;
192 setOptions(
const Options& options);
205 canOverrideMtuTo(ssize_t mtu)
const;
230 assignSequences(std::vector<lp::Packet>& pkts);
245 sendNetPacket(
lp::Packet&& pkt,
bool isInterest);
319 size_t m_nMarkedSinceInMarkingState;
324 inline const GenericLinkService::Options&
325 GenericLinkService::getOptions()
const 330 inline const GenericLinkService::Counters&
331 GenericLinkService::getCounters()
const 339 #endif // NFD_DAEMON_FACE_GENERIC_LINK_SERVICE_HPP #define NFD_PROTECTED_WITH_TESTS_ELSE_PRIVATE
Options that control the behavior of GenericLinkService.
Options that control the behavior of LpFragmenter.
Options that control the behavior of LpReassembler.
PacketCounter nRetxExhausted
count of network-layer packets dropped because a fragment reached the maximum number of retransmissio...
LpReliability::Options reliabilityOptions
options for reliability
PacketCounter nCongestionMarked
count of outgoing LpPackets that were marked with congestion marks
PacketCounter nReassemblyTimeouts
count of dropped partial network-layer packets due to reassembly timeout
Represents a TLV element of the NDN packet format.
Represents an Interest packet.
represents a counter of number of packets
PacketCounter nDuplicateSequence
count of LpPackets dropped due to duplicate Sequence numbers
generalization of a network interface
uint64_t EndpointId
Identifies a remote endpoint on the link.
PacketCounter nRetransmitted
count of network-layer packets that had at least one fragment retransmitted, but were eventually rece...
uint64_t Sequence
represents a sequence number
represents a Network Nack
LpFragmenter::Options fragmenterOptions
options for fragmentation
PacketCounter nOutOverMtu
count of outgoing LpPackets dropped due to exceeding MTU limit
Copyright (c) 2011-2015 Regents of the University of California.
#define NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE
#define NFD_OVERRIDE_WITH_TESTS_ELSE_FINAL
base class to allow simple management of packet tags
counters provided by LinkService
reassembles fragmented network-layer packets
SizeCounter< LpReassembler > nReassembling
count of network-layer packets currently being reassembled
LpReassembler::Options reassemblerOptions
options for reassembly
provides a counter that observes the size of a table
counters provided by GenericLinkService
PacketCounter nAcknowledged
count of network-layer packets that did not require retransmission of a fragment
PacketCounter nInNetInvalid
count of invalid reassembled network-layer packets dropped
Represents a Data packet.
boost::chrono::nanoseconds nanoseconds
provides for reliable sending and receiving of link-layer packets
fragments network-layer packets into NDNLPv2 link-layer packets
PacketCounter nInLpInvalid
count of invalid LpPackets dropped before reassembly
PacketCounter nFragmentationErrors
count of failed fragmentations