forked from openthread/openthread
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4f9945c
Showing
1,335 changed files
with
616,850 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
*.a | ||
*.gcda | ||
*.gcno | ||
*.log | ||
*.o | ||
*.pyc | ||
*.trs | ||
*~ | ||
.deps | ||
.dirstamp | ||
.DS_Store | ||
.local-version | ||
aclocal.m4 | ||
autom4te.cache | ||
configure | ||
config.log | ||
config.status | ||
doc/Doxyfile | ||
doc/html | ||
include/openthread-config.h | ||
include/openthread-config.h.in | ||
include/stamp-h1 | ||
libtool | ||
Makefile | ||
Makefile.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: cpp | ||
|
||
before_install: | ||
- sudo apt-get install python-pexpect | ||
|
||
script: | ||
- ./bootstrap-configure --enable-minimum-set-of-tests | ||
- make check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Want to contribute? Great! First, read this page (including the small print at the end). | ||
|
||
### Before you contribute | ||
Before we can use your code, you must sign the | ||
[Google Individual Contributor License Agreement] | ||
(https://cla.developers.google.com/about/google-individual) | ||
(CLA), which you can do online. The CLA is necessary mainly because you own the | ||
copyright to your changes, even after your contribution becomes part of our | ||
codebase, so we need your permission to use and distribute your code. We also | ||
need to be sure of various other things—for instance that you'll tell us if you | ||
know that your code infringes on other people's patents. You don't have to sign | ||
the CLA until after you've submitted your code for review and a member has | ||
approved it, but you must do it before we can put your code into our codebase. | ||
Before you start working on a larger contribution, you should get in touch with | ||
us first through the issue tracker with your idea so that we can help out and | ||
possibly guide you. Coordinating up front makes it much easier to avoid | ||
frustration later on. | ||
|
||
### Code reviews | ||
All submissions, including submissions by project members, require review. We | ||
use Github pull requests for this purpose. | ||
|
||
### The small print | ||
Contributions made by corporations are covered by a different agreement than | ||
the one above, the | ||
[Software Grant and Corporate Contributor License Agreement] | ||
(https://cla.developers.google.com/about/google-corporate). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Copyright (c) 2016, Nest Labs, Inc. | ||
All rights reserved. | ||
|
||
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 of the copyright holder 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 HOLDER 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
# | ||
# Copyright (c) 2016, Nest Labs, Inc. | ||
# All rights reserved. | ||
# | ||
# 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 of the copyright holder 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 HOLDER 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. | ||
# | ||
|
||
include $(abs_top_nlbuild_autotools_dir)/automake/pre.am | ||
|
||
AM_MAKEFLAGS = --no-print-directory | ||
|
||
SUBDIRS = \ | ||
src \ | ||
third_party \ | ||
examples \ | ||
tests \ | ||
doc \ | ||
$(NULL) | ||
|
||
EXTRA_DIST = \ | ||
.default-version \ | ||
bootstrap \ | ||
bootstrap-configure \ | ||
$(srcdir)/third_party \ | ||
$(NULL) | ||
|
||
BUILT_SOURCES = \ | ||
.local-version \ | ||
$(NULL) | ||
|
||
dist_doc_DATA = \ | ||
$(NULL) | ||
|
||
DISTCLEANFILES = \ | ||
.local-version \ | ||
$(NULL) | ||
|
||
# | ||
# Package version files: | ||
# | ||
# .default-version - The default package version. This file is ALWAYS checked | ||
# in and should always represent the current baseline | ||
# version of the package. | ||
# | ||
# .dist-version - The distributed package version. This file is NEVER | ||
# checked in within the upstream repository, is auto- | ||
# generated, and is only found in the package distribution. | ||
# | ||
# .local-version - The current source code controlled package version. This | ||
# file is NEVER checked in within the upstream repository, | ||
# is auto-generated, and can always be found in both the | ||
# build tree and distribution. | ||
# | ||
# When present, the .local-version file is preferred first, the | ||
# .dist-version second, and the .default-version last. | ||
# | ||
|
||
VERSION_FILE := $(if $(wildcard $(builddir)/.local-version),$(builddir)/.local-version,$(if $(wildcard $(srcdir)/.dist-version),$(srcdir)/.dist-version,$(srcdir)/.default-version)) | ||
|
||
# | ||
# Override autotool's default notion of the package version variables. | ||
# This ensures that when we create a source distribution that the | ||
# version is always the current version, not the version when the | ||
# package was bootstrapped. | ||
# | ||
|
||
OPENTHREAD_VERSION ?= $(shell cat $(VERSION_FILE) 2> /dev/null) | ||
|
||
PACKAGE_VERSION = $(OPENTHREAD_VERSION) | ||
VERSION = $(PACKAGE_VERSION) | ||
|
||
# | ||
# check-file-.local-version | ||
# | ||
# Speculatively regenerate .local-version and check to see if it needs | ||
# to be updated. | ||
# | ||
# If OPENTHREAD_VERSION has been supplied anywhere other than in this file | ||
# (which is implicitly the contents of .local-version), then use that; | ||
# otherwise, attempt to generate it from the SCM system. | ||
# | ||
# This is called from $(call check-file,.local-version). | ||
# | ||
define check-file-.local-version | ||
if [ "$(origin OPENTHREAD_VERSION)" != "file" ]; then \ | ||
echo "$(OPENTHREAD_VERSION)" > "$(2)"; \ | ||
else \ | ||
$(abs_top_nlbuild_autotools_dir)/scripts/mkversion \ | ||
-b "$(OPENTHREAD_VERSION)" "$(top_srcdir)" \ | ||
> "$(2)"; \ | ||
fi | ||
endef | ||
|
||
# | ||
# check-file-.dist-version | ||
# | ||
# Speculatively regenerate .dist-version and check to see if it needs | ||
# to be updated. | ||
# | ||
# This is called from $(call check-file,.dist-version). | ||
# | ||
define check-file-.dist-version | ||
cat "$(1)" > "$(2)" | ||
endef | ||
|
||
# | ||
# A convenience target to allow package users to easily rerun the | ||
# package configuration according to the current configuration. | ||
# | ||
.PHONY: reconfigure | ||
reconfigure: $(builddir)/config.status | ||
$(AM_V_at)$(<) --recheck | ||
|
||
# | ||
# Version file regeneration rules. | ||
# | ||
.PHONY: force | ||
|
||
$(builddir)/.local-version: $(srcdir)/.default-version force | ||
|
||
$(distdir)/.dist-version: $(builddir)/.local-version force | ||
|
||
$(distdir)/.dist-version $(builddir)/.local-version: | ||
$(call check-file,$(@F)) | ||
|
||
dist distcheck: $(BUILT_SOURCES) | ||
|
||
dist-hook: $(distdir)/.dist-version | ||
|
||
# | ||
# Top-level convenience target for making a documentation-only | ||
# distribution whose results appear at the top level of the build tree | ||
# in the same fashion that the distribution would be for 'make dist'. | ||
# | ||
|
||
.PHONY: docdist | ||
docdist: $(BUILT_SOURCES) | ||
$(MAKE) -C doc docdistdir=$(abs_builddir) $(@) | ||
|
||
include $(abs_top_nlbuild_autotools_dir)/automake/post.am |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
OpenThread is an open source implementation of the Thread 1.0.1 Final Specification. | ||
The Thread 1.0.1 Final Specification is promulgated by the Thread Group. The Thread | ||
Group is a non-profit organization formed for the purposes of defining one or | ||
more specifications, best practices, reference architectures, implementation | ||
guidelines and certification programs to promote the availability of compliant | ||
implementations of the Thread protocol. Information on becoming a Member, including | ||
information about the benefits thereof, can be found at http://threadgroup.org. | ||
|
||
OpenThread is not affiliated with or endorsed by the Thread Group. Implementation | ||
of this OpenThread code does not assure compliance with the Thread 1.0.1 Final | ||
Specification and does not convey the right to identify any final product as Thread | ||
certified. Members of the Thread Group may hold patents and other intellectual | ||
property rights relating to the Thread 1.0.1 Final Specification, ownership and | ||
licenses of which are subject to the Thread Group’s IP Policies, and not this license. | ||
|
||
The included copyright to the OpenThread code is subject to the license in the | ||
LICENSE file, and all other rights and licenses are expressly reserved. | ||
No warranty or assurance is made with respect to additional rights that may be | ||
required to implement this code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<a href="https://github.com/openthread/openthread">![Logo](doc/images/openthread_logo.png)</a> | ||
|
||
[![Build Status](https://travis-ci.com/openthread/openthread.svg?token=s77bfgh3PmZjpphKXGGK&branch=master)](https://travis-ci.com/openthread/openthread) | ||
|
||
OpenThread is an open-source implementation of the [Thread](http://threadgroup.org/technology/ourtechnology) networking protocol. With OpenThread, Nest is making the technology used in Nest products more broadly available to accelerate the development of products for the connected home. | ||
|
||
The Thread specification defines an IPv6-based reliable, secure and low-power wireless device-to-device communication protocol for home applications. More information about Thread can be found on [threadgroup.org](http://www.threadgroup.org/). | ||
|
||
## Features | ||
- Highly portable: OS and platform agnostic, with a radio abstraction layer | ||
- Implements the End Device, Router, Leader & Border Router roles | ||
- Small memory footprint | ||
|
||
OpenThread implements all Thread networking layers, including IPv6, 6LoWPAN, IEEE 802.15.4 with MAC security, Mesh Link Establishment, and Mesh Routing. | ||
|
||
|
||
# Who is behind OpenThread | ||
|
||
![Logo](doc/images/openthread_contrib.png) | ||
|
||
Nest, along with ARM, Atmel, a subsidiary of Microchip Technology, Dialog Semiconductor, Qualcomm Technologies, Inc., a subsidiary of Qualcomm Incorporated and Texas Instruments Incorporated are contributing to the ongoing development of OpenThread. | ||
|
||
|
||
# Getting Started | ||
|
||
The easiest way to get started is to run the CLI example in `/examples/cli`. See the [CLI example README](examples/cli/README.md) for more details. | ||
|
||
|
||
## What's included | ||
|
||
In the repo you'll find the following directories and files | ||
|
||
File/Folder | Provides | ||
-------|-------- | ||
doc | Doxygen docs | ||
examples | Sample applications demonstrating various parts of OpenThread | ||
include | Includes header files for OpenThread API | ||
src | The core implementation of the Thread standard | ||
tests | Unit and Thread conformance tests | ||
third_party | Third-party code used by OpenThread | ||
|
||
|
||
# Getting Help | ||
|
||
Submit bugs and feature requests to [issue tracker](https://github.com/openthread/openthread/issues). Usage questions? Post questions to [Stack Overflow](http://stackoverflow.com/) using the [[openthread] tag](http://stackoverflow.com/questions/tagged/openthread). We also use Google Groups for discussion and announcements: | ||
|
||
* [openthread-announce](https://groups.google.com/forum/#!forum/openthread-announce) - subscribe for release notes and new updates on OpenThread | ||
* [openthread-users](https://groups.google.com/forum/#!forum/openthread-users) - the best place for users to discuss OpenThread and interact with the OpenThread team | ||
* [openthread-devel](https://groups.google.com/forum/#!forum/openthread-devel) - team members discuss the on-going development of OpenThread | ||
|
||
|
||
# Versioning | ||
|
||
OpenThread follows [the Semantic Versioning guidelines](http://semver.org/) for release cycle transparency and to maintain backwards compatibility. OpenThread's versioning is independent of the Thread protocol specification version but will clearly indicate which version of the specification it currently supports. | ||
|
||
|
||
# Contributing | ||
|
||
See the [CONTRIBUTING.md](CONTRIBUTING.md) file for more information. | ||
|
||
|
||
# License | ||
|
||
OpenThread is released under the [BSD 3-Clause license](LICENSE). | ||
See the [LICENSE](LICENSE) file for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright (c) 2016, Nest Labs, Inc. | ||
# All rights reserved. | ||
# | ||
# 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 of the copyright holder 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 HOLDER 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. | ||
# | ||
# Description: | ||
# This file is a trampoline script to the nlbuild-autotools | ||
# bootstrap script and augments it by providing the path to the | ||
# nlbuild-autotools repository for this project. | ||
# | ||
|
||
# Set this to the relative location of nlbuild-autotools to this script | ||
|
||
nlbuild_autotools_stem="third_party/nlbuild-autotools/repo" | ||
|
||
# Establish some key directories | ||
|
||
srcdir=`dirname ${0}` | ||
abs_srcdir=`pwd` | ||
abs_top_srcdir="${abs_srcdir}" | ||
|
||
exec ${srcdir}/${nlbuild_autotools_stem}/scripts/bootstrap -I "${abs_top_srcdir}/${nlbuild_autotools_stem}" $* |
Oops, something went wrong.