Fragments network-layer packets into NDNLPv2 link-layer packets. More...
#include <daemon/face/lp-fragmenter.hpp>
Classes | |
| struct | Options |
| Options that control the behavior of LpFragmenter. More... | |
Public Member Functions | |
| LpFragmenter (const Options &options, const LinkService *linkService=nullptr) | |
| std::tuple< bool, std::vector< lp::Packet > > | fragmentPacket (const lp::Packet &packet, size_t mtu) |
| Fragments a network-layer packet into link-layer packets. More... | |
| const LinkService * | getLinkService () const noexcept |
| Returns the LinkService that owns this instance. More... | |
| void | setOptions (const Options &options) |
| Set options for fragmenter. More... | |
Fragments network-layer packets into NDNLPv2 link-layer packets.
Definition at line 39 of file lp-fragmenter.hpp.
|
explicit |
Definition at line 59 of file lp-fragmenter.cpp.
| std::tuple< bool, std::vector< lp::Packet > > nfd::face::LpFragmenter::fragmentPacket | ( | const lp::Packet & | packet, |
| size_t | mtu | ||
| ) |
Fragments a network-layer packet into link-layer packets.
| packet | an LpPacket that contains a network-layer packet; must have Fragment field, must not have FragIndex and FragCount fields |
| mtu | maximum allowable LpPacket size after fragmentation and sequence number assignment |
Definition at line 66 of file lp-fragmenter.cpp.
|
inlinenoexcept |
Returns the LinkService that owns this instance.
This is only used for logging, and may be nullptr.
Definition at line 71 of file lp-fragmenter.hpp.
|
inline |
Set options for fragmenter.
Definition at line 60 of file lp-fragmenter.hpp.