Microchip® Advanced Software Framework

sicslowpan_nh_compressor Struct Reference

The structure of a next header compressor.

TODO: needs more parameters when compressing extension headers, etc.

#include <sicslowpan.h>

Data Fields

int(* compress )(uint8_t *compressed, uint8_t *uncompressed_len)
 compress next header (TCP/UDP, etc) - ptr points to next header to compress More...
 
int(* is_compressable )(uint8_t next_header)
 
int(* uncompress )(uint8_t *compressed, uint8_t *lowpanbuf, uint8_t *uncompressed_len)
 uncompress next header (TCP/UDP, etc) - ptr points to next header to uncompress More...
 

int(* sicslowpan_nh_compressor::compress)(uint8_t *compressed, uint8_t *uncompressed_len)

compress next header (TCP/UDP, etc) - ptr points to next header to compress

int(* sicslowpan_nh_compressor::is_compressable)(uint8_t next_header)
int(* sicslowpan_nh_compressor::uncompress)(uint8_t *compressed, uint8_t *lowpanbuf, uint8_t *uncompressed_len)

uncompress next header (TCP/UDP, etc) - ptr points to next header to uncompress