diff --git a/net/Kconfig b/net/Kconfig index 2c2eabef68..272743d2b1 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -202,6 +202,7 @@ endmenu # Internet Protocol Selection source "net/socket/Kconfig" source "net/pkt/Kconfig" +source "net/local/Kconfig" source "net/tcp/Kconfig" source "net/udp/Kconfig" source "net/icmp/Kconfig" diff --git a/net/Makefile b/net/Makefile index 7a9cf03d5b..ce3faf0f3a 100644 --- a/net/Makefile +++ b/net/Makefile @@ -63,9 +63,10 @@ include icmp/Make.defs include icmpv6/Make.defs include neighbor/Make.defs include igmp/Make.defs +include pkt/Make.defs +include local/Make.defs include tcp/Make.defs include udp/Make.defs -include pkt/Make.defs include devif/Make.defs include route/Make.defs include utils/Make.defs diff --git a/net/README.txt b/net/README.txt index bbbccc0db7..db0a59452a 100644 --- a/net/README.txt +++ b/net/README.txt @@ -13,6 +13,7 @@ Directory Structure +- icmp - Internet Control Message Protocol (IPv4) +- icmpv6 - Internet Control Message Protocol (IPv6) +- iob - I/O buffering logic + +- local - Unix domain (local) sockets +- neighbor - Neighbor Discovery Protocol (IPv6) +- netdev - Socket network device interface +- pkt - "Raw" packet socket support diff --git a/net/local/Kconfig b/net/local/Kconfig new file mode 100644 index 0000000000..2f720c3485 --- /dev/null +++ b/net/local/Kconfig @@ -0,0 +1,19 @@ +# +# For a description of the syntax of this configuration file, +# see misc/tools/kconfig-language.txt. +# + +menu "Unix Domain Socket Support" + depends on NET && EXPERIMENTAL + +config NET_LOCAL + bool "Unix domain (local) sockets" + default n + ---help--- + Enable or disable Unix domain (aka Local) sockets. + +if NET_LOCAL + +endif # NET_LOCAL + +endmenu # Unix Domain Sockets diff --git a/net/local/Make.defs b/net/local/Make.defs new file mode 100644 index 0000000000..2a6b3b27f9 --- /dev/null +++ b/net/local/Make.defs @@ -0,0 +1,47 @@ +############################################################################ +# net/local/Make.defs +# +# Copyright (C) 2015 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt +# +# 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. +# +############################################################################ + +# UDP source files + +ifeq ($(CONFIG_NET_LOCAL),y) + +# NET_CSRCS += + +# Include UDP build support + +DEPPATH += --dep-path local +VPATH += :local + +endif # CONFIG_NET_LOCAL