![]() |
ndn-lite
|
NDN-Lite reuses the ndn-riot fragmentation header (3 bytes header) More...
#include <fragmentation-support.h>

Data Fields | |
| const uint8_t * | original |
| The buffer to keep the original packet. More... | |
| uint32_t | original_size |
| The size of the original packet. More... | |
| uint32_t | fragment_max_size |
| The max size of each fragment. More... | |
| uint16_t | frag_identifier |
| The identifier of the fragments. More... | |
| uint32_t | total_frag_num |
| The total number of frags to be generated. More... | |
| uint32_t | offset |
| The offset before which the original packet has been fragmented. More... | |
| uint32_t | counter |
| The counter indicating how many frags have been generated. More... | |
NDN-Lite reuses the ndn-riot fragmentation header (3 bytes header)
0 1 2 0 1 2 3 8 15 23 +-+-+–+-—+-------------------—+ |1|X|MF|Seq#| Identification | +-+-+–+-—+-------------------—+
First bit: header bit, always 1 (indicating the fragmentation header) Second bit: reserved, always 0 Third bit: MF bit 4th to 8th bit: sequence number (5 bits, encoding up to 31 fragments) 9th to 24th bit: identification (2-byte random number)The structure to keep the state when doing fragmentation.
| uint32_t ndn_fragmenter::counter |
The counter indicating how many frags have been generated.
| uint16_t ndn_fragmenter::frag_identifier |
The identifier of the fragments.
| uint32_t ndn_fragmenter::fragment_max_size |
The max size of each fragment.
This value is obtained from protocol-specific MTU.
| uint32_t ndn_fragmenter::offset |
The offset before which the original packet has been fragmented.
| const uint8_t* ndn_fragmenter::original |
The buffer to keep the original packet.
| uint32_t ndn_fragmenter::original_size |
The size of the original packet.
| uint32_t ndn_fragmenter::total_frag_num |
The total number of frags to be generated.
1.8.15