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
Gregory Nutt
7b2e06b674
Fix errors from DEFAULT_TASK_SIZE change
...
There were several places where default sector and buffer sizes of 2048 were changed to DEFAULT_TASK_STACKSIZE. This is not correct. This was noted by Xiao Xiang.
2020-04-25 16:13:28 -03:00
Juha Niskanen
2aabd1c9a7
webclient: run through nxstyle
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-04-23 09:29:36 -06:00
Juha Niskanen
f8f16975a9
webclient: use getaddrinfo to get IPv4 addresses on dual stack systems
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-04-23 09:29:36 -06:00
Alan C. Assis
6e403fc343
Fix remaining issues with nxstyle
2020-04-16 20:39:47 -06:00
Alan C. Assis
d10eb2ae3a
Fix nxstyle issue for Juha patch
2020-04-16 20:39:47 -06:00
Gregory Nutt
3e73991857
nxstyle fixes for PR 170
2020-04-11 20:32:53 +01:00
Gregory Nutt
05f2253a33
Remove CONFIG_CAN_PASS_STRUCT
...
This is the companion to PR #766 . It removes the CONFIG_CAN_PASS_STRUCT option as recommended by Issue #620
NuttX PR #766 depends on PR being in place but not vice versa. This PR should be merge-able without #766 and then PR #766 should also pass its checks.
2020-04-11 20:32:53 +01:00
Xiang Xiao
95efbf7e62
netlib: fix nxstyle issue for netlink related code
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-10 09:22:08 -06:00
Xiang Xiao
63157f3a4d
nshlib: use rtgenmsg for netlib_get_arptable/netlib_get_nbtable lik Linux
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I0b28eea6a70d0b5f6c5beef26f6624edfb3d6c86
2020-04-10 09:22:08 -06:00
Xiang Xiao
300bc2729a
netlib: correct netlink usage to follow Linux convention
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Iae98b0a008dc42dddb77f47d79511ae4fb4bbfca
2020-04-10 09:22:08 -06:00
Xiang Xiao
f5ea28e9ad
netlib: Remove AF_FAMILY and PF_FAMILY definition
...
use the common one(NETLIB_SOCK_FAMILY)
Change-Id: Ifc255f82f169d3bb37604c49006361a40c9933d1
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-09 07:36:19 -06:00
chao.an
c6b678fa60
netutils/dhcpc: fix nxstyle warning
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-03 18:11:27 -06:00
chao.an
70bb13ce3b
netutils/dhcpc: configurable timeout and retry count.
...
Change-Id: I92e77bd24ddd7ffff39de9215f4b7c05a7b55bee
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-03 18:11:27 -06:00
chao.an
6ab29d4ffb
wapi: skip associate if ssid is invalid
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-03 13:29:19 +01:00
archer
52abe148ce
netutils/base64: correct the buffer type
2020-04-03 11:16:12 +01:00
Xiang Xiao
595c72b38e
ping/ping6: Support the dual stack host correctly
2020-03-31 22:18:26 +01:00
YAMAMOTO Takashi
c9c1d2bbc6
Change the default of stack size configs to DEFAULT_TASK_STACKSIZE
...
Where:
* Under examples and testing
* And the default value is less than 2048
Using a bit more memory for examples and tests should not
be a critical problem.
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
e7156be066
Change the defaults of stack size configs to DEFAULT_TASK_STACKSIZE
...
This commit changes only ones with the default 2048 and
leaves the others.
E.g. this leaves SYSTEM_RAMTEST_STACKSIZE, whose default is 1024.
I guess those need to be inspected one-by-one.
2020-03-27 02:43:11 -05:00
Xiang Xiao
1511403fdf
Revert "Don't generate .depend anymore"
...
This reverts commit cc5ad09caa
.
2020-03-22 23:09:40 -05:00
Xiang Xiao
cc5ad09caa
Don't generate .depend anymore
2020-03-22 18:15:21 +00:00
Xiang Xiao
d96bc5a4fb
netinit: Unregister notification at the end in netinit_monitor
2020-03-07 13:13:55 -06:00
Xiang Xiao
127fe118b9
telnet: Fix compile error by commit 39bf19d
2020-02-28 08:08:37 -06:00
Xiang Xiao
39bf19d1f4
Fix some wrong state handler in _negotiate
...
Also run file through nxstyle and correct coding standard issues.
2020-02-27 13:14:32 -06:00
chao.an
52ad01f0bf
netutils: save wapi config to file system
...
save and reload the wapi config from file system
2020-02-26 16:11:46 +00:00
chao.an
ee615f0568
net/wapi: remove unnecessary cast
2020-02-26 16:11:39 +00:00
Xiang Xiao
41d88f06e7
Run codespell -w with the latest dictonary again
2020-02-23 07:10:14 -06:00
Xiang Xiao
d660492289
Run codespell -w against all files
...
and fix the wrong correction
2020-02-22 14:41:36 -06:00
chao.an
f28eca9dbc
Make.defs: Use complete include path
2020-02-19 12:56:10 -06:00
Xiang Xiao
d81b7af407
ntpclient: Use sem protect global variable instead sched_lock/unlock
2020-02-14 09:08:31 -06:00
Xiang Xiao
02a800c930
ntpclient: Initialize g_ntpc_daemon at the definition
...
Change-Id: I4dad2e246aca7d30092cf8a4bc8136e90668f134
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-14 09:01:57 -06:00
Xiang Xiao
782953ff05
ntpclient: the 2nd arg of MKLVM should be version number
...
Change-Id: I742c3a5082f48fcc8e291100ff81c60093bc7538
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-14 09:01:57 -06:00
Gregory Nutt
c8dbd59e9a
netutils/telnetd/telnetd_daemon.c: Avoid a warning if CONFIG_NET_SOCKOPTS=n
2020-02-09 00:33:39 +08:00
Gregory Nutt
d2522e2821
apps/netutils/telnetd: Fix undefined reference to setsockopt.
...
Recent change from Xiao Xiang enabled the SO_REUSEADDR socket option unconditionally. This, of course, causes link time failures if socket options are not enabled:
apps/netutils/telnetd/telnetd_daemon.c:182: undefined reference to 'setsockopt'.
Observed during build testing with configuration rddrone-uavcan144:nsh
2020-02-09 00:33:39 +08:00
Miguel Herranz
960a92c652
Make SO_REUSEADDR not mandatory in netlib
...
This functionality is not available in NuttX so far.
2020-02-06 23:43:37 +01:00
Xiang Xiao
bf3e6e2367
Improvements for telnet server
...
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Check POLLHUP and POLLERR in telnet poll loop
to handle the remote end close correctly
Send "NVT"(network virtual terminal) as the default if getenv("TERM") return NULL
telnet should trigger the error handling if inet_pton return zero
since zero mean the string has format error
Don't return 1 in _environ_telnet to avoid trigger the compression
and remove the redundant TELNET_TELOPT_COMPRESS2 check
Change telnet_error_u to telnet_error_e required by the coding standard
Ensure telnet object get freed before the abnormal exit
2020-02-04 19:09:22 -03:00
Xiang Xiao
e0adf5ee0b
Remove all CONFIG_NET_HAVE_REUSEADDR guard
2020-02-03 15:13:19 -06:00
Gregory Nutt
724a34bd3b
Run all files modified by pr45 through nxstyle.
2020-02-03 07:38:57 -06:00
Xiang Xiao
72bbc27b0f
Free daemon struct in all telnetd_daemon error path
...
Change-Id: I7f014dc5f327a6ae6adf9cdbea8089ffab2efe37
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-03 07:17:22 -06:00
Xiang Xiao
d6e450e39a
Skip to close acceptsd since it is already closed in SIOCTELNET handler
...
Change-Id: I669224fd5cd44162bb67c8316b56348f7f298883
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-03 07:17:22 -06:00
Xiang Xiao
579327a972
Remove CONFIG_NET_HAVE_REUSEADDR check from telnetd_daemon
...
since this option doesn't exist at all
Change-Id: I9ee8e61d0a8af1c9eb690b2f2945a7f7f7b5f834
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-03 07:17:22 -06:00
Xiang Xiao
28891ef27e
Remove the global variable in telnetd_daemon
...
Change-Id: I264d10c0f141109ada6ac90afb2ba3e8cfad4404
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-03 07:17:22 -06:00
Xiang Xiao
1154735ca6
Refine the preprocess conditional guard style
2020-01-31 11:04:10 -06:00
Xiang Xiao
e0dcfa0c55
Remove extra whitespace from files ( #43 )
...
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
2020-01-31 08:29:24 -06:00
Alin Jerpelea
59b763add4
netutils/netlib: Fix buffer overflow
2020-01-29 00:29:30 -08:00
Ouss4
eb1af03259
examples/sendmail: Few fixes to make the example run on a local SMTP
...
server.
2020-01-25 16:39:21 -06:00
Gregory Nutt
72a934c6c2
Add configuration settings for apps/examples/sendmail.
...
The sendmail example hasn't been used in years. I am not sure it was ever debugged. It is so old that it still expects hand editted .config files. As a result, all of the configuration settings were missing from the Kconfig file.
This commit adds the missing apps/examples/sendmail configuration settings so that the example at least builds. I cannot test it because I have no smtp server that I am willing to spam.
This configuration also adds missing configuration dependencies and runs the C files in apps/examples/sendmail and apps/netutils/smtp through nxstyle.
This commit resolves an issue reported by surya prakash rased in the Google group: https://groups.google.com/forum/#!topic/nuttx/idr-M164Y24
2020-01-24 19:07:54 -03:00
Xiang Xiao
fd3775e068
Remove CONFIG_TIME_EXTENDED conditioning
...
Remove CONFIG_TIME_EXTENDED related stuff since kernel remove this option
2020-01-23 08:36:03 -06:00
Xiang Xiao
db61c92100
Fix dhcpd #17
...
apps/netutils/dhcpd/dhcpd.c: Fix unused const variable
dhcpd.c:273:29: warning: 'g_anyipaddr' defined but not used [-Wunused-const-variable=]
static const uint8_t g_anyipaddr[4] = {0, 0, 0, 0};
apps/netutils/dhcpd: Make dhcpd interface configurable
apps/netutils/dhcpd: Lease address directly if hit in address range
apps/netutils/netinit: Initialize dhcpc_state
update the addresses only on request success
2020-01-16 12:06:25 -06:00
Gregory Nutt
b2cd439b10
Remove unselectable CONFIG_NET_TCP_READHEAD dependencies.
...
NuttX commit 346336bb9e5c9199b82e34d08bf23dd1bc389460 make CONFIG_NET_TCP_READADHEAD unselectable and removed all references to CONFIG_NET_TCP_READHEAD from the the NuttX repositories. However, there was no corresponding removal of CONFIG_NET_TCP_READHEAD from the apps/ repository. As a result, there was logic that depended on the selection of CONFIG_NET_TCP_READHEAD that could never be enabled.
This was found during build testing using the configuration olimex-lpc1766stk/thttpd-binfs. THTTPD was not being build fully because it had dependencies on CONFIG_NET_TCP_READHEAD. There resulted int numerous new warnings and, finally, the error:
(.../apps.examples.thttpd.o): in function `thttp_main':
thttpd_main.c:(.text+0x104): undefined reference to `thttpd_main'
2020-01-15 11:16:17 -03:00
Xiang Xiao
53efd71d6d
Fix format warn ( #13 )
...
* fix warning: format '%u' expects argument of type 'unsigned int *', but argument 3 has type 'uint16_t *
Change-Id: I3eccf8e2cd917f19b7a9edab233b327297d74bb7
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int'
Change-Id: Ic59a1e9e49256637fa73459c46b8cded036cf971
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-14 03:21:13 +01:00
Gregory Nutt
561fc02ae5
netutils/ftpd/ftpd.c: Fix an error introduced in PR10. In error clean-up, it was trying to free memory on an error where we failed allocated memory. Not good.
2020-01-12 11:55:16 +00:00
Gregory Nutt
e67850971d
apps/netutils/ftpd/ftpd.c: Fixes several problems:
...
1. This fixes the issue reported in Bitbucket apps/ Issue 15. That is, if fopen() fails, the NULL stream handle would be used in subsequent logic. The handling of the failure was incomplete.
2. Some of the error handling was fixed. In the event of an error, it was return return an error value ONLY if we failure to report the error and even then the wrong error would be reported. This change now preserves and returns the correct error number that is the root cause of the failure.
3. Ran the file through tools/nxstyle and cleaned up many formatting problems.
2020-01-11 22:22:46 -03:00
Xiang Xiao
857158451b
Unify the void cast usage
...
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro
Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08:00
Gregory Nutt
9b77f80740
apps/netutils/dhcpd/dhcpd.c: Correct backward conditional logic in dhcpd_leaseexpired(). Noted by surya prakash <suryaec1684@gmail.com>.
2019-12-19 07:35:52 -06:00
Xiang Xiao
3a2bd2c05f
apps/netutils/ntpclient/ntpclient.c: Merge local structure variables xmit and recv into pkt to save the stack.
2019-12-18 09:39:57 -06:00
Gregory Nutt
3da8091d30
Include nuttx/symtab.h instead of nuttx/binfmt/symtab.h since symtab.h under binfmt folder is for internal use.
2019-12-10 08:39:22 -06:00
Xiang Xiao
0218a2fcc7
Fix compiler warnings:
...
tftpc_get.c: In function 'tftp_write': tftpc_get.c:307:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
int fd = (int)ctx;
^
tftpc_get.c: In function 'tftpget': tftpc_get.c:368:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
result = tftpget_cb(remote, addr, binary, tftp_write, (void*)fd);
^
2019-12-05 07:14:29 -06:00
Xiang Xiao
3bf17d602e
apps/netutils/ftpc: ix the compiler warnings:
...
ftpc_transfer.c:652:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
FAR struct ftpc_session_s *session = (FAR struct ftpc_session_s *)arg1;
^
ftpc_getreply.c: In function 'fptc_getreply': ftpc_getreply.c:218:58:
warning: passing argument 3 of 'wd_start' from incompatible pointer type [-Wincompatible-pointer-types]
ret = wd_start(session->wdog, session->replytimeo, ftpc_timeout, 1, session);
^~~~~~~~~~~~
In file included from
/workspace/mirtos/out/sim/miai/mirtos/nuttx/include/nuttx/sched.h:56:0,
from /workspace/mirtos/out/sim/miai/mirtos/nuttx/include/sched.h:49,
from /workspace/mirtos/out/sim/miai/mirtos/nuttx/include/stdio.h:48,
from ftpc_internal.h:48,
from ftpc_getreply.c:46: /workspace/mirtos/out/sim/miai/mirtos/nuttx/include/nuttx/wdog.h:247:5: note: expected 'wdentry_t {aka void
(*)(int, long long unsigned int)}' but argument is of type 'void (*)(int, uint32_t) {aka void (*)(int, unsigned int)}'
int wd_start(WDOG_ID wdog, int32_t delay, wdentry_t wdentry, int argc, ...);
^~~~~~~~
2019-12-05 07:11:47 -06:00
liuhuahang
ee53a90fa5
apps/netutils/ntpclient/Kconfig: NTP client should depend on NET_SOCKOPTS.
2019-12-05 07:09:27 -06:00
Gregory Nutt
1859f56380
apps/netutils/netinit, apps/netutils/netlib/, and apps/include/netutils/netlib.h: Extend a few definitions to permit building netutils and netinit with only Netlink sockets enabled.
2019-11-19 09:49:36 -06:00
Gregory Nutt
370bd94a6b
netutils/netlib/netlib_getdevs.c: Add comments and a placeholder for the RTM_NEWROUTE response.
2019-11-12 10:37:40 -06:00
Gregory Nutt
449290c8da
apps/examples/netlink_route: Add test/example of NETLINK_ROUTE 'get' opeations. apps/netutils/netlib: Fixes to NETLINK_ROUTE helpers found by testing with apps/examples/netlink_route.
2019-11-11 13:40:57 -06:00
Gregory Nutt
438777cd38
netutils/netlib/netlib_getroute.c: Add function to retrieve routing tables using netlink.
2019-11-10 12:36:34 -06:00
Gregory Nutt
e260ea779c
apps/netutils/netlib/netlib_getnbtab.c: Add a utility function that will return a list of all network devices in the UP state.
2019-11-09 17:38:02 -06:00
Gregory Nutt
2507cc15e8
netutils/netlib/netlib_getnbtab.c: Add support for retrieving a snapshot of the IPv6 neighbor table using Netlink sockets.
2019-11-08 11:30:32 -06:00
Gregory Nutt
f4f1ddccd7
netutils/netlib/netlib_getarptab.c: Per an old Linux Journal article, the nl_pid fild of struct sockaddr_nl should be set to the PID of the task that created the Netlink socket. Also fixes a warning.
2019-11-07 14:08:03 -06:00
Gregory Nutt
de9101a1d9
apps/netutils/netlib/netlib_getarptab.c: Fix typos in comments.
2019-11-04 12:31:13 -06:00
Gregory Nutt
af6719d78d
netutils/netlib/netlib_getarptab.c: Do not initialize response buffer, it is write-only. Also add a check to assue that the sequence number in the response is the same as the sequence number in the request.
2019-11-04 09:04:17 -06:00
Gregory Nutt
b65c3dac0e
netutils/netlib/netlib_getarptab.c: Misc fixes from initial testing with the 'arp -t' commeand.
2019-11-03 19:29:20 -06:00
Gregory Nutt
400995dec6
nshlib/nsh_netcmds.c: Add a -t option to the arp command which will enable printing the entire ARP table.
2019-11-03 16:19:14 -06:00
Gregory Nutt
768218ee81
netutils/netlib/netlib_getarptab.c: Add a function to read the entire ARP tableusing NETLINK_ROUTE protocol.
2019-11-03 15:13:47 -06:00
Xiang Xiao
403b4a0178
In all Make.defs files, append CONFIGURED_APPS with the consistent ifeq/ifneq.
2019-10-17 11:42:49 -06:00
Xiang Xiao
7808eb62d2
apps/: In all Make.def files, append to CONFIGURED_APPS patch with the absolute path.
2019-10-17 11:33:59 -06:00
Gregory Nutt
3a23523147
Makefiles: This reverts part of commit cf0365ea9
. It restores 'conditional' inclusion of TOPDIR/Make.defs. Otherwise all make targets fail if the board has not been configured. That is okay most of the time, but not for things like clean and distclean which should not depend on being configured.
2019-10-15 09:25:48 +08:00
Xiang Xiao
92e7b1f400
apps/: In Makefiles remove 'INCDIROPT = -w' which is already defined in apps/Make.defs.
2019-10-07 02:53:47 -06:00
Xiang Xiao
e806097c70
Application.mk and main.c files: Change builtin's entry point from main to xxx_main by macro expansion. This change make the entry point fully compliant with POSIX/ANSI standard.
2019-10-06 06:14:56 -06:00
raiden00pl
ab7c5a7d4e
Merged in raiden00/apps (pull request #200 )
...
Some improvements to netutils/cjson and testing/unity
* netutils/cjson/Makefile: fix the error when creating Make.dep
* testing/unity/Makefile: fix the error when creating Make.dep
* include/.gitignore: ignore cJSON headers
* netutils/cjson/Kconfig: update default version to 1.7.12. Previous releases raise compilation warnings about redefined true/false
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-10-06 11:55:23 +00:00
Xiang Xiao
e829f047bc
apps/; Change space to tab and help to ---help--- in Kconfig files.
2019-10-05 21:37:19 -06:00
Xiang Xiao
cf0365ea92
Clean up Makefile under apps folder no functional changes.
2019-10-04 08:35:46 -06:00
Xiang Xiao
e73ca15c99
Makefiles: Change ${shell pwd} to $(CURDIR) since pwd doesn't exist on Windows
2019-10-02 07:06:50 -06:00
Nathan Hartman
664e8a1410
Fix minor typos in docs and comments.
2019-09-29 12:53:39 -06:00
Xiang Xiao
70e7fafaed
Revert netutils/netlib: correct ICMPv6 socket create error. This reverts commit 0bcd3b76280ad100b2d0f7d813fa6d970f54b4f4.
2019-09-20 12:47:04 -06:00
ligd
2c34489e81
netutils/netlib/netlib_autoconfig.c: Correct ICMPv6 socket create error.
2019-09-15 08:40:05 -06:00
Nathan Hartman
b2a3ba57ff
Fix typos
2019-09-11 08:59:08 -06:00
Masayuki Ishikawa
811086ff85
Merged in masayuki2009/nuttx.apps/dhcpc_host_name (pull request #197 )
...
netutils/dhcpc: Add host name support to dhcp client
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-14 11:29:18 +00:00
Nathan Hartman
d6a3beadfb
Remove 'executable' bit on several files
2019-08-01 14:19:02 -06:00
Gregory Nutt
9e1cda95fb
Cosmetic fixes to spacing.
2019-07-27 08:49:34 -06:00
Nathan Hartman
4fd1058200
apps/netutils/netinit/netinit.c: Improve cleanup, removing 1 of 2 warnings. Unhook PHY notification signal handler when cleaning up, if an error occurs after the signal handler is put into place.
2019-07-26 10:59:28 -06:00
Anthony Merlino
87098590b5
Merged in antmerlino/apps/dhcpd-arp-fix (pull request #187 )
...
netutils/dhcpd: Fixes bug where hwaddr was being used instead of ipaddr in the ARP update.
This bug seems to have been introduced 3 years ago during a rewrite to remove a direct OS call to arp. I'm not sure how others have not run into issues with this. The behavior I was observing was that the DHCPD would go to offer an IP address, but then send a ARP request for the IP instead because it didn't know where to send the data.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-26 01:52:57 +00:00
Nathan Hartman
44a8d7c80e
netutils/netinit/Kconfig: Fix some typos.
2019-07-23 16:09:31 -06:00
Gregory Nutt
8f0b299e82
Trivially cosmetic
2019-07-11 12:15:08 -06:00
Masayuki Ishikawa
89d820e7d4
Merged in masayuki2009/nuttx.apps/fix_httpd_dirlist (pull request #184 )
...
neutils/webserver: Fix file corruption in httpd_dirlist.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-10 11:33:13 +00:00
Michael Jung
bf066f11e7
apps/netutils/cjson/Kconfig: stdio floating point support required. cJSON requires floating point support in printf (specifically the 'g' conversion specifier). Thus, select LIBC_FLOATINGPOINT when NETUTILS_CJSON is selected.
2019-07-07 11:33:44 -06:00
Masayuki Ishikawa
9eff955556
Merged in masayuki2009/nuttx.apps/fix_webserver_with_period (pull request #183 )
...
netutils/webserver: Fix directory listing containing period in name
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-06 13:05:45 +00:00
Masayuki Ishikawa
2bb4834775
Merged in masayuki2009/nuttx.apps/add_webserver_info (pull request #182 )
...
netutils/webserver: Add web server info based on uname()
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-05 11:42:54 +00:00
Gregory Nutt
39ad02f72e
netutils/webserver: Fix a few complaints from nutts/tools/nxstyle.
2019-07-04 21:21:26 -06:00
Masayuki Ishikawa
0b352178c1
Merged in masayuki2009/nuttx.apps/add_dirlist_to_webserver (pull request #181 )
...
netutils/webserver: Add directory listing to httpd
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-05 02:58:53 +00:00
Masayuki Ishikawa
c1317331d3
Merged in masayuki2009/nuttx.apps/mp3_on_webserver (pull request #180 )
...
netutils/webserver: Add mp3 mime type to httpd.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-04 11:28:29 +00:00
Masayuki Ishikawa
b12b61df69
Merged in masayuki2009/nuttx.apps/fix_webserver (pull request #179 )
...
apps/examples/webserver: Fix to compile with CONFIG_NETUTILS_HTTPD_SENDFILE=y
Also, in this PR, some configs such as CONFIG_NETUTILS_HTTPDFILESTATS
can be selected by menuconfig.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-03 12:20:29 +00:00
Gregory Nutt
bd14bf7165
apps/netutils/json: Removed. Replaced with apps/netutils/cjson.
2019-06-03 19:17:25 -06:00
Gregory Nutt
87c1083357
apps/netutils/netinit: MAC address configuration was represented by type long long. That is a problem for architectures that do not support typle long long. Replaces by two long configuration items.
2019-06-03 10:04:44 -06:00
Gregory Nutt
63de16bd58
netutils/telnetd/telnetd_daemon.c: Fix another C89 violation that caused the ez80 build to fail.
2019-06-03 09:07:07 -06:00
Gregory Nutt
dd35a7cacc
apps/: Removed all references to CONFIG_DISABLE_POLL. The standard POSIX poll() can not longer be disabled.
2019-05-21 19:08:12 -06:00
Sebastien Lorquet
fc7aa92b57
apps/netutils/libcurl4nx: This is an initial comit libcurl4nx. It is not complete yet, but I still wish to commit the unfinished bits to describe the roadmap, and because it is already usable. It will be updated and fixed in the future weeks and months, certainly including POST support and later, SSL.
...
Some improvements could be made by anyone. For example, I know the main routine in perform() shall be split into several parts for readability. I apologize in advance for this kind of spaghetti code, but I was short on time to refactor it. Also chunked HTTP transfer encoding would be a nice contribution from anyone interested. It is detected but not yet supported.
2019-05-03 07:26:13 -06:00
Gregory Nutt
8f5944c4a8
Squashed commit of the following:
...
include/ and netutils/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
nshlib/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
system/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
testing/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
examples/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
2019-04-29 14:53:38 -06:00
Gregory Nutt
ad57b3de4d
apps/graphics/twm4nx: Add options to initialize the system via boardctl() and to bring up the network using the new apps/netutils/netinit. This latter is only necessary because VNC is being used to provide graphics.
2019-04-29 11:49:15 -06:00
Gregory Nutt
94a0d92b54
This commit removes the private network initialization logic from NSH and puts in a common location at apps/netutils/netinit. Now that netork initialization logic can be used by applications that do not include NSH.
...
Squashed commit of the following:
apps/nshlib: Remove NSH initialization. Now uses the common apps/netutils/netinit logic (which was cloned from nshlib to begin with).
apps/netutils/netinit: Clone network initialization logic from NSH to this directory so that it can be available for general use.
2019-04-29 10:22:56 -06:00
Gregory Nutt
07b6eb555c
Trivial changes from review of last PR
2019-04-28 06:47:03 -06:00
raiden00pl
75aca388a4
Merged in raiden00/apps/cjson (pull request #175 )
...
netutils: support for the current version of cJSON
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-28 12:34:20 +00:00
Sebastien Lorquet
fe0954cd62
netutils/netlib/netlib_parseurl.c: Add a more flexible version of netlib_parsehttpurl. This one can parse any URL, and is extensible so future improvements keep the same API.
2019-04-26 13:08:38 -06:00
Alan Carvalho de Assis
5492fcdafa
apps//netutils/webclient/Kconfig: NET_SOCKOPTS is needed to get webclient compiled.
2019-02-24 13:55:19 -06:00
Gregory Nutt
b2f46360de
apps/: Remove/replace all conditional logic based on CONFIG_NSOCKET_DESCRIPTORS == 0. That value is always greater than zero now. In places just replace with #ifdef CONFIG_NET.
2019-02-11 16:23:55 -06:00
Gregory Nutt
a14f3fbffb
apps/netutils/tftpc: Fix unmatched #endif found in build testing
2019-02-11 15:52:37 -06:00
Gregory Nutt
9db029e318
The file system can no longer be disabled. Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS==0
2019-02-11 13:10:10 -06:00
Kevin Liu
721bb64e52
apps/netutils/dhcpc/dhcpc.c: Fix an error for DHCP REQUEST receiving a NAK.In DHCP Request operation, no need to update ciaddr to the client address and keep it as 0.
2019-01-30 07:49:37 -06:00
ligd
557cd8e454
netutils/codecs/base64.c: Add base64_[de|en]code_length() API
2019-01-27 07:20:25 -06:00
Xiang Xiao
4d2f580568
apps/netutils/codecs/base64.c: Remove the big stack array
2019-01-27 07:17:07 -06:00
Alan Carvalho de Assis
25c0387c44
apps/examples/battery: Add Battery Charger Monitor Example
2019-01-04 12:15:05 -06:00
Gregory Nutt
0c615ed586
Fix a few typos.
2018-12-27 08:48:52 -06:00
Gregory Nutt
3adf8af266
netutils/webserver/httpd.c: Eliminate some warnings found in build testing.
2018-11-25 18:43:09 -06:00
Gregory Nutt
e88a529010
From patch attached to nuttx/ Bitbucket Issue #136 from Vlado Vidovic:
...
The patch provided in issue 135, which adds support for HTTP Chunked Encoding, covers all paths in the webserver app except CGI callbacks. As a result, if a page being served happens to use CGI, it could generate stream content that does not comply with HTTP Chunked Encoding.
The patch attached amends the webserver app's CGI callbacks to use the HTTP Chunked Encoding sender function instead of using send() directly.
2018-11-23 17:29:07 -06:00
Gregory Nutt
d3c36663d0
netutils/webserver: Contributed by "Anonymous" via attachment to Bitbucket issue #135 : "webserver broken when scripting support enabled - support for chunked encoding fixes it"
...
The webserver/httpd app is currently broken when script support is enabled (CONFIG_NETUTILS_HTTPD_SCRIPT_DISABLE). The root cause has been tracked down to the "Content-length" not being available ahead of time in this case (length of -1 passed to send_headers() ). On the other hand, the server closing the socket does not result in FIN being sent to the browser either (FIN not supported by NuttX yet).
Simple solution: Add support for HTTP Chunked Encoding to webserver/httpd (attached patch).
The attached patch is simple. It adds a configuration option to enable chunked encoding. When enabled, the implementation will auto-detect the cases where content length is not available ahead of time, and will automatically engage chunked encoding transfers.
Without this patch, the browser/client hangs forever, as it is expecting more data. With this patch, the browser displays the content.
2018-11-23 10:13:34 -06:00
ligd
f954b15cac
pps/system/ping and pings and apps/netutils/ping: Extract icmp ping and icmpv6 ping6 logic from system/ to C-callable library in netutils/.
2018-11-08 09:32:05 -06:00
Gregory Nutt
48ebc1377a
apps/netutils/pppd/: More changes for consistency in coding style.
2018-11-07 13:43:51 -06:00
Gregory Nutt
bb21a11a60
apps/netutils/pppd: Fix some naming convention violations.
2018-11-07 13:37:37 -06:00
Xiang Xiao
cddfda99f0
apps/netutils/pppd: Refine and fix pppd code.
...
Reviewers note: Reviewing the changes I also see that these file did not follow the NuttX codings standard. I ran all files through nuttx/tools/indent.sh, manually reviewed all files for coding style issues. I also changed occurrences of non-standard types u8_t, u16_t, and u32_t to the standard uint8_t, uint16_t, and uint32_t.
2018-11-07 12:43:42 -06:00
Xiang Xiao
c1f0653c85
apps/netutils/chat and apps/examples/chat: 'constify' chat variables and parameters
2018-11-07 11:55:09 -06:00
Gregory Nutt
a26a7f9767
apps/netutils/netlib and apps/examples/igmp: Adapt to use the corrected, semi-standard version of struct ip_msfilter.
2018-10-29 06:51:56 -06:00
Gregory Nutt
e363b27b09
apps/netutils/codecs/base64.c: Cosmetic changes from review. Various coding style issues and removed all old commented out code.
2018-10-19 06:40:44 -06:00
Aleksandr Vyhovanec
9aa2f5c5a2
Merged in AVyhovanec/apps (pull request #158 )
...
"dst" overflow protection when base64 string ends with "="
Approved-by: GregoryN <gnutt@nuttx.org>
2018-10-19 12:29:12 +00:00
Gregory Nutt
386c29bbaf
netutils/netlib/netlib_parsehttpurl.c: Rethink last commit. I think it still needs to continue parsing to the end of the hostname string after the E2BIG error has occurred.
2018-09-30 08:46:52 -06:00
Gregory Nutt
2d9a916be1
apps/netutils/netlib/netlib_parsehttpurl.c: Correct handling of long URLs as noted in Bitbucket issue #119 (in the nuttx/ repository, not the apps/ repository).
2018-09-30 08:33:10 -06:00
Gregory Nutt
42e99d59ce
Correct some network-related configuration variable names. All *_MTU defines were changes to *_PKTSIZE gut that was not reflected in apps/
2018-09-14 07:06:06 -06:00
EunBong Song
fa8c4cbae3
Merged in ebsong/fork-apps (pull request #153 )
...
netutils/ping: remove unsupported ping.
netutils/ping is not supported anymore.
it's better to remove this folder for preventing confusing.
ping is supported by system/ping.
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Approved-by: GregoryN <gnutt@nuttx.org>
2018-09-05 20:52:28 +00:00
anchao
b5cfd93444
apps/: Modification to build system: Unified application compilation rules
2018-09-03 09:29:56 -06:00
Xiang Xiao
5304ec5eec
Replace all ASSERT calls to DEBUGASSERT
2018-08-24 06:19:35 -06:00
anchao
220653f21c
Squashed commit of the following:
...
Author: anchao <anchao@pinecone.net>
apps/, most main() function: Correct CONFIG_BUILD_LOADABLE usage
Loadable apps/: Correct loadable symbol table generate
apps/system/ubloxmodem: Fix build break
apps/examples/ostest: start restart/waitpid/user test from main loop
apps/nshlib: Expand reboot and poweroff commands to include a second, optional mode argument
Author: Gregory Nutt <gnutt@nuttx.org>
An attempt to fix build issues. Does not work.
apps/examples/ostest: Fix some inappropriate renaming of static functions introduced with recent patches.
apps/builtin/exec_builtin.c: Fix a error introduced by recent comments. Found in build testing.
Author: anchao <anchao@pinecone.net>
apps/builtin/exec_builtin.c: Try posix_spawn if builtin apps do not have have an entry point.
apps/Application.mk: introduce MODULE config to simplify tristate(m)
apps/nsh: Change the nuttx shell module type to tristate
apps: Add loadable application support
script/mksymtab: Generate symbol table name by default
apps/builtin: Allow loadable applications can register with apps/builtin.
2018-08-23 11:06:15 -06:00
Gregory Nutt
2f982e9c77
Revert "Squashed commit of the following:"
...
This reverts commit 25b92edd9f
.
2018-08-22 12:06:32 -06:00
anchao
25b92edd9f
Squashed commit of the following:
...
apps/builtin/exec_builtin.c: Try posix_spawn if builtin apps do not have have an entry point.
apps/Application.mk: introduce MODULE config to simplify tristate(m)
apps/nsh: Change the nuttx shell module type to tristate
apps: Add loadable application support
script/mksymtab: Generate symbol table name by default
apps/builtin: Allow loadable applications can register with apps/builtin.
2018-08-22 09:30:38 -06:00
Gregory Nutt
a89f0e3a07
Add missing function names in function headers.
2018-08-13 15:52:59 -06:00
Gregory Nutt
a57610c2c4
Remove trailing spaces at the end of lines.
2018-08-13 07:47:26 -06:00
Gregory Nutt
4d8b8fa177
apps/netutils/dhcpc: Activates BINDTODEVICE if available, and break up some long lines
2018-06-25 15:19:01 -06:00
Dmitriy Linikov
1b4d17d9c0
apps/netutils/ftpc: Fixed handling of url-encoded strings
2018-06-04 14:29:35 -06:00
Gregory Nutt
0094b411da
apps/netutils/netlib: Various fixes needed to get a clean netlib build with Bluetooth only.
2018-04-03 10:01:55 -06:00
Sebastien Lorquet
3211ab9069
apps/netutils/tftpc: This commit modifies the TFTP client functions to use a data read/write callback instead of a file.This allows TFTP to write to arbitrary destination (in my case, a MTD device - for firmware update). Two new functions are introduced for this, named tftpget_cb and tftpput_cb. They are just made of most of the existing code. The previously existing tftpget/tftpput functions are now wrappers on the new ones, with callbacks that read/write from files, so my modifications are backwards compatible with existing applications, eg the associated nsh commands dont need to be changed.
2018-03-09 07:08:06 -06:00
Dmitriy Linikov
2f2fb92ae3
Merged in hardlulz/modem-3.0-nuttx-apps/fix-sem-EINTR (pull request #133 )
...
Added ECANCELED condition to DEBUGASSERT-s checking sem_wait result
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-02-20 18:37:32 +00:00
Gregory Nutt
8d96448a88
Correct a typo in some C comments.
2018-02-09 11:15:35 -06:00
Masayuki Ishikawa
14959b43e0
apps/netutils/netlib: Add default route in netlib_set_dripv4addr()
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2018-01-19 09:06:55 +09:00
Gregory Nutt
661718ee19
apps/nshlib: Add irqinfo command.
2018-01-12 17:58:44 -06:00
Gregory Nutt
4ad9d7ec19
apps/netutils/ftpc: Fix a typo/compile problem found in build testing.
2018-01-04 18:00:04 -06:00
Gregory Nutt
ccee5daaf3
apps/netutils/ftpc: Fix some cornercases that could cause FTP to access past the end of valid data.
2017-12-21 12:05:28 -06:00
Gregory Nutt
68affc6c08
netutils/ftpc: Eliminate warnings about types of inputs to netlib_ipv4adaptr() and about ftp_cmd_pasv() being defined but not used.
2017-11-12 13:31:36 -06:00
Anthony Merlino
f489bcd6f9
Merged in antmerlino/apps/ftp-ipv6 (pull request #122 )
...
FTP: Adds support for IPv6 and fixes various transfer issues
* netutils/ftpd: Fix support for IPv6 FTP server
* netutils/ftpc:Adds support for IPv6 sockets
* ftpc: Must convert port received by EPSV reply to network order
* ftpc: Data socket address for passive connection should be same as server address
* ftpc: Must skip human readable string in EPSV response before scanning for port
* ftpc: Don't send PASS command if USER command was sufficient. ie no password required
* ftpc: Generically handle permanent negative completion in shard ftpc_cmd logic
* ftpc: Minor addresssing fix
* ftpc: Tweak logic for overriding network debugging output
* FTP: Adds option for setting stack size of various threads in FTPD and FTPC
* netutils/ftpd: Fixes build error setting IPv4 address. sin_addr => sin_addr.s_addr
* netutils/ftpd: Protects against partial write returns by looping in that case
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-06 23:41:30 +00:00
Gregory Nutt
6b9d23c6aa
Correct and standardize some naming used in the previous commits.
2017-10-30 14:16:37 -06:00
Gregory Nutt
8af55bbdcc
netutils/ftpc: Fix some crazy comparisons to determine is a file is an absolute path. Noted by Anthony Merlino.
2017-10-13 15:36:36 -06:00
Gregory Nutt
27773d570b
Fix a copy-paste error
2017-09-20 10:59:00 -06:00
Gregory Nutt
dc5be379a9
Squashed commit of the following:
...
apps/netutils/netlib: netlib_ipv[4|6]adaptor() will now use the new routing table interfaces if they are available: If the desination IP address does not correspond to the network served by any device, then the address of the router that should get us to the correct sub-net is is determined. Then the network adaptor that can communicate with the that router has the IP address that will returned.
apps/netutils/netlib: Add new utilities netlib_ipv[4|6]router() that can be used to determine the IP address of a router that would be used some some destination IP address that is not locally accessible.
apps/netutils/netlib: Add helpers for reading the routing table: netlib_read_ipv4route() and netlib_read_ipv6route()
2017-09-20 10:35:56 -06:00
Gregory Nutt
fb804e3498
netlib_ipv[4|6]adaptor: Add a check to handle the case where the network device configuration changed asynchronously and the second IOCTL returns more data than the allocated buffer.
2017-09-20 06:52:05 -06:00
Gregory Nutt
2cd27e17a1
Update some comments.
2017-09-19 17:07:02 -06:00
Gregory Nutt
450624c370
Squashed commit of the following:
...
netutils/netlib: Add netlib_ipv6adaptor()
netutils/netlib: Add netlib_ipv4adaptor()
2017-09-19 15:21:13 -06:00
EunBong Song
d0f74f5346
dhcpd: Prevent buffer overflow in dhcpd_addoption. offset represents distance from start of option buffer. So this should be changed current option pointer minus start of buffer.
2017-08-25 06:50:37 -06:00
Gregory Nutt
41ce937ed0
Changes to netlib and nsh so that you build build with PF_IEEE802154 enabled and 6LoWPAN disabled.
2017-08-20 09:09:47 -06:00
Gregory Nutt
6cbf2b9130
Squashed commit of the following:
...
commit 6fbbca4ce308f5d8130d795342c7639555a7e5bf
Author: Gregory Nutt <gnutt@nuttx.org>
Date: Sat Aug 19 08:46:27 2017 -0600
apps/examples/pf_ieee802154: Add PANID to command line options; Cannot bind to address zero... There is no counterpart to INADDR_ANY for these radios (not now at least).
commit 354111108a88f549248537e79dbf79998f458ded
Author: Gregory Nutt <gnutt@nuttx.org>
Date: Fri Aug 18 17:47:10 2017 -0600
PF_IEEE802154: A few bugfixes
commit f1bb947609ed5e9e8816234653d6c8ee24585079
Author: Gregory Nutt <gnutt@nuttx.org>
Date: Fri Aug 18 15:17:32 2017 -0600
Add file missed in last commit
commit 9a73930e864db83609b5cc0d7c940d8efeaade66
Merge: 315b888f c433e07a
Author: Gregory Nutt <gnutt@nuttx.org>
Date: Fri Aug 18 12:08:03 2017 -0600
Merge remote-tracking branch 'origin/master' into pf_ieee802154
commit 315b888f4e72523d90b526edc5a82fb97678ff7e
Author: Gregory Nutt <gnutt@nuttx.org>
Date: Fri Aug 18 12:06:51 2017 -0600
examples/pf_ieee802154: Add for testing PF_IEEE802154 sockets.
2017-08-19 08:47:35 -06:00
Gregory Nutt
c433e07a27
netutils/netlib: Add a help to decode short addresses.
2017-08-18 12:07:41 -06:00
Gregory Nutt
7a8561728c
The last change added .PRECIOUS: $(BIN) to everyway Makefile in hopes the libapps.a will not be deleted on Control-C (unproven so far). However, $(BIN) may contain back slashes in some build platforms and that causes problems for make: It can't handle the backslashes in the .PRECIOUS dependency list. $(BIN) replaced with ../../libapp.a, where the number of ../ depends on the depth of the Makefile in the apps/ source tree.
2017-08-13 11:03:17 -06:00
Gregory Nutt
a66da34f18
All Makefiles: Add .PRECIOUS: apps/libapps.a to every Makefile. Hopefully this will end awkward problems when you Control-C out of a build and libapps.a is deleted.
2017-08-13 09:35:14 -06:00
Gregory Nutt
929a86efde
netutils/ftpc: Fix warning about free() being implicitly defined
2017-08-12 17:03:18 -06:00
Gregory Nutt
15eb6dd518
netutils/thttpd: Fix a malformed if condition detected by GCC 6.x.x
2017-08-12 16:55:51 -06:00
Gregory Nutt
99593b6ed9
apps/netutils/tftpc depends on CONFIG_NET_IPv4
2017-08-12 11:36:19 -06:00
Gregory Nutt
4ee084ab24
Remove references to obsoleted CONFIG_NETDEV_MULTINIC and CONFIG_NETDEV_MULILINK.
2017-08-08 18:37:00 -06:00
Gregory Nutt
ea95f710db
netutils/netlib: Eliminate a warning
2017-08-05 09:27:11 -06:00
Gregory Nutt
3b8c97747d
netutils/netlib: Fix netlib_nodaddrconv() so that its return type is the same as other address conversion functions. NSH: Correct parsing of ifconfig so that you can specify the HW address without specifying the IP address.
2017-08-02 14:30:34 -06:00
Gregory Nutt
c343fc618e
apps/netutils/netlib: Add support for PktRadio IOCTL commands.
2017-08-02 12:40:50 -06:00
Boris Astardzhiev
158cbeb151
netutils/ftpc: Fix some memory leaks
2017-07-27 07:29:06 -06:00
Gregory Nutt
234afcd85b
netutils/netlib: Fixes to work when only USRSOCK is enabled.
2017-07-14 16:22:14 -06:00
Gregory Nutt
7441c5422f
Socket I/F: Cleanup for good CONFIG_NET_PKT build.
2017-07-14 13:43:04 -06:00
Gregory Nutt
47aed25836
Fixes to get apps/examples/udgram building again.
2017-07-14 11:35:26 -06:00
Gregory Nutt
ae1eeada8a
Eliminate a warning
2017-07-10 14:36:56 -06:00
Gregory Nutt
ad2f724daf
apps/netutils/tftpc: Missing header file causes errors in some configurations.
2017-07-10 13:19:16 -06:00
Gregory Nutt
28415d662b
netutils/telnetd and users of telnetd: Add support for IPv6.
2017-06-27 09:14:13 -06:00
Gregory Nutt
666771f18c
system/telnet: Add Telnet Chat deamon and and client from libtelent.
2017-06-26 16:39:39 -06:00
Gregory Nutt
82aad87122
netutils/telnetc: This a port of libtelnet to NuttX.
2017-06-26 14:37:54 -06:00
Anthony Merlino
c2ad1d2d1c
Switches IEEE 802.15.4 based code to using byte arrays instead of uint16_t values for short address and PAN ID
2017-06-19 05:56:52 -04:00
Gregory Nutt
2bb14d854d
L should be capitalized in 6LoWPAN
2017-06-18 16:02:11 -06:00
Gregory Nutt
14b10bffef
Add missing that I forgot to add in a previous commit.
2017-06-17 11:32:00 -06:00
Gregory Nutt
033b42789b
NSH: Fix some ieee 802.15.4 initialization logic. It should not set the saddr or panid; those cannot be hard-coded but must come from the coordinator.
2017-06-17 10:04:18 -06:00
Gregory Nutt
2984fa3911
apps/system/dhcpc: Add a command to renew or establish a lease on an IPv4 address.
2017-05-21 10:51:26 -06:00
Gregory Nutt
82debd80dc
Fix some coding standard issues.
2017-05-19 15:41:28 -06:00
Sebastien Lorquet
ea1025ead2
DHCPC: Remove hard-coded interface device. Now passed as a parameter to dhcpc_open().
2017-05-19 15:31:22 -06:00
Juha Niskanen
0bcd50d7a1
apps/: Make more globals static to avoid name clashes
2017-05-19 07:13:12 -06:00
Gregory Nutt
13911d9b17
Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they.
2017-05-11 13:40:03 -06:00
Anthony Merlino
3b824ed5a2
wireless/ieee802154: Removes libradio to coincide with removal of ioctl with radio
...
Moves all functionality from libradio to libmac
2017-05-05 11:13:38 -04:00
Gregory Nutt
44ace8e1cc
6loWPAN: Replace some Rime address naming with more consistent short/exended address terminology
2017-05-04 08:21:12 -06:00
Gregory Nutt
67fb7183cb
Merge remote-tracking branch 'origin/master' into ieee802154
2017-05-04 07:12:26 -06:00
Simon Piriou
33027bd66e
wireless/wext: Add drivers_wext from the WPA supplicant; Integrate into NSH
2017-05-02 09:43:48 -06:00
Gregory Nutt
4ba1f8665d
netutils/dhcpc: Make the network device name a configuration option. Was hardcoded to eth0 but may, instead, need to be wlan0
2017-05-02 08:20:05 -06:00
Gregory Nutt
0d1a7d1e18
Merge branch 'ieee802154' of https://bitbucket.org/nuttx/apps into ieee802154
2017-04-26 15:18:05 -06:00
Gregory Nutt
b9a552013f
wireless/wapi: Improve error reporting IOCTL failures.
2017-04-26 12:34:50 -06:00
Gregory Nutt
fc4e819d21
Various fixes for problems discovered in testing.
2017-04-21 16:24:28 -06:00
Gregory Nutt
450f962602
netlib: Get and/or set PAN ID of IEEE 802.15.4 radio.
2017-04-21 14:55:24 -06:00
Gregory Nutt
adc1b27051
Remove the 6loWPAN PANID IOCTLs they are redundant.
2017-04-21 14:12:46 -06:00
Gregory Nutt
c2bdd49421
netlib and NSH: Add logic to set the IEEE802.15.4 PAN ID.
2017-04-19 18:10:39 -06:00
Gregory Nutt
8369052a22
NSH library: Extend ifconfig to support 6loWPAN. Adapt to some changes in configuration variable usage.
2017-04-08 12:21:40 -06:00
Gregory Nutt
ec6ff2791a
netutils: Add a helper function to convert a string to a 6loWPAN node address
2017-04-08 12:19:35 -06:00
Gregory Nutt
194c2d86a8
6loWPAN: Add network IOCTL support to set the node address
2017-04-06 16:00:41 -06:00
Gregory Nutt
efa2de16a4
NSH: Fix some warnings about integer/pointer casts of different sizes (probably only effects 64-bit simulation)
2017-04-03 09:26:10 -06:00
Gregory Nutt
84444e4dcc
netutils/nshlib: Add wrapper to get the wireless ESSID.
2017-03-13 14:16:26 -06:00
Gregory Nutt
0cb844e790
netutils/netlib: Add one wireless IOCTL wrapper. For now, this is just a test to be sure that the wireless IOCTL definitions are in place.
2017-03-13 10:16:20 -06:00
Maciej Wójcik
c58bfb7f84
The CONFIG_NETUTILS_HTTPD_PATH constant is used by httpd_mmap.c and httpd_sendfile.c but It was not present in Kconfig menu.
2017-03-05 10:36:01 +00:00
Gregory Nutt
c69ec6c7e8
netutils/webserver: Needs to include strings.h for strcasecmp()
2017-02-27 09:03:28 -06:00
Gregory Nutt
81645fe18f
strcasecmp, strncasecmp, bzero, bcmp, and bcopy should be defined in strings.h, not string.h. bzero, bcmp, and bcopy are legacy functions; the contemporary counterparts should be used instead.
2017-02-16 15:58:15 -06:00
Pierre-Noel Bouteville
4765d7baf8
fix bug un ftpd file or socket may be not closed
2016-12-04 08:39:40 -06:00
Pierre-Noel Bouteville
b3c90a4484
esp8266 update cosmetic and many bug fix
2016-12-04 08:35:02 -06:00
Pierre-Noel Bouteville
85eea42ff6
Import patch to fix:cJSON_PrintUnformatted() behaves unexpected if an empty array shall be printed to text. from Jerome Lang 2012-04-19
2016-12-04 08:14:56 -06:00
Pierre-Noel Bouteville
feb18e9750
netutils/ntpclient: Fix missing left parenthesis.
2016-12-04 08:03:47 -06:00
Pascal Speck
4bf63f12c3
Fixed bug that didn't free ftpd ressources on exit
2016-11-21 17:08:55 +01:00
Sagitta Li
e1a649f0e9
Correct syntax error in include directive
2016-09-22 07:57:48 -06:00
Gregory Nutt
09bcce52fa
Fix errors in file headers
2016-08-23 14:55:19 -06:00
Gregory Nutt
f87893b514
Move include/nuttx/regex.h to include/nuttx/lib/regex.h
2016-07-21 13:42:06 -06:00
Pierre-noel Bouteville
c4f6897c8f
ESP8266 Kconfig: Select ARCH_HAVE_NET when NETUTILS_ESP8266 is selected. This allows, among other things, support for network debug output.
2016-07-14 09:30:59 -06:00
Sebastien Lorquet
2cbad44f1d
This is the Pokemon patch to change all includes fronm <apps/bla/bla.h> to "bla/bla.h"
2016-07-11 10:11:18 -06:00
David Alessio
8997e5849d
The NTP client will now optionally use pool.ntp.org as the NTP server; and reset the retry count upon success -- more robust.
2016-07-10 17:47:07 -06:00
Gregory Nutt
0e76ca7474
Move apps/include/nsh.h to apps/include/nshlib/nshlib.h
2016-07-01 06:59:23 -06:00
Gregory Nutt
4343a6ef8b
Move apps/include/ftpc.h to apps/include/netutils/ftpc.h
2016-07-01 06:36:07 -06:00
Gregory Nutt
2ee4ced33b
Typo: fwerr, not fderr
2016-06-21 18:10:07 -06:00
Gregory Nutt
1ea1cc5cde
Fix fwdbg vs fwerr naming inconsisency
2016-06-20 16:31:47 -06:00
Gregory Nutt
d32f16450d
Without lowsyslog() *llerr() is not useful. Eliminate and replace with *err().
2016-06-20 12:39:46 -06:00
Gregory Nutt
bb06f7368f
Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info().
2016-06-20 11:48:15 -06:00
Gregory Nutt
5098539063
Add _ to front of remaining debug macros
2016-06-16 12:12:34 -06:00
Gregory Nutt
cc03ecefc8
Rename err() to _err()
2016-06-16 11:44:22 -06:00
Gregory Nutt
a50383db3d
apps/graphics and netutils: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.
2016-06-14 17:53:47 -06:00
Gregory Nutt
a7b1aae68c
Fix some warnings
2016-06-13 12:06:44 -06:00
Gregory Nutt
4a0db11565
Eliminate some warnings
2016-06-12 17:33:49 -06:00
Gregory Nutt
586b0aa7e0
Change names of *dbg() * *err()
2016-06-11 15:51:27 -06:00
Gregory Nutt
f4bae25e32
Rename *lldbg to *llerr
2016-06-11 14:55:13 -06:00
Gregory Nutt
e82a54bf18
Reserver the name 'err' for other purposes
2016-06-11 14:49:55 -06:00
Gregory Nutt
468bdcf8e6
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
2016-06-11 14:13:39 -06:00
Gregory Nutt
344c92e2a4
Replace all occurrences of vdbg with vinfo
2016-06-11 11:55:38 -06:00
Gregory Nutt
56e75e9db8
Rename CONFIG_DEBUG_VERBOSE to CONFIG_DEBUG_INFO
2016-06-11 11:50:38 -06:00
Gregory Nutt
ee8a62f009
netutils/esp8266/: CONFIG_SERIAL_TERMIOS must be defined in order to set BAUD
2016-06-11 07:55:33 -06:00
Gregory Nutt
8f0e214772
Trivial changes from review of last PR
2016-06-11 07:36:45 -06:00
Pierre-noel Bouteville
6486bb0ff7
Merged nuttx/apps into master
2016-06-11 12:52:35 +02:00
pnb
96853cfea1
commetic
2016-06-11 12:51:56 +02:00
pnb
dab4105f80
add lesp_set_baudrate
2016-06-11 12:46:26 +02:00
pnb
0a68db79f6
esp8266 bug fix
2016-06-10 23:17:09 +02:00
Sebastien Lorquet
7ca5478da3
Rearrange to eliminate Kmenu files
2016-06-09 08:59:16 -06:00
David S. Alessio
bfd5ca7cd2
NTP Client: All retries; Add initialization in NSH network startup logic.
2016-06-09 08:18:49 -06:00
Gregory Nutt
8de50dc0cf
Add a default value for DELIM
2016-06-07 08:43:21 -06:00
Sebastien Lorquet
6217849db2
fix a gitignore rule
2016-06-02 16:54:39 +02:00
Sebastien Lorquet
a9aa753fa4
Recursive Kconfig autogeneration
2016-06-02 16:34:00 +02:00
Sebastien Lorquet
ae6c0b832c
Individual app kconfig fixes
2016-06-02 16:26:32 +02:00
Sebastien Lorquet
b354a41fd4
Use directory.mk for recursive dir makefiles
2016-06-02 16:25:51 +02:00
Sebastien Lorquet
bfff5e7179
Add empty preconfig rules to 'leaf' makefiles
2016-06-02 16:24:30 +02:00
Sebastien Lorquet
9a406515d7
make the full tree use wildcards make.defs
2016-06-02 16:21:21 +02:00
Sebastien Lorquet
bfff7dc4ca
add kmenu files
2016-06-02 15:23:50 +02:00
Gregory Nutt
2e882c7289
Lets use alphabetical ordering in last change
2016-05-25 14:21:37 -06:00
Gregory Nutt
ee3f0fffe4
netutils: Fix error in build system recently introduced
2016-05-25 14:20:17 -06:00
Gregory Nutt
eb1533ffc2
ESP8266: Correctly integrate into Make system. Does not depend on CONFIG_NET. FIFO should probably be a circular buffer.
2016-05-23 07:48:14 -06:00
Gregory Nutt
cf2ee7e409
ESP8266: Used NuttX dbg() instead of unconditional syslog() calls.
2016-05-21 15:50:24 -06:00
Gregory Nutt
d5b00bafbd
eps8266: Fix FIFO implementation; it was a stack not a FIFO.
2016-05-21 15:42:35 -06:00
Gregory Nutt
8217864a10
Add .gitignore file for ESP8266
2016-05-21 11:11:32 -06:00
Gregory Nutt
15fd860a2f
Space after comma
2016-05-21 09:42:53 -06:00
Gregory Nutt
6789eec9d8
ESP8266: Fix fifo logic; make configration variable naming consistent
2016-05-21 09:20:37 -06:00
Gregory Nutt
abdf703746
Add ESP8266 driver application. From Pierre-noel Bouteville
2016-05-21 09:13:23 -06:00
Gregory Nutt
ed820c1850
THTTPD: Include timers.h before libhttpd.h to avoid and undefined type error. Noted by Matt Poppe.
2016-02-24 09:42:06 -06:00
Gregory Nutt
5642e02f77
Fix some incorrect usage of INADDR_ANY
2016-02-09 11:24:30 -06:00
Gregory Nutt
1482732f18
NetLib: Move functions in netlib.c to separate files; improve some naming
2016-02-08 16:09:24 -06:00
Gregory Nutt
b8c8bea22c
Add an 'arp' command to NSH to support access to the OS ARP table
2016-02-08 14:49:05 -06:00
Gregory Nutt
85b5341d7b
DHCPD no longer calls directly into the OS, but uses network IOCTL commands to modify the ARP table.
2016-02-08 12:07:47 -06:00
Gregory Nutt
3f95e05bc2
NetLib: Add utility functions to support access to the ARP table
2016-02-08 11:44:59 -06:00
Gregory Nutt
3ef9b14738
Move apps/examples/ubloxmodem to apps/system/ubloxmodem
2016-01-31 09:35:42 -06:00
Gregory Nutt
203589e526
Additional, trivial changes from review
2016-01-29 17:11:06 -06:00
Vladimir Komendantskiy
387dda152c
chat app and required update to the pppd client.
2016-01-29 17:00:59 -06:00
Gregory Nutt
b5c5055c41
NSH: Remove partial implementation of the use of IOBJ/IPTR in NSH. There are some complications
2016-01-17 07:53:52 -06:00
Gregory Nutt
a88338b41a
Merge remote-tracking branch 'origin/master' into resolv.conf
2016-01-14 15:17:20 -06:00
Pelle Windestam
16c02a07d7
Add netlib_get_dripv4addr() and netlib_get_ipv4netmask()
2016-01-14 07:24:36 -06:00
Gregory Nutt
0d058af821
Step 1 in /etc/resolv.conf support
2016-01-13 15:08:59 -06:00
Gregory Nutt
cfcd396861
apps/netutils/ping: This is an unfinished implementation of ping/ping6 using raw packets. Not yet even hooked into the build and configuration systems
2015-12-11 09:09:38 -06:00
Gregory Nutt
c0d0a0821a
netutils/telnetd: No longer calls OS interfade telnet_driver. Now creates Telnet sessions by open a new factory device at /dev/telnet and then using ioctl calls to create the session character drivers at /dev/telnetN.
2015-12-07 13:51:37 -06:00
Gregory Nutt
ba8d44d799
netutils/telnetd: Move the Telnet driver to nuttx/drivers/net
2015-12-07 09:29:29 -06:00
Gregory Nutt
9faf23290c
netutils/telnetd: Remove unused parameter from telnetd_driver
2015-12-07 08:15:50 -06:00
Gregory Nutt
449af751a8
Eliminate a warning
2015-12-05 10:36:19 -06:00
Gregory Nutt
aacfce081e
Fix several cosmetic, C coding style issues
2015-10-03 11:03:42 -06:00
Gregory Nutt
f6e7e9c1c0
Standardize the width of all comment boxes in C files
2015-10-03 07:20:15 -06:00
Gregory Nutt
e3ad56043e
Standardize naming used for public data and function groupings
2015-10-02 16:20:33 -06:00
Gregory Nutt
e9447c6058
Standardize nameing of the pre-processor definitiongs group header
2015-10-02 14:06:11 -06:00
Gregory Nutt
be5b2a5187
Eliminate warnings
2015-09-08 10:21:56 -06:00
Gregory Nutt
f10f2de2e4
Eliminate some warnings
2015-09-08 09:20:49 -06:00
Gregory Nutt
6b1d61c759
More references to avsprintf that need to be changed vasprintf
2015-09-07 17:09:11 -06:00
Alan Carvalho de Assis
e7ba97e2b5
Fix pap authentication, pap_username and pap_password were moved to struct settings
2015-09-07 13:34:01 -06:00
Gregory Nutt
ae0d87c0cb
PPPD: Fix a few coding style problems
2015-09-01 17:28:17 -06:00
Gregory Nutt
74801cf38e
apps/tools/mkkconfig.sh: The top-level Kconfig file is not auto-generated. The autogenerated Kconfig file will be constructed so that every second level directory that contains a Kconfig file will automatically be sourced
2015-08-11 17:49:10 -06:00
Anton D. Kachalov
b43c5a6b1e
THTTPD: Depends on !DISABLE_POLL
...
webserver: Allow to build webserver as an application
Signed-off-by: Anton D. Kachalov mouse@yandex-team.ru
2015-08-10 14:44:11 -06:00
Librae
46b257c945
netutils: fix a typo while validating addrlen
2015-07-24 02:26:54 +08:00
Gregory Nutt
7e43ffa602
Fix a bad function prototype introduced in a previous commit
2015-07-12 13:42:28 -06:00
Gregory Nutt
ba72767d09
apps/netutils/netlib and other files: Create netlib wrapper functions around dns_getserver() and dns_setserver() to isolate application code from changes to those interfaces.
2015-07-12 11:53:23 -06:00
Gregory Nutt
812450ebe6
If NSH or Webclient is selected, make sure that CONFIG_LIBC_NETDB is enabled; reanem dnsclient.h to dns.h
2015-07-12 09:25:39 -06:00
Gregory Nutt
c7bd1f4186
Replaces calls to non-standard dns_hostip() with calls to the standard gethostbyname()
2015-07-11 08:15:29 -06:00
Gregory Nutt
ae57fd7ee2
Fix some warnings/errors detected by nuttx/tools/testbuilds.sh
2015-07-10 18:41:56 -06:00
Gregory Nutt
5e8928d009
Remove bogus references to CONFIG_HAVE_GETHOSTBYNAME
2015-07-10 14:03:28 -06:00
Gregory Nutt
48c36800f5
apps/netuils/dnsclient and include/netutils/dnsclient.h: Move the DNS client logic into the NuttX C library. It is a necessary part for the full implementation of the netdb logic and provides more flexibility in that location.
2015-07-10 11:31:13 -06:00
Gregory Nutt
d5b6949c9f
Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation
2015-06-28 08:14:53 -06:00
Gregory Nutt
cee35e124b
apps/netutils/thttpd: Missing gci-src as a dependency path when building with BINFS enabled
2015-06-18 18:18:53 -06:00
Gregory Nutt
2ba737b5e5
Clean up and review of header files for conformance to standards
2015-06-12 19:26:01 -06:00
Gregory Nutt
3b5adf79dc
Add asctime(), asctime_r(), ctime(), and ctime_r().
2015-06-12 11:52:49 -06:00
Gregory Nutt
f5f5a3766a
THTTPD: Remove use of lstat when directory indexing is enabled. NuttX does not support symbolic links
2015-06-12 10:07:28 -06:00
Gregory Nutt
a3eb9bb43a
Fix a few errors/warnings in THTTPD when indexing is enabled. Still depends on non-existent lstat and ctime
2015-06-12 09:57:12 -06:00
Gregory Nutt
3e692f3912
apps/examples/thttpd now uses the Union File System if BINFS is selected for CGI binaris
2015-06-06 19:16:14 -06:00
Gregory Nutt
980f5a3675
apps/examples/thttpd: Need to use a different Front Page is CONFIG_THTTPD_BINFS=y
2015-06-02 15:19:17 -06:00
Gregory Nutt
bd8459d839
Fix a default value in the THTTPD Kconfig; updated a README file
2015-06-02 14:59:13 -06:00
Gregory Nutt
91ab8b0bc5
Extend apps/examples/thttpd so that it provides a index.cgi file the binfs file system is selected.
2015-06-02 14:26:08 -06:00
Gregory Nutt
b3780a071c
Damn. THTTPD will not yet run with binfs because it wants an index.html file. THTTPD does support indexing directories if CONFIG_THTTPD_GENERATE_INDICES=y, but there are some compilation issues that need to be fixed when that option is selected.
2015-06-02 12:13:18 -06:00
Gregory Nutt
15fcf746be
THTTPD w/binfs: A few fixes
2015-06-02 11:55:45 -06:00
Gregory Nutt
1e91c05d03
THTTPD: Add support for using binfs/ instead of NXFLAT. NXFLAT is probably the better solution but recently compiler changes make it unusable. binfs or ELF are fallback binary formats. This commit adds an option to use binfs.
2015-06-02 10:45:48 -06:00
Gregory Nutt
862d452d9b
Fix numerous typos in configuration variable names. Tracked down by Alan Carvalho de Assis
2015-05-23 17:08:35 -06:00
Gregory Nutt
b641bee873
Minor fixes to apps/netutils/Kconfig and nuttx/libc/net/lib_inetntoa.c from Max Neklyudov
2015-05-19 12:07:07 -06:00
Gregory Nutt
a79f3840a8
apps/netutils/ntp: Fix mismatched sched_lock/unlock. Noted by Juha Niskanen
2015-05-06 07:54:22 -06:00
Gregory Nutt
af29ca3819
apps/netutils: Separated out apps/examples/pppd; split up pppd utils. From Brennan Ashton
2015-04-14 07:02:12 -06:00
Gregory Nutt
134472af0e
apps/netutils/ppp: Make pppd PAP authentication optional. From Brennan Ashton
2015-04-14 06:45:17 -06:00
Gregory Nutt
3ac47d64ab
Remove more NTP client references from pppd. From Brennan Ashton.
2015-04-13 14:00:45 -06:00
Gregory Nutt
476e3a8080
Remove ntpclient file in pppd dir. From Brennan Ashton.
2015-04-13 13:56:37 -06:00
Gregory Nutt
50deb7ad20
Remove executable flag from more .c and .h files
2015-04-09 08:20:57 -06:00
Gregory Nutt
5ca324cad8
Add some missing dependencies in Kconfig files
2015-03-29 15:52:46 -06:00
Gregory Nutt
b7768bea79
Bringing PPPD yet closer to the NuttX coding style
2015-03-11 18:47:04 -06:00
Gregory Nutt
f87fd5118c
Add file headers to all PPPD files (still lots of style incompatibilies)
2015-03-11 08:33:57 -06:00
Gregory Nutt
e5a4835f5e
Add a PPP daemon. From Max Neklyudov
2015-03-11 07:53:04 -06:00
Gregory Nutt
0ff0aa6d21
Add some Kconfig dependencies to reduce possibility of bad configurations. Suggested by OrbitalFox
2015-02-25 08:43:25 -06:00
Gregory Nutt
8d7952d55a
Fix typo in Telnet Kconfig. From OrbitalFox
2015-02-19 06:40:18 -06:00
Gregory Nutt
fe20f19afe
Some files that now include sys/time.h should no longer include timer.h
2015-02-15 16:38:18 -06:00
Gregory Nutt
23dfce6275
Suffer the consequences of moving struct timeval to its correct location
2015-02-15 15:18:35 -06:00
Gregory Nutt
d32e66b6a2
apps/netutils/netlib: Add utilities to convert to/from prefix lengths from/to 128-bit network masks. Modify the NSH IPv6 ifconfig command to show the network mask in a more standard, human readable way.
2015-02-06 10:23:15 -06:00
Gregory Nutt
0ee67383d5
Add an ioctal() that can be used to perform ICMPv6 auto-configuration
2015-02-03 08:54:42 -06:00
Gregory Nutt
5499189417
Add netlib and application hooks for ICMPv6 auto-configuration (still incomplete
2015-02-03 08:01:55 -06:00
Gregory Nutt
746f3919cd
Networking: Correct the value returned by accept() in the case where net_lockingwait() is called. It was returning -1 and losing the errno value. Noted by Rony Xln
2015-01-22 06:51:31 -06:00
Gregory Nutt
680ee615fa
apps/netutils/telnetd: Add protection when CONFIG_SCHED_HAVE_PARENT is enabled: Call sigaction with SA_NOCLDWAIT so that exit status is not retained (no zombies) and block receipt of SIGCHLD so that accept is not awakened by a signal. Iff accept() is awakened by a signal, do not do anything crazy like exit. Most from Rony Xln
2015-01-22 06:33:55 -06:00
Gregory Nutt
c96aa9218a
Correct name of fields in struct sockaddr_in6: sin6_port and sin6_family, not sin_port and sin_family
2015-01-20 18:14:09 -06:00
Gregory Nutt
2668e34f5a
apps/netutils/netlib: All IOCTLs must use a valid address family -- even if the address family does not matter such as when getting the MAC address or the network flags
2015-01-19 11:41:46 -06:00
Gregory Nutt
f0b4b9cc45
Networking: Fix some problems with debug is enabled; fix a warning
2015-01-19 10:16:37 -06:00
Gregory Nutt
5741e70eb9
apps/netutils/netlib: Add new library functions to manipulate IPv6 addresses
2015-01-18 15:56:14 -06:00
Gregory Nutt
953c0fb069
Rename IPv4 netlib functions and files to make room in the namespace for corresponding IPv6 functions and files
2015-01-18 14:17:00 -06:00
Gregory Nutt
bf3c7bd286
apps/netutils/dnsclient: Can select to be either IPv4 or IPv6, but not both (IPv6 still does not compile)
2015-01-18 10:51:53 -06:00
Gregory Nutt
7720c35502
Networking: Replace all references to the macros net_ipaddr_copy, net_ipaddr_hdrcopy, net_ipaddr_cmp, net_ipaddr_hdrcmp, and net_ipaddr_maskcmp with the appropriate IPv4 or IPv6 version of the macro (such as net_ipv4addr_copy). The goal is to support both IPv4 and IPv6 simultaneously. This requires that the macros be distinct and not conditionally defined to one on or the other.
2015-01-16 13:01:08 -06:00
Gregory Nutt
36118a1b76
Networking: Replace all references to net_ipaddr_t with either in_addr_t on net_ipv6addr_t. The goal is to support both IPv4 and IPv6 simultaneously. This requires that the two types be distinct and not conditionally typedef'ed to net_ipaddr_t.
2015-01-16 12:30:18 -06:00
Gregory Nutt
63566455d8
Telnetd: EBUSY is not an error in this case, then why report an error?
2015-01-03 09:53:35 -06:00
Gregory Nutt
308818b718
NSH TFTP get command: Wrong file name used for the destination. From Lazlo
2014-12-10 18:37:43 -06:00
Gregory Nutt
55bfbed33f
Fixes for more issues found by cppcheck
2014-11-25 15:26:30 -06:00
Gregory Nutt
b8e4d7c500
Fixing md5 hashing when digest[$i] lower that 16. Sergey <sectus@mail.ru>
2014-11-20 07:10:47 -06:00
Gregory Nutt
af6272a227
SAMA5D4-EK EMAC1: Correct name of EMAC1 configuration variable
2014-11-18 11:02:22 -06:00
Gregory Nutt
24aa151b00
Ooops.. Fix oversight in last commit
2014-11-18 07:43:34 -06:00
Gregory Nutt
424c885f55
DHCPD: Remove dhcpd_addoption_n. It uses C features not supported by all compilers
2014-11-18 07:25:01 -06:00
Gregory Nutt
e59819bbed
DHCPD: Add support for the dhcp options for netmask, router and dns. From Brennan Ashton
2014-11-18 07:20:18 -06:00
Gregory Nutt
64b8c1841c
Clarify MTU/BUFSIZE in apps/ README.txt files and Documentation
2014-11-16 08:50:36 -06:00
Gregory Nutt
f9074a02ad
Network: Various fixes for clean compile with both Ethernet and SLIP
2014-11-15 13:52:39 -06:00
Gregory Nutt
34bb359447
Network: All logic will now handle varialbe length link layer protocol headers within incoming packets. This permits use of multiple network interfaces with differing data links. For example, ETHERNET + SLIP
2014-11-15 13:13:23 -06:00
Gregory Nutt
60689e2513
Right now if you make a dns request before the dns address it set you will get an assertion. The state of the IP setting is not something the application should be aware of, it should only be concerned with whether or not the name was resolved. From Brennan Ashton.
2014-11-13 14:07:46 -06:00
Gregory Nutt
cca428102d
Trivial typo
2014-10-18 09:47:17 -06:00
Gregory Nutt
b5cb66927d
Fix memcpy of host address in netlib_gethostaddr(). From Brennan Ashton
2014-10-17 16:53:15 -06:00
Gregory Nutt
8c24662011
Misc changes to get a clean build after all of the syslog changes. There are probably other things still broken
2014-10-08 16:23:48 -06:00
Gregory Nutt
ff8338b5c2
Add implementation of timeouts for the apps/netutils/webclient. From Brennan Ashton
2014-09-29 17:10:49 -06:00
Gregory Nutt
0a4258db6d
MAINOBJ needs to be added to object list in many Makefile
2014-09-11 06:48:11 -06:00
Gregory Nutt
ab5cf06c48
Changes to many Makefiles. For kernel buil object containing main cannot go into library because of name collisions. The object file must be handled as a special case in every Makefile
2014-09-07 08:51:51 -06:00
Gregory Nutt
043d6898db
Determine the main object name from the main source name in every kernel build Makefile
2014-09-07 07:19:19 -06:00
Gregory Nutt
2881b73f3d
Add an nm command after every kernel build link to show if there are any undefined symbols
2014-09-07 07:15:59 -06:00
Gregory Nutt
70765b94fc
Add the main object to the list objects to link in every kernel build link command
2014-09-07 07:12:55 -06:00
Gregory Nutt
22720d5eb3
Add the main object to the dependencies for the kernel build
2014-09-07 07:09:22 -06:00
Gregory Nutt
b65500c289
If now a kernel build, then add the main object in with all of the rest
2014-09-07 07:05:54 -06:00
Gregory Nutt
22eb5d5c46
Update apps/examples/helloxx/Makefile
2014-09-07 06:59:30 -06:00
Gregory Nutt
181b75301f
Customize the program name in the generic setup that was added to each makefile that installs a program
2014-09-06 13:30:44 -06:00