26 #ifndef NFD_DAEMON_FACE_LP_FRAGMENTER_HPP 27 #define NFD_DAEMON_FACE_LP_FRAGMENTER_HPP 31 #include <ndn-cxx/lp/packet.hpp> 78 std::tuple<bool, std::vector<lp::Packet>>
87 operator<<(std::ostream& os, const FaceLogHelper<LpFragmenter>& flh);
92 #endif // NFD_DAEMON_FACE_LP_FRAGMENTER_HPP
size_t nMaxFragments
maximum number of fragments in a packet
void setOptions(const Options &options)
set options for fragmenter
LpFragmenter(const Options &options=Options(), const LinkService *linkService=nullptr)
const LinkService * getLinkService() const
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
std::tuple< bool, std::vector< lp::Packet > > fragmentPacket(const lp::Packet &packet, size_t mtu)
fragments a network-layer packet into link-layer packets
fragments network-layer packets into NDNLPv2 link-layer packets
Options that control the behavior of LpFragmenter.