2016-02-26 00:43:51 +08:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
2017-08-21 01:14:43 +08:00
|
|
|
if NET_6LOWPAN
|
2016-02-26 00:43:51 +08:00
|
|
|
|
2017-08-27 00:00:47 +08:00
|
|
|
config NET_6LOWPAN_NREASSBUF
|
|
|
|
int "Number of preallocated reassembly buffers"
|
|
|
|
default 2
|
|
|
|
---help---
|
|
|
|
Large IPv6 packets will be fragmented by 6LoWPAN into multiple
|
|
|
|
frames and reconstitued into a reassembly buffer on the receiving
|
|
|
|
side. Each concurrent reassembly requires one buffer. Reassembly
|
|
|
|
buffers are large: The size of the 6LoWPAN MTU plus some overhead
|
|
|
|
for the reassembly state.
|
|
|
|
|
|
|
|
Some reassembly buffers may be preallocated; some may be allocated
|
|
|
|
dynamically from the stack. The former require more static memory
|
|
|
|
usage; the later require additional CPU cycles to perform the
|
|
|
|
allocation and may effect deterministic behavior. So this is a
|
|
|
|
trade-off between resources and performance. If the number of pre-
|
|
|
|
allocated reassembly buffers are exhausted, the reassembly will
|
|
|
|
continue with dynamically allocated reassembly buffers.
|
|
|
|
|
|
|
|
This behavior can be changed with CONFIG_NET_6LOWPAN_REASS_STATIC
|
|
|
|
|
|
|
|
config NET_6LOWPAN_REASS_STATIC
|
|
|
|
bool "Static reassembly buffers"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
By default, reassembly buffers may be allocated dynamically from the
|
|
|
|
stack when all of the statically allocation reassembly buffers are
|
2020-02-23 16:50:23 +08:00
|
|
|
in use. This will require additional CPU cycles to perform the
|
2017-08-27 00:00:47 +08:00
|
|
|
allocation and may effect deterministic behavior. This option may
|
|
|
|
be selected to suppress all dynamica allocation of reassembly
|
|
|
|
buffers. In that case, only static reassembly buffers are available;
|
|
|
|
when those are exhausted, frames that require reassembly will be lost.
|
|
|
|
|
2017-03-28 23:00:25 +08:00
|
|
|
choice
|
2017-06-19 06:00:08 +08:00
|
|
|
prompt "6LoWPAN Compression"
|
2017-03-28 23:00:25 +08:00
|
|
|
default NET_6LOWPAN_COMPRESSION_HC06
|
|
|
|
|
|
|
|
config NET_6LOWPAN_COMPRESSION_IPv6
|
|
|
|
bool "IPv6 Dispatch"
|
|
|
|
---help---
|
|
|
|
Packets compression when only IPv6 dispatch is used. There is no
|
|
|
|
compression in this case, all fields are sent inline. We just add
|
|
|
|
the IPv6 dispatch byte before the packet.
|
|
|
|
|
|
|
|
config NET_6LOWPAN_COMPRESSION_HC1
|
2017-06-19 06:00:08 +08:00
|
|
|
bool "6LoWPAN HC1"
|
2017-03-28 23:00:25 +08:00
|
|
|
---help---
|
|
|
|
Compress IP/UDP header using HC1 and HC_UDP
|
|
|
|
|
|
|
|
config NET_6LOWPAN_COMPRESSION_HC06
|
2017-06-19 06:00:08 +08:00
|
|
|
bool "6LoWPAN HC06"
|
2017-03-28 23:00:25 +08:00
|
|
|
---help---
|
|
|
|
Compress IP/UDP header using HC06 compression
|
|
|
|
|
2017-06-19 06:00:08 +08:00
|
|
|
endchoice # 6LoWPAN Compression
|
2017-03-28 23:00:25 +08:00
|
|
|
|
2017-03-29 01:16:28 +08:00
|
|
|
config NET_6LOWPAN_COMPRESSION_THRESHOLD
|
|
|
|
int "Lower compression threshold"
|
|
|
|
default 63
|
|
|
|
depends on !NET_6LOWPAN_COMPRESSION_IPv6
|
|
|
|
---help---
|
|
|
|
CONFIG_NET_6LOWPAN_COMPRESSION_THRESHOLD sets a lower threshold for
|
|
|
|
when packets should not be compressed.
|
|
|
|
|
2017-04-04 07:04:56 +08:00
|
|
|
config NET_6LOWPAN_MINPORT
|
2020-02-23 16:50:23 +08:00
|
|
|
hex "Minimum port number"
|
2017-04-05 06:12:16 +08:00
|
|
|
default 0xf0b0
|
2017-04-04 07:04:56 +08:00
|
|
|
depends on NET_6LOWPAN_COMPRESSION_HC1
|
|
|
|
---help---
|
|
|
|
HC1 compression of UDP headersis feasible only if both src and dest
|
|
|
|
ports are between CONFIG_NET_6LOWPAN_MINPORT and
|
|
|
|
CONFIG_NET_6LOWPAN_MINPORT + 15, inclusive.
|
|
|
|
|
|
|
|
All nodes must agree on the value of CONFIG_NET_6LOWPAN_MINPORT
|
|
|
|
|
2017-03-29 00:47:25 +08:00
|
|
|
if NET_6LOWPAN_COMPRESSION_HC06
|
|
|
|
|
2017-03-28 23:00:25 +08:00
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT
|
|
|
|
int "Maximum address contexts"
|
|
|
|
default 1
|
|
|
|
---help---
|
|
|
|
If we use IPHC compression, how many address contexts do we support?
|
|
|
|
|
2017-03-29 00:47:25 +08:00
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_0_0
|
|
|
|
hex "Address context 0 Prefix 0"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
2017-12-08 03:42:40 +08:00
|
|
|
Prefix 0 for address context zero (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 0)
|
2017-03-29 00:47:25 +08:00
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_0_1
|
|
|
|
hex "Address context 0 Prefix 1"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 1 for address context 0 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 0)
|
|
|
|
|
2017-12-08 03:42:40 +08:00
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_0_2
|
|
|
|
hex "Address context 0 Prefix 2"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 2 for address context 0 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 0)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_0_3
|
|
|
|
hex "Address context 0 Prefix 3"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 3 for address context 0 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 0)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_0_4
|
|
|
|
hex "Address context 0 Prefix 4"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 4 for address context 0 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 0)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_0_5
|
|
|
|
hex "Address context 0 Prefix 5"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 5 for address context 0 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 0)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_0_6
|
|
|
|
hex "Address context 0 Prefix 6"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 6 for address context 0 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 0)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_0_7
|
2019-08-20 06:24:32 +08:00
|
|
|
hex "Address context 0 Prefix 7"
|
2017-12-08 03:42:40 +08:00
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 7 for address context 0 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 0)
|
|
|
|
|
2017-03-29 00:47:25 +08:00
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREINIT_1
|
|
|
|
bool "Pre-initialize address context 1"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Preinitialize address context 1 for better header compression
|
2023-05-22 18:20:06 +08:00
|
|
|
(Saves up to 13 bytes per 6lowpan packet). Assumes
|
2017-03-29 00:47:25 +08:00
|
|
|
CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 1)
|
|
|
|
|
|
|
|
if NET_6LOWPAN_MAXADDRCONTEXT_PREINIT_1
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_1_0
|
|
|
|
hex "Address context 1 Prefix 0"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 0 for address context 1 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 1)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_1_1
|
|
|
|
hex "Address context 1 Prefix 1"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 1 for address context 1 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 1)
|
|
|
|
|
2017-12-08 03:42:40 +08:00
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_1_2
|
|
|
|
hex "Address context 1 Prefix 2"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 2 for address context 1 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 1)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_1_3
|
|
|
|
hex "Address context 1 Prefix 3"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 3 for address context 1 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 1)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_1_4
|
|
|
|
hex "Address context 1 Prefix 4"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 4 for address context 1 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 1)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_1_5
|
|
|
|
hex "Address context 1 Prefix 5"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 5 for address context 1 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 1)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_1_6
|
|
|
|
hex "Address context 1 Prefix 6"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 6 for address context 1 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 1)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_1_7
|
|
|
|
hex "Address context 1 Prefix 7"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 7 for address context 1 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 1)
|
|
|
|
|
2017-03-29 00:47:25 +08:00
|
|
|
endif # NET_6LOWPAN_MAXADDRCONTEXT_PREINIT_1
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREINIT_2
|
|
|
|
bool "Pre-initialize address context 2"
|
|
|
|
default n
|
|
|
|
depends on NET_6LOWPAN_MAXADDRCONTEXT_PREINIT_1
|
|
|
|
---help---
|
|
|
|
Preinitialize any address contexts for better header compression
|
2023-05-22 18:20:06 +08:00
|
|
|
(Saves up to 13 bytes per 6lowpan packet). Assumes
|
2017-03-29 00:47:25 +08:00
|
|
|
CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 2)
|
|
|
|
|
|
|
|
if NET_6LOWPAN_MAXADDRCONTEXT_PREINIT_2
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_2_0
|
|
|
|
hex "Address context 2 Prefix 0"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 0 for address context 2 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 2)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_2_1
|
|
|
|
hex "Address context 2 Prefix 1"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 1 for address context 2 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 2)
|
|
|
|
|
2017-12-08 03:42:40 +08:00
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_2_2
|
|
|
|
hex "Address context 2 Prefix 2"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 2 for address context 2 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 2)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_2_3
|
|
|
|
hex "Address context 2 Prefix 3"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 3 for address context 2 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 2)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_2_4
|
|
|
|
hex "Address context 2 Prefix 4"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 4 for address context 2 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 2)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_2_5
|
|
|
|
hex "Address context 2 Prefix 5"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 5 for address context 2 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 2)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_2_6
|
|
|
|
hex "Address context 2 Prefix 6"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 6 for address context 2 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 2)
|
|
|
|
|
|
|
|
config NET_6LOWPAN_MAXADDRCONTEXT_PREFIX_2_7
|
|
|
|
hex "Address context 2 Prefix 7"
|
|
|
|
default 0xaa
|
|
|
|
---help---
|
|
|
|
Prefix 7 for address context 2 (assumes CONFIG_NET_6LOWPAN_MAXADDRCONTEXT >= 2)
|
|
|
|
|
|
|
|
endif # NET_6LOWPAN_MAXADDRCONTEXT_PREINIT_2
|
2017-03-29 00:47:25 +08:00
|
|
|
endif # NET_6LOWPAN_COMPRESSION_HC06
|
|
|
|
|
2017-05-04 22:20:59 +08:00
|
|
|
config NET_6LOWPAN_EXTENDEDADDR
|
2017-05-04 23:05:41 +08:00
|
|
|
bool "Extended IEEE 802.15.4 address"
|
2017-04-09 02:34:08 +08:00
|
|
|
default n
|
2017-03-29 07:26:53 +08:00
|
|
|
---help---
|
2017-05-04 23:05:41 +08:00
|
|
|
By default, a 2-byte short address is used for the IEEE802.15.4 MAC
|
2017-04-09 02:34:08 +08:00
|
|
|
device's link layer address. If this option is selected, then an
|
2017-05-04 23:05:41 +08:00
|
|
|
8-byte extended address will be used.
|
2017-03-29 02:23:19 +08:00
|
|
|
|
2017-06-17 03:24:07 +08:00
|
|
|
All devices operating on a network have unique, 8-byte addresses,
|
|
|
|
referred to as extended addresses. A device will use either the
|
|
|
|
extended address for direct communication within the PAN or the
|
|
|
|
short 2-byte address that was allocated by the PAN coordinator when
|
|
|
|
the device associated.
|
|
|
|
|
2017-03-31 05:38:56 +08:00
|
|
|
config NET_6LOWPAN_MAXAGE
|
2017-03-29 00:47:25 +08:00
|
|
|
int "Packet reassembly timeout"
|
|
|
|
default 20
|
|
|
|
---help---
|
2017-04-02 02:34:08 +08:00
|
|
|
Timeout for packet reassembly at the 6lowpan layer in units of
|
|
|
|
seconds (should be < 60s)
|
2017-03-29 00:47:25 +08:00
|
|
|
|
2017-03-29 01:16:28 +08:00
|
|
|
config NET_6LOWPAN_MAX_MACTRANSMITS
|
|
|
|
int "Max MAC transmissions"
|
|
|
|
default 4
|
2017-05-05 02:06:28 +08:00
|
|
|
range 1 255
|
2016-02-26 04:01:22 +08:00
|
|
|
---help---
|
2017-03-29 01:16:28 +08:00
|
|
|
CONFIG_NET_6LOWPAN_MAX_MACTRANSMITS specifies how many times the MAC
|
2018-07-09 08:24:45 +08:00
|
|
|
layer should resend packets if no link-layer ACK was received. This
|
2017-03-29 01:16:28 +08:00
|
|
|
only makes sense with the csma_driver.
|
2016-02-26 04:01:22 +08:00
|
|
|
|
2018-07-05 04:10:40 +08:00
|
|
|
config NET_6LOWPAN_PKTSIZE
|
2017-03-31 07:18:18 +08:00
|
|
|
int "6LoWPAN packet buffer size"
|
|
|
|
default 1294
|
|
|
|
range 590 1518
|
|
|
|
---help---
|
|
|
|
Packet buffer size. This size includes the TCP/UDP payload plus the
|
|
|
|
size of TCP/UDP header, the IP header, and the Ethernet header.
|
2018-07-05 04:10:40 +08:00
|
|
|
This value is related to the MTU (Maximum Transmission Unit), except
|
|
|
|
that it includes the size of the link layer header; the payload is
|
2018-07-05 05:36:31 +08:00
|
|
|
the MSS (Maximum Segment Size). 6LoWPAN has no link layer header (at
|
|
|
|
least in the packet buffer which is only used for re-assembly). So
|
|
|
|
for 6LoWPAN the MTU is the same as the PKTSIZE.
|
2017-03-31 07:18:18 +08:00
|
|
|
|
|
|
|
NOTE that this option depends on fragmentation support. By
|
|
|
|
supporting fragmentation, we can handle quite large "logical" packet
|
|
|
|
sizes. Without fragmentation support, the MTU is equal to the frame
|
|
|
|
size and that has already been selected.
|
|
|
|
|
2017-04-05 02:31:22 +08:00
|
|
|
config NET_6LOWPAN_DUMPBUFFER
|
|
|
|
bool "Enable dumping of buffer data"
|
|
|
|
default n
|
|
|
|
depends on DEBUG_NET_INFO
|
|
|
|
---help---
|
|
|
|
Enable dumping of all packet and frame buffers coming into and out
|
2017-06-19 06:00:08 +08:00
|
|
|
of the 6LoWPAN logic. This will generate a large volume of data if
|
2017-04-05 02:31:22 +08:00
|
|
|
selected.
|
|
|
|
|
2017-08-21 01:14:43 +08:00
|
|
|
endif # NET_6LOWPAN
|