IPv6 header compression (IPHC)

IPv6 header compression for 6LoWPAN.

void gnrc_sixlowpan_iphc_recv(include/net/gnrc/pkt.h::gnrc_pktsnip_t * pkt, void * ctx, unsigned page)

Decompresses a received 6LoWPAN IPHC frame.

Parameters

pkt:A received 6LoWPAN IPHC frame. The first snip is to be expected to start with the IPHC dispatch.
ctx:Context 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.
page:Current 6Lo dispatch parsing page.

void gnrc_sixlowpan_iphc_send(include/net/gnrc/pkt.h::gnrc_pktsnip_t * pkt, void * ctx, unsigned page)

Compresses a 6LoWPAN for IPHC.

Parameters

pkt:A 6LoWPAN frame with an uncompressed IPv6 header to send. Will be translated to an 6LoWPAN IPHC frame.
ctx:Context for the packet. May be NULL.
page:Current 6Lo dispatch parsing page.