summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-01-14 14:26:50 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-01-14 14:26:50 -0600
commit98de3817d981aa12f7bf903f65f4c918b794dfff (patch)
tree9e0eae3552e9debf6c34297cbf725e7687084c33
parent2dccfa930f6e4c2fcd34291c3072a17d300c4ec4 (diff)
downloadpx4-nuttx-98de3817d981aa12f7bf903f65f4c918b794dfff.tar.gz
px4-nuttx-98de3817d981aa12f7bf903f65f4c918b794dfff.tar.bz2
px4-nuttx-98de3817d981aa12f7bf903f65f4c918b794dfff.zip
Networking: Make a home for ICMPv6
-rw-r--r--nuttx/net/Kconfig1
-rw-r--r--nuttx/net/Makefile3
-rw-r--r--nuttx/net/README.txt3
-rw-r--r--nuttx/net/arp/Make.defs6
-rw-r--r--nuttx/net/icmp/Kconfig3
-rw-r--r--nuttx/net/icmpv6/Kconfig21
-rw-r--r--nuttx/net/icmpv6/Make.defs45
7 files changed, 76 insertions, 6 deletions
diff --git a/nuttx/net/Kconfig b/nuttx/net/Kconfig
index 9ee400a53..524a0a6b2 100644
--- a/nuttx/net/Kconfig
+++ b/nuttx/net/Kconfig
@@ -197,6 +197,7 @@ source "net/pkt/Kconfig"
source "net/tcp/Kconfig"
source "net/udp/Kconfig"
source "net/icmp/Kconfig"
+source "net/icmpv6/Kconfig"
source "net/igmp/Kconfig"
source "net/arp/Kconfig"
source "net/iob/Kconfig"
diff --git a/nuttx/net/Makefile b/nuttx/net/Makefile
index ec65af93e..c4b86f4de 100644
--- a/nuttx/net/Makefile
+++ b/nuttx/net/Makefile
@@ -1,7 +1,7 @@
############################################################################
# net/Makefile
#
-# Copyright (C) 2007, 2008, 2011-2014 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007, 2008, 2011-2015 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
@@ -60,6 +60,7 @@ include netdev/Make.defs
include iob/Make.defs
include arp/Make.defs
include icmp/Make.defs
+include icmpv6/Make.defs
include igmp/Make.defs
include tcp/Make.defs
include udp/Make.defs
diff --git a/nuttx/net/README.txt b/nuttx/net/README.txt
index db1f6aa98..d0c75f024 100644
--- a/nuttx/net/README.txt
+++ b/nuttx/net/README.txt
@@ -10,7 +10,8 @@ Directory Structure
|
+- arp - Address resolution protocol
+- devif - Stack/device interface layer
- +- icmp - Internet Control Message Protocol
+ +- icmp - Internet Control Message Protocol (IPv4)
+ +- icmpv6 - Internet Control Message Protocol (IPv6)
+- iob - I/O buffering logic
+- ipv6 - Logic unique to IPv6
+- netdev - Socket network device interface
diff --git a/nuttx/net/arp/Make.defs b/nuttx/net/arp/Make.defs
index 28772a87b..acbe39d5a 100644
--- a/nuttx/net/arp/Make.defs
+++ b/nuttx/net/arp/Make.defs
@@ -1,7 +1,7 @@
############################################################################
# net/arp/Make.defs
#
-# Copyright (C) 2014 Gregory Nutt. All rights reserved.
+# Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
@@ -35,7 +35,7 @@
# ARP support is available for Ethernet only
-ifeq ($(CONFIG_NET_ETHERNET),y)
+ifeq ($(CONFIG_NET_ARP),y)
NET_CSRCS +=arp_arpin.c arp_out.c arp_format.c arp_table.c arp_timer.c
ifeq ($(CONFIG_NET_ARP_IPIN),y)
@@ -55,4 +55,4 @@ endif
DEPPATH += --dep-path arp
VPATH += :arp
-endif # CONFIG_NET_ETHERNET
+endif # CONFIG_NET_ARP
diff --git a/nuttx/net/icmp/Kconfig b/nuttx/net/icmp/Kconfig
index 254d5135e..872fa48c0 100644
--- a/nuttx/net/icmp/Kconfig
+++ b/nuttx/net/icmp/Kconfig
@@ -3,12 +3,12 @@
# see misc/tools/kconfig-language.txt.
#
+if NET_IPv4
menu "ICMP Networking Support"
config NET_ICMP
bool "Enable ICMP networking"
default n
- depends on NET
---help---
Enable minimal ICMP support. Includes built-in support
for sending replies to received ECHO (ping) requests.
@@ -30,3 +30,4 @@ config NET_PINGADDRCONF
endif # NET_ICMP
endmenu # ICMP Networking Support
+endif # NET_IPv4
diff --git a/nuttx/net/icmpv6/Kconfig b/nuttx/net/icmpv6/Kconfig
new file mode 100644
index 000000000..bc95a6678
--- /dev/null
+++ b/nuttx/net/icmpv6/Kconfig
@@ -0,0 +1,21 @@
+#
+# For a description of the syntax of this configuration file,
+# see misc/tools/kconfig-language.txt.
+#
+
+if NET_IPv6
+menu "ICMPv6 Networking Support"
+
+config NET_ICMPv6
+ bool "Enable ICMPv6 networking"
+ default n
+ depends on NET
+ ---help---
+ Enable minimal ICMPv6 support. Includes built-in support
+ for sending replies to received ECHO (ping) requests.
+
+if NET_ICMPv6
+
+endif # NET_ICMPv6
+endmenu # ICMPv6 Networking Support
+endif # NET_IPv6
diff --git a/nuttx/net/icmpv6/Make.defs b/nuttx/net/icmpv6/Make.defs
new file mode 100644
index 000000000..ce83b0713
--- /dev/null
+++ b/nuttx/net/icmpv6/Make.defs
@@ -0,0 +1,45 @@
+############################################################################
+# net/icmpv6/Make.defs
+#
+# Copyright (C) 2015 Gregory Nutt. All rights reserved.
+# Author: Gregory Nutt <gnutt@nuttx.org>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+# 3. Neither the name NuttX nor the names of its contributors may be
+# used to endorse or promote products derived from this software
+# without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+############################################################################
+
+ifeq ($(CONFIG_NET_ICMPv6),y)
+
+# Support for ICMPv6
+
+# Include ICMPv6 build support
+
+DEPPATH += --dep-path icmpv6
+VPATH += :icmpv6
+
+endif