Select one of the symbols to view example projects that use it.
 
Outline
#define LWIP_HDR_LOWPAN6_OPTS_H
#include "lwip/opt.h"
#define LWIP_6LOWPAN_NUM_CONTEXTS
#define LWIP_6LOWPAN_INFER_SHORT_ADDRESS
#define LWIP_6LOWPAN_IPHC
#define LWIP_6LOWPAN_802154_HW_CRC
#define LWIP_6LOWPAN_CALC_CRC
#define LWIP_LOWPAN6_DEBUG
#define LWIP_LOWPAN6_802154_DEBUG
#define LWIP_LOWPAN6_IP_COMPRESSED_DEBUG
#define LWIP_LOWPAN6_DECOMPRESSION_DEBUG
#define LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG
#define LWIP_RFC7668_LINUX_WORKAROUND_PUBLIC_ADDRESS
Files
loading...
SourceVuSTM32 Libraries and SamplesLwIPsrc/include/netif/lowpan6_opts.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** * @file * 6LowPAN options list *//* ... */ /* * Copyright (c) 2015 Inico Technologies Ltd. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY * OF SUCH DAMAGE. * * This file is part of the lwIP TCP/IP stack. * * Author: Ivan Delamer <delamer@inicotech.com> * * * Please coordinate changes and requests with Ivan Delamer * <delamer@inicotech.com> *//* ... */ #ifndef LWIP_HDR_LOWPAN6_OPTS_H #define LWIP_HDR_LOWPAN6_OPTS_H #include "lwip/opt.h" /** LWIP_6LOWPAN_NUM_CONTEXTS: define the number of compression * contexts per netif type *//* ... */ #ifndef LWIP_6LOWPAN_NUM_CONTEXTS #define LWIP_6LOWPAN_NUM_CONTEXTS 10 #endif /** LWIP_6LOWPAN_INFER_SHORT_ADDRESS: set this to 0 to disable creating * short addresses for matching addresses (debug only) *//* ... */ #ifndef LWIP_6LOWPAN_INFER_SHORT_ADDRESS #define LWIP_6LOWPAN_INFER_SHORT_ADDRESS 1 #endif /** LWIP_6LOWPAN_IPHC: set this to 0 to disable IP header compression as per * RFC 6282 (which is mandatory for BLE) *//* ... */ #ifndef LWIP_6LOWPAN_IPHC #define LWIP_6LOWPAN_IPHC 1 #endif /** Set this to 1 if your IEEE 802.15.4 interface can calculate and check the * CRC in hardware. This means TX packets get 2 zero bytes added on transmission * which are to be filled with the CRC. *//* ... */ #ifndef LWIP_6LOWPAN_802154_HW_CRC #define LWIP_6LOWPAN_802154_HW_CRC 0 #endif /** If LWIP_6LOWPAN_802154_HW_CRC==0, this can override the default slow * implementation of the CRC used for 6LoWPAN over IEEE 802.15.4 (which uses * a shift register). *//* ... */ #ifndef LWIP_6LOWPAN_CALC_CRC #define LWIP_6LOWPAN_CALC_CRC(buf, len) lowpan6_calc_crc(buf, len) #endif /** Debug level for 6LoWPAN in general */ #ifndef LWIP_LOWPAN6_DEBUG #define LWIP_LOWPAN6_DEBUG LWIP_DBG_OFF #endif /** Debug level for 6LoWPAN over IEEE 802.15.4 */ #ifndef LWIP_LOWPAN6_802154_DEBUG #define LWIP_LOWPAN6_802154_DEBUG LWIP_DBG_OFF #endif /** LWIP_LOWPAN6_IP_COMPRESSED_DEBUG: enable compressed IP frame * output debugging *//* ... */ #ifndef LWIP_LOWPAN6_IP_COMPRESSED_DEBUG #define LWIP_LOWPAN6_IP_COMPRESSED_DEBUG LWIP_DBG_OFF #endif /** LWIP_LOWPAN6_DECOMPRESSION_DEBUG: enable decompression debug output *//* ... */ #ifndef LWIP_LOWPAN6_DECOMPRESSION_DEBUG #define LWIP_LOWPAN6_DECOMPRESSION_DEBUG LWIP_DBG_OFF #endif /** LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG: enable decompressed IP frame * output debugging *//* ... */ #ifndef LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG #define LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG LWIP_DBG_OFF #endif /** LWIP_RFC7668_LINUX_WORKAROUND_PUBLIC_ADDRESS: * Currently, the linux kernel driver for 6lowpan sets/clears a bit in * the address, depending on the BD address (either public or not). * Might not be RFC7668 conform, so you may select to do that (=1) or * not (=0) *//* ... */ #ifndef LWIP_RFC7668_LINUX_WORKAROUND_PUBLIC_ADDRESS #define LWIP_RFC7668_LINUX_WORKAROUND_PUBLIC_ADDRESS 1 #endif /* ... */ #endif /* LWIP_HDR_LOWPAN6_OPTS_H */
Details