Commit Graph

2526 Commits

Author SHA1 Message Date
Yakun Xu 677d49b42e [posix-app] platform UDP (#3070)
This commit defines a set of platform APIs to integrate UDP layer of
OpenThread with that of the platform.

With this commit, services and applications developed upon OpenThread can
also be accessed through platform's own network interface, e.g. socket() on
POSIX.
thread-reference-20180926
2018-10-14 11:08:35 -07:00
Yakun Xu 8e7dba9e4a [posix-app] fix set radio spinel speed (#3157) 2018-10-14 10:59:23 -07:00
Abtin Keshavarzian 12fab0b98e [posix-app] exit on untimely RCP crash/reset (#3154) 2018-10-14 06:38:21 -07:00
Stuart Longland 7f6ecce258 [spinel] do not use glibc-internal header sys/cdefs.h (#3153)
The `sys/cdefs.h` is an internal header of `glibc` and is not meant to
be used by user code.  The macros needed from it can be trivially
implemented where required, relying on this header being present
excludes OpenThread from being used on systems where `glibc` is not the
used C library (e.g. OpenWRT, where `uclibc` or `musl` is standard).

https://wiki.musl-libc.org/faq.html#Q:-When-compiling-something-against-musl,-I-get-error-messages-about-%3Ccode%3Esys/cdefs.h%3C/code%3E
2018-10-14 06:36:26 -07:00
Abtin Keshavarzian 9bf8d8169a [mesh-forwarder] add log for retry attempts of indirect tx to sleepy nodes (#3151) 2018-10-12 22:19:06 -07:00
Yakun Xu 3ef4641b36 [posix-app] verify radio capabilities (#3148) 2018-10-12 22:18:20 -07:00
Abtin Keshavarzian 3c88ba28fb [docs] specify seconds as the unit for child timeout value (#3145) 2018-10-12 22:16:36 -07:00
rongli 4c470d7eea [doc] add note for 'parent' command (#3142) 2018-10-12 22:16:16 -07:00
Jonathan Hui 868934b114 [dtls] include server only with commissioner or coaps (#3139) 2018-10-12 22:13:08 -07:00
Yakun Xu 98457ea65e [posix-app] always reset radio when init (#3149) 2018-10-12 13:19:08 -07:00
Jonathan Hui d64b889f52 [travis] add python3 to continuous integration (#3146) 2018-10-12 11:10:18 -07:00
Jonathan Hui 22dd0e0f7d [tests] add python3 support (#3146) 2018-10-12 11:10:18 -07:00
Jing a2865b57a2 [thci] fix channel mask format issue in wpanctl commissioner command (#3150) 2018-10-12 10:53:21 -07:00
Abtin Keshavarzian e6df05b7eb [posix-app] check spinel version of RCP from RaioSpinel::Init() (#3141) 2018-10-12 10:41:17 -07:00
Abtin Keshavarzian 7c8a37263b [posix-app] get RCP (NCP in radio mode) version (#3140)
This commit contains the following changes:

- It adds `otPlatRadioGetVersionString()` as an optional radio
  platform API. If the radio platform does not implement this
  function, OpenThread core provides a default weak implementation
  of this function which return the OpenThread version.

- A public OpenThread API `otGetRadioVersionString()` is added which
  provides the radio version string.

- POSIX App is updated to get the version from its RCP and provide
  `otPlatRadioGetVersionString()`

- A new spinel capability `SPINEL_CAP_POSIX_APP` is added which
  corresponds to `ENABLE_POSIX_APP` configuration.

- A new spinel property `SPINEL_PROP_RCP_VERSION` (only available
  in POSIX_APP) is added which gets the RCP version.
2018-10-12 10:40:57 -07:00
Yakun Xu 2457aa1864 [posix-app] remove dependency on stty (#3138) 2018-10-12 10:39:14 -07:00
Abtin Keshavarzian 467ab24e9b [mesh-forwarder] update indirect message logs (#3135)
This commit makes the following changes in `MeshForwarder`:

- It separates the logging of sent direct and indirect messages,
  ensuring that for indirect messages the status (success/failure)
  is logged after all retry attempts.

- It updates the log message (status of transmission) for a larger
  message requiring fragmentation and multiple frame transmissions
  when `CONFIG_DROP_MESSAGE_ON_FRAGMENT_TX_FAILURE` is not enabled.

- It fixes managing of `IpCounters` to only account for messages
  with type `kTypeIp6`.
2018-10-11 10:07:11 -07:00
Jonathan Hui 739842d168 [travis] update to gcc-arm-none-eabi-7-2018-q2-update (#3134) 2018-10-11 10:06:11 -07:00
Yakun Xu 9ae76c1c67 [core] remove dependency on libstdc++ (#3130) 2018-10-11 10:05:51 -07:00
Zhanglong Xia 8e35bf1db8 [qos] reverse message priority level values (#3132) 2018-10-10 23:06:33 -07:00
Abtin Keshavarzian db3aa113cb [toranj] test-case to check child mode change and parent reset recovery (#3129) 2018-10-10 12:43:13 -07:00
Abtin Keshavarzian c5d611a366 [mle] save child info in settings on mode or timeout change (#3129)
This commit changes `MleRouter::HandleChildUpdateRequest()`:

- If the child entry is modified (i.e., timeout value or
  device mode changes) on an already attached child, the child
  info is updated and saved in the non-volatile settings.
  This ensures that after a parent reset the child can be
  recovered correctly.

- If the "Child Update Request" causes a mode change from rx-on
  to sleepy on a child in `kStateValid` (already attached), the
  source match controller is set to perform source address
  matching on the short address.

- This commit also adds a log to indicate mode change of a
  child.
2018-10-10 12:43:13 -07:00
Jeff Bumgardner e3a82139e3 [nrf52840] fix typo in log parameter (#3136) 2018-10-09 14:50:38 -07:00
Yakun Xu cddfda34cc [posix-app] map log level with syslog (#3133) 2018-10-09 11:15:00 -07:00
Yakun Xu 12171a1270 [meshcop] do not set joiner port in constructor (#3131) 2018-10-09 11:14:00 -07:00
Yakun Xu 2af44beb74 [posix-app] simplify saving settings (#3108) 2018-10-09 11:12:56 -07:00
rongli 5db4b0e295 [core] update first parent request with only R flag during downgrade (#3084)
This commit distinguishes the attach same process during downgrade from
the one caused by losing connectivity as for the former downgrade
scenario, there must be enough active routers to provide connectivity,
and additional benefits is to avoid the impact of possible flooding parent
responses if there are lots of REEDs in large scale thread network.
2018-10-09 10:55:51 -07:00
Jonathan Hui 2dea42cea6 [dhcp6] add dhcp6 server support to NCP (#3128) 2018-10-08 15:42:11 -07:00
Abtin Keshavarzian 461b1aec64 [toranj] adding test-026 for addition/removal of SLAAC IPv6 address (#3111) 2018-10-08 15:41:46 -07:00
Jonathan Hui 6282fcdeb0 [dtls] remove unnecessary member variable mClient (#3127) 2018-10-08 11:04:49 -07:00
Jonathan Hui a5dc13e3be [mbedtls] simplify config file (#3126) 2018-10-08 09:24:43 -07:00
Yakun Xu 92b9746787 [cli] fix initializing coap secure response (#3125) 2018-10-08 09:24:11 -07:00
Jonathan Hui b213628fd6 [travis] update to clang-6.0 (#3122) 2018-10-08 09:23:47 -07:00
Jonathan Hui 2f01fcc8d2 [configure] fix typo (#3121) 2018-10-08 09:23:36 -07:00
Abtin Keshavarzian ad3ea71c59 [posix-app] rename global variable to gNodeId (#3118)
This commit renames `NODE_ID` to `gNodeId` in posix app and  posix
platform example code. It also ensures to use correct encoding (byte
order) to calculate the `gNodeId` (as `uint64_t`) in posix app.
2018-10-08 09:23:13 -07:00
Abtin Keshavarzian 67f3880165 [spinel] add and use new capability NET_THREAD_1_1 (#3124) 2018-10-05 00:59:16 -07:00
Yakun Xu 3ac958441e [meshcop] add commissioner aloc (#3123) 2018-10-05 00:58:19 -07:00
Abtin Keshavarzian 94ac42eec9 [docs] fixing typos in comments/docs (#3120) 2018-10-05 00:56:55 -07:00
Abtin Keshavarzian abe64591c7 [posix-app] update the logging implementation (#3119) 2018-10-05 00:56:26 -07:00
Abtin Keshavarzian b8cfaa3afa [posix-app] remove unused global variables in system.c (#3117) 2018-10-03 23:22:35 -07:00
Abtin Keshavarzian 0c72bc426c [posix-app] remove unused debug_uart source file (#3115) 2018-10-03 23:21:53 -07:00
Abtin Keshavarzian d640d4a7f9 [link-raw] move the LinkRaw implementation to core from api folder (#3114) 2018-10-03 23:21:12 -07:00
rongli 97aafadf2c [thci] fix warning when set downgrade threshold for ncp device (#3113) 2018-10-03 23:20:24 -07:00
Jonathan Hui 1b200be545 [thci] fix IPv6 prefix format (#3116) 2018-10-02 23:12:38 -07:00
rongli 9f55322d36 [thci] fix preferred flag when config border router (#3112) 2018-10-02 02:34:58 -07:00
Jing a97b0c02af [thci] wpanctl thci firmeware validation and modify getGUA according to GRL change (#3106) 2018-10-01 23:52:06 -07:00
Jeff Bumgardner 3b3cca230a [docs] minor Doxygen fixes (#3110) 2018-10-01 23:13:41 -07:00
Jeff Bumgardner 1c9ddd8c15 [docs] update Windows 10 README (#3107) 2018-09-28 13:51:49 -07:00
Jonathan Hui 1ba69deb30 [coaps] add functional tests for psk and x509 (#3096) 2018-09-27 15:15:08 -07:00
Jonathan Hui 696a9441a9 [coaps] include coaps in make dist (#3096) 2018-09-27 15:15:08 -07:00