2017-07-07 21:07:21 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
config EXAMPLES_IPFORWARD
|
2018-09-03 17:29:56 +02:00
|
|
|
tristate "IP forwarding example"
|
2017-07-07 21:07:21 +02:00
|
|
|
default n
|
2017-07-09 20:05:23 +02:00
|
|
|
depends on NET_TUN && (NET_TCP || NET_ICMPv6)
|
2017-07-07 21:07:21 +02:00
|
|
|
---help---
|
|
|
|
Enable the IP forwarding example
|
|
|
|
|
|
|
|
if EXAMPLES_IPFORWARD
|
|
|
|
|
2017-07-09 20:05:23 +02:00
|
|
|
choice
|
|
|
|
prompt "L3 protocol"
|
|
|
|
default EXAMPLES_IPFORWARD_TCP if NET_TCP
|
|
|
|
default EXAMPLES_IPFORWARD_ICMPv6 if !NET_TCP
|
|
|
|
|
|
|
|
config EXAMPLES_IPFORWARD_TCP
|
|
|
|
bool "TCP"
|
|
|
|
depends on NET_TCP
|
|
|
|
|
|
|
|
config EXAMPLES_IPFORWARD_ICMPv6
|
|
|
|
bool "ICMPv6"
|
|
|
|
depends on NET_ICMPv6
|
|
|
|
|
|
|
|
endchoice # L3 Protocol
|
|
|
|
|
2017-07-07 21:07:21 +02:00
|
|
|
config EXAMPLES_IPFORWARD_PROGNAME
|
|
|
|
string "IP forwarding rogram name"
|
|
|
|
default "ipfwd"
|
|
|
|
---help---
|
2019-08-23 19:59:28 +02:00
|
|
|
This is the name of the program that will be used when the NSH ELF
|
2017-07-07 21:07:21 +02:00
|
|
|
program is installed.
|
|
|
|
|
|
|
|
config EXAMPLES_IPFORWARD_PRIORITY
|
|
|
|
int "IP forwarding task priority"
|
|
|
|
default 100
|
|
|
|
|
|
|
|
config EXAMPLES_IPFORWARD_STACKSIZE
|
|
|
|
int "IP forwarding stack size"
|
2020-03-27 06:10:33 +01:00
|
|
|
default DEFAULT_TASK_STACKSIZE
|
2017-07-07 21:07:21 +02:00
|
|
|
|
|
|
|
endif
|