Commit Graph

2764 Commits

Author SHA1 Message Date
Jonathan Hui dfd2b9b032 [api] fix typos (#3431) 2019-01-07 09:03:55 -08:00
Yakun Xu a42efee470 [script] add script to run cert tests (#3397) 2019-01-07 09:03:36 -08:00
Kamil Sroka 1b4d05ee37 [nrf52840] increase max children count (#3433) 2019-01-04 08:47:28 -08:00
Kamil Sroka 979b50522d [nrf52840] update nRF52840 radio driver to version 1.2.3 (#3432) 2019-01-04 08:45:41 -08:00
Jonathan Hui 7554e344ce [test-driver] update README.md format (#3430) 2019-01-04 08:42:03 -08:00
Jonathan Hui e2056e0927 [nlbuild-autotools] update to 1.6.5 (#3429) 2019-01-04 08:41:38 -08:00
Jonathan Hui 84cb1e0d14 Merge commit '978a3f4d0664c483dbcf93a176353e4cb5f93aea' into nlbuild-autotools 2019-01-03 19:00:11 +00:00
Jonathan Hui 978a3f4d06 Squashed 'third_party/nlbuild-autotools/repo/' changes from ac728423..75faaf5f
75faaf5f Addressed an issue in which the failure to make the 'repos-warning' target order-only caused dependent repo paths to be repeatedly and unnecessarily remade which, in turn, caused git operations and the configuration or build to fail.
1d4fff8c Merge pull request #16 from nestlabs/feature/repos-with-clone
7233d998 Added support for pulling down remote package dependencies using git clone (default) or git submodule depending on the setting of pull.method in repos.conf.
1debcf62 Added support for coverage-local and check-local targets.
4699860c Merge pull request #15 from nestlabs/feature/check-coverage-local
79923820 Added support for coverage-local and check-local targets. Added documentation for all coverage-related targets.
d46f42a9 Addressed a spelling typo identified during code review.
b6a6c1ac Take a different approach to version flapping against 'make distcheck' by leaving VERSION_FILE as an immediate (:=) variable and instead creating a two-level <PACKAGE>_VERSION variable, the first of which is set from VERSION_FILE by default at make recursion level zero (0).
bf97ef6e Address an issue with VERSION_FILE on clean source code control clones or unarchived distribution in which 'make dist' or 'make distcheck' fail. VERSION_FILE should be and is intentionally a deferred (=) rather than an immediate (:=) variable to ensure late evaluation AFTER .local-version MAY be created rather than when the makefile containing it is parsed.
ae96d615 Fixed a typo.
74c4da2c Added support to repos.conf for a 'commit' key such that a hash or tag other than HEAD for a given repository and branch may be synchronized and checked out.
0d8afe93 When the verbose flag is asserted, prnt out the actual series of action commands that will be invoked.
8663c890 * Address a number of issues with building the prepackaged GNU   autotools subset included in nlbuild-autotools for Ubuntu   Bionic.
f2cdbac1 Add support, if necessary, for patching an expanded package.
35a238ed Only attempt to remove libtoolize if the effective user id matches that of the user executing the script.
7a899e8f Update the default version and change log for 1.5.2 and related changes.
48564b57 Since the '--name-only' option only appears in git-2.6 and later and there are production systems using git version as old as git-1.9, do not use '--name-only'.
7479acdf Fix a comment typo.
6c647b1d White space consistency clean-up.
60f989ea Incorporated a formatting suggestion from code review.
638a0c08 Fixed a typo.
33e0c7fc Addressed a number of typos and grammatical errors in comments and help output.
412d0e50 Fixed a typo.
4063134b Merge branch 'master' of github.com:nestlabs/nlbuild-autotools
4946bd54 Updated the date for 1.5.0.
90743059 Added a populate command for 'repos.conf'.
9bbf84f5 Added boilerplate examples for remote repository integration that package integrators can uncomment, adapt, or delete.
7418afd3 Initial revision.
0f9f1217 Ensure 'rm' explicitly includes -f should 'MAKEFLAGS' with '-R' be asserted in the environment.
2e6471f9 Add another clarifying example of building package-local tools from an integrated project.
bad99a91 Added content for and updated default version to 1.5.0.
b556c134 Added support for pulling down remote package dependencies using git submodule.
b9c6ca41 Restore prior change introduced at b07c9c034bc039f41336f447b55a4640c466d2bc.
e05e4fc4 Added a populate command to add 'Makefile-bootstrap' to the project top-level directory.
8ba67ce3 Added a populate command to add 'Makefile-bootstrap' to the project top-level directory.

git-subtree-dir: third_party/nlbuild-autotools/repo
git-subtree-split: 75faaf5f7b87cdd15c5d78ec61e8327e551a2a79
2019-01-03 18:54:49 +00:00
Kamil Sroka 380be9610c [nrf52840] fix build with IAR (#3428) 2019-01-03 10:27:38 -08:00
Jonathan Hui 27aecfec5b [posix-app] resolve "implicit conversion changes" warnings (#3426) 2019-01-03 09:20:15 -08:00
Abtin Keshavarzian ba1d46035b [mac] post operation task on rx-on-idle mode change (#3425)
The `SetRxOnWhenIdle()` is changed such that if it needs to stop
operation `WaitingForData`, the next operation gets started from
the `mOperationTask` tasklet. This change makes the behavior of
the `SetRxOnWhenIdle()`  consistent with other MAC APIs (i.e.,
new operations are started only from tasklet or from a radio/timer
callback and not from any MAC APIs). This commit also updates the
`HandleTimer()` to check for operation being `kOperationIdle` when
timer is used for delaying sleep.
2019-01-03 09:19:50 -08:00
Jonathan Hui 0cd21d8d3f [border-agent] check if TLV is valid after reading (#3424) 2019-01-03 09:16:54 -08:00
Zhanglong Xia 0e42d0b8c9 [mac] remove redundant checks (#3408) 2019-01-03 09:16:04 -08:00
Yakun Xu 2a9f8797f7 [posix-app] integrate with platform network interface (#3180) 2019-01-03 09:13:29 -08:00
Yakun Xu ae2b01947d [android] disable UART echo (#3421) 2019-01-02 10:34:46 -08:00
Abtin Keshavarzian 42c46368f1 [docs] fix typos in comments (#3417) 2019-01-02 10:24:08 -08:00
Abtin Keshavarzian 49945221dd [ncp-base] add IgnoreReturnValue when error should be ignored (#3415)
This change adds `IgnoreReturnValue` when the returned error can be
safely ignored. This should help address a Coverity warning.
2019-01-02 09:04:42 -08:00
Abtin Keshavarzian 041c14080a [core] use 1UL instead of 1U when working with uint32_t (#3411)
This commit replaces `1U` constants with `1UL` in bit shift
statements like `1U << shift` when dealing with a variable shift
value that can be larger than 15. This helps make it explicit to the
complier that the constant should be considered as a `uint32_t`.
2019-01-02 09:03:52 -08:00
Abtin Keshavarzian 3a6c5de3da [mle] avoid "1U << 32" when calculating attach start delay backoff (#3410)
This change avoids the use of (potentially) undefined "1U << 32"
when calculating the backoff delay for attach re-attempt in MLE.
Credit for this bug goes to Coverity.
2019-01-02 09:02:40 -08:00
Yakun Xu cdf0b7785d [mbedtls] free mbedtls on initialization failure (#3409) 2019-01-02 09:01:39 -08:00
Jiacheng Guo 08bb4ace81 [posix-app] do nothing if select interrupted with no available fds (#3406) 2019-01-02 08:59:52 -08:00
Yakun Xu e0c802569e [meshcop] correct UDP_PROXY in script and doc (#3420) 2018-12-29 12:45:41 -08:00
wgtdkp 3f6d50a728 [tests] enhance Cert_7_1_03_BorderRouterAsLeader (#3399) 2018-12-29 11:25:39 -08:00
Irving-cl d34f279e5a [tests] enhance Cert_6_1_02_REEDAttach_MED/SED (#3387) 2018-12-29 09:50:12 -08:00
Jonathan Hui 08247dc92f [message] avoid length overflow in SetLength() (#3418)
Credit to OSS-Fuzz.
2018-12-28 17:27:25 -08:00
Abtin Keshavarzian 4b1070444d [border-agent] check read UdpEncapsulationTlv length (#3414)
This commit verifies that the read length of `UdpEncapsulationTlv`
from a message is valid before processing it. Credit to Coverity.
2018-12-28 17:12:09 -08:00
Abtin Keshavarzian aabcd38db5 [socket] use "this" pointer in memset while initialization SockAddr (#3413)
This change helps address a coverity warning (about memory overrun).
2018-12-28 17:11:44 -08:00
Abtin Keshavarzian e5947b5e23 [udp6] init member variable from constructor (#3412)
This commit initializes `mUdpForwarder` and `mUdpForwarderContext`
from `Udp::Udp` class constructor. Credit to coverity.
2018-12-28 17:11:24 -08:00
Yakun Xu 97ace18c17 [udp] call at most one handler (#3398) 2018-12-28 17:09:19 -08:00
rongli 328239878d [data-poll-manager] check user-specified poll period (#3401) 2018-12-27 22:35:57 -08:00
Abtin Keshavarzian 3fb736c566 [ncp-base] limit legacy related member variable definitions to FTD/MTD builds (#3407)
This commit moves the definition of legacy related member variable
in `NcpBase` into a `#if OPENTHREAD_MTD || OPENTHREAD_FTD` block.
This addresses Coverity warning for un-initialized member variables
from constructor.
2018-12-27 16:30:32 -08:00
Jiacheng Guo 0fbb0e6310 [posix-app] enhance build switches (#3404) 2018-12-27 15:59:55 -08:00
Yakun Xu 99c753a6ad [message] allocate message with corresponding component (#3403) 2018-12-27 15:55:16 -08:00
Jiacheng Guo 0e31b0d617 [nrf52840] allow change state handler config in command line (#3402) 2018-12-27 15:51:15 -08:00
Jonathan Hui 4ababdce2d [bootstrap] install arm gcc toolchain on Raspbian (#3392) 2018-12-27 15:44:26 -08:00
Jing eca3e81fd3 [thci] update pollperiod command to accept ms resolution configuration (#3361) 2018-12-27 15:39:46 -08:00
Abtin Keshavarzian 7dc645a856 [hdlc] report frames smaller than FCS size as error frame (#3395)
This commit changes the `Hdlc::Decoder` implementation to report
non-zero length received frames shorter than FCS size as an error
`OT_ERROR_PARSE` (instead of ignoring such frames during decoding).
Since the recent changes in `Hdlc::Decoder` buffer model delegates
the management of the frame buffer to the user of `Decoder`,
clearing frame buffer after an error should be be performed by the
`Decoder` user from the `FrameHandler` callback. The change in this
commit addresses an issue where a small (single-byte) frame would
not have been cleared from the decoder buffer and included in the
next frame. This commit also updates the `test_hdlc` unit test to
cover small frame error.
2018-12-24 15:12:16 -08:00
Jiacheng Guo 52c06c6858 [build] option to disable executable build (#3391) 2018-12-24 15:10:30 -08:00
wgtdkp 35eaaab653 [tests] enhance Cert_5_1_06_RemoveRouterId (#3379) 2018-12-24 15:08:47 -08:00
Abtin Keshavarzian 3108b6a615 [posix-app] discard received HDLC frame on error (#3394)
This commit changes the `HdlcInterface::HandleHdlcFrame()` callback
which handles a received and decoded HDLC frame such that it
discards a bad/incorrect frame from the multi frame buffer (i.e,
discard the frame on any error).
2018-12-22 08:39:39 -08:00
Yakun Xu f2e3555a2a [posix-app] simplify UART on POSIX app (#3384) 2018-12-21 14:35:24 -08:00
Abtin Keshavarzian 34004c2c57 [posix-app] adopt new HDLC buffer models (#3371)
This commit updates the `HdlcInterface` and `RadioSpinel` to use the
new HDLC buffer model. In particular, for received spinel frames the
decoder uses an `Hdlc::MultiFrameBuffer` which is capable of storing
multiple frames in a FIFO queue manner.

With this model, the received and decoded spinel frames are directly
placed in the FIFO buffer. This allows `RadioSpinel` code during
`WaitResponse()` (when waiting for specific Spinel response frame) to
simply save/keep a notification frame in the queue buffer (without
requiring to copy the frame) so that it can read and process the
saved frame later. If a received frame can be processed at the time,
the frame is then simply discarded from the queue buffer.
2018-12-21 14:33:35 -08:00
Abtin Keshavarzian e96cc1b367 [hdlc] update buffer model for Encoder and Decoder (#3371)
This commit updates HDLC implementation to harmonize the buffer model
used by `Hdlc::Encoder` and `Hdlc::Decoder`.

The new model defines a common class `Hdlc::FrameWritePointer` which
provides a minimum set of APIs used by `Encoder/Decoder` for writing
frames, while not defining the underlying buffer space or how the
buffer is managed. `Encoder` or `Decoder` users are expected to use
sub-classes of `FrameWritePointer` to add the buffer space and
implement the frame buffer management scheme.

Two sub-classes `Hdlc::FrameBuffer` and `Hdlc::MultiFrameBuffer` are
also provided which respectively allow storing a single frame or
multiple frames (FIFO queue of frames) in a buffer of given size.

This commit also updates the `NcpUart` code to use the new buffer
model.

Finally, this commit adds an HDLC unit test `test_hdlc.cpp` which
covers the following:

- Verify behavior of `Hdlc::FrameBuffer` (single frame buffer),
- Verify behavior of `Hdlc::MultiFrameBuffer` (FIFO queue),
- Verify behavior of `Hdlc::Encoder` and `Hdlc::Decoder`,
- Test encoder/decoder with randomly generated frames (fuzz test).
2018-12-21 14:33:35 -08:00
Jiacheng Guo 71ef316bbd [mbedtls] build switch to disable mbedtls in makefile (#3389) 2018-12-21 09:32:57 -08:00
Jeff Bumgardner 782597fe1a [docs] Doxygen fix and efr32 README update (#3393) 2018-12-21 09:23:38 -08:00
Kamil Sroka 0724ce514d [nrf52840] fix build with ECDSA=1 (#3388) 2018-12-20 09:11:56 -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
Zhanglong Xia 4ed2c8c222 [qos] forward messages based on the priority of the message (#3317) 2018-12-19 11:28:34 -08:00
Abtin Keshavarzian f4f92ab3a8 [ncp-base] remove unused method definitions from NcpBase class (#3386) 2018-12-18 15:27:45 -08:00
Rongli Sun a7f4283e5d [cc2538] add 1K stack space (#3385)
In the observed deepest CoAP process when handling JOIN_FIN, the large
local variables in the nested calls may take up to 2.5K, among with
the three local CoAP headers would add about extra 1K since #3210 which
increases CoAP header from 128 to 512.

This commit adjusts stack to be of 5K by increasing 1K to help commissioning
process goes correctly.
2018-12-18 09:29:39 -08:00