nRF5 IoT SDK  v0.9.0
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
iot_pbuffer_t Struct Reference

Packet buffer used for exchanging IPv6 payload across layers in both receive and transmit paths. More...

#include <iot_pbuffer.h>

Data Fields

iot_pbuffer_type_t type
 
uint8_t * p_memory
 
uint8_t * p_payload
 
uint32_t length
 

Detailed Description

Packet buffer used for exchanging IPv6 payload across layers in both receive and transmit paths.

Field Documentation

uint32_t iot_pbuffer_t::length

Length of the payload of the layer processing it. This value can be modified by each layer of the IPv6 stack based on the required header information added by each.

uint8_t* iot_pbuffer_t::p_memory

Pointer to actual memory allocated for the buffer.

uint8_t* iot_pbuffer_t::p_payload

Pointer to memory where the payload for the layer that allocates the packet buffer should be contained.

iot_pbuffer_type_t iot_pbuffer_t::type

Determines if any offset for lower layers must be provisioned for in the stack.