Commit Graph

750 Commits

Author SHA1 Message Date
Ralf Corsepius
404b1fb473 Add missing initializers. 2008-12-22 17:47:57 +00:00
Ralf Corsepius
ff31d9a52e Add missing initializers. 2008-12-22 12:56:06 +00:00
Ralf Corsepius
300c071cbf Add missing initializers. 2008-12-22 12:45:53 +00:00
Ralf Corsepius
9b17fb61db Add missing initializers. 2008-12-22 12:29:57 +00:00
Ralf Corsepius
b3f8c9e15b Include <errno.h> (POSIX,C99) instead of <sys/errno.h> (BSD'ism). 2008-12-22 07:47:28 +00:00
Ralf Corsepius
fc2f722ac9 Include <sys/socket.h> to make header self contained. 2008-12-11 17:28:33 +00:00
Ralf Corsepius
1cb54d1f38 #include <stdint.h> instead of <rtems/stdint.h>. 2008-12-11 00:47:56 +00:00
Thomas Doerfler
06c3530efc libnetworking/rtems/rtems_glue.c: Copy nothing if rtems_bsdnet_parse_driver_name() if namep is NULL.
include/rtems/status-checks.h: Added prefix "RTEMS" for all macros. Doxygen style comments.  Cleanup.
2008-10-10 15:56:32 +00:00
Eric Norum
ac337bc053 Final resolution of this "small" por t number change. 2008-09-26 15:03:29 +00:00
Joel Sherrill
0655f79d8e 2008-09-25 Eric Norum <norume@aps.anl.gov>
* libnetworking/lib/rtems_bsdnet_ntp.c: Revert previous patch.
2008-09-25 19:54:26 +00:00
Ralf Corsepius
3469329c31 2008-09-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/lib/ftpfs.c: Use ssize_t for read retval (Fix
	  comparision of unsigned < 0).
2008-09-24 08:51:54 +00:00
Joel Sherrill
dba0264924 2008-09-23 Eric Norum <norume@aps.anl.gov>
* libnetworking/lib/rtems_bsdnet_ntp.c: Let TCP/IP stack pick port
	rather than hard coding selection.
2008-09-23 15:21:21 +00:00
Ralf Corsepius
e4c4c42fc8 Stop using old-style function definitions. 2008-09-07 15:34:30 +00:00
Ralf Corsepius
f002800eaf Use bool instead of boolean. 2008-09-04 14:20:51 +00:00
Ralf Corsepius
029c374c9c Stop using old-style function definitions. 2008-09-01 07:02:00 +00:00
Ralf Corsepius
dd967330f8 Stop using old-style function definitions. 2008-09-01 06:36:17 +00:00
Ralf Corsepius
2acc6eeb4f Fix broken declaration of tcp_trace(). 2008-09-01 06:33:59 +00:00
Ralf Corsepius
f5a2f211c4 Remove BSD "Add clause" (From FreeBSD). 2008-09-01 06:26:20 +00:00
Ralf Corsepius
42e10fa24f Stop using old-style function definitions. 2008-09-01 04:56:33 +00:00
Ralf Corsepius
fbf3f981e9 Stop using old-style function definitions. 2008-09-01 03:35:37 +00:00
Ralf Corsepius
c78ecb0eda Stop using old-style function-definitions. 2008-08-27 11:13:59 +00:00
Joel Sherrill
930775ddb7 2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* libnetworking/kern/kern_sysctl.c, libnetworking/libc/res_debug.c: Fix
	warnings.
2008-08-19 18:47:54 +00:00
Ralf Corsepius
d82bd27951 Add missing prototypes. 2008-08-19 06:34:44 +00:00
Joel Sherrill
02aaec7647 2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* libnetworking/lib/ftpfs.c, libnetworking/libc/inet_ntoa.c,
	libnetworking/libc/rcmd.c, libnetworking/nfs/bootp_subr.c,
	libnetworking/rtems/rtems_glue.c,
	libnetworking/rtems/rtems_malloc_mbuf.c,
	libnetworking/rtems/rtems_showicmpstat.c, libnetworking/sys/malloc.h:
	Fix some warnings.
2008-08-18 21:42:41 +00:00
Joel Sherrill
1487880d2c 2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/include/rtems/libcsupport.h, libcsupport/src/scandir.c,
	libmisc/cpuuse/cpuusagereset.c, libmisc/monitor/mon-monitor.c,
	libmisc/serdbg/serdbg.c, libmisc/serdbg/serdbg.h,
	libnetworking/netinet/in_cksum_powerpc.h, shttpd/compat_rtems.h: Fix
	warnings.
2008-08-18 21:16:42 +00:00
Ralf Corsepius
bd4a776c8d 2008-08-18 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/net/ppp_tty.c: Remove bogus local decl of
	termios_baud_to_number(int).
2008-08-18 10:41:13 +00:00
Ralf Corsepius
d95b9e7ea2 Add missing prototype. 2008-08-18 10:39:38 +00:00
Ralf Corsepius
142025c80c Add missing prototypes. 2008-08-18 07:22:23 +00:00
Ralf Corsepius
b5cc0592f7 Add prototypes. 2008-08-03 04:27:50 +00:00
Ralf Corsepius
082d4a2879 Add missing prototypes. 2008-08-02 05:37:10 +00:00
Ralf Corsepius
e386ad7265 Add missing prototypes. 2008-08-01 05:07:41 +00:00
Joel Sherrill
1fbd0bafe7 2008-07-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* libnetworking/Makefile.am, libnetworking/libc/gethostnamadr.c,
	libnetworking/libc/getservbyname.c,
	libnetworking/libc/getservbyport.c: Add initial versions of
	getservbyport_r(), gethostbyaddr_r(), and getservbyport_r(). At this
	point they are just simple weappers for the version without the _r in
	the name.
2008-07-02 13:40:19 +00:00
Thomas Doerfler
a184e5ee44 Bugfix: Moved definition of ppp_softc into source file. 2008-05-27 10:33:22 +00:00
Till Straumann
793249a2eb 2008-05-23 Till Straumann <strauman@slac.stanford.edu>
* libnetworking/netinet/ip_output.c: when fragmenting
	multicast packets M_MCAST must be set on all fragments.
	This was fixed in FreeBSD ip_output.c 1.82 on 1998/8/23 !
	(see my email to rtems-users from 2008/5/15).
2008-05-23 21:48:06 +00:00
Chris Johns
50303dfbd1 2008-05-01 Maarten Van Es <maarten@mind.be>
* libnetworking/rtems/rtems_dhcp.c: Removed panic()s.  Added
	interface for rtems_dhcp_failsafe.
	* libnetworking/rtems/rtems_dhcp.h: Added interface for
	rtems_dhcp_failsafe.

2008-05-01  Arnout Vandecappelle <arnout@mind.be>

	* libnetworking/nfs/bootp_subr: Allow some errors for sosend() and
	return on timeout in bootpc_call().  Removed panic()s.
	* libnetworking/rtems/rtems_glue.c: Fix the cast for the
	SIOCAIFADDR ioctl call.
	* libnetworking/rtems/rtems_dhcp_failsafe.c,
	libnetworking/rtems/rtems_dhcp_failsafe.h: New.
	* libnetworking/Makefile.am, libnetworking/preinstall.am: Added
	rtems_dhcp_failsafe.c and rtems_dhcp_failsafe.h files.
2008-05-01 02:57:49 +00:00
Joel Sherrill
4273e70b1c 2008-02-06 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1277/networking
	* libnetworking/netinet/in_cksum_i386.h: Use q instead of r in
	constraint for assembly language. This restricts the register choice
	to the a-d registers.
2008-02-06 16:59:31 +00:00
Joel Sherrill
5c62b53a64 2008-02-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* libnetworking/kern/uipc_socket2.c,
	libnetworking/netinet/tcp_usrreq.c,
	libnetworking/netinet/udp_usrreq.c,
	libnetworking/rtems/rtems_bsdnet.h, libnetworking/rtems/rtems_glue.c:
	Add configuration parameters for network stack efficiency multiplier
	and default socket buffer sizes. Change default multiplier from 8 to
	2 to match GNU/Linux. This has no impact on performance on the BSPs
	tested.
2008-02-05 22:29:19 +00:00
Chris Johns
1ff9922df0 2007-12-22 Chris Johns <chrisj@rtems.org>
* configure.ac: fixed bug that always enabled strict order
	mutexes.
	* score/inline/rtems/score/coremutex.inl: Fixed coding standard.
	* score/src/coremutex.c: Add the holder's thread to the lock_mutex
	list if the mutex is initialised locked.
	* libnetworking/rtems/rtems_glue.c: Changed semaphore error
	message to show the error is an rtems-net error.
	* libmisc/monitor/mon-network.c: Removed warnings.
	* telnetd/icmds.c: Changed shell_* to rtems_shell_*.
	* score/Makefile.am: Fixed typo that stopped 'make tags' working.
	* libmisc/shell/err.c, libmisc/shell/err.h, libmisc/shell/errx.c,
	libmisc/shell/extern-cp.h, libmisc/shell/fts.c,
	libmisc/shell/fts.h, libmisc/shell/main_cp.c,
	libmisc/shell/utils-cp.c, libmisc/shell/verr.c,
	libmisc/shell/verrx.c, libmisc/shell/vwarn.c,
	libmisc/shell/vwarnx.c, libmisc/shell/warn.c,
	libmisc/shell/warnx.c: New. Ported from BSD.
	* libmisc/shell/shellconfig.h: Add the cp command.
	* libmisc/Makefile.am: Add the new files to the shell.
	* libmisc/shell/shell.c, libmisc/shell/shell.h: Add scripting
	support.
	* libblock/src/flashdisk.c: Fixed disk drive count size setting
	bug.
2007-12-22 08:27:18 +00:00
Chris Johns
2eeb648c35 2007-12-17 Chris Johns <chrisj@rtems.org>
* libnetworking/rtems/tftp.h: Provide a decl to the TFTP file
	system opts table.
	* libnetworking/rtems/ftpfs.h: Provide a decl to the FTP file
	system opts table.
	* libmisc/Makefile.am: Add the mount command and supporting files.
	* libmisc/preinstall.am: Rebuilt.
	* libmisc/shell/cat_file.c, libmisc/shell/cmds.c,
	libmisc/shell/main_alias.c, libmisc/shell/main_cat.c,
	libmisc/shell/main_cd.c, libmisc/shell/main_chdir.c,
	libmisc/shell/main_chmod.c, libmisc/shell/main_chroot.c,
	libmisc/shell/main_cpuuse.c, libmisc/shell/main_date.c,
	libmisc/shell/main_dir.c, libmisc/shell/main_exit.c,
	libmisc/shell/main_help.c, libmisc/shell/main_id.c,
	libmisc/shell/main_logoff.c, libmisc/shell/main_ls.c,
	libmisc/shell/main_mallocdump.c, libmisc/shell/main_mdump.c,
	libmisc/shell/main_medit.c, libmisc/shell/main_mfill.c,
	libmisc/shell/main_mkdir.c, libmisc/shell/main_mmove.c,
	libmisc/shell/main_mwdump.c, libmisc/shell/main_pwd.c,
	libmisc/shell/main_rm.c, libmisc/shell/main_rmdir.c,
	libmisc/shell/main_stackuse.c, libmisc/shell/main_tty.c,
	libmisc/shell/main_umask.c, libmisc/shell/main_whoami.c,
	libmisc/shell/shell.c, libmisc/shell/shell_cmdset.c,
	libmisc/shell/shell_makeargs.c, libmisc/shell/str2int.c,
	libmisc/shell/write_file.c: Move all shell_* types, variables and
	functions to rtems_shell_* to avoid namespace clashes with
	applications. The is an RTEMS shell after all.
	* libmisc/shell/shell.h, libmisc/shell/internal.h,
	libmisc/shell/shellconfig.h: Move all shell_* types, variables and
	functions to rtems_shell_* to avoid namespace clashes with
	applications. Add the mount command supporting types.
	* libmisc/shell/main_mount.c, libmisc/shell/main_mount_ftp.c,
	libmisc/shell/main_mount_msdos.c, libmisc/shell/main_mount_nfs.c,
	libmisc/shell/main_mount_tftp.c: New.
2007-12-17 00:12:01 +00:00
Joel Sherrill
cf7ebcf9b0 2007-11-27 Joel Sherrill <joel.sherrill@OARcorp.com>
* libnetworking/netinet/in_cksum.c: ARM optimized version does not
	support Thumb.
2007-11-27 15:10:37 +00:00
Till Straumann
247f83ca46 2007-11-17 Till Straumann <strauman@slac.stanford.edu>
* libnetworking/rtems/rtems_glue.c: let rtems_bsdnet_ifconfig
	(SIOCGIFMEDIA) pass the user parameter down to the ioctl
	so that it knows what PHY they want to look at.
2007-11-17 19:38:08 +00:00
Ralf Corsepius
807337d281 Adjust to POSIX. Minor updates from FreeBSD. 2007-10-15 07:59:00 +00:00
Ralf Corsepius
9aab34cd3d Regenerate. 2007-10-04 16:08:35 +00:00
Ralf Corsepius
b268e70e07 2007-10-04 Keith Robertson <kjrobert@alumni.uwaterloo.ca>,
Ralf Corsépius <ralf.corsepius@rtems.org>

	* libnetworking/ifaddrs.h, libnetworking/libc/getifaddrs.c,
	libnetworking/libc/if_indextoname.c,
	libnetworking/libc/if_nameindex.c: New (from FreeBSD)
	* Makefile.am: Add files above.
	* libnetworking/net/if.h: Add if_nameindex (from FreeBSD).
2007-10-04 16:08:15 +00:00
Ralf Corsepius
0295725f55 Add if_nameindex etc. (from FreeBSD). 2007-10-04 14:24:10 +00:00
Ralf Corsepius
3d2a28d738 New (from FreeBSD) 2007-10-04 14:23:45 +00:00
Joel Sherrill
b5bf8cd163 2007-09-24 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1262/filesystem
	* libcsupport/Makefile.am, libnetworking/libc/herror.c,
	libnetworking/libc/res_send.c, libnetworking/sys/uio.h,
	telnetd/Makefile.am, telnetd/README, telnetd/preinstall.am,
	telnetd/pty.c, telnetd/telnetd.c: Add support for readv() and
	writev() including documentation and test case.
	* libcsupport/src/readv.c, libcsupport/src/writev.c: New files.
2007-09-24 21:35:10 +00:00
Joel Sherrill
6f57450dfe 2007-09-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* libnetworking/Makefile.am: Add dummy socketpair() implementation to
	document what is required to provide a fully functional
	implementation.
	* libnetworking/rtems/rtems_socketpair.c: New file.
2007-09-21 15:34:10 +00:00
Ralf Corsepius
e80aa4fae8 2007-09-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/ppp_defs.h: Include rtems/stdint.h.
	Use uint32_t for ext_accm.
2007-09-16 06:23:26 +00:00
Joel Sherrill
51b6226c25 2007-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1248/networking
	* libnetworking/rtems/rtems_glue.c: Luke Stras <luke@spacequest.com>
	reported that when no interfaces are successfully attached, the
	default route is broken and may result in a jump to an illegal
	address.
2007-08-01 00:44:05 +00:00