Commit Graph

652 Commits

Author SHA1 Message Date
Nick Banks 7edada12e4 Add option for Radio layer to support retries and CSMA backoff logic. (#896)
* Add option for Radio layer to support tries and CSMA backoff logic.
2016-10-27 19:39:04 -07:00
Abtin Keshavarzian c10aea1e18 Udp6::RemoveSocket(): Fix linked-list remove socket (#897) 2016-10-27 19:33:50 -07:00
Nick Banks 17836de1fe Add a README.md for Windows (#895)
* Initial readme changes

* Update image
2016-10-27 13:58:55 -07:00
Fabrice Fontaine b385229ece Do not build tools if --disable-tools is set (#813)
Do not build tools if --disable-tools is set
2016-10-27 12:55:21 -07:00
Shu Chen f3ebcff818 Add 'factoryreset' cli (#892)
* add 'factoryreset' cli to delete all stored settings and then reset

* use 'factoryreset' in THCI reset API to ensure that there is no pre-settings in DUT before running any test
2016-10-27 11:08:39 -07:00
Jonathan Hui f0a5239a59 Clean up MessageInfo class. (#888) 2016-10-27 09:42:48 -07:00
Łukasz Duda fbbd26d24b 6LOWPAN: Add support to compression and decompression of IP-in-IP. (#887) 2016-10-26 13:13:53 -07:00
Jonathan Hui 7d81a632ae Insert MPL Option in host-generated realm-local mcast messages. (#874) 2016-10-26 13:05:35 -07:00
Robert Lubos cc32575367 Utilize CoAP client in commissioning (#878)
* Use Message::Clone method in CoAP Client

* Use CoAP Client in commissioner

* Use CoAP client for Joiner Entrust.
2016-10-26 09:10:17 -07:00
Xiao Ma 4caec455c3 Optimizate orhpaned MLE Announce message. (#886) 2016-10-26 09:08:43 -07:00
Jonathan Hui cf2a74a209 Do not regenerate frame when retransmitting. (#883) 2016-10-26 09:06:42 -07:00
Buke Po d4e112dc3f THCI support ser2net devices (#885)
* THCI support ser2net

* use readline for commissioner log
2016-10-25 22:30:31 -07:00
Nick Banks f600840499 Merge Windows Driver Code (#817)
This is the first of the Windows implementation code that will be merged. This is only the driver code.

Also note the updates to the appveyor configuration. It now builds, installs and queries the status of driver directly on the build machine. Then it builds an 'artifact' which is essentially the binaries packaged up.
2016-10-25 13:38:29 -07:00
Shu Chen b6adaaf758 Delay a little longer after starting sim node (#879)
- To make travis check more stable
2016-10-25 10:50:10 -07:00
Shu Chen 1365d80749 Unify settings block length with type 'uint16_t' (#877) 2016-10-25 08:43:51 -07:00
Jonathan Hui dee72c99a3 Disable receiver when changing the channel config. (#873) 2016-10-25 08:42:11 -07:00
Shu Chen 46f920cf6a Dataset storage (#866)
* Store active dataset and pending dataset in non-volatile memory.

  * Retrieve active dataset and pending dataset from non-volatile memory after each reboot.

  * Leader will generate the active dataset if it is not initialized.

  * Clear pending dataset after it replaces active dataset.

  * Create different pseudo flash files for posix nodes.
2016-10-24 22:13:23 -07:00
Buke Po 82ab677049 Support GRL harness release v27 (#871)
* support ser2net and add some non-core feature test cases

* add missing non-core feature test cases
2016-10-24 17:46:49 -07:00
Robert Quattlebaum 82fa0b33f9 spinel: Make assert logging opt-in. (#876)
This change makes assert logging an opt-in proposition. By default,
this means that spinel will not make any calls to `printf` or `fprintf`
when it hits a non-fatal runtime assertion (like an input validation
failure).

This was causing some problems on some platforms.
2016-10-24 17:45:38 -07:00
Robert Quattlebaum 72fffdeff2 ncp: Allow underspecification of remove command for IPV6_ADDRESS_TABLE. (#875)
For removal operations, Spinel allows you to underspecify the entry
in question by omitting any fields after the "key" field, since they
would be ignored anyway. Without this change, underspecified IPV6 address
removals will fail.
2016-10-24 14:56:01 -07:00
pvanhorn 405b89f955 Allow message pool management by platform code. (#858)
* allow message pool management by platform code.
2016-10-24 14:45:19 -07:00
Abtin Keshavarzian d6fa21e368 Adding C APIs for crypto opereation HMAC and AES-CCM (#868) 2016-10-24 12:08:53 -07:00
Łukasz Duda 78d4b678e3 MPL: Introduce multicast forwarding. (#827)
* Message: Add a new optional parameter to Clone method.

* MPL: Introduce MPL Forwarding

This commit introduces MPL Forwarding for Routers.
All references to MPL Seed have been replaced with MPL Seed Id.
2016-10-24 11:34:15 -07:00
Nick Banks ad39a59ff9 Support Different Number of Max Children (#872)
* Add support for setting child max, for platforms that define a different maximum number of supported children.
2016-10-24 10:43:10 -07:00
Jonathan Hui ffaade05c6 Update multicast tests to expect multiple ping replies. (#864) 2016-10-24 09:13:38 -07:00
Jonathan Hui a291d8dcb0 Print shorts as hex values. (#863) 2016-10-24 09:01:42 -07:00
Abtin Keshavarzian 275d22d8d7 Ncp: Fix join existing network feature (#865)
This commit changes the NcpBase and join-existing-network feature
by ensuring that the flag `mRequireJoinExistingNetwork` is not
cleared when role changes to detached or disabled. This fixes the
issue where a "join" command could seemingly succeed with device
forming its own partition (e.g, if a wrong network key is used).
2016-10-21 21:55:45 -07:00
Xiao Ma 919e902e18 THCI: clean up bugs found during testing and detected by pylint. (#861) 2016-10-21 21:52:44 -07:00
Nick Banks c2238638bd Add support for calls to otBecomeDetached via NCP. (#856) 2016-10-21 15:09:48 -07:00
Robert Lubos e39c23d1e4 Utilize CoAP client in OpenThread (#851) 2016-10-21 15:06:36 -07:00
Łukasz Duda 746ab67e4d Message: Allow prepend method to allocate additional memory for reserved space. (#862) 2016-10-21 15:00:31 -07:00
Jonathan Hui 35e7fbf733 Update otLog*() to not require line separators. (#854) 2016-10-20 19:55:12 -07:00
Martin Turon 5346d81669 spinel-cli: fix corner case in hdlc parser. (#859) 2016-10-20 19:52:09 -07:00
Jonathan Hui 24d4eec0a5 Validate received TLVs. (#848) 2016-10-20 18:59:40 -07:00
Abtin Keshavarzian dcc527cf23 mle.cpp: Ensure to init the mLeaderAloc and set it with correct prefix len (#857)
This commit fixes an issue with the unicast address `mLeaderAloc`
to ensure that it is initialized properly and its prefix length is
correctly configured.
2016-10-20 17:56:37 -07:00
Jonathan Hui cc5f48d66a Fix Server Data Notification IPv6 source address to RLOC. (#860) 2016-10-20 17:17:42 -07:00
Jonathan Hui 7824a68225 Fix bug in reading the Connectivity TLV Parent Priority field. (#850) 2016-10-20 12:26:35 -07:00
Jonathan Hui 871a1565d8 Init Timestamp within Active/PendingTimestamp TLVs. (#849) 2016-10-20 12:26:09 -07:00
Nick Banks 87211f4168 Fixes issues that cause test failures on Windows (#819)
* Fixes issues that cause test failures on Windows
2016-10-20 12:23:45 -07:00
Xiao Ma 27327a63a1 Ensure thread device has synced with latest Dataset before sending MLE Announce. (#845) 2016-10-20 10:40:10 -07:00
Nick Banks 7a19067515 Some Logging Cleanup (#810)
* Remove unnecessary WPP definition.
* Various other small fixes.
2016-10-20 10:30:53 -07:00
Shu Chen 606b6e5900 Refine settings driver (#847)
- write the actual setting's length into flash

  - add getAlignLength() for address alignment
2016-10-19 20:36:10 -07:00
Xiao Ma 8506dd0451 THCI: update thci with MGMT_ANNOUNCE_BEGIN() method. (#846) 2016-10-19 10:04:12 -07:00
Buke Po 87f9cb036e prevent RxBuffer from overflowing (#843) 2016-10-18 21:59:01 -07:00
Lu Wang 85db896df9 Use Leader ALOC if it is commissioner (#836)
* Use Leader ALOC if it is commissioner
2016-10-18 18:41:00 -07:00
pvanhorn 05661bb26a Create a mechanism to modify the beacon version field. (#841)
* Create a mechanism to modify the beacon version field when the Join flag is set.
2016-10-18 18:36:58 -07:00
pvanhorn 81738bd8af Remove Netif name and rely on enumerated Interface Id's for netif. (#833)
* Remove Netif name and rely on enumerated Interface Id's for netif.
2016-10-18 13:56:50 -07:00
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