Commit Graph

750 Commits

Author SHA1 Message Date
Sebastian Huber
6c6b2f13f4 2010-12-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/loop.h, libnetworking/net/if_loop.c,
	libnetworking/rtems/rtems_glue.c, libmisc/dummy/dummy-networking.c:
	Initialize loop back interface during normal initialization via
	rtems_bsdnet_initialize_network().
2010-12-08 10:30:27 +00:00
Sebastian Huber
6366c2e2a6 2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/ftpfs.c: Do not fall back to BOOTP server address
	in case hostname was not specified.
2010-10-19 09:16:20 +00:00
Sebastian Huber
71a6a16fd0 2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/ftpfs.c: Fixed a special case with no username and
	password.
2010-10-19 07:38:53 +00:00
Ralf Corsepius
deae980942 2010-09-01 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1696/networking:
	* libnetworking/arpa/inet.h: Partial update from FreeBSD.
	#include <rtems/endian.h>.
	Remove addr2ascii, ascii2addr.
2010-09-01 11:12:37 +00:00
Ralf Corsepius
f4e5f2f6af 2010-09-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/addr2ascii.c,
	libnetworking/libc/ascii2addr.c,
	libnetworking/libc/addr2ascii.3: Remove.
	* libnetworking/Makefile.am: Reflect changes above.
2010-09-01 11:08:30 +00:00
Sebastian Huber
de39b5127d 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio_.h: Removed rtems_filesystem_null_handlers.
	* libcsupport/src/fs_null_handlers.c: Removed file.
	* libcsupport/Makefile.am: Reflect change above.
	* libfs/src/nfsclient/src/nfs.c, libfs/src/imfs/imfs_creat.c,
	libfs/src/imfs/imfs_init.c, libfs/src/imfs/miniimfs_init.c: Use
	rtems_filesystem_handlers_default instead of
	rtems_filesystem_null_handlers.
	* libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c:
	Initialize handler and operations table with proper defaults.
2010-07-15 08:46:06 +00:00
Sebastian Huber
fd2b1634bb 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio.h: Removed file_info and handlers
	fields in rtems_libio_t.
	* libcsupport/src/close.c, libcsupport/src/fcntl.c,
	libcsupport/src/fdatasync.c, libcsupport/src/fstat.c,
	libcsupport/src/fsync.c, libcsupport/src/ftruncate.c,
	libcsupport/src/getdents.c, libcsupport/src/ioctl.c,
	libcsupport/src/libio_sockets.c, libcsupport/src/lseek.c,
	libcsupport/src/open.c, libcsupport/src/read.c,
	libcsupport/src/readv.c, libcsupport/src/write.c,
	libcsupport/src/writev.c, libfs/src/devfs/devclose.c,
	libfs/src/devfs/devioctl.c, libfs/src/devfs/devopen.c,
	libfs/src/devfs/devread.c, libfs/src/devfs/devwrite.c
	libfs/src/dosfs/msdos_dir.c libfs/src/dosfs/msdos_file.c
	libfs/src/imfs/deviceio.c libfs/src/imfs/imfs_directory.c
	libfs/src/imfs/imfs_fifo.c libfs/src/imfs/memfile.c
	libfs/src/nfsclient/src/nfs.c libfs/src/rfs/rtems-rfs-rtems-file.c
	libfs/src/rfs/rtems-rfs-rtems.h libnetworking/lib/ftpfs.c: Reflect
	changes above.
2010-07-15 08:10:48 +00:00
Joel Sherrill
f4a74bd064 2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* libnetworking/rtems/rtems_syscall.c: Fix warning.
2010-07-14 15:49:12 +00:00
Jennifer Averett
5ec75caa66 2010-07-12 Jennifer Averett
* libnetworking/rtems/rtems_syscall.c: Replaced null socket handlers
	with default handlers. Null handlers are no longer allowed.
2010-07-12 13:51:59 +00:00
Sebastian Huber
55c3939bbb 2010-06-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/tftpDriver.c: rtems_tftp_ops and
	rtems_tftp_handlers are now const and static.
	* libnetworking/rtems/tftp.h: Removed
	rtems_bsdnet_initialize_tftp_filesystem and rtems_tftp_ops.
2010-06-29 13:03:31 +00:00
Ralf Corsepius
432c4f08dc 2010-06-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/rtems/mkrootfs.h: doxygen cosmetics.
2010-06-18 10:03:40 +00:00
Ralf Corsepius
e532099e5a 2010-06-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/netinet/if_ether.c: Misc. 64bit fixes from FreeBSD.
2010-06-18 09:57:54 +00:00
Ralf Corsepius
c428ec0979 2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1566/filesystem
	* libnetworking/rtems/mkrootfs.c,  libnetworking/rtems/mkrootfs.h:
	Let rtems_rootfs_append_host_rec take an in_addr_t as first arg.
	* libnetworking/rtems/rtems_dhcp.c, libnetworking/nfs/bootp_subr.c:
	Reflect changes above.
2010-06-16 13:50:23 +00:00
Ralf Corsepius
06e04f89bc 2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/rfs/rtems-rfs-block.c, libfs/src/rfs/rtems-rfs-buffer.c,
	libnetworking/nfs/bootp_subr.c: Misc. 64bit-compatibility fixes.
2010-06-15 13:35:28 +00:00
Ralf Corsepius
d537b1d728 2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/netinet/ip_fw.c, libnetworking/netinet/ip_input.c:
	Misc. 64bit-compatibility fixes.
2010-06-15 11:33:51 +00:00
Ralf Corsepius
b02f920f6c 2010-06-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/rtems/mkrootfs.h,
	posix/include/rtems/posix/pthread.h,
	score/include/rtems/score/coresem.h,
	score/include/rtems/score/priority.h,
	score/include/rtems/score/threadq.h,
	score/include/rtems/score/timestamp.h: Move 'extern "C"'.
2010-06-14 06:08:50 +00:00
Ralf Corsepius
9ec2f4ebd2 2010-06-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/netinet/in_pcb.c:
	Eliminate "ushort".
2010-06-14 05:59:49 +00:00
Joel Sherrill
1a0ccc7a9d 2010-06-12 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libfs/src/pipe/fifo.c: Remove unused variable to fix warning.
	* libnetworking/rtems/mkrootfs.c: Add include to fix warning.
	* rtems/src/tasksetpriority.c: Fix spacing.
2010-06-12 17:55:13 +00:00
Sebastian Huber
293228e822 2010-06-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/rtems/ftpfs.h, libnetworking/lib/ftpfs.c:  Removed
	rtems_ftpfs_mount().
2010-06-10 09:20:29 +00:00
Sebastian Huber
c69b6fe66a 2010-06-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/rtems/ftpfs.h, libnetworking/lib/ftpfs.c:  Added
	rtems_ftpfs_mount() again.  Documentation.
2010-06-09 11:36:09 +00:00
Sebastian Huber
eaee27b0b9 2010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1524/filesystem
	* libcsupport/src/rtems_mkdir.c: New file.
	* libcsupport/src/Makefile.am: Reflect change above.
	* libcsupport/include/rtems/libio.h: Added rtems_mkdir().
	* libmisc/fsmount/fsmount.h, libmisc/fsmount/fsmount.c,
	libblock/src/bdpart-mount.c, libnetworking/rtems/mkrootfs.h,
	libnetworking/rtems/mkrootfs.c, libfs/src/pipe/pipe.c: Use
	rtems_mkdir().  Removed rtems_fsmount_create_mount_point() and
	rtems_rootfs_mkdir().
2010-06-08 12:59:51 +00:00
Chris Johns
29e92b090c 2010-05-31 Chris Johns <chrisj@rtems.org>
* libcsupport/Makefile.am: Add mount-mgr.c.
        * libcsupport/src/mount-mgr.c: New.
        * include/rtems/fs.h: Added rtems_filesystem_location_mount.
        * libcsupport/include/rtems/libio.h, libcsupport/src/mount.c: New
        mount interface. It is similar to Linux.
        * libcsupport/include/rtems/libio_.h: Remove the
        init_fs_mount_table call.
        * libcsupport/src/base_fs.c: Remove init_fs_mount_table_call. Use
        the new mount call. Remove setting the root node in the global
        pathloc. Mount does this now.
        * libcsupport/src/privateenv.c: Remove the hack to set the root
        mount table entry in the environment.
        * libcsupport/src/unmount.cL Free the target string.
        * libblock/src/bdpart-mount.c: New mount API.

        * libfs/src/devfs/devfs.h, libfs/src/devfs/devfs_init.c,
        libfs/src/dosfs/dosfs.h, libfs/src/dosfs/msdos.h,
        libfs/src/dosfs/msdos_init.c, libfs/src/imfs/imfs.h,
        libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_init.c,
        libfs/src/imfs/miniimfs_init.c,
        libfs/src/nfsclient/src/librtemsNfs.h,
        libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs.h,
        libnetworking/lib/ftpfs.c, libnetworking/rtems/ftpfs.h,
        libnetworking/rtems/tftp.h: New mount_h API.

        * libfs/src/devfs/devfs_eval.c: Local include of extern ops.
        * libfs/src/nfsclient/src/nfs.c: New mount API. Removed the mount
        me call and fixed the initialisation to happen when mounting.

        * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Remove mount
        filesystem files.

        * libmisc/fsmount/fsmount.c, libmisc/fsmount/fsmount.h: Updated to
        the new mount table values.

        * libmisc/shell/main_mount_ftp.c,
        libmisc/shell/main_mount_msdos.c, libmisc/shell/main_mount_rfs.c,
        libmisc/shell/main_mount_tftp.c: Removed.

        * libmisc/shell/main_mount.c: Use the new mount API. Also access
        the file system table for the file system types.

        * libnetworking/lib/tftpDriver.c: Updated to the new mount
        API. Fixed to allow mounting from any mount point. Also can now
        have more than file system mounted.

        * sapi/include/confdefs.h: Add file system configuration support.
2010-05-31 13:56:37 +00:00
Ralf Corsepius
f313543ece 2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/if.c:
	Use uintptr_t and void* in _offsetof().
2010-05-29 04:35:29 +00:00
Ralf Corsepius
e04cfeb92a 2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/netinet/raw_ip.c:
	Cast nam to uintptr_t instead of int.
2010-05-29 04:33:42 +00:00
Ralf Corsepius
7cf4893bca 2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/gethostnamadr.c:
	Cast addr to uintptr_t instead of size_t.
2010-05-29 04:32:39 +00:00
Ralf Corsepius
ba344291ad 2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/gethostnamadr.c:
	Try to make crazy address arithmetic more portable.
2010-05-27 16:50:01 +00:00
Ralf Corsepius
f091ce8613 2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/netinet/raw_ip.c,
	libnetworking/netinet/udp_usrreq.c:
	Cast mbufs to uintptr_t instead of u_long.
2010-05-27 16:45:15 +00:00
Ralf Corsepius
d8b75db608 2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/rtems/rtems_mii_ioctl.h,
	libnetworking/rtems/rtems_mii_ioctl_kern.c:
	Use uint32_t instead of int as ioctl cmd arg.
2010-05-27 16:38:51 +00:00
Ralf Corsepius
4665f32fc5 2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>
*  libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c:
	Use size_t instead of int for pathnamelen.
2010-05-27 16:36:02 +00:00
Ralf Corsepius
375c39a358 2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/socketvar.h (struct sockbuf):
	Use void* instead of caddr_t.
2010-05-27 07:31:49 +00:00
Ralf Corsepius
e7583f67c6 2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/socket.h (struct sockwakeup):
	Use void* instead of caddr_t.
2010-05-27 04:11:07 +00:00
Sebastian Huber
ebf2bc6cbc 2010-04-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/ftpfs.c: Format changes.  Fixed pathname
	allocation in rtems_ftpfs_eval_path().  Send QUIT command during
	file close.
2010-04-30 08:52:29 +00:00
Ralf Corsepius
093d20d1c0 2010-04-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/map_v4v6.c: Use uintptr_t instead of u_long for
	better 16bit target compliance.
2010-04-29 03:13:13 +00:00
Ralf Corsepius
34c63d119a 2010-04-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/mbuf.h: Use uintptr_t instead of u_long
	for 16bit target compliance.
2010-04-14 12:43:21 +00:00
Ralf Corsepius
c922a9dd0a 2010-04-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/gethostbydns.c: Use uintptr_t instead of u_long
	for 16bit target compliance.
2010-04-14 12:42:11 +00:00
Ralf Corsepius
36275c646e 2010-04-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/sysctl.h: Change sysctl_oid->arg2 into int32_t
	for 16bit target compliance.
2010-04-14 10:57:48 +00:00
Ralf Corsepius
959e0a0a80 2010-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/lib/ftpfs.c: 16bit target fixes:
	Use ioctl_command_t as arg to rtems_ftpfs_do_ioctl.
	Explicitly cast to uint32_t in char[] to uint32_t
	conversion.
2010-04-12 12:50:25 +00:00
Ralf Corsepius
5d974c9a70 #include <unistd.h> 2010-04-04 11:03:43 +00:00
Ralf Corsepius
f5d5a2dc86 #include <sys/time.h>. 2010-04-02 07:39:34 +00:00
Ralf Corsepius
e005f6e8d9 Add HAVE_STRINGS_H for better POSIX compliance. 2010-03-28 05:53:22 +00:00
Ralf Corsepius
b25b88e732 Add HAVE_CONFIG_H support to let files receive configure defines. 2010-03-28 05:50:29 +00:00
Ralf Corsepius
39f13cbc46 Add HAVE_STRINGS_H for better POSIX compliance. 2010-03-27 04:00:53 +00:00
Joel Sherrill
bab5c5fac0 2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* ftpd/ftpd.c, httpd/asp.c, httpd/ejparse.c, httpd/emfdb.c,
	httpd/misc.c, httpd/um.c, httpd/webs.c, httpd/websuemf.c,
	libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_format.c,
	libfs/src/dosfs/msdos_misc.c, libfs/src/nfsclient/src/nfs.c,
	libmisc/capture/capture-cli.c, libmisc/monitor/mon-network.c,
	libmisc/shell/hexdump-odsyntax.c, libmisc/shell/main_ifconfig.c,
	libmisc/shell/shell.c, libmisc/shell/shell_makeargs.c,
	libmisc/uuid/parse.c, libnetworking/libc/gethostbydns.c,
	libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c,
	libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_addr.c,
	libnetworking/libc/inet_network.c, libnetworking/libc/res_debug.c,
	libnetworking/libc/res_init.c, libnetworking/libc/res_query.c,
	libnetworking/rtems/rtems_mii_ioctl.c,
	score/src/objectgetnameasstring.c: Readdress use of ctype methods per
	recommendation from D.J. Delorie on the newlib mailing list. We
	should pass an unsigned char into these methods.
2010-03-12 16:26:16 +00:00
Joel Sherrill
391b4dda25 2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* ftpd/ftpd.c, httpd/uemf.c, httpd/um.c, httpd/webs.c,
	httpd/websuemf.c, libblock/src/diskdevs.c,
	libmisc/capture/capture-cli.c, libmisc/monitor/mon-network.c,
	libmisc/shell/hexdump-odsyntax.c, libmisc/shell/main_ifconfig.c,
	libmisc/uuid/parse.c, libnetworking/lib/ftpfs.c,
	libnetworking/libc/gethostbyht.c, libnetworking/libc/getnetnamadr.c,
	libnetworking/libc/inet_network.c,
	libnetworking/rtems/rtems_mii_ioctl.c,
	score/src/objectgetnameasstring.c: Fix warnings for ctype methods.
2010-03-11 19:12:30 +00:00
Chris Johns
a9fa9b765d 2010-02-18 Chris Johns <chrisj@rtems.org>
* libfs/src/rfs/rtems-rfs-bitmaps.c,
        libfs/src/rfs/rtems-rfs-bitmaps.h,
        libfs/src/rfs/rtems-rfs-bitmaps-ut.c,
        libfs/src/rfs/rtems-rfs-block.c, libfs/src/rfs/rtems-rfs-block.h,
        libfs/src/rfs/rtems-rfs-block-pos.h,
        libfs/src/rfs/rtems-rfs-buffer-bdbuf.c,
        libfs/src/rfs/rtems-rfs-buffer.c,
        libfs/src/rfs/rtems-rfs-buffer-devio.c,
        libfs/src/rfs/rtems-rfs-buffer.h, libfs/src/rfs/rtems-rfs-data.h,
        libfs/src/rfs/rtems-rfs-dir.c, libfs/src/rfs/rtems-rfs-dir.h,
        libfs/src/rfs/rtems-rfs-dir-hash.c,
        libfs/src/rfs/rtems-rfs-dir-hash.h,
        libfs/src/rfs/rtems-rfs-file.c, libfs/src/rfs/rtems-rfs-file.h,
        libfs/src/rfs/rtems-rfs-file-system.c,
        libfs/src/rfs/rtems-rfs-file-system-fwd.h,
        libfs/src/rfs/rtems-rfs-file-system.h,
        libfs/src/rfs/rtems-rfs-format.c,
        libfs/src/rfs/rtems-rfs-format.h, libfs/src/rfs/rtems-rfs-group.c,
        libfs/src/rfs/rtems-rfs-group.h, libfs/src/rfs/rtems-rfs.h,
        libfs/src/rfs/rtems-rfs-inode.c, libfs/src/rfs/rtems-rfs-inode.h,
        libfs/src/rfs/rtems-rfs-link.c, libfs/src/rfs/rtems-rfs-link.h,
        libfs/src/rfs/rtems-rfs-mutex.c, libfs/src/rfs/rtems-rfs-mutex.h,
        libfs/src/rfs/rtems-rfs-rtems.c,
        libfs/src/rfs/rtems-rfs-rtems-dev.c,
        libfs/src/rfs/rtems-rfs-rtems-dir.c,
        libfs/src/rfs/rtems-rfs-rtems-file.c,
        libfs/src/rfs/rtems-rfs-rtems.h,
        libfs/src/rfs/rtems-rfs-rtems-utils.c,
        libfs/src/rfs/rtems-rfs-shell.c, libfs/src/rfs/rtems-rfs-shell.h,
        libfs/src/rfs/rtems-rfs-trace.c, libfs/src/rfs/rtems-rfs-trace.h:
        New.

        * Makefile.am, preinstall.am, libfs/Makefile.am,
        wrapup/Makefile.am: Updated with the RFS support.

        * libfs/README: Updated after 10 years.

        * libblock/src/flashdisk.c, libblock/src/nvdisk.c,
        libblock/src/ramdisk-driver.c: Updated to the new error reporting
        in libblock.

        * libmisc/shell/main_ls.c, libmisc/shell/print-ls.c: Fix printing
        the size in long mode.

        * libnetworking/nfs/bootp_subr.c,
        libnetworking/rtems/rtems_bootp.c,
        libnetworking/rtems/rtems_bsdnet_internal.h: Return the BOOTP/DHCP
        to the forever behaviour of 4.9 with the ability to call BOOTP and
        control the process if required.
2010-02-18 00:24:25 +00:00
Chris Johns
42c4de823f 2010-02-01 Chris Johns <chrisj@rtems.org>
* libmisc/shell/fts.c: Updated to the latest NetBSD version to
        resolve heap allocation bugs.
        * libmisc/shell/main_ls.c, libmisc/shell/print-ls.c: Fix printing
        size bugs.
        * libnetworking/rtems/mkrootfs.c: Fix byte order bug when creating
        the loopback interface address.
2010-02-01 00:03:02 +00:00
Joel Sherrill
b45ba5258b 2009-12-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* libnetworking/lib/ftpfs.c: Use EINVAL not EBADRQC.
2009-12-21 15:13:24 +00:00
Joel Sherrill
27643e0336 2009-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/termios.c, libfs/src/dosfs/msdos_format.c,
	libfs/src/nfsclient/src/nfs.c, libfs/src/pipe/fifo.c,
	libnetworking/lib/rtems_bsdnet_ntp.c, libnetworking/lib/tftpDriver.c,
	libnetworking/rtems/rtems_glue.c, libnetworking/rtems/rtems_select.c:
	Eliminate uses of deprecated rtems_clock_get() and replace with
	properly typed routine.
2009-12-17 20:26:09 +00:00
Ralf Corsepius
82292dc51b 2009-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/uio.h: Include <sys/types.h>.
	Use ssize_t for uio_resid in struct uio (From FreeBSD).
2009-12-06 08:16:57 +00:00
Ralf Corsepius
05c18861dd Whitespace removal. 2009-11-30 16:01:51 +00:00