struct tad_pkt_seg
Overview
TAD packet segment control block. More…
#include <tad_pkt.h> struct tad_pkt_seg { // fields void* data_ptr; size_t data_len; tad_pkt_seg_free data_free; tad_pkt_ctrl_free my_free; bool layer_tag_set; te_tad_protocols_t layer_tag; // methods CIRCLEQ_ENTRY(tad_pkt_seg); };
Detailed Documentation
TAD packet segment control block.
Circular queue is used to have possibility to insert element in head and tail and to traverse segments in both directions.
Fields
void* data_ptr
Data pointer
size_t data_len
Data length
tad_pkt_seg_free data_free
Data free function
tad_pkt_ctrl_free my_free
Function to free this control block
bool layer_tag_set
Custom layer tag is set below
te_tad_protocols_t layer_tag
TE protocol ID of the layer from which the segment originates
Methods
CIRCLEQ_ENTRY(tad_pkt_seg)
List links