gnrc/ipv6/ext.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 General
5  * Public License v2.1. See the file LICENSE in the top level directory for
6  * more details.
7  */
8 
23 #ifndef NET_GNRC_IPV6_EXT_H
24 #define NET_GNRC_IPV6_EXT_H
25 
26 #include <stdbool.h>
27 #include <stdint.h>
28 #include <stdlib.h>
29 
30 #include "net/gnrc/pkt.h"
31 #include "net/ipv6/ext.h"
32 
33 #ifdef MODULE_GNRC_IPV6_EXT_RH
34 #include "net/gnrc/ipv6/ext/rh.h"
35 #endif
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
53 
67  uint8_t nh, size_t size);
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* NET_GNRC_IPV6_EXT_H */
74 
IPv6 extension header definitions.
General definitions for network packets and their helper functions.
gnrc_pktsnip_t * gnrc_ipv6_ext_build(gnrc_pktsnip_t *ipv6, gnrc_pktsnip_t *next, uint8_t nh, size_t size)
Builds an extension header for sending.
gnrc_pktsnip_t * gnrc_ipv6_ext_demux(gnrc_pktsnip_t *pkt, unsigned nh)
Demultiplex an extension header according to nh.
GNRC routing extension header definitions.
Type to represent parts (either headers or payload) of a packet, called snips.
stdlib.h wrapper for MSP430