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&
141 doSendData(const
Data& data) DECL_OVERRIDE;
146 doSendNack(const
ndn::
lp::
Nack& nack) DECL_OVERRIDE;
152 encodeLocalFields(const
ndn::TagHost& netPkt,
lp::Packet& lpPacket);
158 sendNetPacket(
lp::Packet&& pkt);
163 assignSequence(
lp::Packet& pkt);
168 assignSequences(
std::vector<
lp::Packet>& pkts);
174 doReceivePacket(
Transport::Packet&& packet) DECL_OVERRIDE;
184 decodeNetPacket(const
Block& netPkt, const
lp::Packet& firstPkt);
196 decodeInterest(const
Block& netPkt, const
lp::Packet& firstPkt);
208 decodeData(const
Block& netPkt, const
lp::Packet& firstPkt);
220 decodeNack(const
Block& netPkt, const
lp::Packet& firstPkt);
250 #endif // NFD_DAEMON_FACE_GENERIC_LINK_SERVICE_HPP LpFragmenter::Options fragmenterOptions
options for fragmentation
Copyright (c) 2011-2015 Regents of the University of California.
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
PacketCounter nReassemblyTimeouts
count of dropped partial network-layer packets due to reassembly timeout
virtual const Counters & getCounters() const 1
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.
#define DECL_OVERRIDE
expands to 'override' if compiler supports 'override' specifier, otherwise expands to nothing ...
GenericLinkServiceCounters(const LpReassembler &reassembler)
uint64_t Sequence
represents a sequence number
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
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