summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-05-30 14:44:07 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-05-30 14:44:07 -0600
commit52f7aee32407c9db5fe0fb72a9404b6ddccd30cc (patch)
tree4f3557b715d263071477f534f0f6c27f348af035 /nuttx
parent9601b0dcc07ab7b37daa5c4866d72d1f15b79dae (diff)
downloadpx4-nuttx-52f7aee32407c9db5fe0fb72a9404b6ddccd30cc.tar.gz
px4-nuttx-52f7aee32407c9db5fe0fb72a9404b6ddccd30cc.tar.bz2
px4-nuttx-52f7aee32407c9db5fe0fb72a9404b6ddccd30cc.zip
Move arp, icmp, and igmp configuration values into new Kconfig files in those directories
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/net/Kconfig57
-rw-r--r--nuttx/net/arp/Kconfig28
-rw-r--r--nuttx/net/icmp/Kconfig29
-rw-r--r--nuttx/net/igmp/Kconfig22
4 files changed, 82 insertions, 54 deletions
diff --git a/nuttx/net/Kconfig b/nuttx/net/Kconfig
index d1ba21d31..3a9e842fe 100644
--- a/nuttx/net/Kconfig
+++ b/nuttx/net/Kconfig
@@ -328,48 +328,8 @@ config NET_RXAVAIL
endif # NET_UDP
endmenu
-config NET_ICMP
- bool "ICMP networking support"
- default n
- depends on NET
- ---help---
- Enable minimal ICMP support. Includes built-in support
- for sending replies to received ECHO (ping) requests.
-
-if NET_ICMP
-
-config NET_ICMP_PING
- bool "ICMP ping interfaces"
- default n
- ---help---
- Provide interfaces to support application level support for
- for sending ECHO (ping) requests and associating ECHO replies.
-
-config NET_PINGADDRCONF
- bool "Ping address configuration"
- default n
- ---help---
- Use "ping" packet for setting IP address
-
-endif # NET_ICMP
-
-config NET_IGMP
- bool "IGMPv2 clientsupport"
- default n
- depends on NET
- ---help---
- Enable IGMPv2 client support.
-
-if NET_IGMP
-
-config PREALLOC_IGMPGROUPS
- int "Number of pre-allocated IGMP groups"
- default 4
- ---help---
- Pre-allocated IGMP groups are used only if needed from interrupt
- level group created (by the IGMP server). Default: 4.
-
-endif # NET_IGMP
+source "net/icmp/Kconfig"
+source "net/igmp/Kconfig"
config NET_STATISTICS
bool "Collect network statistics"
@@ -388,18 +348,7 @@ config NET_RECEIVE_WINDOW
incoming data, or high (32768 bytes) if the application processes
data quickly.
-config NET_ARPTAB_SIZE
- int "ARP table size"
- default 16
- ---help---
- The size of the ARP table (in entries).
-
-config NET_ARP_IPIN
- bool "ARP address harvesting"
- default n
- ---help---
- Harvest IP/MAC address mappings from the ARP table
- from incoming IP packets.
+source "net/arp/Kconfig"
config NET_ROUTE
bool "Routing table suport"
diff --git a/nuttx/net/arp/Kconfig b/nuttx/net/arp/Kconfig
new file mode 100644
index 000000000..6b5464775
--- /dev/null
+++ b/nuttx/net/arp/Kconfig
@@ -0,0 +1,28 @@
+#
+# For a description of the syntax of this configuration file,
+# see misc/tools/kconfig-language.txt.
+#
+
+config NET_ARP
+ bool
+ default y if !NET_SLIP
+ default n if NET_SLIP
+ ---help---
+ This setting is currently overridden by logic in include/nuttx/net
+
+if NET_ARP
+
+config NET_ARPTAB_SIZE
+ int "ARP table size"
+ default 16
+ ---help---
+ The size of the ARP table (in entries).
+
+config NET_ARP_IPIN
+ bool "ARP address harvesting"
+ default n
+ ---help---
+ Harvest IP/MAC address mappings from the ARP table
+ from incoming IP packets.
+
+endif # NET_ARP
diff --git a/nuttx/net/icmp/Kconfig b/nuttx/net/icmp/Kconfig
new file mode 100644
index 000000000..6e7a2d325
--- /dev/null
+++ b/nuttx/net/icmp/Kconfig
@@ -0,0 +1,29 @@
+#
+# For a description of the syntax of this configuration file,
+# see misc/tools/kconfig-language.txt.
+#
+
+config NET_ICMP
+ bool "ICMP networking support"
+ default n
+ depends on NET
+ ---help---
+ Enable minimal ICMP support. Includes built-in support
+ for sending replies to received ECHO (ping) requests.
+
+if NET_ICMP
+
+config NET_ICMP_PING
+ bool "ICMP ping interfaces"
+ default n
+ ---help---
+ Provide interfaces to support application level support for
+ for sending ECHO (ping) requests and associating ECHO replies.
+
+config NET_PINGADDRCONF
+ bool "Ping address configuration"
+ default n
+ ---help---
+ Use "ping" packet for setting IP address
+
+endif # NET_ICMP
diff --git a/nuttx/net/igmp/Kconfig b/nuttx/net/igmp/Kconfig
new file mode 100644
index 000000000..618f50f89
--- /dev/null
+++ b/nuttx/net/igmp/Kconfig
@@ -0,0 +1,22 @@
+#
+# For a description of the syntax of this configuration file,
+# see misc/tools/kconfig-language.txt.
+#
+
+config NET_IGMP
+ bool "IGMPv2 clientsupport"
+ default n
+ depends on NET
+ ---help---
+ Enable IGMPv2 client support.
+
+if NET_IGMP
+
+config PREALLOC_IGMPGROUPS
+ int "Number of pre-allocated IGMP groups"
+ default 4
+ ---help---
+ Pre-allocated IGMP groups are used only if needed from interrupt
+ level group created (by the IGMP server). Default: 4.
+
+endif # NET_IGMP