Commit Graph

605 Commits

Author SHA1 Message Date
Jonathan Hui a5c85169da Add arm-gcc54 to travis and -Wno-c++14-compat to CXXFLAGS. (#832) 2016-10-18 13:08:22 -07:00
Michael Aaron 76be95668a on OSX I had an issue running the sniffer after following the readme (#831)
* on OSX I had an issue running the sniffer after following the readme
due to dnet not being installed. This may be listed elsewhere in the repo,
but it's nice to have all installation dependencies for a tool listed in
the readme for the tool
2016-10-18 12:19:30 -07:00
Martin Turon 85aec8add0 Fix #838. Freeze version of scapy package. (#839) 2016-10-18 12:17:45 -07:00
Robert Lubos be73d98e0b CoAP: Implement CoAP client (#829)
* CoAP Client implementation

* CoAP update in MleRouter and AddressResolver

* Add CoAP client to Windows project files
2016-10-18 09:26:06 -07:00
Jonathan Hui 4538dafd3d Add Thread Certification 9.2.4 to automated test. (#823) 2016-10-17 17:26:58 -07:00
Abtin Keshavarzian 4e45fa5e44 Update the description/comment for OPENTHREAD_CONFIG_MAX_STATECHANGE_HANDLERS (#834) 2016-10-17 17:20:54 -07:00
Jonathan Hui 117ecaf579 Add Thread Certification 8.2.2 to automated test. (#824) 2016-10-17 10:18:19 -07:00
Jonathan Hui 6878c63faf Add Thread Certification 8.2.1 to automated test. (#822) 2016-10-17 09:18:26 -07:00
Jonathan Hui 1a4e884e5a Set the Key Source field for 802.15.4 Key ID Mode 2. (#821) 2016-10-17 09:17:43 -07:00
rongli aaf5a57ea2 Cli: update 'keysequence' to make keyswithguardtime configurable (#815)
* Cli: update 'keysequence' to make keyswithguardtime configurable
2016-10-16 22:49:31 -07:00
Lu Wang 8468ffdb77 Settings Driver (#775)
* Settings Driver
2016-10-16 21:54:10 -07:00
Martin Turon 3ea74a1977 ncp: Added sniffer host tool. (#773)
*     ncp: Added sniffer host tool.

    Split spinel-cli out into a general spinel python library module.
    Added sniffer.py tool that leverages the spinel library module.
    Added some initial unit tests of spinel.py module using MockStream.

    From openthread root:

    ./tools/spinel-cli/sniffer.py -c 11 -n 1 -u /dev/ttyUSB0 | wireshark -k -i -
2016-10-14 15:08:59 -07:00
Łukasz Duda b6ebabf2e4 Message: Add Clone method. (#804)
* Message: Add Clone method.

Packet cloning is done only inside ip6.cpp right now, but this method
might be useful for MPL and CoAP retransmissions in order to not repeat the same
code.
2016-10-14 09:37:26 -07:00
Abtin Keshavarzian 5dbf96833e Update otNewUdpMessage() to allow user to enable/disable layer 2 security (#812) 2016-10-14 09:35:32 -07:00
Nick Banks 86deb6e868 Platform Support for Dynamic Memory Allocation (#767)
* Add support for platform implementation of dynamic memory allocation.
2016-10-14 09:02:38 -07:00
pvanhorn ddd0704b76 Allow for multiple callers to otSetStateChangeCallback. (#811)
* Allow for multiple callers to otSetStateChangeCallback.
2016-10-13 17:32:16 -07:00
Robert Quattlebaum 9c252dbac7 ncp: Fix handling of FCS for PROP_STREAM_RAW (#809)
The way the FCS was handled previously was based on assumptions (Like
the `mLength` field of `RadioPacket` didn't include a CRC) that were incorrect.
This change fixes that issue and also simplifies how the protocol handles the
FCS bytes for `PROP_STREAM_RAW`.

This commit addresses #808.
2016-10-13 17:28:15 -07:00
Abtin Keshavarzian 35ddd1a200 openthread.h: Update the method names in comments/documentation (#807) 2016-10-13 12:54:37 -07:00
Jonathan Hui 9fdc9a8bfc Do not start DTLS session if no Joiner Router is found. (#806) 2016-10-13 12:53:57 -07:00
Nick Banks 3eff878691 Remove the group bit check for setting extended mac addresses. (#805) 2016-10-13 12:53:43 -07:00
Shu Chen 2153e51ce5 Add Leader ALOC feature support (#797)
* Add Leader ALOC feature support

* Avoid using leader aloc magic number
2016-10-13 08:45:34 -07:00
Łukasz Duda 04f13fef8b Trickle Timer: Allow other modules to set Imin equal to Imax (#802)
Currently, when TrickleTimer:Start method is called with same aIntervalMin
and aIntervalMax, the remainder used to calculate I is 0, which cause an
Arithmetic Error and crash of the program.
2016-10-13 06:23:00 -07:00
Jonathan Hui c28042ce97 Add Thread Certification 9.2.17 to automated test. (#786) 2016-10-12 20:41:11 -07:00
Nick Banks 4ef45a45e6 Minor updates to openthread API signatures (#799) 2016-10-12 14:28:19 -07:00
Robert Quattlebaum 104ca6d10d Cleanup error code usage. Avoid raising errors when value is unchanged. (#787)
This change is attempting to address two issues:

1.  Returning `kThreadError_Busy`, when `kThreadError_Already`,
    `kThreadError_InvalidState`, or even the lazy
    `kThreadError_Failed` would be more-appropriate/less-misleading.
2.  Setters returning an error when the value to be changed is already
    set to the requested value.

Number one hurts debuggability. Number two makes the code more fragile.
The cases where both intersect can be maddening.

This change replaces cases inappropriately returning
`kThreadError_Busy` with a better, more specific error code. It also
makes some "setter" functions (Including `otInterfaceUp()` and
`otThreadStart()`) return success if the value is already set.
2016-10-12 14:18:55 -07:00
Jonathan Hui 2d5c4c58f2 Only forward multicast messages when an MPL entry is available. (#800) 2016-10-12 14:17:09 -07:00
Jonathan Hui 0bafb5a08f Add Thread Certification 9.2.18 to automated test. (#785) 2016-10-12 11:28:29 -07:00
Nick Banks 4f20ac1fa1 Update Mac Backoff Delay Timings (#798)
* Update Mac constants related to back off logic to create more realistic timings of ~1 to ~10 ms per Mac frame.
2016-10-12 10:33:19 -07:00
Lu Wang 7fe4ee6d29 THCI: set active operational dataset (#793) 2016-10-12 09:25:52 -07:00
Krzysztof Loska 1a19689be6 Added Nordic Semiconductor as an author of OpenThread. (#796) 2016-10-12 09:21:58 -07:00
Shu Chen 87be717ad6 Include timestamp tlv in Child ID Response only when it is necessary (#794) 2016-10-12 09:21:28 -07:00
Nick Banks 80d3a3b8fb Don't Use Special IPv6 Addresses (#791)
* Replace 200*::/64 with 2001:2:0:*::/64
2016-10-11 17:40:15 -07:00
Xiao Ma 6a433b971c Remove ROUTER_SELECTION_JITTER setting for ED/SED in cert scripts. (#792) 2016-10-11 09:15:57 -07:00
Jonathan Hui 04665429f9 Fix typo for pending channel in 9.2.7. (#789) 2016-10-11 09:15:13 -07:00
Robert Quattlebaum bc8224e0d5 ncp: Rename MAC_FILTER_MODE to MAC_PROMISCUOUS_MODE (#788)
After some internal discussion, it was decided to rename this property to
be more in line with the usage of OpenThread and 802.15.4.
2016-10-11 09:14:42 -07:00
Shu Chen 6bbec68c8b Set active timestamp to 0 if there is no valid active operational dataset. (#782) 2016-10-11 09:09:05 -07:00
Jonathan Hui 249774eccf Add Thread Certification 5.2.6 to automated test. (#784) 2016-10-11 09:07:51 -07:00
Jonathan Hui 0754ac7ea3 Fix typos in README. (#783) 2016-10-10 10:58:12 -07:00
Jonathan Hui 2f9f0d697c Update path in README. (#781) 2016-10-10 10:58:02 -07:00
Jonathan Hui a15a1ba687 Add Thread Certification 9.2.16 to automated test. (#770) 2016-10-10 10:42:21 -07:00
Jonathan Hui 7b0280bbde Add Thread Certification 9.2.15 to automated test. (#769) 2016-10-10 09:46:07 -07:00
Jonathan Hui f3ef4046db Steering data. (#743) 2016-10-10 09:40:08 -07:00
Shu Chen 10f9204da2 THCI: start commissioner before adding joiner's data (#777) 2016-10-09 12:26:46 -07:00
Xiao Ma 75e7882e87 THCI: update thci with allowCommission() and setActiveTimestamp(). (#776) 2016-10-08 22:29:56 -07:00
Xiao Ma fe58e45a5e Implement MGMT_DATASET_CHANGED. (#763) 2016-10-08 22:29:02 -07:00
Lu Wang 59f4ec8ae8 CC2538 Flash Driver (#772)
* CC2538 flash driver
2016-10-08 22:26:46 -07:00
Jonathan Hui 3ebef251eb Radio API: set short address, extended address, and panid must not fail. (#774) 2016-10-08 18:49:23 -07:00
Jonathan Hui 656c919c71 Fix bug in Thread Certification 6.1.3 automated test. (#771) 2016-10-07 16:10:31 -07:00
Jonathan Hui aeee0b9b1a Return error if message buffer allocation fails. (#768) 2016-10-07 15:51:20 -07:00
Jonathan Hui 176325b5a6 Add Thread Certification 9.2.11 to automated test. (#764) 2016-10-07 15:50:09 -07:00