Clean up some naming; rename net/ieee802154 to net/6lowpan

This commit is contained in:
Gregory Nutt 2016-02-26 10:08:36 -06:00
parent 2c95fef501
commit 2f28ca86c2
12 changed files with 28 additions and 31 deletions

View File

@ -374,7 +374,7 @@ source drivers/ioexpander/Kconfig
endif # IOEXPANDER endif # IOEXPANDER
menuconfig IEEE802154 menuconfig IEEE802154
bool "IEEE 802.15-4 Device Support" bool "IEEE 802.15.4 Device Support"
default n default n
depends on EXPERIMENTAL depends on EXPERIMENTAL
---help--- ---help---

View File

@ -33,11 +33,11 @@
# #
############################################################################ ############################################################################
# Include nothing if IEEE 802.15-4 is disabled # Include nothing if IEEE 802.15.4 is disabled
ifeq ($(CONFIG_IEEE802154),y) ifeq ($(CONFIG_IEEE802154),y)
# Include common IEEE 802.15-4 # Include common IEEE 802.15.4
# Include IEEE 802.15.4 drivers # Include IEEE 802.15.4 drivers

View File

@ -69,7 +69,7 @@
*/ */
#define ARPHRD_ETHER 1 /* Ethernet */ #define ARPHRD_ETHER 1 /* Ethernet */
#define ARPHRD_IEEE802154 804 /* IEEE 802-15-4 */ #define ARPHRD_IEEE802154 804 /* IEEE 802.15.4 */
/**************************************************************************** /****************************************************************************
* Public Types * Public Types

View File

@ -64,8 +64,8 @@
* Name: ieee802154_input * Name: ieee802154_input
* *
* Description: * Description:
* This function provides the interface between IEEE 802.15-4 device driver * This function provides the interface between IEEE 802.15.4 device driver
* and IEEE 802.15-4 socket logic. All IPv6 frames that are received should * and IEEE 802.15.4 socket logic. All IPv6 frames that are received should
* be provided to ieee802154_input(). * be provided to ieee802154_input().
* *
* Input Parameters: * Input Parameters:

View File

@ -79,7 +79,7 @@ enum net_lltype_e
NET_LL_LOOPBACK, /* Local loopback */ NET_LL_LOOPBACK, /* Local loopback */
NET_LL_SLIP, /* Serial Line Internet Protocol (SLIP) */ NET_LL_SLIP, /* Serial Line Internet Protocol (SLIP) */
NET_LL_TUN, /* TUN Virtual Network Device */ NET_LL_TUN, /* TUN Virtual Network Device */
NET_LL_IEEE802154 /* IEEE 802.15-4 */ NET_LL_IEEE802154 /* IEEE 802.15.4 */
}; };
/* This defines a bitmap big enough for one bit for each socket option */ /* This defines a bitmap big enough for one bit for each socket option */

View File

@ -64,7 +64,7 @@
#define PF_ATMPVC 8 /* Access to raw ATM PVCs */ #define PF_ATMPVC 8 /* Access to raw ATM PVCs */
#define PF_APPLETALK 9 /* Appletalk */ #define PF_APPLETALK 9 /* Appletalk */
#define PF_PACKET 10 /* Low level packet interface */ #define PF_PACKET 10 /* Low level packet interface */
#define PF_IEEE802154 11 /* IEEE802.15-4 sockets */ #define PF_IEEE802154 11 /* IEEE 802.15.4 sockets */
/* Address families */ /* Address families */

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/ieee802154/ieee802154.h * net/6lowpan/6lowpan.h
* *
* Copyright (C) 2016 Gregory Nutt. All rights reserved. * Copyright (C) 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>

View File

@ -3,26 +3,24 @@
# see the file kconfig-language.txt in the NuttX tools repository. # see the file kconfig-language.txt in the NuttX tools repository.
# #
menu "IEEE802.15-4 Configuration" menu "IEEE 802.15.4 Configuration"
config NET_IEEE802154 config NET_IEEE802154
bool "IEEE802.15-4 support" bool "IEEE 802.15.4 support"
default n default n
depends on EXPERIMENTAL && NET_IPv6 depends on EXPERIMENTAL && NET_IPv6
---help--- ---help---
Enable IEEE802.15-4 protocol socket support Enable IEEE 802.15.4 protocol socket support
if NET_IEEE802154 if NET_IEEE802154
config NET_IEEE802154_MTU config NET_IEEE802154_MTU
int "IEEE 802.15-4 packet buffer size (MTU)" int "IEEE 802.15.4 packet buffer size (MTU)"
default 1294 if NET_IPv6 default 1294
default 590 if !NET_IPv6
depends on NET_ETHERNET
range 590 1518 range 590 1518
---help--- ---help---
Packet buffer size. This size includes the TCP/UDP payload plus the Packet buffer size. This size includes the TCP/UDP payload plus the
size of TCP/UDP header, the IP header, and the IEEE 802.15-4 header. size of TCP/UDP header, the IP header, and the IEEE 802.15.4 header.
This value is normally referred to as the MTU (Maximum Transmission This value is normally referred to as the MTU (Maximum Transmission
Unit); the payload is the MSS (Maximum Segment Size). Unit); the payload is the MSS (Maximum Segment Size).
@ -34,10 +32,9 @@ config NET_IEEE802154_MTU
resulting in a minimum buffer size of of 1220+20+40+xx = xx. REVISIT! resulting in a minimum buffer size of of 1220+20+40+xx = xx. REVISIT!
config IEEE802154_TCP_RECVWNDO config IEEE802154_TCP_RECVWNDO
int "EEE 802.15-4 TCP receive window size" int "IEEE 802.15.4 TCP receive window size"
default 1220 if NET_IPv6 default 1220
default 536 if !NET_IPv6 depends on NET_TCP
depends on NET_ETHERNET && NET_TCP
---help--- ---help---
The size of the advertised receiver's window. Should be set low The size of the advertised receiver's window. Should be set low
(i.e., to the size of the MSS) if the application is slow to process (i.e., to the size of the MSS) if the application is slow to process
@ -45,4 +42,4 @@ config IEEE802154_TCP_RECVWNDO
data quickly. REVISIT! data quickly. REVISIT!
endif # NET_IEEE802154 endif # NET_IEEE802154
endmenu # IEEE802.15-4 Configuration endmenu # IEEE 802.15.4 Configuration

View File

@ -1,5 +1,5 @@
############################################################################ ############################################################################
# net/ieee802154/Make.defs # net/6lowpan/Make.defs
# #
# Copyright (C) 2016 Gregory Nutt. All rights reserved. # Copyright (C) 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>
@ -33,17 +33,17 @@
# #
############################################################################ ############################################################################
# IEEE802.15-4 support # IEEE 802.15.4 support
ifeq ($(CONFIG_NET_IEEE802154),y) ifeq ($(CONFIG_NET_IEEE802154),y)
# Include IEEE802.15-4 file in the build # Include IEEE 802.15.4 file in the build
# NET_CSRCS += # NET_CSRCS +=
# Include the ieee802154 directory in the build # Include the 6lowpan directory in the build
DEPPATH += --dep-path ieee802154 DEPPATH += --dep-path 6lowpan
VPATH += :ieee802154 VPATH += :6lowpan
endif # CONFIG_NET_IEEE802154 endif # CONFIG_NET_IEEE802154

View File

@ -269,7 +269,7 @@ source "net/pkt/Kconfig"
source "net/local/Kconfig" source "net/local/Kconfig"
source "net/tcp/Kconfig" source "net/tcp/Kconfig"
source "net/udp/Kconfig" source "net/udp/Kconfig"
source "net/ieee802154/Kconfig" source "net/6lowpan/Kconfig"
source "net/icmp/Kconfig" source "net/icmp/Kconfig"
source "net/icmpv6/Kconfig" source "net/icmpv6/Kconfig"
source "net/igmp/Kconfig" source "net/igmp/Kconfig"

View File

@ -67,7 +67,7 @@ include pkt/Make.defs
include local/Make.defs include local/Make.defs
include tcp/Make.defs include tcp/Make.defs
include udp/Make.defs include udp/Make.defs
include ieee802154/Make.defs include 6lowpan/Make.defs
include devif/Make.defs include devif/Make.defs
include loopback/Make.defs include loopback/Make.defs
include route/Make.defs include route/Make.defs

View File

@ -215,7 +215,7 @@ int netdev_register(FAR struct net_driver_s *dev, enum net_lltype_e lltype)
#endif #endif
#ifdef CONFIG_NET_IEEE802154 #ifdef CONFIG_NET_IEEE802154
case NET_LL_IEEE802154: /* IEEE802.15-4 */ case NET_LL_IEEE802154: /* IEEE 802.15.4 */
dev->d_llhdrlen = 0; /* REVISIT */ dev->d_llhdrlen = 0; /* REVISIT */
dev->d_mtu = CONFIG_NET_IEEE802154_MTU; dev->d_mtu = CONFIG_NET_IEEE802154_MTU;
#ifdef CONFIG_NET_TCP #ifdef CONFIG_NET_TCP