chao.an
8721bc6847
nshlib: Fix the build break in nsh_telnetd.c when CONFIG_NSH_CONSOLE=n
...
set the config:
CONFIG_NSH_ROMFSETC=y
CONFIG_NSH_CONSOLE=n
nsh_telnetd.c: In function 'nsh_telnetstart':
nsh_telnetd.c:267:22: error: 'vtbl' undeclared (first use in this function)
267 | nsh_initscript(vtbl);
| ^~~~
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-07 10:53:25 -07:00
chao.an
a5337af484
nsh/telnetd: bringup the network before telnetd init
...
bringup the network before telnetd init if without NSH_CONSOLE
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-06 19:14:47 -07:00
Ouss4
679896328d
nshlib/nsh_telnetd.c: Print the end line of the MOTD correctly.
2020-04-29 14:46:13 +08:00
Xiang Xiao
a82d74b8a1
nshlib: Call BOARDIOC_FINALINIT in nsh_telnetstart if CONFIG_NSH_CONSOLE not define
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 10:15:23 -06:00
Xiang Xiao
650b58d6b2
nshlib: Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
6c4dc44e04
nshlib: Ensure nsh_initscript always follow usbtrace_enable immediately
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
41d88f06e7
Run codespell -w with the latest dictonary again
2020-02-23 07:10:14 -06:00
Xiang Xiao
37135e5dfe
telnetd should listen both IPv4 and IPv6 for the dual stack
...
Change-Id: Ic1c2878f2eda721ccdf667b0a634289c643f5220
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-03 07:17:22 -06: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
Dave Marples
b4134a674d
nshlib/ and system/cle: Add basic color support to the CLE editor.
2019-10-12 00:47:29 +08:00
Gregory Nutt
7409dd57bb
Fix a warning found in build testing.
2019-05-22 08:22:12 -06:00
Valmantas Paliksa
5cad41c973
apps/nshlib: Fix all places where cle() and readline() are used. readline() returns EOF on a failure. cle() returns a negated errno value. Checking only for EOF causes failues to be missed (and infinite loops ensuing).
2019-05-21 08:43:09 -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
GregoryN
3bf4b6d245
Merged altconsole into master
2018-12-08 18:53:54 -06:00
Masayuki Ishikawa
bd6bf35ffd
nshlib/nsh_telnetd.c: Add support for telnet character mode.
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2018-01-10 07:15:16 +09:00
Gregory Nutt
28415d662b
netutils/telnetd and users of telnetd: Add support for IPv6.
2017-06-27 09:14:13 -06:00
Gregory Nutt
98204bad94
system/telnet: POLL must not be disabled in configuration. Telnet client port argument is no optional.
2017-06-27 07:46:16 -06:00
Gregory Nutt
9091716419
revise some of the state handling in the previous commit.
2017-06-26 18:16:05 -06:00
Gregory Nutt
342de81641
NSH library: Add a Telnetd command. This is needed when network initialization is deferred. In that case, telnet daemon cannot be started until the network is finally initialized. The telnetd command was added just for that case: So that the telnet daemon can be started from the NSH command line after the network is configured.
2017-06-26 18:00:13 -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
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
65899c99e6
apps/nshlib: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.
2016-06-14 14:18:07 -06:00
Gregory Nutt
586b0aa7e0
Change names of *dbg() * *err()
2016-06-11 15:51:27 -06:00
Gregory Nutt
344c92e2a4
Replace all occurrences of vdbg with vinfo
2016-06-11 11:55:38 -06:00
Gregory Nutt
07cf99130c
nsh_stdsession() cannot use the same login logic as nsh_session(); Also put telnet login in a separate file for symmetry
2016-01-20 15:22:02 -06:00
Gregory Nutt
93d9d5e4ca
apps/nshlib: All NSH sessions may now be protected with passwords stored in the encrypted /etc/passwd file
2016-01-20 14:42:39 -06:00
Gregory Nutt
3dad8a29a2
NSH now supports an MOTD string that will be presented after the greeting
2016-01-20 11:18:08 -06:00
Gregory Nutt
a7121f98d9
Fix some errors that I introduced into NSH telnet this morning
2014-10-29 15:25:34 -06:00
Gregory Nutt
21d498f695
Fix some typos
2014-10-29 10:48:50 -06:00
Gregory Nutt
5d360c72b9
Fix problem with trailing whitespace (newline) in Telnet username/password. Noted by Lazlo
2014-10-29 10:29:21 -06:00
Gregory Nutt
633fae427d
NET: emoved all includes of uip.h; added includes of ip.h wherever needed. Tried to fix problems of the now missing sneak inclusions because uip.h was removed. There are probably a few of these that were missed.
2014-07-04 19:13:08 -06:00
Gregory Nutt
b9cf7acb1a
More trailing whilespace removal
2014-04-13 16:24:28 -06:00
Gregory Nutt
171db56b69
Make sure that there is one space after for
2014-04-12 13:28:22 -06:00
Gregory Nutt
89526241af
For Telnetd password/username fixes from Bertikd Van den Bergh
2014-02-22 11:55:30 -06:00
Gregory Nutt
f1628d5055
NSH telnet: Use strncpy vs strcpy to avoid overrunning username and password buffers. From Bertold Van den Bergh
2014-02-22 10:31:20 -06:00
patacongo
978d3212ff
Add support for a login script (in addition to the init script); Add logic so that a USB console session can connect and reconnect to the USB serial device
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5582 42af7a65-404d-4744-a932-0658087f49c3
2013-01-29 22:11:04 +00:00
patacongo
9c58ee4a6f
You can now configure a login for Telnet NSH session -- from Darcy Gong
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5231 42af7a65-404d-4744-a932-0658087f49c3
2012-10-12 16:59:17 +00:00
patacongo
bd5fd05965
Fix read() return value for the case of permissions problem
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4545 42af7a65-404d-4744-a932-0658087f49c3
2012-03-31 15:13:12 +00:00
patacongo
f392209c72
NSH now uses the new Telnet daemon and built-in tasks started by NSH can be used over Telnet
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4361 42af7a65-404d-4744-a932-0658087f49c3
2012-02-02 16:04:09 +00:00
patacongo
a399c7bddf
Additional changes for clean NSH build
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3400 42af7a65-404d-4744-a932-0658087f49c3
2011-03-19 17:29:36 +00:00
patacongo
a05c1d4bc2
Update documentation, change CONFIG_EXAMPLES_NSH to CONFIG_NSH
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3394 42af7a65-404d-4744-a932-0658087f49c3
2011-03-18 20:35:31 +00:00
patacongo
4923fdabc1
Move NSH to apps/ as library
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3393 42af7a65-404d-4744-a932-0658087f49c3
2011-03-18 19:46:25 +00:00