Masayuki Ishikawa
e8a353af05
netutils: dhcpc: Fix dhcpc.c
...
Summary:
- dhcpc now uses gethostname() but the hostname might be empty
- This commit fixes this issue
Impact:
- All use cases which use dhcpc
Testing:
- Tested with spresense:wifi
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-20 08:19:38 -07:00
chao.an
3061dbf2f8
wireless/wapi: add option to associate with bssid
...
Change-Id: I68ef42edfc50ef5baf0f02a570d0e7f79669659f
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-09-19 04:20:43 -07:00
chao.an
77aa0e8908
netutils/dhcpc: try to get the host name via syscall first
...
Change-Id: I22aa8316f5c126bf3bafe9476a27a43c01da6129
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-09-19 01:13:05 -07:00
Pierre-Olivier Vauboin
bd537f286d
ntpclient: fix NTP daemon state in case of DNS failure
2020-09-15 01:18:37 +08:00
Xiang Xiao
837b405624
Change all files come from Xiaomi/Pinecone to Apache License 2.0
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-23 15:44:32 -06:00
SPRESENSE
78e8090842
examples: wget: Fix nxstyle issues
2020-08-18 10:07:47 -05:00
SPRESENSE
7a1d626504
netutils/webclient: Enable to send long HTTP request
...
Call send() repeatedly until whole buffer to be sent.
2020-08-18 10:07:47 -05:00
Xiang Xiao
e71e537e24
ftpc_transfer.c:667:15: Fix error: ‘argc’ undeclared
...
forget in commit efeb1d10b1
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I93a99e909dac57821366f7b522404e673fbcd9d8
2020-08-15 18:19:31 +01:00
Xiang Xiao
efeb1d10b1
netutils/ftpc: Change watchdog callback prototype
...
follow up the kernel side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-14 08:20:05 -06:00
Xiang Xiao
ebf37162ed
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-11 12:33:50 -06:00
Xiang Xiao
bf4c36c83f
netutils/ftpc: Embed wdog_s in ftpc_session_s directly
...
follow up the kernel side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-11 12:33:50 -06:00
Xiang Xiao
e6c5ff9208
Remove the unnecessary touch and clean from Makefile
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-11 19:10:19 +01:00
chao.an
8917467d04
netutils/dhcpd: correct the member name
...
Change-Id: I4dc6be8550a938851ae897fd93200a995e5c5178
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-08-07 14:16:14 -05:00
SPRESENSE
c1bf012211
netutils/usrsock_rpmsg: Change to pass the flags to the psock interface
...
Pass the sendto/recvfrom flags argument to the psock interface.
2020-08-06 20:52:09 +09:00
Masayuki Ishikawa
cb9eb7cfd7
netutils: webserver: Replace license header with Apache License 2.0
...
Summary:
- This commit replaces license header in httpd_dirlist.c
Impact:
- No impact
Testing:
- Buid check only
2020-07-29 01:05:31 -05:00
Masayuki Ishikawa
caaf343bad
netutils: webserver: Fix style violations
...
Summary:
- This commit fixes style violations in httpd_dirlist.c
Impact:
- No impact
Testing:
- Buid check only
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>>
2020-07-29 01:05:31 -05:00
Maciej Wójcik
21049ece6e
Rewritten READMEs to Markdown
2020-07-25 01:01:51 -07:00
Maciej Wójcik
51e6645f71
Rename README and README.txt to README.md
2020-07-25 01:01:51 -07:00
Masayuki Ishikawa
63068ce602
netutils: netclient: Introduce CONFIG_NETUTILS_NTPCLIENT_WITH_AUTH
...
NOTE: currently, no authentication-related code is implemented.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-18 04:44:38 -05:00
Xiang Xiao
317f0159a4
telnetd: Fix the buffer overflow
...
Should only memset ipv6 part of socket address(exclude famliy and port field)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-12 14:11:54 +01:00
Xiang Xiao
deaa6c5b7b
build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs
...
and move NUTTXLIB defintion to the common place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 15:17:37 -03:00
chao.an
24407f16f5
net/sockopt: change the socket option style from Linux to BSD
...
Linux Programmer's Manual
...
IP(7)
...
NOTES
...
Using the SOL_IP socket options level isn't portable;
BSD-based stacks use the IPPROTO_IP level.
Change-Id: I143477d8884dd44913c5685028ee62854e4c11ac
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-29 21:07:04 -05:00
Peter van der Perk
839b3530d4
netlib: add AF_CAN family and CONFIG_NET_CAN support
2020-06-15 07:23:37 -06:00
YAMAMOTO Takashi
faba0249c1
Include malloc.h instead of stdlib.h for mallinfo()
...
Adapt to the change in the main repo.
mallinfo is meant to be API compatible with Linux,
where it's provided by malloc.h.
(I think the API actually originated with System V. I don't
remember how it was there though. Anyway, I guess the
compatibility with Linux is more important than System V
these days.)
2020-06-15 07:21:52 -06:00
YAMAMOTO Takashi
83324b68f9
webclient: Fix errno in case of recv failure
...
When recv() failed, the current code assumes the return value
of recv() is a negative errno. It's wrong. Actually the return value
in case of error is -1. The wrong assumption ends up with reporting
EPERM, as EPERM happens to be -(-1).
This commit changes the code to leave the errno set by the failed
recv() as it is. It should be fine as wget_base() has the same
error returning convention as recv(). That is, return -1 (ERROR)
and set errno in the case of failure.
NOTE: the close() after the errout label can also fail and overwrite
the errno. I don't feel it's a big problem as wget_base() doesn't have
any promise about which error should be reported.
2020-06-12 05:22:45 -07:00
YAMAMOTO Takashi
a49f951c86
netlib_parsehttpurl: Fix pathlen check
2020-05-28 19:59:03 +08:00
YAMAMOTO Takashi
585d63b30d
netlib_parseurl: Fix pathlen check
2020-05-28 19:59:03 +08:00
YAMAMOTO Takashi
a455f13ec1
webclient: Check the return value of netlib_parseurl correctly
2020-05-28 19:58:53 +08:00
YAMAMOTO Takashi
415010b7fd
webclient: include string.h for strlen
...
Instead of relying on indirect namespace pollutions.
2020-05-28 11:15:18 +02:00
YAMAMOTO Takashi
276bf42e0d
webclient: Fix http -> https redirection
...
http -> https redirection is rather common. The old code was
just broken in that case.
Also, this commit is a step towards https support.
* Switch to netlib_parseurl
* Fix error propagation in wget_parseheaders
* Bail out on a redirect to a URL with unsupported scheme
2020-05-26 15:38:12 +08:00
YAMAMOTO Takashi
e939e55a50
webclient.c: Limit the number of redirections
2020-05-25 23:54:38 +08:00
YAMAMOTO Takashi
6b00c37a65
dhcpc.c: Fix an nxstyle complaint
2020-05-25 23:53:29 +08:00
YAMAMOTO Takashi
1cb82e58ac
dhcpc: Don't use an uninitialized variable
2020-05-25 23:53:29 +08:00
Xiang Xiao
69f013e74e
build: Remve the unnecessary .gitignore
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 15:56:35 +01:00
Xiang Xiao
3f933d073c
netuitls/thttpd: Add $(APPDIR)/netutils/thttpd into search path
...
to fix config.h can't be found
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-22 12:25:09 +01:00
Masayuki Ishikawa
34305351c4
netutils: ftpd: Fix style violations in ftpd.c
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-22 16:53:37 +08:00
Masayuki Ishikawa
e6196d2c9c
netutils: ftpd: Fix EPSV mode in ftpd.c (IPv4 only)
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-22 16:53:37 +08:00
Xiang Xiao
ea135b89c6
build: Replace all -I to INCDIR
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
ead498a788
build: Remove the workaround for the inexistence of .config/Make.defs
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
6a26547dec
build: Move INCDIROPT to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:37:24 -06:00
Xiang Xiao
3b98acc87c
netutils/dhcpd: correct the option header check
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-14 07:51:55 -06:00
Xiang Xiao
ed3ac15526
netutils/dhcpd: Fix the minor typo error
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-14 07:51:55 -06:00
chao.an
7a9eea5aba
netutils/dhcpd: fix nxstyle warning
...
Change-Id: I92c4c9426629c728c70b3f6bb047f218816580a2
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-09 13:31:15 -06:00
chao.an
018c9420ac
netutils/dhcpd: cancelable dhcp daemon
...
Change-Id: Iea3c0b8f91b0d6d8ececcd3932d8756a9d021608
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-09 13:31:15 -06:00
Gregory Nutt
b2d8c501f6
Remove use of set_errno() from application code.
...
The normal assignment errno = errcode should work fine now.
2020-05-07 22:23:19 +01:00
Gregory Nutt
779635afa6
netutils/usrsock_rpmsg: Fix build failures
...
Not all files were correctly modified when usrsock_rpmsg was moved from apps/system to apps/netutils. Changes were overlooked in the Makefile and Make.defs file.
2020-05-07 03:00:27 +01:00
Xiang Xiao
4389885cf6
Move usrsock_rpmsg from system to netutils folder
...
This is a more suitable location
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-06 08:59:53 -06:00
Xiang Xiao
7a99d62ca1
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaox
iang@xiaomi.com>
2020-05-06 07:31:10 -06:00
Xiang Xiao
8a1f5ee34c
debug: Reduce CONFIG_CPP_HAVE_VARARGS usage
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-06 07:31:10 -06:00
Xiang Xiao
e72608e0d8
Fix nxstyle issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-02 09:45:44 -06:00