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
|
|
|
|
bool "IP forwarding example"
|
|
|
|
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"
|
2018-08-23 19:06:15 +02:00
|
|
|
depends on BUILD_LOADABLE
|
2017-07-07 21:07:21 +02:00
|
|
|
---help---
|
|
|
|
This is the name of the program that will be use when the NSH ELF
|
|
|
|
program is installed.
|
|
|
|
|
|
|
|
config EXAMPLES_IPFORWARD_PRIORITY
|
|
|
|
int "IP forwarding task priority"
|
|
|
|
default 100
|
|
|
|
|
|
|
|
config EXAMPLES_IPFORWARD_STACKSIZE
|
|
|
|
int "IP forwarding stack size"
|
|
|
|
default 2048
|
|
|
|
|
|
|
|
endif
|