Loading...
Searching...
No Matches
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.
 
void gnrc_sixlowpan_iphc_send (gnrc_pktsnip_t *pkt, void *ctx, unsigned page)
 Compresses a 6LoWPAN for IPHC.
 

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_frag_rb_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. If not NULL it is expected to be of type gnrc_sixlowpan_frag_fb_t to provide initial information for possible fragmentation after compression (see net_gnrc_sixlowpan_frag_hint). This function might change the content of that. Depending on the compile configuration it might be ignored completely.
[in]pageCurrent 6Lo dispatch parsing page.