The friendly Operating System for the Internet of Things
iphc.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef GNRC_SIXLOWPAN_IPHC_H
21 #define GNRC_SIXLOWPAN_IPHC_H
22 
23 #include <stdbool.h>
24 
25 #include "net/gnrc/pkt.h"
26 #include "net/sixlowpan.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
50  size_t datagram_size, size_t offset,
51  size_t *nh_len);
52 
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif /* GNRC_SIXLOWPAN_IPHC_H */
69 
General definitions for network packets and their helper functions.
bool gnrc_sixlowpan_iphc_encode(gnrc_pktsnip_t *pkt)
Compresses a 6LoWPAN for IPHC.
6LoWPAN dispatch type and helper function definitons.
Type to represent parts (either headers or payload) of a packet, called snips.
size_t gnrc_sixlowpan_iphc_decode(gnrc_pktsnip_t **dec_hdr, gnrc_pktsnip_t *pkt, size_t datagram_size, size_t offset, size_t *nh_len)
Decompresses a received 6LoWPAN IPHC frame.