summaryrefslogtreecommitdiff
path: root/apps/examples/nettest/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/nettest/Kconfig')
-rw-r--r--apps/examples/nettest/Kconfig403
1 files changed, 402 insertions, 1 deletions
diff --git a/apps/examples/nettest/Kconfig b/apps/examples/nettest/Kconfig
index c502b8864..152912f3e 100644
--- a/apps/examples/nettest/Kconfig
+++ b/apps/examples/nettest/Kconfig
@@ -30,6 +30,25 @@ config EXAMPLES_NETTEST_NOMAC
bool "Use Canned MAC Address"
default n
+choice
+ prompt "IP Domain"
+ default EXAMPLES_NETTEST_IPv4 if NET_IPv4
+ default EXAMPLES_NETTEST_IPv6 if NET_IPv6 && !NET_IPv4
+
+config EXAMPLES_NETTEST_IPv4
+ bool "IPv4"
+ depends on NET_IPv4
+
+config EXAMPLES_NETTEST_IPv6
+ bool "IPv6"
+ depends on NET_IPv6
+
+endchoice # IP Domain
+
+if EXAMPLES_NETTEST_IPv4
+
+comment "IPv4 addresses"
+
config EXAMPLES_NETTEST_IPADDR
hex "Target IP address"
default 0x0a000002
@@ -54,4 +73,386 @@ config EXAMPLES_NETTEST_CLIENTIP
host PC IP address (possibly the gateway address,
EXAMPLES_NETTEST_DRIPADDR?).
-endif
+endif # EXAMPLES_NETTEST_IPv4
+
+if EXAMPLES_NETTEST_IPv6
+
+comment "Target IPv6 address"
+
+config EXAMPLES_NETTEST_IPv6ADDR_1
+ hex "[0]"
+ default 0xfc00
+ range 0x0 0xffff
+ ---help---
+ Target IPv6 address. This is a 16-bit integer value in host order.
+ Each of the eight values forming the full IP address must be
+ specified individually. This is the first of the 8-values. The
+ default for all eight values is fc00::2.
+
+config EXAMPLES_NETTEST_IPv6ADDR_2
+ hex "[1]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Target IPv6 address. This is a 16-bit integer value in host order.
+ Each of the eight values forming the full IP address must be
+ specified individually. This is the second of the 8-values. The
+ default for all eight values is fc00::2.
+
+config EXAMPLES_NETTEST_IPv6ADDR_3
+ hex "[2]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Target IPv6 address. This is a 16-bit integer value in host order.
+ Each of the eight values forming the full IP address must be
+ specified individually. This is the third of the 8-values. The
+ default for all eight values is fc00::2.
+
+config EXAMPLES_NETTEST_IPv6ADDR_4
+ hex "[3]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Target IPv6 address. This is a 16-bit integer value in host order.
+ Each of the eight values forming the full IP address must be
+ specified individually. This is the fourth of the 8-values. The
+ default for all eight values is fc00::2.
+
+config EXAMPLES_NETTEST_IPv6ADDR_5
+ hex "[4]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Target IPv6 address. This is a 16-bit integer value in host order.
+ Each of the eight values forming the full IP address must be
+ specified individually. This is the fifth of the 8-values. The
+ default for all eight values is fc00::2.
+
+config EXAMPLES_NETTEST_IPv6ADDR_6
+ hex "[5]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Target IPv6 address. This is a 16-bit integer value in host order.
+ Each of the eight values forming the full IP address must be
+ specified individually. This is the sixth of the 8-values. The
+ default for all eight values is fc00::2.
+
+config EXAMPLES_NETTEST_IPv6ADDR_7
+ hex "[6]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Target IPv6 address. This is a 16-bit integer value in host order.
+ Each of the eight values forming the full IP address must be
+ specified individually. This is the seventh of the 8-values. The
+ default for all eight values is fc00::2.
+
+config EXAMPLES_NETTEST_IPv6ADDR_8
+ hex "[7]"
+ default 0x0002
+ range 0x0 0xffff
+ ---help---
+ Target IPv6 address. This is a 16-bit integer value in host order.
+ Each of the eight values forming the full IP address must be
+ specified individually. This is the last of the 8-values. The
+ default for all eight values is fc00::2.
+
+comment "Router IPv6 address"
+
+config EXAMPLES_NETTEST_DRIPv6ADDR_1
+ hex "[0]"
+ default 0xfc00
+ range 0x0 0xffff
+ ---help---
+ Default router IP address (aka, Gateway). This is a 16-bit integer
+ value in host order. Each of the eight values forming the full IP
+ address must be specified individually. This is the first of the
+ 8-values. The default for all eight values is fc00::1.
+
+config EXAMPLES_NETTEST_DRIPv6ADDR_2
+ hex "[1]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Default router IP address (aka, Gateway). This is a 16-bit integer
+ value in host order. Each of the eight values forming the full IP
+ address must be specified individually. This is the second of the
+ 8-values. The default for all eight values is fc00::1.
+
+config EXAMPLES_NETTEST_DRIPv6ADDR_3
+ hex "[2]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Default router IP address (aka, Gateway). This is a 16-bit integer
+ value in host order. Each of the eight values forming the full IP
+ address must be specified individually. This is the third of the
+ 8-values. The default for all eight values is fc00::1.
+
+config EXAMPLES_NETTEST_DRIPv6ADDR_4
+ hex "[3]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Default router IP address (aka, Gateway). This is a 16-bit integer
+ value in host order. Each of the eight values forming the full IP
+ address must be specified individually. This is the fourth of the
+ 8-values. The default for all eight values is fc00::1.
+
+config EXAMPLES_NETTEST_DRIPv6ADDR_5
+ hex "[4]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Default router IP address (aka, Gateway). This is a 16-bit integer
+ value in host order. Each of the eight values forming the full IP
+ address must be specified individually. This is the fifth of the
+ 8-values. The default for all eight values is fc00::1.
+
+config EXAMPLES_NETTEST_DRIPv6ADDR_6
+ hex "[5]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Default router IP address (aka, Gateway). This is a 16-bit integer
+ value in host order. Each of the eight values forming the full IP
+ address must be specified individually. This is the sixth of the
+ 8-values. The default for all eight values is fc00::1.
+
+config EXAMPLES_NETTEST_DRIPv6ADDR_7
+ hex "[6]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Default router IP address (aka, Gateway). This is a 16-bit integer
+ value in host order. Each of the eight values forming the full IP
+ address must be specified individually. This is the seventh of the
+ 8-values. The default for all eight values is fc00::1.
+
+config EXAMPLES_NETTEST_DRIPv6ADDR_8
+ hex "[7]"
+ default 0x0001
+ range 0x0 0xffff
+ ---help---
+ Default router IP address (aka, Gateway). This is a 16-bit integer
+ value in host order. Each of the eight values forming the full IP
+ address must be specified individually. This is the last of the
+ 8-values. The default for all eight values is fc00::1.
+
+comment "IPv6 Network mask"
+
+config EXAMPLES_NETTEST_IPv6NETMASK_1
+ hex "[0]"
+ default 0xfe00
+ range 0x0 0xffff
+ ---help---
+ Network mask. This is a 16-bit integer value in host order. Each
+ of the eight values forming the full IP address must be specified
+ individually. This is the first of the 8-values. The default for
+ all eight values is fe00::0.
+
+config EXAMPLES_NETTEST_IPv6NETMASK_2
+ hex "[1]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Network mask. This is a 16-bit integer value in host order. Each
+ of the eight values forming the full IP address must be specified
+ individually. This is the second of the 8-values. The default for
+ all eight values is fe00::0.
+
+config EXAMPLES_NETTEST_IPv6NETMASK_3
+ hex "[2]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Network mask. This is a 16-bit integer value in host order. Each
+ of the eight values forming the full IP address must be specified
+ individually. This is the third of the 8-values. The default for
+ all eight values is fe00::0.
+
+config EXAMPLES_NETTEST_IPv6NETMASK_4
+ hex "[3]"
+ default 0x0000
+ range 0x0 0x0000
+ ---help---
+ Network mask. This is a 16-bit integer value in host order. Each
+ of the eight values forming the full IP address must be specified
+ individually. This is the fourth of the 8-values. The default for
+ all eight values is fe00::0.
+
+config EXAMPLES_NETTEST_IPv6NETMASK_5
+ hex "[4]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Network mask. This is a 16-bit integer value in host order. Each
+ of the eight values forming the full IP address must be specified
+ individually. This is the fifth of the 8-values. The default for
+ all eight values is fe00::0.
+
+config EXAMPLES_NETTEST_IPv6NETMASK_6
+ hex "[5]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Network mask. This is a 16-bit integer value in host order. Each
+ of the eight values forming the full IP address must be specified
+ individually. This is the sixth of the 8-values. The default for
+ all eight values is fe00::0.
+
+config EXAMPLES_NETTEST_IPv6NETMASK_7
+ hex "[6]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Network mask. This is a 16-bit integer value in host order. Each
+ of the eight values forming the full IP address must be specified
+ individually. This is the seventh of the 8-values. The default for
+ all eight values is fe00::0.
+
+config EXAMPLES_NETTEST_IPv6NETMASK_8
+ hex "[7]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ Network mask. This is a 16-bit integer value in host order. Each
+ of the eight values forming the full IP address must be specified
+ individually. This is the eighth of the 8-values. The default for
+ all eight values is fe00::0.
+
+comment "Client IPv6 address"
+
+config EXAMPLES_NETTEST_CLIENTIPv6ADDR_1
+ hex "[0]"
+ default 0xfc00
+ range 0x0 0xffff
+ ---help---
+ IP address of the client. If the target is the client, then
+ EXAMPLES_NETTEST_CLIENTIP should be the same as
+ EXAMPLES_NETTEST_IPADDR (default). If the target is the server,
+ then the default value of EXAMPLES_NETTEST_CLIENTIP is set to the
+ host PC IP address (possibly the gateway address,
+ EXAMPLES_NETTEST_DRIPADDR?).
+
+ This is a 16-bit integer value in host order. Each of the eight
+ values forming the full IP address must be specified individually.
+ This is the first of the 8-values.
+
+config EXAMPLES_NETTEST_CLIENTIPv6ADDR_2
+ hex "[1]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ IP address of the client. If the target is the client, then
+ EXAMPLES_NETTEST_CLIENTIP should be the same as
+ EXAMPLES_NETTEST_IPADDR (default). If the target is the server,
+ then the default value of EXAMPLES_NETTEST_CLIENTIP is set to the
+ host PC IP address (possibly the gateway address,
+ EXAMPLES_NETTEST_DRIPADDR?).
+
+ This is a 16-bit integer value in host order. Each of the eight
+ values forming the full IP address must be specified individually.
+ This is the second of the 8-values.
+
+config EXAMPLES_NETTEST_CLIENTIPv6ADDR_3
+ hex "[2]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ IP address of the client. If the target is the client, then
+ EXAMPLES_NETTEST_CLIENTIP should be the same as
+ EXAMPLES_NETTEST_IPADDR (default). If the target is the server,
+ then the default value of EXAMPLES_NETTEST_CLIENTIP is set to the
+ host PC IP address (possibly the gateway address,
+ EXAMPLES_NETTEST_DRIPADDR?).
+
+ This is a 16-bit integer value in host order. Each of the eight
+ values forming the full IP address must be specified individually.
+ This is the Third of the 8-values.
+
+config EXAMPLES_NETTEST_CLIENTIPv6ADDR_4
+ hex "[3]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ IP address of the client. If the target is the client, then
+ EXAMPLES_NETTEST_CLIENTIP should be the same as
+ EXAMPLES_NETTEST_IPADDR (default). If the target is the server,
+ then the default value of EXAMPLES_NETTEST_CLIENTIP is set to the
+ host PC IP address (possibly the gateway address,
+ EXAMPLES_NETTEST_DRIPADDR?).
+
+ This is a 16-bit integer value in host order. Each of the eight
+ values forming the full IP address must be specified individually.
+ This is the fourth of the 8-values.
+
+config EXAMPLES_NETTEST_CLIENTIPv6ADDR_5
+ hex "[4]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ IP address of the client. If the target is the client, then
+ EXAMPLES_NETTEST_CLIENTIP should be the same as
+ EXAMPLES_NETTEST_IPADDR (default). If the target is the server,
+ then the default value of EXAMPLES_NETTEST_CLIENTIP is set to the
+ host PC IP address (possibly the gateway address,
+ EXAMPLES_NETTEST_DRIPADDR?).
+
+ This is a 16-bit integer value in host order. Each of the eight
+ values forming the full IP address must be specified individually.
+ This is the fifth of the 8-values.
+
+config EXAMPLES_NETTEST_CLIENTIPv6ADDR_6
+ hex "[5]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ IP address of the client. If the target is the client, then
+ EXAMPLES_NETTEST_CLIENTIP should be the same as
+ EXAMPLES_NETTEST_IPADDR (default). If the target is the server,
+ then the default value of EXAMPLES_NETTEST_CLIENTIP is set to the
+ host PC IP address (possibly the gateway address,
+ EXAMPLES_NETTEST_DRIPADDR?).
+
+ This is a 16-bit integer value in host order. Each of the eight
+ values forming the full IP address must be specified individually.
+ This is the sixth of the 8-values.
+
+config EXAMPLES_NETTEST_CLIENTIPv6ADDR_7
+ hex "[6]"
+ default 0x0000
+ range 0x0 0xffff
+ ---help---
+ IP address of the client. If the target is the client, then
+ EXAMPLES_NETTEST_CLIENTIP should be the same as
+ EXAMPLES_NETTEST_IPADDR (default). If the target is the server,
+ then the default value of EXAMPLES_NETTEST_CLIENTIP is set to the
+ host PC IP address (possibly the gateway address,
+ EXAMPLES_NETTEST_DRIPADDR?).
+
+ This is a 16-bit integer value in host order. Each of the eight
+ values forming the full IP address must be specified individually.
+ This is the seventh of the 8-values.
+
+config EXAMPLES_NETTEST_CLIENTIPv6ADDR_8
+ hex "[7]"
+ default 0x0001 if !EXAMPLES_NETTEST_SERVER
+ default 0x0002 if EXAMPLES_NETTEST_SERVER
+ range 0x0 0xffff
+ ---help---
+ IP address of the client. If the target is the client, then
+ EXAMPLES_NETTEST_CLIENTIP should be the same as
+ EXAMPLES_NETTEST_IPADDR (default). If the target is the server,
+ then the default value of EXAMPLES_NETTEST_CLIENTIP is set to the
+ host PC IP address (possibly the gateway address,
+ EXAMPLES_NETTEST_DRIPADDR?).
+
+ This is a 16-bit integer value in host order. Each of the eight
+ values forming the full IP address must be specified individually.
+ This is the last of the 8-values.
+
+endif # EXAMPLES_NETTEST_IPv6
+endif # EXAMPLES_NETTEST