1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

Kconfig: Expose gnrc/sixlowpan configurations

This commit is contained in:
PeterKietzmann 2020-01-14 12:08:25 +01:00
parent 97a71bc8a6
commit de99b99b35
7 changed files with 152 additions and 0 deletions

View File

@ -12,5 +12,6 @@ rsource "netif/Kconfig"
rsource "network_layer/ipv6/Kconfig"
rsource "network_layer/ipv6/blacklist/Kconfig"
rsource "network_layer/ipv6/whitelist/Kconfig"
rsource "network_layer/sixlowpan/Kconfig"
endmenu # GNRC Network Stack

View File

@ -0,0 +1,23 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
menuconfig KCONFIG_MODULE_GNRC_SIXLOWPAN
bool "Configure GNRC 6LoWPAN"
depends on MODULE_GNRC_SIXLOWPAN
help
Configure GNRC 6LoWPAN module using Kconfig.
if KCONFIG_MODULE_GNRC_SIXLOWPAN
rsource "frag/Kconfig"
rsource "nd/Kconfig"
config GNRC_SIXLOWPAN_MSG_QUEUE_SIZE
int "Message queue size for the 6LoWPAN thread"
default 8
endif # KCONFIG_MODULE_GNRC_SIXLOWPAN

View File

@ -0,0 +1,14 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
if MODULE_GNRC_SIXLOWPAN_FRAG
rsource "fb/Kconfig"
rsource "rb/Kconfig"
rsource "vrb/Kconfig"
endif # MODULE_GNRC_SIXLOWPAN_FRAG

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
menuconfig KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_FB
bool "Configure GNRC 6LoWPAN Fragmentation buffer"
depends on MODULE_GNRC_SIXLOWPAN_FRAG_FB
help
Configure GNRC 6LoWPAN Fragmentation buffer using Kconfig.
if KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_FB
config GNRC_SIXLOWPAN_FRAG_FB_SIZE
int "Number of datagrams that can be fragmented simultaneously"
default 1
help
This determines the number of @ref gnrc_sixlowpan_frag_fb_t instances
available.
endif # KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_FB

View File

@ -0,0 +1,42 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
menuconfig KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_RB
bool "Configure GNRC 6LoWPAN Reassembly buffer"
depends on MODULE_GNRC_SIXLOWPAN_FRAG_RB
help
Configure GNRC 6LoWPAN Reassembly buffer using Kconfig.
if KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_RB
config GNRC_SIXLOWPAN_FRAG_RBUF_SIZE
int "Size of the reassembly buffer"
default 4
config GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_US
int "Timeout for reassembly buffer entries in microseconds"
default 3000000
config GNRC_SIXLOWPAN_FRAG_RBUF_DO_NOT_OVERRIDE
bool "Keep all but oldest fragment when reassembly buffer is full"
help
When not set, it will cause the reassembly buffer to
override the oldest entry no matter what. When set, only the oldest
entry that is older than @ref CONFIG_GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_US
will be overwritten (they will still timeout normally if reassembly
buffer is not full).
config GNRC_SIXLOWPAN_FRAG_RBUF_DEL_TIMER
int "Deletion timer for reassembly buffer entries in microseconds"
default 0
help
Time to pass between completion of a datagram and the deletion
of its reassembly buffer entry. If this value is 0, the entry
is dropped immediately. Use this value to prevent re-creation
of a reassembly buffer entry on late arriving link-layer
uplicates.
endif # KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_RB

View File

@ -0,0 +1,26 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
menuconfig KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_VRB
bool "Configure GNRC 6LoWPAN Virtual reassembly buffer"
depends on MODULE_GNRC_SIXLOWPAN_FRAG_VRB
help
Configure GNRC 6LoWPAN Virtual reassembly buffer module using Kconfig.
if KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_VRB
config GNRC_SIXLOWPAN_FRAG_VRB_SIZE
int "Size of the virtual reassembly buffer"
default 16
help
Has a direct influence on the number of available
gnrc_sixlowpan_frag_rb_int_t entries.
config GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US
int "Timeout for a virtual reassembly buffer entry in microseconds"
default 3000000
endif # KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_VRB

View File

@ -0,0 +1,24 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
menuconfig KCONFIG_MODULE_GNRC_SIXLOWPAN_ND
bool "Configure GNRC 6LoWPAN Neighbor Discovery"
depends on MODULE_GNRC_SIXLOWPAN_ND
help
Configure GNRC 6LoWPAN Neighbor Discovery module using Kconfig.
if KCONFIG_MODULE_GNRC_SIXLOWPAN_ND
config GNRC_SIXLOWPAN_ND_AR_LTIME
int "Registration lifetime for the address registration option in minutes"
depends on MODULE_GNRC_IPV6_NIB
default 15
help
This value should be adapted to the devices power-lifecycle so that it is
greater than the time the device spends sleeping. See RFC 6775, section
5.8.1.
endif # KCONFIG_MODULE_GNRC_SIXLOWPAN_ND