Clean up some naming; rename net/ieee802154 to net/6lowpan
This commit is contained in:
parent
2c95fef501
commit
2f28ca86c2
|
@ -374,7 +374,7 @@ source drivers/ioexpander/Kconfig
|
|||
endif # IOEXPANDER
|
||||
|
||||
menuconfig IEEE802154
|
||||
bool "IEEE 802.15-4 Device Support"
|
||||
bool "IEEE 802.15.4 Device Support"
|
||||
default n
|
||||
depends on EXPERIMENTAL
|
||||
---help---
|
||||
|
|
|
@ -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)
|
||||
|
||||
# Include common IEEE 802.15-4
|
||||
# Include common IEEE 802.15.4
|
||||
|
||||
# Include IEEE 802.15.4 drivers
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
*/
|
||||
|
||||
#define ARPHRD_ETHER 1 /* Ethernet */
|
||||
#define ARPHRD_IEEE802154 804 /* IEEE 802-15-4 */
|
||||
#define ARPHRD_IEEE802154 804 /* IEEE 802.15.4 */
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
|
|
|
@ -64,8 +64,8 @@
|
|||
* Name: ieee802154_input
|
||||
*
|
||||
* Description:
|
||||
* 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
|
||||
* 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
|
||||
* be provided to ieee802154_input().
|
||||
*
|
||||
* Input Parameters:
|
||||
|
|
|
@ -79,7 +79,7 @@ enum net_lltype_e
|
|||
NET_LL_LOOPBACK, /* Local loopback */
|
||||
NET_LL_SLIP, /* Serial Line Internet Protocol (SLIP) */
|
||||
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 */
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
#define PF_ATMPVC 8 /* Access to raw ATM PVCs */
|
||||
#define PF_APPLETALK 9 /* Appletalk */
|
||||
#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 */
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/****************************************************************************
|
||||
* net/ieee802154/ieee802154.h
|
||||
* net/6lowpan/6lowpan.h
|
||||
*
|
||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
|
@ -3,26 +3,24 @@
|
|||
# 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
|
||||
bool "IEEE802.15-4 support"
|
||||
bool "IEEE 802.15.4 support"
|
||||
default n
|
||||
depends on EXPERIMENTAL && NET_IPv6
|
||||
---help---
|
||||
Enable IEEE802.15-4 protocol socket support
|
||||
Enable IEEE 802.15.4 protocol socket support
|
||||
|
||||
if NET_IEEE802154
|
||||
|
||||
config NET_IEEE802154_MTU
|
||||
int "IEEE 802.15-4 packet buffer size (MTU)"
|
||||
default 1294 if NET_IPv6
|
||||
default 590 if !NET_IPv6
|
||||
depends on NET_ETHERNET
|
||||
int "IEEE 802.15.4 packet buffer size (MTU)"
|
||||
default 1294
|
||||
range 590 1518
|
||||
---help---
|
||||
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
|
||||
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!
|
||||
|
||||
config IEEE802154_TCP_RECVWNDO
|
||||
int "EEE 802.15-4 TCP receive window size"
|
||||
default 1220 if NET_IPv6
|
||||
default 536 if !NET_IPv6
|
||||
depends on NET_ETHERNET && NET_TCP
|
||||
int "IEEE 802.15.4 TCP receive window size"
|
||||
default 1220
|
||||
depends on NET_TCP
|
||||
---help---
|
||||
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
|
||||
|
@ -45,4 +42,4 @@ config IEEE802154_TCP_RECVWNDO
|
|||
data quickly. REVISIT!
|
||||
|
||||
endif # NET_IEEE802154
|
||||
endmenu # IEEE802.15-4 Configuration
|
||||
endmenu # IEEE 802.15.4 Configuration
|
|
@ -1,5 +1,5 @@
|
|||
############################################################################
|
||||
# net/ieee802154/Make.defs
|
||||
# net/6lowpan/Make.defs
|
||||
#
|
||||
# Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
|
@ -33,17 +33,17 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
# IEEE802.15-4 support
|
||||
# IEEE 802.15.4 support
|
||||
|
||||
ifeq ($(CONFIG_NET_IEEE802154),y)
|
||||
|
||||
# Include IEEE802.15-4 file in the build
|
||||
# Include IEEE 802.15.4 file in the build
|
||||
|
||||
# NET_CSRCS +=
|
||||
|
||||
# Include the ieee802154 directory in the build
|
||||
# Include the 6lowpan directory in the build
|
||||
|
||||
DEPPATH += --dep-path ieee802154
|
||||
VPATH += :ieee802154
|
||||
DEPPATH += --dep-path 6lowpan
|
||||
VPATH += :6lowpan
|
||||
|
||||
endif # CONFIG_NET_IEEE802154
|
|
@ -269,7 +269,7 @@ source "net/pkt/Kconfig"
|
|||
source "net/local/Kconfig"
|
||||
source "net/tcp/Kconfig"
|
||||
source "net/udp/Kconfig"
|
||||
source "net/ieee802154/Kconfig"
|
||||
source "net/6lowpan/Kconfig"
|
||||
source "net/icmp/Kconfig"
|
||||
source "net/icmpv6/Kconfig"
|
||||
source "net/igmp/Kconfig"
|
||||
|
|
|
@ -67,7 +67,7 @@ include pkt/Make.defs
|
|||
include local/Make.defs
|
||||
include tcp/Make.defs
|
||||
include udp/Make.defs
|
||||
include ieee802154/Make.defs
|
||||
include 6lowpan/Make.defs
|
||||
include devif/Make.defs
|
||||
include loopback/Make.defs
|
||||
include route/Make.defs
|
||||
|
|
|
@ -215,7 +215,7 @@ int netdev_register(FAR struct net_driver_s *dev, enum net_lltype_e lltype)
|
|||
#endif
|
||||
|
||||
#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_mtu = CONFIG_NET_IEEE802154_MTU;
|
||||
#ifdef CONFIG_NET_TCP
|
||||
|
|
Loading…
Reference in New Issue