anjiahao
beb9188cee
nshlib:support nsh can redirect
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-07-22 13:52:34 +08:00
Fotis Panagiotopoulos
2d2e36c5e9
Fixed heap information output in nsh ps command.
2022-07-22 00:03:41 +08:00
Fotis Panagiotopoulos
d7ec4e51b5
nsh: Fixed typos in comments.
2022-07-22 00:03:22 +08:00
anjiahao
dbfe5fb573
cmd_reset_cause:remove ouput space.
...
can use ouput string set a env to argv
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-07-21 21:13:11 +08:00
anjiahao
29be9e3d1b
apps:fix reset cuase wraming
...
nsh_syscmds.c:352:40: error: passing argument 2 of 'boardctl' makes integer from pointer without a cast [-Werror=int-conversion]
352 | ret = boardctl(BOARDIOC_RESET_CAUSE, &cause);
| ^~~~~~
| |
| struct boardioc_reset_cause_s *
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-07-21 19:41:05 +08:00
Xiang Xiao
af2741317a
examples/noteprintf: Change CONFIG_LIBC_LONG_LONG to CONFIG_HAVE_LONG_LONG
...
follow the kernel side change:
https://github.com/apache/incubator-nuttx/pull/6613
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-20 22:22:49 +03:00
Denis Tolstov
5ae2e1034b
nshlib/netcmds: Decouple nslookup from netdb_dnsclient
...
Allow disabling nslookup even when not using dnsclient.
2022-07-20 15:54:52 +08:00
Fotis Panagiotopoulos
c4c3ffff90
ostest: Fixed prints in setenv test.
2022-07-20 11:57:01 +08:00
Xiang Xiao
c252ec1481
Add printflike to all printf like functions
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-18 14:09:10 +03:00
Norman Rasmussen
5c84c47cad
system/hostname: Add an option to read the hostname from a file
2022-07-18 12:29:51 +08:00
pengyiqiang
71ea8b052d
nshlib/nsh_ddcmd: calculate time difference with microsecond precision
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-07-17 14:06:40 +08:00
YAMAMOTO Takashi
83505e217b
dhcpc: Rename timeout Kconfig
...
NETUTILS_DHCPC_RECV_TIMEOUT -> NETUTILS_DHCPC_RECV_TIMEOUT_MS
Recently its unit has been changed from second to millisecond. [1]
Using the same Kconfig name for a different meaning is a pitfall
for an upgrade. I was using 3ms timeout because of this.
This commit renames it so that at least the default value
is used for a careless user like me.
[1]
```
commit 8fd4b6105b
Author: zrrong <zrrong@bouffalolab.com>
Date: Fri May 27 11:35:23 2022 +0800
netutils/dhcpc: Change the timeout unit to milliseconds
```
2022-07-07 21:42:58 +08:00
curuvar
ca4ef69661
Added simple ws2812 example
2022-07-04 10:50:48 +08:00
Satoshi Togawa
943df4cb60
pppd: Fix PAP Request packet.
2022-06-30 22:27:07 +08:00
zouboan
e7961a696e
examples: add pwm input capture example
...
Co-authored-by: Alan Carvalho de Assis <alan.carvalho@espressif.com>
2022-06-28 23:52:21 +08:00
qinwei1
db9ea40798
.github/workflows: Add nuttx/source to the safe directory, covering apps
...
Signed-off-by: qinwei1 <qinwei1@xiaomi.com>
2022-06-24 23:47:49 -07:00
Xiang Xiao
99d905369e
.github/workflows: Add nuttx/source to the safe directory
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-06-24 23:47:49 -07:00
chao.an
61250d5516
wireless/wapi: add get country code support
...
Country command with no args to get the ccode:
Get country code:
cp> wapi country wlan0
CN
Set country code:
cp> wapi country wlan0 JP
Get country code:
cp> wapi country wlan0
JP
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-23 23:40:20 +08:00
dependabot[bot]
23f35ea1b3
build(deps): bump actions/upload-artifact from 1 to 3
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 1 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v1...v3 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-22 01:12:21 +08:00
dependabot[bot]
85962aab14
build(deps): bump actions/cache from 2 to 3
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-22 01:12:12 +08:00
dependabot[bot]
452d5352d5
build(deps): bump actions/checkout from 2 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-21 23:23:30 +08:00
dependabot[bot]
a4c96f5dbc
build(deps): bump actions/download-artifact from 1 to 3
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 1 to 3.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v1...v3 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-21 23:23:22 +08:00
naveen
2f173e9f48
chore: Included githubactions in the dependabot config
...
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.
Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot
GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-06-21 16:43:58 +03:00
naveen
83ea328ef5
chore: Set permissions for GitHub actions
...
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ )
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-06-21 16:43:58 +03:00
Christian Clauss
72cb2c237b
Lint Python code with flake8 and isort
2022-06-21 16:43:58 +03:00
Brennan Ashton
72ead93dee
ci: lint only changed files
2022-06-21 16:43:58 +03:00
Brennan Ashton
5787c26159
Add black linter for python
2022-06-21 16:43:58 +03:00
YAMAMOTO Takashi
fe109998c9
webclient_get_tunnel: A comment about how to dispose the returned "conn"
2022-06-20 13:56:53 +08:00
YAMAMOTO Takashi
d435858c53
webclient: Export a few ops on webclient_conn_s
...
* Make webclient_conn_s self-contained so that it can be
used without webclient_context.
* Add missing FAR.
2022-06-20 13:56:53 +08:00
YAMAMOTO Takashi
fca5b186b1
webclient: Make webclient_get_tunnel returns void
...
As it does never fail.
2022-06-20 13:56:53 +08:00
YAMAMOTO Takashi
5cfc5cd4f2
webclient.h: Update the state diagram after the tunnelling stuff
2022-06-20 13:56:53 +08:00
YAMAMOTO Takashi
2be66e83a4
webclient_conn_s: Add a missing FAR
2022-06-20 13:56:53 +08:00
chao.an
92c001bbc0
wapi/utils: add SIOCGIWSENS into string name list
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-17 16:44:01 +08:00
YAMAMOTO Takashi
eece4a5ca0
webclient_abort: Fix a resource leak for the tunneling case
2022-06-17 08:35:59 +03:00
chao.an
be516e4c5e
wireless/wapi: authentication parameters should update before key set
...
set authentication parameters before key set on command mode
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-17 08:34:51 +03:00
Xiang Xiao
7ce7eff9a9
Remove the non standard c++ header file inclusion
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-06-15 22:23:25 +03:00
YAMAMOTO Takashi
159ca00752
webclient: Allow users to specify extra headers for proxy
...
My primary motivation at this point is to use it for basic proxy auth.
(specify "Proxy-Authorization" header)
But there can be other use cases for proxy-specific extra headers.
If/when we want to support other non-trivial auth methods, probably
a callback-based mechanism will be necessary. But at this point,
this serves my purpose well.
2022-06-15 20:40:53 +08:00
chenwen@espressif.com
068905d07b
testing/irtest: Fix issue of failure to open multiple IR devices
...
Signed-off-by: chenwen@espressif.com <chenwen@espressif.com>
2022-06-14 14:56:18 +02:00
Norman Rasmussen
ce7c9ae65b
wireless/wapi: fix wapi wpa_wconfig_s sta_mode data type error
2022-06-13 21:01:13 +08:00
Adam Kaliszan
835f43524b
serialblaster bugfix
2022-06-13 15:47:44 +08:00
Nimish Telang
1f0ba0db6e
Update examples/elf/tests/helloxx/Makefile
...
Check for the right config variable
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-06-11 17:04:20 +08:00
Nimish Telang
550cb3a1ea
Address #190
...
Should guard against these being included if exception support isn't there
2022-06-11 17:04:20 +08:00
Alin Jerpelea
f55523038d
rename DISCLAIMER-WIP
...
Before graduation We can only remove the WIP from the DISCLAIMER.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-06-08 20:19:53 +08:00
Xiang Xiao
a12707177b
Remove "| O_BINARY" or " |= O_BINARY" since O_BINARY is 0 now
...
follow nuttx kernel side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-06-07 20:22:38 +03:00
YAMAMOTO Takashi
610b04fa97
webclient: Clear WGET_FLAG_GOT_CONTENT_LENGTH for each request
...
Otherwise, a stale value might be used after a redirection.
2022-06-07 15:09:11 +03:00
YAMAMOTO Takashi
065a130bc8
webclient: Be a bit strict on Location header
...
* Record Location header explicitly
* Bail out / warn on unexpected cases
2022-06-07 15:09:11 +03:00
YAMAMOTO Takashi
0c4c811434
webcilent: Fix a buffer overrun on a malformed status line
2022-06-07 15:09:11 +03:00
YAMAMOTO Takashi
f7b3eb5b44
netlib_parseurl: Make the buffer size assumption explicit
2022-06-07 15:09:11 +03:00
YAMAMOTO Takashi
a7de8dffe7
netlib_parseurl.c: Add a comment
2022-06-07 15:09:11 +03:00
Alin Jerpelea
a5506b379c
Revert "remove DISCLAIMER-WIP"
...
This reverts commit 4a2aa6d8cffb6eef45d445ca42a3653f700a2565.
2022-06-07 09:38:31 +02:00