26 #ifndef NFD_DAEMON_FACE_GENERIC_LINK_SERVICE_HPP 27 #define NFD_DAEMON_FACE_GENERIC_LINK_SERVICE_HPP 127 setOptions(
const Options& options);
129 virtual const Counters&
130 getCounters()
const override;
136 doSendInterest(
const Interest& interest)
override;
141 doSendData(
const Data& data)
override;
169 assignSequences(std::vector<lp::Packet>& pkts);
251 #endif // NFD_DAEMON_FACE_GENERIC_LINK_SERVICE_HPP LpFragmenter::Options fragmenterOptions
options for fragmentation
GenericLinkService is a LinkService that implements the NDNLPv2 protocol.
bool allowReassembly
enables reassembly
bool allowLocalFields
enables encoding of IncomingFaceId, and decoding of NextHopFaceId and CachePolicy ...
GenericLinkServiceCounters Counters
counters provided by GenericLinkService
Base class to store tag information (e.g., inside Interest and Data packets)
stores a packet along with the remote endpoint
PacketCounter nReassemblyTimeouts
count of dropped partial network-layer packets due to reassembly timeout
virtual const Counters & getCounters() const override
Class representing a wire element of NDN-TLV packet format.
represents an Interest packet
represents a counter of number of packets
Options that control the behavior of LpFragmenter.
GenericLinkServiceCounters(const LpReassembler &reassembler)
uint64_t Sequence
represents a sequence number
represents a Network Nack
PacketCounter nOutOverMtu
count of outgoing LpPackets dropped due to exceeding MTU limit
Copyright (c) 2011-2015 Regents of the University of California.
counters provided by LinkService
reassembles fragmented network-layer packets
SizeCounter< LpReassembler > nReassembling
count of network-layer packets currently being reassembled
Options that control the behavior of LpReassembler.
void setOptions(const Options &options)
sets Options used by GenericLinkService
provides a counter that observes the size of a table
counters provided by GenericLinkService
Options that control the behavior of GenericLinkService.
PacketCounter nInNetInvalid
count of invalid reassembled network-layer packets dropped
const Options & getOptions() const
get Options used by GenericLinkService
LpReassembler::Options reassemblerOptions
options for reassembly
fragments network-layer packets into NDNLPv2 link-layer packets
PacketCounter nInLpInvalid
count of invalid LpPackets dropped before reassembly
PacketCounter nFragmentationErrors
count of failed fragmentations
bool allowFragmentation
enables fragmentation