Commit Graph
249 Commits
Author SHA1 Message Date
Joel Sherrill 823f89eaa1 2003-09-02 Jiri Gaisler <jiri@gaisler.com>
PR 476/networking
	* machine/in_cksum.h: Fix in_cksum calculation on SPARC.
2003-09-02 21:31:16 +00:00
Jennifer Averett 1d2dbec76d 2003-08-06 Till Strauman <strauman@slac.stanford.edu>
PR 435/networking
	* rtems/rtems_showifstat.c: rtems_showifstat misses printing
	the netmask
2003-08-06 14:39:16 +00:00
Ralf Corsepius fff840e493 Cleanup 2003-07-08 17:33:43 +00:00
Ralf Corsepius 14d34d841e 2003-07-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove (Merged into ../configure.ac).
	* Makefile.am, libc/Makefile.am, lib/Makefile.am, wrapup/Makefile.am:
	Reflect having merged configure.ac into ../configure.ac.
	* kern/kern_mib.c: Use RTEMS_VERSION to setup osrelease.
2003-07-08 12:21:36 +00:00
Joel Sherrill 011e3b3f3c 2003-05-29 Joel Sherrill <joel@OARcorp.com>
* rtems/rtems_syscall.c: Removed warnings.
2003-05-29 19:09:35 +00:00
Chris Johns 29329cf5de PR407 2003-05-15 09:29:11 +00:00
Chris Johns ef6d9efbeb PR406 - Added INET_ADDRSTRLEN per the SUSv3 standard. 2003-05-15 09:27:03 +00:00
Joel Sherrill 40544fd18f 2003-04-15 Joel Sherrill <joel@OARcorp.com>
PR 388/networking
	* kern/kern_sysctl.c: Revert previous patch and use strlcpy() now that
	it is available. Also fixed some warnings.
2003-04-15 14:57:58 +00:00
Joel Sherrill 6ea9196cc1 2003-03-27 Joel Sherrill <joel@OARcorp.com>
* kern/kern_sysctl.c: Converted from BSP strlcpy() to strncpy().
2003-03-27 13:48:56 +00:00
Joel Sherrill a281b95bfa 2003-03-25 Joel Sherrill <joel@OARcorp.com>
* rtems/rtems_bsdnet_malloc_starvation.c: Fixed name of include file.
2003-03-25 19:43:52 +00:00
Joel Sherrill 26cdc2aff4 2002-03-25 Eric Norum <norume@aps.anl.gov>
PR 374/networking
	* Makefile.am, rtems/rtems_bsdnet.h, rtems/rtems_glue.c:
	The patch sent as part of PR270 got applied to the wrong place.
	The effect was that (1) startup was no faster than before and
	(2) malloc starvation messages came way too quickly.  The attached
	patch fixes both these problems and also provides a mechanism for
	applications to handle malloc starvation conditions as they see fit.
	* rtems/rtems_bsdnet_malloc_starvation.c: New file.
2003-03-25 19:00:35 +00:00
Joel Sherrill bef4fddd1d 2003-03-18 Till Straumann <strauman@slac.stanford.edu>
PR 356/bsps
	* sys/linker_set.h: This patch makes RTEMS/PowerPC eabi compliant.
	Declare all linker-script defined addresses as
	variables of unknown size and not as short objects
	like 'int', 'void*' etc.  Since only addresses are used and never those
	variable's values, the type used in a declaration is not important.
2003-03-18 20:42:51 +00:00
Ralf Corsepius ec0a3462b0 Merger from rtems-4-6-branch. 2003-03-11 11:47:17 +00:00
Joel Sherrill 7ac73e6ee2 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 351/networking
	* nfs/bootp_subr.c: Fix ridiculous leak in bootp and use
	strdup_bootp_realloc() everywhere for sake of consistency.
2003-02-20 21:21:28 +00:00
Joel Sherrill 83e36d6bb7 2003-02-11 Mike Siers <mikes@poliac.com>
* rtems/rtems_glue.c: A small patch to the network daemon task
	code.  I just added code to check the return value of
	the rtems_bsdnet_event_receive function.  Only when
	this function returns a SUCCESSFUL status, will the
	event flags be checked.  This is more of a code cleanup issue
	than a bug.  The patch will just ensure the ipintr() and
	arpintr() functions are only called when a event is signaled.
2003-02-11 22:58:08 +00:00
Ralf Corsepius ccd81b60c2 2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: AM_INIT_AUTOMAKE([1.7.2]).
2003-02-11 11:47:49 +00:00
Ralf Corsepius 9b5c258556 2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: AC_PREREQ(2.57).
2003-02-11 11:11:33 +00:00
Joel Sherrill 8d3e925485 2003-02-06 Mike Siers <mikes@poliac.com>
PR 342/networking
	* kern/uipc_mbuf.c: The RTEMS version of the m_copyback is changing
	the m_len value of the mbuf.  I looked into the source from another
	BSD system and the mbuf length is not changed inside this function.
	The m_copyback function is only being used in the net/rtsock.c file.
	So I think this problem is only visable under certain routing table
	conditions.
2003-02-06 17:14:29 +00:00
Joel Sherrill 9da12bdbb0 2003-02-05 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR 341/networking
	* lib/ftpfs.c: Account for NULL at end of strings when malloc()'ing
	memory.
2003-02-05 21:25:55 +00:00
Joel Sherrill 450a06cae7 2003-01-28 Joel Sherrill <joel@OARcorp.com>
* Makefile.am: Add kern/kern_sysctl.c to Makefile.am so networking
	tests build. This was subsequently reported as PR337 before I
	committed the fix.
2003-01-28 14:16:25 +00:00
Joel Sherrill 9d647dfc30 2003-01-27 Till Straumann <strauman@SLAC.Stanford.edu>
* libc/getproto.c, libc/getprotoname.c: modification to call
	getprotoent_static() if fopen() on /etc/protocols fails.
2003-01-27 16:20:14 +00:00
Ralf Corsepius d6c3d56acd 2003-01-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* netinet/tcp_subr.c: Add args to INP_INFO_RLOCK, INP_INFO_RUNLOCK,
	INP_LOCK, INP_UNLOCK macros.
	* netinet/udp_usrreq.c: Add args to INP_INFO_RLOCK, INP_INFO_RUNLOCK,
	INP_LOCK, INP_UNLOCK macros.
2003-01-15 10:51:32 +00:00
Joel Sherrill 6bd96fc7ab 2003-01-03 Jitendra Vegiraju <jvegiraju@netscape.net>
* sys/queue.h: Fix alignment problem on ARM.
2003-01-03 20:40:29 +00:00
Joel Sherrill 36799d4063 2002-11-26 Chris Johns <cjohns@cybertec.com.au>
* Makefile.am: Added sys/linker_set.h
	* kern/Makefile.am: Added kern_mib.c and kern_sysctl.c.
	* kern/uipc_socket.c: OID changed from KERN_SOMAXCONN to KIPC_SOMAXCONN.
	* kern/uipc_socket2.c: OID changed from KERN_MAXSOCKBUF to
	KIPC_MAXSOCKBUF.
	* net/if_ethersubr.c: FreeBSD 2.2.2 does not have a _net_link node
	while 5.0 does.
	* net/if_ppp.c: Removed the TEXT_SET define as these macros are
	now implemented.
	* net/rtsock.c: Enable sysctl support plus fix the bug with the
	lastest FreeBSD sysctl header file.
	* netinet/icmp_var.h: FreeBSD 2.2.2 does not have a _net_inet_icmp
	node while 5.0 does.
	* netinet/if_ether.c: FreeBSD 2.2.2 does not have a _net_link_ether
	node while 5.0 does.
	* netinet/igmp_var.h: FreeBSD 2.2.2 does not have a _net_inet_igmp
	node while 5.0 does.
	* netinet/in_pcb.c: Fixed the arguments to the sysctl call. Add
	inp_gencnt and ipi_count. These are used when listing connections.
	* netinet/in_pcb.h: Added counters to aid the listing of connections.
	* netinet/in_var.h: Provide the _net_inet_ip and _net_inet_raw nodes.
	* netinet/ip_fw.c: Disable the firewall sysctl calls.
	* netinet/tcp_subr.c: Merge tcp_pcblist from the lastest FreeBSD source.
	* netinet/tcp_var.h: Add structures needed by net-snmp to list
	connections.
	* netinet/udp_usrreq.c: Merged udp_pcblist from the lastest FreeBSD
	source.
	* netinet/udp_var.h: Added the sysctl id UDPCTL_PCBLIST. Used by
	net-snmp.
	* rtems_glue.c: Call sysctl_register_all when initialising the
	network stack to register all the sysctl calls. These are in the
	special sections and required an updated linker script.
	* rtems/rtems_syscall.c: Add the sysctl call.
	* sys/kernel.h: Use the lastest FreeBSD method of handling sysctl
	structures.  This now held in the sys/linker_set.h file.
	* sys/queue.h: This is from the lastest FreeBSD code with the circular
	code merged back in as it is not used in the lastest FreeBSD kernel.
	* sys/sysctl.h: The lastest sysctl. This was needed to use with the new
	linker set method. The FreeBSD 2.2.2 version has asm hacks. The lastest
	version of the FreeBSD does not have these hacks. It uses gcc attribute
	directives.
2003-01-03 18:09:57 +00:00
Eric Norum b6e283de6f Include netinet sources. 2002-12-19 03:47:16 +00:00
Ralf Corsepius dd695d81b6 2002-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Merge-in kern/Makefile.am, net/Makefile.am,
	netinet/Makefile.am, netinet/Makefile.am, nfs/Makefile.am,
	rtems/Makefile.am.
	* kern/Makefile.am: Remove.
	* net/Makefile.am: Remove.
	* netinet/Makefile.am: Remove.
	* nfs/Makefile.am: Remove.
	* rtems/Makefile.am: Remove.
	* wrapup/Makefile.am: Reflect changes above.
	* configure.ac: Ditto.
2002-12-12 12:15:00 +00:00
Ralf Corsepius a3dfa39b35 2002-12-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* kern/Makefile.am: Remove C_O_FILES;
	Don't let all-local depend on $OBJS)
	* lib/Makefile.am: Ditto.
	* libc/Makefile.am: Ditto.
	* net/Makefile.am: Ditto.
	* netinet/Makefile.am: Ditto.
	* nfs/Makefile.am: Ditto.
	* rtems/Makefile.am: Ditto.
2002-12-11 15:34:58 +00:00
Ralf Corsepius 47c0220397 2002-11-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Fix package name.
2002-11-19 22:23:50 +00:00
Ralf Corsepius 9eadce0a5a 2002-11-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Merge-in HEADER-handling from
	net/Makefile.am, netinet/Makefile.am, nfs/Makefile.am.
	* net/Makefile.am: Remove *_HEADERS.
	* netinet/Makefile.am: Remove *_HEADERS.
	* nfs/Makefile.am: Remove *_HEADERS.
2002-11-18 02:21:19 +00:00
Ralf Corsepius 471bcf071f 2002-11-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Merge-in arpa/Makefile.am, machine/Makefile.am,
	sys/Makefile.am, vm/Makefile.am.
	Add . to SUBDIRS.
	* arpa/Makefile.am: Remove.
	* machine/Makefile.am: Remove.
	* sys/Makefile.am: Remove.
	* vm/Makefile.am: Remove.
	* configure.ac: Reflect changes above.
2002-11-15 14:55:12 +00:00
Chris Johns 658ad56f62 2002-11-06 Chris Johns <ccj@acm.org>
* sys/select.h: Add C++ to C external.
2002-11-10 07:12:46 +00:00
Chris Johns 8d3eba16f7 Need to be extern C for use by C++. 2002-11-09 04:37:33 +00:00
Ralf Corsepius 76b6085f0a 2002-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* kern/uipc_mbuf.c: Comment out m0 in m_copydata to suppress
	warning.
2002-11-02 16:27:43 +00:00
Joel Sherrill b31106f629 2002-11-01 Joel Sherrill <joel@OARcorp.com>
* ChangeLog: Corrected.
2002-11-01 22:26:02 +00:00
Eric Norum ce452f7203 *** empty log message *** 2002-11-01 18:43:57 +00:00
Eric Norum 022fcc0755 Till Straumann's patch to:
use bootp option 129 to get command line string
	change inet_ntoa->inet_ntop
2002-11-01 18:43:09 +00:00
Joel Sherrill 0647cc743f 2002-10-31 Joel Sherrill <joel@OARcorp.com>
* libc/rcmd.c, netinet/in_cksum_arm.c: Removed warnings.
2002-10-31 20:10:40 +00:00
Joel Sherrill abef0f69ae 2002-10-28 Joel Sherrill <joel@OARcorp.com>
* Pass to eliminate warnings.
	* kern/uipc_mbuf.c: Conditional SYSINIT() usage on __rtems__.
	Fix return statement without a value.
	* lib/ftpfs.c: read and write filesystem routines return ssize_t.
	* lib/syslog.c: Add include of <string.h> to eliminate warning.
	* lib/tftpDriver.c: read and write filesystem routines return ssize_t.
	* libc/gethostbydns.c: Prototype abort().
	* libc/inet_ntoa.c: Prototype strcpy().
	* libc/rcmd.c: Add include of <sys/select.h>
	* net/if_loop.c: Turn token at end of endif to comment.
	* net/rtsock.c, nfs/bootp_subr.c:  Conditional SYSINIT() usage
	on __rtems__.
	* rtems/rtems_bootp.c: Add include of <rtems/rtems_bsdnet_internal.h>.
	* rtems/rtems_bsdnet_internal.h: Added prototypes for memcpy() and
	memset() since the BSD code tries to avoid using libc .h files
	since it is used to being in the kernel.
	* rtems/rtems_syscall.c: read and write filesystem routines
	return ssize_t.
2002-10-28 13:56:01 +00:00
Ralf Corsepius 56a1ae369d 2002-10-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Add nostdinc to AM_INIT_AUTOMAKE.
2002-10-25 06:18:56 +00:00
Ralf Corsepius fa87598d8a 2002-10-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Remove bogus reference to CHANGELOG.
2002-10-25 04:36:19 +00:00
Ralf Corsepius f8cb04a54a 2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Reformat.
	Add autom4te*cache.
	Remove autom4te.cache.
2002-10-21 12:04:36 +00:00
Ralf Corsepius 7b93cedcd4 2002-10-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* net/if_ethersubr.c: Add comments to #endif NETATALK to stop
	gcc from complaining.
2002-10-13 21:47:29 +00:00
Joel Sherrill a63efae255 2002-10-07 Eric Norum <eric.norum@usask.ca>
* netinet/tcp_var.h: Corrected typo in ARM alignment patch which 
	broke all other ports.
2002-10-07 17:11:27 +00:00
Joel Sherrill 3fb7680513 2002-10-04 Jay Monkman <jtm@smoothsmoothie.com>
* netinet/in_cksum.c, netinet/ip_icmp.h, netinet/ip_input.c,
	netinet/tcp_input.c, netinet/tcp_subr.c, netinet/tcp_var.h,
	sys/queue.h: Address alignment requirements for the ARM.
2002-10-04 14:47:11 +00:00
Joel Sherrill ed15301c7b 2002-10-04 Jay Monkman <jtm@smoothsmoothie.com>
* rtems/rtems_glue.c: Add IP aliasing ioctls SIOCAIFADDR and
	SIOCDIFADDR.
2002-10-04 13:25:31 +00:00
Joel Sherrill 6ca248c37c 2002-10-02 Joel Sherrill <joel@OARcorp.com>
* kern/uipc_socket.c: Make sure that small non-zero delays work.
	Suggested cleanup from Eric Norum.
2002-10-02 17:35:29 +00:00
Joel Sherrill bcac0cb2c3 2002-10-02 Eric Norum <eric.norum@usask.ca>
* rtems/mkrootfs.c: As part of PR283, remove redundant code that
	creates /etc/passwd and /etc/group.
2002-10-02 17:34:28 +00:00
Joel Sherrill f4ceef3ef6 2002-09-16 Joel Sherrill <joel@OARcorp.com>
* netinet/Makefile.am, netinet/udp_usrreq.c: Back off some of
	the IP_FORWARD patch as it appears to not compile in the
	current tree.
2002-09-16 11:55:43 +00:00
Joel Sherrill 144b94fa40 2002-09-14 Joel Sherrill <joel@OARcorp.com>
* kern/uipc_socket.c: Fix case on SO_RCVTIMEO and SO_SNDTIMEO where
	conversion into ticks can result in a 0 ticks timeout which is
	the same as requesting no timeout.  Reported by Sergei Organov
	<osv@javad.ru>.
2002-09-14 18:31:06 +00:00
Joel Sherrill ce2c216469 2002-09-14 Vyacheslav V. Burdjanadze <wr@zelax.ru>
* kern/uipc_mbuf.c, sys/mbuf.h, netinet/udp_usrreq.c: Add
	optional UDP broadcast forwarding support.
	* netinet/Makefile.am: Defined FORWARD_PROTOCOL to enabled UDP
	broadcast forwarding.
2002-09-14 18:18:50 +00:00