summaryrefslogtreecommitdiff
path: root/apps/examples/bridge/Kconfig
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-17 10:53:43 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-17 10:53:43 -0600
commit9996595fb7029c62fafba82230eb9d8d8927f3fc (patch)
tree6fa226cbdce16dc2866cfee91eb55f0671a9e502 /apps/examples/bridge/Kconfig
parent024a5a638a19767988dbcecb920f021344fdb190 (diff)
downloadnuttx-9996595fb7029c62fafba82230eb9d8d8927f3fc.tar.gz
nuttx-9996595fb7029c62fafba82230eb9d8d8927f3fc.tar.bz2
nuttx-9996595fb7029c62fafba82230eb9d8d8927f3fc.zip
apps/examples/bridge: Add a simple UDP relay bridge for testing configurations with multiple networks
Diffstat (limited to 'apps/examples/bridge/Kconfig')
-rw-r--r--apps/examples/bridge/Kconfig170
1 files changed, 170 insertions, 0 deletions
diff --git a/apps/examples/bridge/Kconfig b/apps/examples/bridge/Kconfig
new file mode 100644
index 000000000..f3ee296be
--- /dev/null
+++ b/apps/examples/bridge/Kconfig
@@ -0,0 +1,170 @@
+#
+# For a description of the syntax of this configuration file,
+# see misc/tools/kconfig-language.txt.
+#
+
+config EXAMPLES_BRIDGE
+ bool "UDP bridge example"
+ default n
+ depends on NET_UDP && NETDEV_MULTINIC && !NET_IPv6
+ ---help---
+ Simple test of a system with multiple networks. It simply echoes all
+ UDP packets received on network 1 and network 2 to network 2 and
+ network 1, respectively. Interface 1 and interface may or may not
+ lie on the same network.
+
+ If used as a NSH add-on, then it is assumed that initialization of
+ both networks was performed externally prior to the time that this
+ test was started.
+
+if EXAMPLES_BRIDGE
+
+comment "Network 1 configuration"
+
+config EXAMPLES_BRIDGE_NET1_IFNAME
+ string "Device name"
+ default "eth0"
+ ---help---
+ The register name of the network 1 device. Must match the previously
+ registered driver name and must not be the same as
+ EXAMPLES_BRIDGE_NET2_IFNAME
+
+config EXAMPLES_BRIDGE_NET1_RECVPORT
+ int "UDP receive port"
+ default 5471
+ ---help---
+ Network 1 listen port number
+
+config EXAMPLES_BRIDGE_NET1_SNDPORT
+ int "UDP send port"
+ default 5472
+ ---help---
+ Network 2 send port number
+
+config EXAMPLES_BRIDGE_NET1_IOBUFIZE
+ int "UDP I/O buffer size"
+ default 1024
+ ---help---
+ Size of the UDP send/receive I/O buffer
+
+if !NSH_BUILTIN_APPS
+
+config EXAMPLES_BRIDGE_NET1_DHCPC
+ bool "DHCP Client"
+ default n
+ select NETUTILS_DHCPC
+ select NETUTILS_DNSCLIENT
+
+config EXAMPLES_BRIDGE_NET1_NOMAC
+ bool "Use Canned MAC Address"
+ default n
+ ---help---
+ Select if the hardware has no built-in MAC address.
+
+config EXAMPLES_BRIDGE_NET1_MACADDR
+ hex "Canned MAC address"
+ default 0x00e0deadbeef
+ depends on EXAMPLES_BRIDGE_NET1_NOMAC
+ ---help---
+ If the hardware has no built-in MAC address then the fixed,
+ software-assigned MAC address MAC address must provided
+ with this selection.
+
+config EXAMPLES_BRIDGE_NET1_IPADDR
+ hex "IP address"
+ default 0x0a000002
+ depends on !EXAMPLES_BRIDGE_NET1_DHCPC
+
+config EXAMPLES_BRIDGE_NET1_DRIPADDR
+ hex "Default Router IP address (Gateway)"
+ default 0x0a000001
+
+config EXAMPLES_BRIDGE_NET1_NETMASK
+ hex "Network Mask"
+ default 0xffffff00
+
+endif # !NSH_BUILTIN_APPS
+
+config EXAMPLES_BRIDGE_NET1_STACKSIZE
+ int "Network 1 daemon stacksize"
+ default 2048
+
+config EXAMPLES_BRIDGE_NET1_PRIORITY
+ int "Network 1 daemon task priority"
+ default 100
+
+comment "Network 2 configuration"
+
+config EXAMPLES_BRIDGE_NET2_IFNAME
+ string "Device name"
+ default "eth1"
+ ---help---
+ The register name of the network 2 device. Must match the previously
+ registered driver name and must not be the same as
+ EXAMPLES_BRIDGE_NET2_IFNAME
+
+config EXAMPLES_BRIDGE_NET2_RECVPORT
+ int "UDP receive port"
+ default 5471
+ ---help---
+ Network 1 listen port number
+
+config EXAMPLES_BRIDGE_NET2_SNDPORT
+ int "UDP send port"
+ default 5472
+ ---help---
+ Network 2 send port number
+
+config EXAMPLES_BRIDGE_NET2_IOBUFIZE
+ int "UDP I/O buffer size"
+ default 1024
+ ---help---
+ Size of the UDP send/receive I/O buffer
+
+if !NSH_BUILTIN_APPS
+
+config EXAMPLES_BRIDGE_NET2_DHCPC
+ bool "DHCP Client"
+ default n
+ select NETUTILS_DHCPC
+ select NETUTILS_DNSCLIENT
+
+config EXAMPLES_BRIDGE_NET2_NOMAC
+ bool "Use Canned MAC Address"
+ default n
+ ---help---
+ Select if the hardware has no built-in MAC address.
+
+config EXAMPLES_BRIDGE_NET2_MACADDR
+ hex "Canned MAC address"
+ default 0x00e0f00dface
+ depends on EXAMPLES_BRIDGE_NET2_NOMAC
+ ---help---
+ If the hardware has no built-in MAC address then the fixed,
+ software-assigned MAC address MAC address must provided
+ with this selection.
+
+config EXAMPLES_BRIDGE_NET2_IPADDR
+ hex "IP address"
+ default 0x0a000003
+ depends on !EXAMPLES_BRIDGE_NET2_DHCPC
+
+config EXAMPLES_BRIDGE_NET2_DRIPADDR
+ hex "Default Router IP address (Gateway)"
+ default 0x0a000001
+
+config EXAMPLES_BRIDGE_NET2_NETMASK
+ hex "Network Mask"
+ default 0xffffff00
+
+endif # !NSH_BUILTIN_APPS
+
+config EXAMPLES_BRIDGE_NET2_STACKSIZE
+ int "Network 2 daemon stacksize"
+ default 2048
+
+config EXAMPLES_BRIDGE_NET2_PRIORITY
+ int "Network 2 daemon task priority"
+ default 100
+
+endif # EXAMPLES_BRIDGE