ipv6.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 
98 #ifndef NET_GNRC_IPV6_H
99 #define NET_GNRC_IPV6_H
100 
101 #include "sched.h"
102 #include "net/gnrc.h"
103 #include "thread.h"
104 
105 #include "net/ipv6.h"
106 #include "net/gnrc/ipv6/ext.h"
107 #include "net/gnrc/ipv6/hdr.h"
108 #include "net/gnrc/ipv6/nib.h"
109 
110 #ifdef MODULE_FIB
111 #include "net/fib.h"
112 #endif
113 
114 #ifdef __cplusplus
115 extern "C" {
116 #endif
117 
127 #ifndef GNRC_IPV6_STACK_SIZE
128 #define GNRC_IPV6_STACK_SIZE (THREAD_STACKSIZE_DEFAULT)
129 #endif
130 
134 #ifndef GNRC_IPV6_PRIO
135 #define GNRC_IPV6_PRIO (THREAD_PRIORITY_MAIN - 3)
136 #endif
137 
146 #ifndef CONFIG_GNRC_IPV6_MSG_QUEUE_SIZE_EXP
147 #define CONFIG_GNRC_IPV6_MSG_QUEUE_SIZE_EXP (3U)
148 #endif
149 
150 #ifdef DOXYGEN
166 #define GNRC_IPV6_STATIC_LLADDR
167 #endif /* DOXYGEN */
173 #ifndef GNRC_IPV6_MSG_QUEUE_SIZE
174 #define GNRC_IPV6_MSG_QUEUE_SIZE (1 << CONFIG_GNRC_IPV6_MSG_QUEUE_SIZE_EXP)
175 #endif
176 
186 
187 #ifdef MODULE_FIB
188 
192 #ifndef GNRC_IPV6_FIB_TABLE_SIZE
193 # ifdef MODULE_GNRC_RPL
194 # define GNRC_IPV6_FIB_TABLE_SIZE (20)
195 # else
196 # define GNRC_IPV6_FIB_TABLE_SIZE (5)
197 # endif
198 #endif
199 
205 extern fib_table_t gnrc_ipv6_fib_table;
206 #endif
207 
217 
232 
233 #ifdef __cplusplus
234 }
235 #endif
236 
237 #endif /* NET_GNRC_IPV6_H */
Types and functions for FIB.
Definititions for IPv6 extension headers.
Includes all essential GNRC network stack base modules.
int16_t kernel_pid_t
Unique process identifier.
Definition: sched.h:134
kernel_pid_t gnrc_ipv6_init(void)
Initialization of the IPv6 thread.
ipv6_hdr_t * gnrc_ipv6_get_header(gnrc_pktsnip_t *pkt)
Get the IPv6 header from a given list of gnrc_pktsnip_t.
kernel_pid_t gnrc_ipv6_pid
The PID to the IPv6 thread.
IPv6 include gathering header.
IPv6 header.
NIB definitions.
Scheduler API definition.
Meta information of a FIB table.
Definition: table.h:108
Type to represent parts (either headers or payload) of a packet, called snips.
Definition: pkt.h:108
Data type to represent an IPv6 packet header.
Definition: hdr.h:66