IPv6 header compression for 6LoWPAN.
More...
IPv6 header compression for 6LoWPAN.
|
file | iphc.h |
| 6LoWPAN IPHC definitions
|
|
◆ 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] | pkt | A received 6LoWPAN IPHC frame. The first snip is to be expected to start with the IPHC dispatch. |
[in,out] | ctx | Context 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] | page | Current 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] | pkt | A 6LoWPAN frame with an uncompressed IPv6 header to send. Will be translated to an 6LoWPAN IPHC frame. |
[in] | ctx | Context 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] | page | Current 6Lo dispatch parsing page. |