IPv6 header compression (IPHC)

IPv6 header compression for 6LoWPAN. More...

Detailed Description

IPv6 header compression for 6LoWPAN.

Files

file  iphc.h
 6LoWPAN IPHC definitions
 

Functions

void gnrc_sixlowpan_iphc_recv (gnrc_pktsnip_t *pkt, void *ctx, unsigned page)
 Decompresses a received 6LoWPAN IPHC frame. More...
 
void gnrc_sixlowpan_iphc_send (gnrc_pktsnip_t *pkt, void *ctx, unsigned page)
 Compresses a 6LoWPAN for IPHC. More...
 

Function Documentation

◆ gnrc_sixlowpan_iphc_recv()

void gnrc_sixlowpan_iphc_recv ( gnrc_pktsnip_t pkt,
void *  ctx,
unsigned  page 
)

Decompresses a received 6LoWPAN IPHC frame.

Precondition
(pkt != NULL)
Parameters
[in]pktA received 6LoWPAN IPHC frame. The first snip is to be expected to start with the IPHC dispatch.
[in,out]ctxContext for the packet. May be NULL. If not NULL it is expected to be of type gnrc_sixlowpan_rbuf_t. This function might change the content of that.
[in]pageCurrent 6Lo dispatch parsing page.

◆ gnrc_sixlowpan_iphc_send()

void gnrc_sixlowpan_iphc_send ( gnrc_pktsnip_t pkt,
void *  ctx,
unsigned  page 
)

Compresses a 6LoWPAN for IPHC.

Precondition
(pkt != NULL)
Parameters
[in]pktA 6LoWPAN frame with an uncompressed IPv6 header to send. Will be translated to an 6LoWPAN IPHC frame.
[in]ctxContext for the packet. May be NULL.
[in]pageCurrent 6Lo dispatch parsing page.