Commit Graph

769 Commits

Author SHA1 Message Date
Ralf Corsepius
f73cdd5b6e 2011-05-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/signalvar.h: Cosmetics from FreeBSD.
	Comment out psignal().
2011-05-18 05:13:07 +00:00
Ralf Corsepius
77dc5a21a3 2011-05-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/Makefile.am: Reformat.
	* librpc/Makefile.am: Reformat.
2011-05-17 14:30:34 +00:00
Ralf Corsepius
7d2e930f88 2011-05-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/rtems/rtems_bsdnet_internal.h: Move
	#include <rtems.h> out of C++-guard.
2011-05-16 14:31:49 +00:00
Ralf Corsepius
f6015bd09d Make self-contained. 2011-05-13 15:56:21 +00:00
Ralf Corsepius
7e1d1e4b9a Make self-contained. 2011-05-12 04:10:20 +00:00
Ralf Corsepius
c7d0d8678a Make self-contained. 2011-05-11 14:35:03 +00:00
Ralf Corsepius
ee613aa252 Include <sys/cdefs.h> (Eliminate rtems/bsd/sys/cdefs.h). 2011-03-24 09:36:14 +00:00
Ralf Corsepius
223fd16b30 2011-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/linker_set.h: Add local versions of __used
	and __CONCAT macros.
2011-03-24 09:28:32 +00:00
Ralf Corsepius
ddbfa05096 Use <sys/queue.h> instead of <rtems/bsd/sys/queue.h. 2011-03-02 14:39:32 +00:00
Ralf Corsepius
3611eba5ad Use <sys/queue.h> instead of <rtems/bsd/sys/queue.h. 2011-03-02 14:18:27 +00:00
Ralf Corsepius
db4219ea9f Use <sys/queue.h> instead of <rtems/bsd/sys/queue.h. 2011-03-02 12:06:46 +00:00
Sebastian Huber
ebe6edbcf1 2011-02-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/rtems/rtems_mii_ioctl_kern.c: Do not use IFM_ACTIVE
	and IFM_AVALID in the media word.
	* libnetworking/net/if_media.h: Hack to get libbsdport interface
	drivers working.
2011-02-25 10:38:17 +00:00
Ralf Corsepius
ee7f2f7bcc 2011-02-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/netinet/ip_icmp.c, libnetworking/netinet/ip_icmp.h:
	Misc. changes from FreeBSD.
	* libnetworking/netinet/tcp_var.h: Include <netinet/tcp_timer.h>.
2011-02-24 14:57:34 +00:00
Ralf Corsepius
460674d99f 2011-02-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/netinet/in_systm.h,
	libnetworking/netinet/tcp_debug.c,
	libnetworking/netinet/tcp_debug.h, libnetworking/netinet/tcp_seq.h,
	libnetworking/netinet/tcp_var.h, libnetworking/netinet/tcpip.h:
	Misc changes from FreeBSD.
2011-02-24 06:48:52 +00:00
Ralf Corsepius
241a4c315f 2011-02-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/if_pppvar.h: Add "extern C++" guards.
	Add header guard.
2011-02-23 14:38:25 +00:00
Ralf Corsepius
546c4737f5 2011-02-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/signalvar.h: Comment out unused code.
2011-02-23 14:36:05 +00:00
Ralf Corsepius
e59c21e37b 2011-02-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/machine/in_cksum.h: Add missing includes.
2011-02-23 14:28:26 +00:00
Ralf Corsepius
1b8a1a6e62 2011-02-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/vm/vm_kern.h: Comment out unused vars.
2011-02-23 14:24:35 +00:00
Sebastian Huber
00db336a00 2011-02-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/ftpfs.c: Workaround for some firewalls.
2011-02-21 10:58:15 +00:00
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