Commit Graph

524 Commits

Author SHA1 Message Date
Yakun Xu 8dcdc2cf31 [meshcop] border agent of native commissioner (#3535)
This commit enables a node serve as the border agent of native commissioner
by adding the border agent UDP port to unsecure port when the security
policy allows.

To fully test verify this commit, we need a native commissioner, which I
will submit a separate commit to enable that.
2019-01-31 08:48:27 -08:00
Yakun Xu 504331eadd [mac] remove mDidTx from otRadioFrame (#3520)
mDidTx indicates whether a frame is received or transmitted, which is
only useful for capturing packets. This commit removes this field, and makes
this flag an argument to the pcap callback.
2019-01-28 12:31:15 -08:00
Yakun Xu 7789b90f23 [android] add missing OPENTHREAD_ENABLE_POSIX_APP (#3519) 2019-01-28 11:28:29 -08:00
Jonathan Hui f9659b3733 [router-table] add arg bounds check to Release() (#3521) 2019-01-28 08:38:42 -08:00
Abtin Keshavarzian 6d0bce85a0 [thread-netif] change Up()/Down() to void (no return) (#3513) 2019-01-25 08:37:59 -08:00
Yakun Xu 5777e017ac [cli] refine CLI APIs (#3501) 2019-01-24 18:19:50 -08:00
Abtin Keshavarzian 0ac326ea57 [mac] update "out of band tx" to check current operation state (#3461)
This commit changes the `SendOutOfBandFrameRequest()` implementation
to check `mOperation` and `mPending<>` state variables to determine
if MAC layer is still busy with a previous OOB tx request (instead of
using the `mOobFrame` pointer variable). This change makes the OOB tx
implementation behave similarly to other APIs (e.g., `ActiveScan()`
or `SendFrameRequest()`). This commit also enhances the documentation
for the OOB Send APIs in header files.
2019-01-24 13:56:19 -08:00
Jonathan Hui c2a10ec446 [ip6] only allow external mcast addrs when iface is up (#3504) 2019-01-24 09:04:13 -08:00
Jeff Bumgardner 4bc819c307 [docs] Doxygen tag updates (#3496) 2019-01-23 14:28:40 -08:00
Yakun Xu f40f49ff32 [dhcp] remove dhcp server api (#3476) 2019-01-18 11:34:40 -08:00
Yakun Xu d57b747c98 [udp] expose UDP receiver API (#3477) 2019-01-18 06:50:39 -08:00
Kamil Sroka 57a0fda5da [sntp] fix Keil build with SNTP_CLIENT=1 (#3460) 2019-01-16 00:17:32 -08:00
Yakun Xu 5eee323b8d [coap] process CoAP header in message (#3419)
This commit refines Coap::Header into Coap::Message to avoid declaring
the big Coap::Header in stack which was causing problems in low-memory
systems such as CC2538.

A UDP reserves 56 bytes by default, which will not be used before an
outbound message goes down to transport layer and after an inbound
message is delievered to CoAP agent. To get better performance, this commit
utilizes these reserved bytes of cache basic header of CoAP message
including CoAP version, code, message ID and token. These cached data
are parsed when CoAP agent receives a CoAP message and are dumped into
the correct place of a CoAP Message before sending by lower layer.

To make sure there is enough reserved bytes for an inbound message, This
commit removes headers in UDP layer before delivering a ot::Message to
handlers.
2019-01-15 05:00:21 -08:00
Yakun Xu 0f4bae97e9 [message] add const to read APIs (#3458) 2019-01-14 13:53:20 -08:00
Jonathan Hui dfd2b9b032 [api] fix typos (#3431) 2019-01-07 09:03:55 -08:00
Abtin Keshavarzian 42c46368f1 [docs] fix typos in comments (#3417) 2019-01-02 10:24:08 -08:00
rongli 328239878d [data-poll-manager] check user-specified poll period (#3401) 2018-12-27 22:35:57 -08:00
Jeff Bumgardner 782597fe1a [docs] Doxygen fix and efr32 README update (#3393) 2018-12-21 09:23:38 -08:00
Zhanglong Xia 19f2533aff [qos] handle NCP messages based on the priority of the message (#3318) 2018-12-19 13:55:26 -08:00
Yakun Xu de63012c9e [dhcp6-client] remove dhcp6 client api (#3287) 2018-12-12 09:58:15 -08:00
Yakun Xu c281f284ff [cli] add an API to write string to UART (#3365) 2018-12-11 22:00:30 -08:00
Zhanglong Xia c3a0898e74 [mle] simplify the channel mask (#3349) 2018-12-10 11:42:53 -08:00
Jonathan Hui 10897d3e97 [link] move otLinkSetShortAddress() decl to link_raw.h (#3348) 2018-12-05 05:49:13 -08:00
rongli 1253becb72 [meshcop] support operational dataset operations for MTD (#3339)
- This commit unties operational dataset operations from `OPENTHREAD_FTD` option.
- This commit also updates THCI for MTD certification
2018-12-03 21:28:09 -08:00
Yakun Xu 22d6d1abf0 [android] correct version on android (#3340) 2018-12-03 09:24:22 -08:00
Stuart Longland fac323d548 [coap] update the Content-Format enumeration (#3316)
Since RFC-7252 a number of additions have been made to the CoAP
Content-Format registry which is maintained by the IANA.  This patch
updates the list in OpenThread.  Notably:

- Standards references are made for each entry
- Some invalid assignments have been removed (notably PKCS10, PKCS7 and
  JWS)
- New entries have been added for COSE, JSON patches, merge patches,
  CBOR, CWT, CoAP groups, SENML and SENSML.
2018-11-26 10:55:54 -08:00
Jeff Bumgardner cfc4882c3d [docs] tag APIs that are reserved for testing/demo purposes (#3308) 2018-11-19 10:23:40 -08:00
Yakun Xu 33b0ee9330 [netif] add address callback (#3249) 2018-11-13 19:29:52 -08:00
Jeff Bumgardner fa8dcf7ef4 [docs] update Doxygen TOC (#3282) 2018-11-08 20:38:09 -08:00
Yakun Xu cf5352fb43 [api] add API to find source address (#3273) 2018-11-07 22:35:39 -08:00
Joseph Newman 4f99bcfaf3 [ncp] notify host asynchronously upon a significant thread network time change (#3238) 2018-11-07 22:32:31 -08:00
Yakun Xu b9b57cc9e2 [core] rename UDP proxy to UDP forward (#3266)
Thread defines UDP proxy as a feature to allow secure, two-way
communication of Thread Management Commands between the Commissioner
and any Thread Device in the Thread Network via the Border Agent.

This commit renames the existing UDP proxy feature which forwards UDP
packets back and forth between Host and NCP to UDP forward.
2018-11-05 20:48:08 -08:00
Zhanglong Xia f8909593a9 [api] update message API to create message with priority (#3199) 2018-11-05 12:48:39 -08:00
Yakun Xu 9ba3fc1d9b [netif] add notification for up or down (#3248) 2018-11-03 14:44:18 -07:00
Łukasz Duda 4a89cc63b6 [sntp] initial implementation of sntp client (#3237) 2018-11-03 08:11:05 -07:00
Jeff Bumgardner 8a94ede247 [docs] added link for OpenThread China and updated Doxygen TOC (#3261) 2018-11-02 14:48:20 -07:00
Yakun Xu e914c6ab6a [docs] add otUdpSend() usage (#3220) 2018-11-02 11:28:07 -07:00
Zhanglong Xia 2aed617140 [tlv] update channel related TLVs to process channel page (#3240) 2018-11-01 21:35:53 -07:00
Yakun Xu 92bcf61a8e [link-raw] fix radio with multiple transmit buffers (#3239) 2018-11-01 21:34:51 -07:00
Abtin Keshavarzian 3a4a61f7ca [radio] update "radio.h" documentations (#3230)
This commit updates the `radio.h` header file:
- Re-orders the definitions so keep the related functions close.
- Updates the documentation/comments.
- Uses `otPanId` and `otShortAddress` for function parameter types.
2018-10-30 12:24:52 -07:00
Łukasz Duda 014514442d [crypto] add support for ECDSA signing (#3218) 2018-10-30 12:23:10 -07:00
Jonathan Hui 7c5b15c877 [style] apply clang-format-6.0 changes (#3222) 2018-10-29 12:38:06 -07:00
Łukasz Duda 34c6af0789 [coap] add support for Proxy-Uri option (#3211) 2018-10-25 21:10:16 -07:00
Łukasz Duda 52669a925a [coap] add support for CoAP header exceeding 255 bytes (#3210) 2018-10-25 21:08:17 -07:00
Łukasz Duda 597a81fd0a [dns] simplify defines name and clean up (#3209) 2018-10-25 12:58:29 -07:00
Abtin Keshavarzian 309bd09d75 [logging] remove aInstance as input parameter to logging macros (#3184) 2018-10-25 09:14:43 -07:00
Yakun Xu c58d9cc0b1 [border-agent] border agent state event (#3186) 2018-10-22 22:47:59 -07:00
Yakun Xu 72fa647805 [coaps] refine definition of CoapSecure::Connect (#3178) 2018-10-17 23:21:53 +02:00
Shu Chen 71b90a6764 [time-sync] fix build issue with time sync enabled (#3167)
Also enable time sync in a travis check.
2018-10-16 19:58:34 -07:00
Yakun Xu 0b18d8ffad [settings] remove unused APIs (#3160) 2018-10-16 19:57:09 -07:00