Commit Graph

49 Commits

Author SHA1 Message Date
Ralf Corsepius
2add4525d0 2007-05-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* ftpd/ftpd.c: Add HAVE_CONFIG_H magic.
2007-05-08 15:31:55 +00:00
Ralf Corsepius
63a88eb0bc Regenerate. 2007-01-08 08:43:28 +00:00
Ralf Corsepius
c1427d2758 Regenerate. 2006-11-18 02:31:32 +00:00
Ralf Corsepius
3fe615bae8 Replace AM_CONDITIONAL(HAS_NETWORKING) with AM_CONDITIONAL(LIBNETWORKING). 2006-11-18 02:28:35 +00:00
Joel Sherrill
a009d94459 2006-08-30 Joel Sherrill <joel@OARcorp.com>
* ftpd/ftpd.c, libcsupport/include/sys/ioccom.h,
	libcsupport/src/ioctl.c, libnetworking/kern/uipc_mbuf.c,
	libnetworking/libc/inet_addr.c, libnetworking/net/ethernet.h,
	libnetworking/net/if.c, libnetworking/net/if_ethersubr.c,
	libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h,
	libnetworking/net/if_var.h, libnetworking/net/ppp_tty.c,
	libnetworking/netinet/in_cksum.c, libnetworking/nfs/bootp_subr.c,
	libnetworking/rtems/rtems_bsdnet_internal.h,
	libnetworking/sys/mbuf.h, pppd/md4.c, pppd/pppd.h: Remove warnings
	due to improper use of int which shows up on 16 bit targets. Added
	ioctl_command_t since IOCTL command argument does not reliably fit
	into 16 bits.
2006-08-31 01:10:02 +00:00
Ralf Corsepius
3172455102 Regenerate 2006-01-13 08:38:09 +00:00
Ralf Corsepius
4e971660a1 Remove all-local. 2006-01-12 09:57:43 +00:00
Ralf Corsepius
dbe8e5194c Cleanups 2006-01-12 04:19:28 +00:00
Ralf Corsepius
d1747cb216 Regenerate. 2005-06-01 07:04:28 +00:00
Ralf Corsepius
78f251a66b Regenerate. 2005-05-24 04:26:43 +00:00
Ralf Corsepius
ea78ecadc9 socklen_t. 2005-05-10 08:56:46 +00:00
Ralf Corsepius
476114f5e9 Auto-generated update. 2005-02-19 17:08:36 +00:00
Ralf Corsepius
38595dd116 2005-02-08 Ralf Corsepius <ralf.corsepius@rtems.org>
* ftpd/Makefile.am: Split preinstallation rules in to separate
	preinstall.am-files.
	* ftpd/preinstall.am: New (Generated from corresponding Makefile.am).
2005-02-08 17:52:38 +00:00
Ralf Corsepius
fa73ccb0b8 2005-02-08 Ralf Corsepius <ralf.corsepius@rtems.org>
* configure.ac: Add new header guard to cpuopts.h.
	* Makefile.am: Add libfs, libblock, ftpd header install rules.
	* libfs/Makefile.am, libblock/Makefile.am, ftpd/Makefile.am: Remove
	header install rules.
2005-02-08 04:04:46 +00:00
Ralf Corsepius
f26145b800 2005-02-03 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 756/rtems
	* ftpd/ftpd.c, ftpd/ftpd.h, ftpd/Makefile.am: New (relocated from
	/c/src/libnetworking/ftpd)
	* ftpd/ftd.h: New header guards.
	* ftpd/Makefile.am: Install libftd.a, install ftp.h to rtems/ftp.h.
	* configure.ac: Add ftpd/Makefile.
	* Makefile.am: Add ftpd.
2005-02-04 12:40:16 +00:00
Ralf Corsepius
f26a97602e New. 2005-02-04 12:28:48 +00:00
Ralf Corsepius
f92f5f6c67 2005-02-03 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/rtems_servers/ftpd.h: Warning fixes.
2005-02-03 17:13:10 +00:00
Ralf Corsepius
4f647b954a 2005-01-07 Ralf Corsepius <ralf.corsepius@rtems.org>
* libchip/Makefile.am, libnetworking/pppd/Makefile.am,
	libnetworking/rtems_servers/Makefile.am,
	libnetworking/rtems_telnetd/Makefile.am,
	librdbg/Makefile.am, optman/Makefile.am, support/Makefile.am:
	Eliminate CFLAGS_OPTIMIZE_V.
2005-01-07 07:02:33 +00:00
Ralf Corsepius
44213adda5 2005-01-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/pppd/Makefile.am,
	libnetworking/rtems_servers/Makefile.am,
	libnetworking/rtems_telnetd/Makefile.am:
	Remove build-variant support.
2005-01-02 00:54:34 +00:00
Ralf Corsepius
5146462f04 2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org>
* libnetworking/rtems_servers/ftpd.c: Use POSIX fixed size types.
2004-10-21 13:42:53 +00:00
Ralf Corsepius
73b5bd5d0e Remove stray white spaces. 2004-04-15 13:33:58 +00:00
Ralf Corsepius
6436254a70 2004-02-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libnetworking/pppd/Makefile.am,
	libnetworking/rtems_servers/Makefile.am,
	libnetworking/rtems_telnetd/Makefile.am,
	libnetworking/rtems_webserver/Makefile.am, optman/Makefile.am,
	support/Makefile.am: Don't include lib.am.
2004-02-09 14:57:18 +00:00
Ralf Corsepius
b5d91addb9 2004-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libnetworking/rtems_webserver/Makefile.am: Add PREINSTALL_DIRS.
	* libnetworking/rtems_telnetd/Makefile.am: Add PREINSTALL_DIRS.
	* libnetworking/rtems_servers/Makefile.am: Add PREINSTALL_DIRS.
	* libnetworking/pppd/Makefile.am: Add PREINSTALL_DIRS.
2004-02-03 06:21:42 +00:00
Ralf Corsepius
633456e920 2004-01-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Remove wrapup.
	* pppd/Makefile.am: Build libpppd.
	Use automake-compilation rules.
	* rtems_servers/Makefile.am: Build libftpd.
	Use automake-compilation rules.
	* rtems_telnetd/Makefile.am: Build libtelnetd.
	Use automake-compilation rules.
	* rtems_webserver/Makefile.am: Build libhttpd.
	Use automake-compilation rules.
	* wrapup/Makefile.am: Remove (Unused).
2004-01-15 03:47:28 +00:00
Ralf Corsepius
0725ce327f 2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* pppd/Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES.
	Add PRE/TMPINSTALL_FILES to CLEANFILES.
	* rtems_servers/Makefile.am: Ditto.
	* rtems_telnetd/Makefile.am: Ditto.
	* rtems_webserver/Makefile.am: Ditto.
2004-01-14 07:26:51 +00:00
Ralf Corsepius
19fb5d33ac 2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* pppd/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
	* rtems_servers/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
	* rtems_telnetd/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
	* rtems_webserver/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
2003-12-12 15:58:16 +00:00
Ralf Corsepius
45d7f4c961 2003-12-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* pppd/Makefile.am: Remove all-local: $(ARCH).
	* rtems_servers/Makefile.am: Remove all-local: $(ARCH).
	* rtems_telnetd/Makefile.am: Remove all-local: $(ARCH).
	* rtems_webserver/Makefile.am: Remove all-local: $(ARCH).
	* wrapup/Makefile.am: Remove all-local: $(ARCH).
2003-12-02 04:41:19 +00:00
Ralf Corsepius
7406623261 2003-12-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Reformat. Apply dirstamps to preinstallation.
	* pppd/Makefile.am: Ditto.
	* rtems_servers/Makefile.am: Ditto.
	* rtems_telnetd/Makefile.am: Ditto.
	* rtems_webserver/Makefile.am: Ditto.
	* wrapup/Makefile.am: Ditto.
2003-12-01 08:43:12 +00:00
Ralf Corsepius
6a8e52d3aa 2003-08-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Makefile.am: Reflect having moved automake.
	pppd/Makefile.am: Reflect having moved automake.
	rtems_servers/Makefile.am: Reflect having moved automake.
	rtems_telnetd/Makefile.am: Reflect having moved automake.
	rtems_webserver/Makefile.am: Reflect having moved automake.
	wrapup/Makefile.am: Reflect having moved automake.
2003-08-16 12:12:10 +00:00
Ralf Corsepius
4078e82ae5 2003-07-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove (Merged into ../configure.ac).
	* .cvsignore, Makefile.am, pppd/Makefile.am,
	rtems_servers/Makefile.am, rtems_telnetd/Makefile.am,
	rtems_webserver/Makefile.am, wrapup/Makefile.am:
	Reflect having merged configure.ac into ../configure.ac
2003-07-25 06:15:38 +00:00
Ralf Corsepius
4855824175 2003-01-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* wrapup/Makefile.am: Don't include @RTEMS_BSP@.cfg.
	* pppd/Makefile.am: Don't include @RTEMS_BSP@.cfg.
	  Eliminate *_O_FILES.
	* rtems_servers/Makefile.am: Ditto.
	* rtems_webserver/Makefile.am: Ditto.
	* rtems_telnetd/Makefile.am: Ditto.
2003-01-16 02:58:35 +00:00
Joel Sherrill
19ed3cf43b 2002-09-07 Joel Sherrill <joel@OARcorp.com>
* pppd/ipcp.c, rtems_servers/ftpd.c: Add include files to resolve
	warnings.
2002-09-07 23:07:58 +00:00
Ralf Corsepius
2129ac821d 2002-08-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems_servers/ftpd.c: Remove unused variable buf.
	* pppd/md5.c: #include <string.h> to make gcc31 happy.
	* rtems_telnetd/telnetd.c: #include <string.h> to make gcc31 happy.
	* rtems_webserver/webmain.c: Remove unused variable dir, cp.
2002-08-14 10:44:49 +00:00
Ralf Corsepius
2b44af21dd 2002-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* pppd/Makefile.am: Use .$(OBJEXT) instead of .o.
 	* rtems_servers/Makefile.am: Use .$(OBJEXT) instead of .o.
 	* rtems_telnetd/Makefile.am: Use .$(OBJEXT) instead of .o.
 	* rtems_webserver/Makefile.am: Use .$(OBJEXT) instead of .o.
 	* wrapup/Makefile.am: Use .$(OBJEXT) instead of .o.
2002-08-11 06:03:16 +00:00
Joel Sherrill
01d48bf8ea 2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac:
	AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
	AM_INIT_AUTOMAKE([no-define foreign 1.6]).
	* arpa/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* kern/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* Makefile.am: Remove AUTOMAKE_OPTIONS.
	* lib/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* libc/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* machine/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* net/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* netinet/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* nfs/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* pppd/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* rtems/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* rtems_servers/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* rtems_telnetd/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* rtems_webserver/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* sys/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* vm/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* wrapup/Makefile.am: Remove AUTOMAKE_OPTIONS.
2002-03-28 00:49:43 +00:00
Joel Sherrill
b68e01c5d9 2001-09-23 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* machine/Makefile.am: Use 'PREINSTALL_FILES ='.
	* net/Makefile.am: Use 'PREINSTALL_FILES ='.
	* netinet/Makefile.am: Use 'PREINSTALL_FILES ='.
	* vm/Makefile.am: Use 'PREINSTALL_FILES ='.
	* pppd/Makefile.am: Use 'PREINSTALL_FILES ='.
	* sys/Makefile.am: Use 'PREINSTALL_FILES ='.
	* rtems_servers/Makefile.am: Use 'PREINSTALL_FILES ='.
	* arpa/Makefile.am: Use 'PREINSTALL_FILES ='.
	* nfs/Makefile.am: Use 'PREINSTALL_FILES ='.
	* rtems_webserver/Makefile.am: Use 'PREINSTALL_FILES ='.
	* rtems/Makefile.am: Use 'PREINSTALL_FILES ='.
	* rtems_telnetd/Makefile.am: Use 'PREINSTALL_FILES ='.
2001-09-27 13:28:22 +00:00
Joel Sherrill
bd520203a0 2001-08-09 Fernando-Ruiz Casas <correo@fernando-ruiz.com>
* Makefile.am, configure.in, rtems_servers/Makefile.am,
	rtems_servers/telnetd.c, rtems_servers/telnetd.h,
	rtems_telnetd/Makefile.am, rtems_telnetd/README, rtems_telnetd/icmds.c,
	rtems_telnetd/pty.c, rtems_telnetd/pty.h, rtems_telnetd/telnetd.c,
	rtems_telnetd/telnetd.h, wrapup/Makefile.am:
	  - pty and telnetd have a new subdir rtems_telnetd to avoid
	    the side effect when ftpd change.
	  - the tcp/ip stats have been implemented into icmds.c and
	    started when telnetd daemon is started.
	* rtems_servers/telnetd.c, rtems_servers/telnetd.h: Removed.
	* rtems_telnetd: New directory.
	* rtems_telnetd/Makefile.am, rtems_telnetd/README,
	rtems_telnetd/icmds.c, rtems_telnetd/pty.c, rtems_telnetd/pty.h,
	rtems_telnetd/telnetd.c, rtems_telnetd/telnetd.h: New files.
2001-08-09 22:06:51 +00:00
Joel Sherrill
1a7ea60194 2001-05-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems_servers/Makefile.am: Deleted blank lines.
2001-06-18 22:36:09 +00:00
Joel Sherrill
451198be14 2001-06-14 Joel Sherrill <joel@OARcorp.com>
* rtems_servers/telnetd.c, shell/telnetd.h: Moved from libmisc/shell
	so the network stack to address network depenendency.
	* rtems_servers/Makefile.am: Modified to reflect above.
2001-06-14 13:35:47 +00:00
Joel Sherrill
a8c3326863 2001-04-20 Jake Janovetz <janovetz@uiuc.edu>
* rtems_servers/ftpd.c: Correct argument so hooks work again.
2001-04-20 19:17:08 +00:00
Joel Sherrill
07fbfcedf0 2001-01-31 Sergei Organov <osv@javad.ru>
* rtems_servers/ftp.d: Following changes:
	  - Hacks with current dir and root dir removed in favor of new libio
	    support for task-local current and root directories.
	  - Bug in `close_data_socket()' introduced by previous change fixed.
	  - `command_pasv()' changed to set timeout on socket we are listening
	    on and code fixed to don't close socket twice on error.
	  - `serr()' changed to clear `errno'.
	  - `data_socket()' changed to clear `errno' before `bind()'.
	  - `session()' changed to clear `errno' before processing session.
	  - `close_data_socket()' fixed to close both active and passive sockets
	  - Initialize info->data_socket to -1 in `daemon()'
	  - Initialize `fname' to empty string  in `exec_command()'
2001-03-05 23:01:43 +00:00
Joel Sherrill
e6d8fe4717 2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am, arpa/Makefile.am, machine/Makefile.am, net/Makefile.am,
	netinet/Makefile.am, nfs/Makefile.am, rtems/Makefile.am,
	rtems_servers/Makefile.am, rtems_webserver/Makefile.am,
	sys/Makefile.am, vm/Makefile.am:
	Apply include_*HEADERS instead of H_FILES.
	* include/Makefile.am: Remove.
	* Makefile.am: Add handling of *.h files.
	* configure.in: Remove include/Makefile.
2001-02-05 18:36:27 +00:00
Joel Sherrill
38371dbebb 2001-01-24 Sergei Organov <osv@javad.ru>
* rtems_servers/ftpd.c, rtems_servers/ftpd.h: Major enhancements
	as listed below:
	  - Timeouts on sockets implemented. 'idle' field added to
	    configuration. No timeout by default to keep backward compatibility.
	    Note: SITE IDLE command not implemented yet.
	  - Basic global access control implemented. 'access' field added to
	    configuration. No access limitations by default to keep backward
	    compatibility.
	  - Anchor data socket for active mode (using self IP and port 20.)
	  - Fixed default data port support (still not tested).
	  - Don't allow IP address different from originating host in
	    PORT command to improve security.
	  - Fixed bug in MDTM command.
	  - Check for correctness of parsing of argument in command_port().
	  - Fixed squeeze_path() to don't allow names like 'NAME/smth' where
	    'NAME' is not a directory.
	  - Command parsing a little bit improved: command names are now
	    converted to upper-case to be more compatible with RFC (command
	    names are not case-sensitive.)
	  - Reformat comments so that they have RTEMS look-and-feel.
	  - Fixed DELE, SITE CHMOD, RMD, MKD broken by previous changes
	  - True ASCII mode implemented (doesn't work for hooks and /dev/null)
	  - Passive mode implemented, PASV command added.
	  - Default port for data connection could be used (untested, can't find
	    ftp client that doesn't send PORT command)
	  - SYST reply changed to UNIX, as former RTEMS isn't registered name.
	  - Reply codes reviewed and fixed.
2001-01-24 19:20:24 +00:00
Joel Sherrill
3f777d0edf 2001-01-12 Sergei Organov <osv@javad.ru>
* rtems_servers/ftpd.c, rtems_servers/ftpd.h: Major enhancements
	as listed below:
	    - use pool of pre-created threads to handle sessions instead of
  	      creating/deleting threads on the fly
	    - LIST output is now similar to what "/bin/ls -al" would output,
	      thus FTP clients such Netscape are happy with it.
	    - LIST NAME now works (both for files and directories)
	    - added support for NLST, CDUP, and MDTM FTP commands to make
	      more FTP clients happy
	    - keep track of CWD for every session separately
	    - ability to specify root directory name for FTPD in configuration
	      table. FTPD will then create illusion for FTP clients that this
	      is actually root directory.
	    - ignore options sent in commands, thus LIST -al FILE works and
	      doesn't try to list "-al" directory.
	    - buffers are allocated on stack instead of heap where possible to
	      eliminate malloc/free calls (avoid possible heap fragmentation
	      troubles).
	    - drop using of task notepad to pass parameters - use function
	      arguments instead
	    - use snprintf() instead of sprintf() as the latter is unsafe
	    - use of PF_INET in socket() instead of AF_INET

	    Here are ftp clients I've tried new FTPD with (all of them
	    running on Debian GNU/Linux 2.2):

	         Lftp 2.1.10
	         NcFTP 2.4.3
	         Netscape 4.75
	         ftp
	         mc 4.5.49
2001-01-12 13:51:56 +00:00
Joel Sherrill
9b28bea577 2000-09-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* kern/Makefile.am, lib/Makefile.am, libc/Makefile.am,
	net/Makefile.am, netinet/Makefile.am, nfs/Makefile.am,
	pppd/Makefile.am, rtems/Makefile.am, rtems_servers/Makefile.am,
	rtems_webserver/Makefile.am, wrapup/Makefile.am: Include compile.am
2000-09-05 16:07:35 +00:00
Joel Sherrill
df49c60c96 Merged from 4.5.0-beta3a 2000-06-12 15:00:15 +00:00
Joel Sherrill
4bf1801d0d Patches rtems-rc-20000118-7.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that contains the automake files for libnetworking plus a couple of
minor fixes.  [Now only one unused/unsupported Makefile.in remains
(./c/src/lib/libbsp/hppa1.1/pxfl/Makefile.in).]

    To apply:
        patch -p1 < rtems-rc-20000118-7.diff
        /bin/sh rtems-rc-20000118-7.rm
        /bin/sh rtems-rc-20000118-7.add
        ./bootstrap

    Notes:
    * I have tested this one by building all BSPs for m68k, powerpc, sh and
      unix with toolchains built since last weekend.
    * I did not touch libnetworking's directory layout.
2000-02-03 13:21:38 +00:00
Joel Sherrill
85e24a3237 Patch from Emmanuel Rauget (raguet@crf.canon.fr) to add a htons on the
sin_port.
1999-04-02 14:39:19 +00:00
Joel Sherrill
6d0e13c3bd Added ftpd server from Jake Janovetz <janovetz@tempest.ece.uiuc.edu>. 1999-03-16 01:51:53 +00:00