Commit Graph

116 Commits

Author SHA1 Message Date
Sebastian Huber
bcef89f236 Update company name
The embedded brains GmbH & Co. KG is the legal successor of embedded
brains GmbH.
2023-05-20 11:05:26 +02:00
Ryan Long
cee6e7f616 telnetd/des.h: Add file header and license
This file had no header, copyright, or license. Based on git history,
added appropriate copyright and license.
2022-05-04 09:12:07 -05:00
Joel Sherrill
5f8c41c389 Update email address of Fernando Ruiz Casas to <fruizcasas@gmail.com>
This was requested to be executed prior to relicensing to BSD-2.
2022-04-05 13:13:31 -05:00
Joel Sherrill
255fe433fd cpukit/: Scripted embedded brains header file clean up
Updates #4625.
2022-03-10 08:43:49 +01:00
Joel Sherrill
78af9249f3 telnetd.c: Manual cleanup of embedded brains File Headers
This file's text looked different from others. Fixed by hand.

Updates #4625.
2022-03-10 08:43:49 +01:00
Vijay Kumar Banerjee
71521ff21f telnetd.c: Remove RTEMS_NETWORKING check
Set the priority manually to make telnetd compatible with the
2021-05-20 17:55:33 -06:00
Vijay Kumar Banerjee
650ac70066 Revert "cpukit: Remove telnetd"
This reverts commit 3299dda245.
2021-04-13 11:57:21 -06:00
Vijay Kumar Banerjee
3299dda245 cpukit: Remove telnetd
Update #3850
2021-04-07 16:15:39 -06:00
Sebastian Huber
80cf60efec Canonicalize config.h include
Use the following variant which was already used by most source files:

  #ifdef HAVE_CONFIG_H
  #include "config.h"
  #endif
2020-04-16 07:30:00 +02:00
Sebastian Huber
26b58b7e4a telnetd: Add server port to configuration
Close #3543.
2018-10-11 09:08:10 +02:00
Sebastian Huber
0dc303f09d telnetd: Create sessions at start
Update #3543.
2018-10-11 09:08:06 +02:00
Sebastian Huber
0f0e130051 telnetd: Allocate the server context
Update #3543.
2018-10-10 14:06:28 +02:00
Sebastian Huber
bf4c7ff6ab telnetd: Create server socket at start
Update #3543.
2018-10-10 14:06:28 +02:00
Sebastian Huber
1c567c56c0 telnetd: Rename shell_args to telnetd_session
Update #3543.
2018-10-10 14:06:28 +02:00
Sebastian Huber
6d3ec58a52 telnetd: Simplify task spawn function
Use the minimum task size for the telnet server task since it has to
deal only with simple socket operations.

Update #3543.
2018-10-10 14:06:28 +02:00
Sebastian Huber
629faf9504 telnetd: Remove keep stdio feature
The Telnet service started via rtems_telnetd_start() had a keep stdio
feature.  This just created a task and executed the command function in
a loop.  For this kind of service we do not library support.  This can
be done by an application task on its own.  Remove this feature and
provide only the real Telnet server functionality.

Use syslog() for error and status messages.

Add test program for the Telnet server.

Close #3542.
2018-10-10 14:06:27 +02:00
Sebastian Huber
7f0eac3047 build: Merge telnetd/Makefile.am 2018-10-10 07:55:12 +02:00
Sebastian Huber
68e1ccc46d build: Remove specialized CPPFLAGS 2018-10-09 13:26:47 +02:00
Sebastian Huber
2806e10dc1 telnetd: Ignore setsockopt() return status
Update #3529.
2018-10-09 13:26:46 +02:00
Sebastian Huber
f004b2b8dc Use rtems_task_exit()
Update #3530.
Update #3533.
2018-10-02 10:22:15 +02:00
Sebastian Huber
57a7ecdee5 telnetd: Remove CEXP convenience routines
Close #3535.
2018-10-01 12:32:54 +02:00
Sebastian Huber
a346ebba9c telnetd: Remove CONFIGURE_MAXIMUM_PTYS
Add a rtems_telnetd_config_table::client_maximum member to the Telnet
configuration.

Close #3526.
Close #3528.
2018-10-01 12:32:50 +02:00
Sebastian Huber
2da93bcb73 telnetd: Regroup includes 2018-10-01 12:28:11 +02:00
Sebastian Huber
8e0755405c telnetd: Remove dead code 2018-10-01 12:28:11 +02:00
Sebastian Huber
0413b14cf7 telnetd: Remove superfluous global variable
Update #3528.
2018-10-01 12:28:10 +02:00
Sebastian Huber
b980f36306 telnetd: Convert pty driver to new Termios API
Update #3526.
2018-10-01 12:28:10 +02:00
Joel Sherrill
14a218fd20 cpukit/telnetd/pty.c: Fix format overflow warning on sprintf()
cpukit/telnetd/pty.c:436:47: warning: '%X' directive writing between
   1 and 8 bytes into a region of size 3 [-Wformat-overflow=]

The devname area was malloc'ed. Now it is statically allocated and
sufficiently large to account for the potential buffer overflow.
2018-08-29 12:52:08 -05:00
Sebastian Huber
8d52a0e246 telnetd: Use syslog() instead of printk()
Update #3419.
2018-05-02 09:57:35 +02:00
Sebastian Huber
b80b34c38d telnetd: Always build telnet daemon
Add support for libbsd initialization.

Update #3419.
2018-05-02 09:57:32 +02:00
Sebastian Huber
2d0bc839ed build: Remove EXTRA_DIST
A "make dist" is not supported. So, it makes no sense to have pure "make
dist" related stuff in the Makefile.am.
2018-04-04 10:09:04 +02:00
Chris Johns
2afb22b7e1 Remove make preinstall
A speciality of the RTEMS build system was the make preinstall step.  It
copied header files from arbitrary locations into the build tree.  The
header files were included via the -Bsome/build/tree/path GCC command
line option.

This has at least seven problems:

* The make preinstall step itself needs time and disk space.

* Errors in header files show up in the build tree copy.  This makes it
  hard for editors to open the right file to fix the error.

* There is no clear relationship between source and build tree header
  files.  This makes an audit of the build process difficult.

* The visibility of all header files in the build tree makes it
  difficult to enforce API barriers.  For example it is discouraged to
  use BSP-specifics in the cpukit.

* An introduction of a new build system is difficult.

* Include paths specified by the -B option are system headers.  This
  may suppress warnings.

* The parallel build had sporadic failures on some hosts.

This patch removes the make preinstall step.   All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc.  Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.

The new cpukit include directories are:

* cpukit/include

* cpukit/score/cpu/@RTEMS_CPU@/include

* cpukit/libnetworking

The new BSP include directories are:

* bsps/include

* bsps/@RTEMS_CPU@/include

* bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include

There are build tree include directories for generated files.

The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.

The "bootstrap -p" option was removed.  The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.

Update #3254.
2018-01-25 08:45:26 +01:00
Sebastian Huber
94e04b533d telnetd: Include <rtems/passwd.h>
Prepare for header file move to common include directory.

Update #3254.
2017-12-13 09:04:28 +01:00
Sebastian Huber
f4c59d07d5 telnetd: Fix warnings 2016-04-25 08:10:18 +02:00
Joel Sherrill
d264b330e1 telnetd.c: Fix no prototype warning 2016-03-24 11:41:21 -05:00
Sebastian Huber
15d7261bec telnetd: Use socklen_t 2014-09-18 08:09:09 +02:00
Joel Sherrill
b597c0d60c Regenerate all preinstall.am files.
Apparently, at some point automake output changed and these were
not updated.
2014-08-28 08:44:52 -05:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Sebastian Huber
7660e8b347 Include missing <string.h> 2013-07-23 15:12:54 +02:00
Sebastian Huber
90e2026b99 telnetd: Map CRLF to CR
It is not so easy to use Termios for that.  We already map CRNUL to CR,
thus we cannot ignore CRs.  We could change the shell code to map CRNL
to a single line end, but this is more intrusive than the change here.
2012-09-28 15:41:33 +02:00
Sebastian Huber
e652e5f8db telnetd: Inform client that we will echo
The standard line editor rtems_shell_line_editor() produces an echo.
2012-09-28 15:41:33 +02:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Joel Sherrill
33a105fb69 Revert: Remove CVS Ids
See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.
2012-05-07 11:08:48 -05:00
Ralf Corsépius
ee32f67a6f Remove CVS-Ids. 2012-05-04 09:36:25 +02:00
Joel Sherrill
61250b4ce9 Remove all .cvsignore files. 2012-02-01 10:59:44 -06:00
Ralf Corsepius
0a3c6d89d9 2011-12-10 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1985/cpukit
	* telnetd/Makefile.am: Remove icmds.c.
2011-12-10 04:27:36 +00:00
Joel Sherrill
a40eec45a1 2011-12-09 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1985/cpukit
	* telnetd/icmds.c: Removed.
	All functionality is in shell. Obsolete and unreferenced.
2011-12-09 18:21:17 +00:00
Joel Sherrill
71c012aff5 2010-07-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libblock/include/rtems/ide_part_table.h, libblock/src/bdbuf.c,
	libcsupport/src/__times.c, libcsupport/src/libio_init.c,
	libcsupport/src/mallocfreespace.c, libcsupport/src/mount-mgr.c,
	libcsupport/src/mount.c, libcsupport/src/rewinddir.c,
	libcsupport/src/seekdir.c, libcsupport/src/telldir.c,
	libcsupport/src/unmount.c, libfs/src/dosfs/fat.c,
	libfs/src/dosfs/fat_fat_operations.c, libfs/src/dosfs/msdos_create.c,
	libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c,
	libfs/src/dosfs/msdos_file.c, libfs/src/dosfs/msdos_format.c,
	libfs/src/dosfs/msdos_fsunmount.c, libfs/src/dosfs/msdos_initsupp.c,
	libfs/src/dosfs/msdos_rename.c, libmisc/cpuuse/cpuusagereport.c,
	libmisc/shell/vis.c, libmisc/stackchk/check.c, sapi/src/posixapi.c,
	telnetd/telnetd.c: Remove include of assert.h when it is not needed.
2010-07-04 14:53:47 +00:00
Joel Sherrill
ddeb7730ab 2010-03-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* libgnat/ada_intrsupp.c, telnetd/check_passwd.c, telnetd/des.c,
	telnetd/genpw.c: Add include of config.h
2010-03-27 15:08:04 +00:00
Joel Sherrill
72b5f2e4e0 2009-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* telnetd/telnetd.c: Honor configuration setting for telnet daemon
	stack size.
2009-12-17 19:41:20 +00:00
Ralf Corsepius
77f7498aac 2009-12-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* telnetd/pty.c:
	Reflect changes to rtems_termios_callbacks->write.
2009-12-10 18:05:54 +00:00