Commit Graph

89 Commits

Author SHA1 Message Date
Adam Eliot e40947eb6f Add separate counters for unicast and broadcast (#994)
* Added tx counts for unicast vs broadcast packets

* Added counters for Rx broadcast vs unicast packets
2016-11-22 08:41:27 -08:00
Xiao Ma 78047488b6 THCI: enhance commissioner session id. (#986) 2016-11-17 18:36:39 +08:00
Jonathan Hui d44f39769f Add ability to retrieve message and buffer counts for message queues. (#940) 2016-11-07 22:13:15 -08:00
Nick Banks 74a95f042d Windows API DLL (#882)
* VS Solution files and minor fixes.

* Move Tasklet into platform include file

* Refactor data path APIs into openthread-ip6.h
2016-11-04 09:28:17 -07:00
Łukasz Duda bb97cbee17 IP: Add API to subscribe/unsubscribe to multicast addresses. (#899)
* IP: Add API to subscribe/unsubscribe to multicast addresses.

* CLI: Add commands to handle multicast addresses.
2016-11-02 11:24:35 -07:00
rongli cec41045db Drop duplicated packet directly (#911) 2016-11-01 08:53:55 -07:00
rongli 3001fc689c DHCP: implement simple Server/Client (solicit/reply) (#884)
* DHCP implementation
- implementation Dhcp client/server (solicit/reply)
- two build options --enable-dhcp6-server  --enable-dhcp6-client (default disable)
- add Cert_5_3_09_AddressQuery for Dhcp Client/Server test in travis
2016-10-31 21:38:56 -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
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
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
Jonathan Hui c24b7cfaed Add Thread Certification 9.2.7 to automated test. (#750) 2016-10-05 10:02:08 -07:00
Nick Banks 79d99e7a91 Refactor OpenThread Global Variables into a Single Context Structure (#357)
* Refactor OpenThread to contain all global/static variables in a single context structure.
2016-10-04 15:23:25 -07:00
Jonathan Hui 671964c2d4 MLE Announce. (#736) 2016-10-04 10:26:30 -07:00
Jonathan Hui cb04fe8391 Commissioner joiner list. (#729) 2016-10-03 08:54:54 -07:00
Hubert Miś aeba71b1a1 Pr/slaac utility (#698)
* Provide utility for IPv6 SLAAC (#651)

* Semantically Opaque Interface Identifier with IPv6 SLAAC (#651)
2016-09-29 08:37:10 -07:00
Martin Turon 625e4adde4 spinel-cli: Add router timing commands. (#705)
Adds support for routerselectionjitter, routerdowngradethreshold, and masterkey to fixe the slew of ncp-sim failures from recent thread-cert test updates.  Also added missing otInstance parameter to the new APIs..

Added otInstance to new APIs.
2016-09-27 18:19:47 -07:00
Xiao Ma a74e0496b8 Delay a random jitter period prior to request a Router ID for REED. (#554)
* Delay a random jitter period prior to request a Router ID for REED.

* Update Cert_5_1_09_REEDAttachConnectivity.py to pass Travis check.

* Add CLI to set/get the ROUTER_SELECTION_JITTER and update Certification scripts.

  - add 'posix-ncp' to allow failure list in .travis.yml.
2016-09-26 10:03:09 -07:00
Shu Chen d71939d331 Add Joiner UDP Port feature (#676)
* Add Joiner UDP Port feature

  - Add 'joinerport' cli for configuration

  - Include Joiner UDP Port TLV in discovery response message

  - Joiner use it as destination port during commissioning process
2016-09-25 20:50:28 -07:00
Buke Po d283c29f23 Support network diagnostic feature. (#652)
* support network diagnostic

* add network diagnostic THCI implementation
2016-09-23 21:06:08 -07:00
Jonathan Hui 61dcf6cf58 Fix bounds checks in cli. (#682) 2016-09-23 21:01:28 -07:00
Jonathan Hui 90457e535f Fix compiler warnings. (#681) 2016-09-23 15:44:53 -07:00
Lu Wang 9b97c1c7d0 Add support for MGMT_COMMISSIONER_GET and MGMT_COMMISSIONER_SET (#634)
* - Add support for MGMT_COMMISSIONER_GET and MGMT_COMMISSIONER_SET
- Add CLI for sending this two commands

* - Move MGMT_COMMISSIONER_GET and MGMT_COMMISSIONER_SET to MeshCoP::commissioner
2016-09-23 09:38:21 -07:00
Łukasz Duda c1bffba7dc CLI: Router and child table (#662)
* CLI: Add router and child table commands.

This commit fixes issue #626.

* CLI: Add documentation to router and child table.

This commit fixes issue #626.
2016-09-22 09:43:11 -07:00
Jonathan Hui b26e022491 Implement Provisioning URL TLV. (#646) 2016-09-21 10:51:09 -07:00
Jonathan Hui 03fea69c1b Energy scan. (#606) 2016-09-16 16:04:01 -07:00
Shu Chen 0d54e51ebe Add Hash MAC address get cli (#611)
- move Hash Mac address calculation from joiner.cpp to mac.cpp

- add hashmacaddr cli
2016-09-16 05:43:44 -07:00
Jonathan Hui 9393f468bd Add otGetFactoryAssignedIeeeEui64() to API. (#592)
- Change cli.cpp to use OpenThread API rather than platform API.
2016-09-14 12:01:09 -07:00
Xiao Ma a642297520 Implement ROUTER_DOWNGRADE_THRESHOLD. (#588) 2016-09-14 09:25:56 -07:00
Jonathan Hui ef2a1a0c9d When commissioning, set ext addr based on factory-assigned IEEE EUI-64. (#584)
- Add CLI for printing the factory-assigned IEEE EUI-64.
- Add otPlatRadioGetIeeeEui64() API.
2016-09-13 23:37:40 -07:00
Jonathan Hui 44350178ad Change copyright to The OpenThread Authors. (#583)
- Add a top-level file named AUTHORS which identifies the copyright
holders of the project.
2016-09-13 15:57:11 -07:00
Nick Banks 6d2dfa5bb0 Support #define to overwrite what openthread-config file to use, since Windows does support autoconf. (#578) 2016-09-13 09:27:11 -07:00
Jonathan Hui c44c20ef66 Implement PAN ID Query/Conflict. (#556) 2016-09-13 09:18:05 -07:00
Nick Banks ffbe65c6dd otInstance Declarations (#473)
* Add otInstance type declaration and update ot APIs to take it as input.
2016-09-12 14:29:43 -07:00
Jonathan Hui a78f91ebdf Configure PSKd as part of starting the commissioner/joiner role. (#547) 2016-09-08 20:33:26 -07:00
Jonathan Hui 563685e187 travis: enable code coverage reporting. (#516) 2016-09-08 14:14:25 -07:00
Jonathan Hui 7c2b818d2e Thread Commissioning. (#399) 2016-09-08 10:23:11 -07:00
Jonathan Hui e22c123904 Remove globals from message.cpp. 2016-09-07 13:30:22 -07:00
Jonathan Hui 32b6d343c4 Remove globals from timer.cpp. 2016-09-07 13:30:22 -07:00
Jonathan Hui 2029ef62eb Remove globals from icmp6.cpp. 2016-09-07 13:30:22 -07:00
Lu Wang 1e9d3c1dbf Keep input master key checking consistently (#501) 2016-09-05 20:21:05 -07:00
Nick Banks 511ade5293 otAddUnicastAddress Doesn't Hold onto External Pointers (#504)
* Modify ot*UnicastAddress functions to use internal memory instead of holding onto an external memory address.
2016-09-02 16:17:08 -07:00
Jonathan Hui 027e009005 Simplify ICMPv6 Echo Request/Reply implementation. (#481)
- Only support a single ICMPv6 Echo Reply handler.
- Remove large static ICMPv6 Echo Request buffer.
2016-08-29 09:31:26 -07:00
Nick Banks 62f3188081 Dynamic Max Children (#462)
* Add support for dynamically adjusting the maximum number of allowed children.
* Update cli to support max number of children.
2016-08-26 08:42:06 -07:00
Lu Wang fcff3cb018 Add check for CLI argument number (#465)
* Add check for CLI argument number
2016-08-25 22:26:23 -07:00
Jonathan Hui 70bd6af3b8 Fix bugs in retrieving child/router info using an RLOC16. (#475) 2016-08-25 21:09:01 -07:00
Marcin K Szczodrak 20014c72bf add cli promiscuous (#445) 2016-08-22 14:08:45 -07:00
Jonathan Hui ff3aa0c0f7 Do not allow a device to become a leader when the router role is disabled. (#439) 2016-08-19 13:11:51 -07:00
Nick Banks 47dcec0bac Update all callbacks to support a client supplied context pointer. (#425)
* Update all callbacks to support a client supplied context pointer.
2016-08-19 11:38:11 -07:00
Jonathan Hui 139e85f781 Make client responsible for configuring IPv6 addresses. (#410)
* OpenThread no longer automatically configures IPv6 addresses based on network data.
* Added IPv6 address configuration to CLI to support certification tests.
* Added notification to indicate when the Thread Network Data is updated.
* Added otIp6PrefixMatch API to compute prefix match.
2016-08-17 16:11:46 -07:00
rongli a4d3d801bf cli: route fix (#401) 2016-08-17 08:37:35 -07:00