26 #ifndef NFD_DAEMON_FACE_LP_FRAGMENTER_HPP 27 #define NFD_DAEMON_FACE_LP_FRAGMENTER_HPP 31 #include <ndn-cxx/lp/packet.hpp> 72 std::tuple<bool, std::vector<lp::Packet>>
81 operator<<(std::ostream& os, const FaceLogHelper<LpFragmenter>& flh);
86 #endif // NFD_DAEMON_FACE_LP_FRAGMENTER_HPP LpFragmenter(const Options &options, const LinkService *linkService=nullptr)
size_t nMaxFragments
maximum number of fragments in a packet
void setOptions(const Options &options)
set options for fragmenter
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.
const LinkService * getLinkService() const