ndn-lite
Data Fields
ndn_fragmenter Struct Reference

NDN-Lite reuses the ndn-riot fragmentation header (3 bytes header) More...

#include <fragmentation-support.h>

Collaboration diagram for ndn_fragmenter:
Collaboration graph

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...
 

Detailed Description

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.

Field Documentation

◆ counter

uint32_t ndn_fragmenter::counter

The counter indicating how many frags have been generated.

◆ frag_identifier

uint16_t ndn_fragmenter::frag_identifier

The identifier of the fragments.

◆ fragment_max_size

uint32_t ndn_fragmenter::fragment_max_size

The max size of each fragment.

This value is obtained from protocol-specific MTU.

◆ offset

uint32_t ndn_fragmenter::offset

The offset before which the original packet has been fragmented.

◆ original

const uint8_t* ndn_fragmenter::original

The buffer to keep the original packet.

◆ original_size

uint32_t ndn_fragmenter::original_size

The size of the original packet.

◆ total_frag_num

uint32_t ndn_fragmenter::total_frag_num

The total number of frags to be generated.


The documentation for this struct was generated from the following file: