Commit Graph
484 Commits
Author SHA1 Message Date
Ralf Corsepius 5821bfd478 Cosmetics from FreeBSD. 2006-12-08 15:48:34 +00:00
Ralf Corsepius 8147b493a5 Remove local extern strdup. 2006-12-08 09:08:28 +00:00
Ralf Corsepius 7192476f7a Use size_t instead of uint32_t for read/write count-args. 2006-12-08 07:18:27 +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
Ralf Corsepius 3a0d61e9c3 Cosmetic updates from FreeBSD.
Eliminate bcopy in favor of memcpy.
2006-11-16 16:37:49 +00:00
Ralf Corsepius c9478cd810 Fix typo. 2006-11-16 14:55:42 +00:00
Ralf Corsepius c3ed74e033 2006-11-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/rtems/rtems_bsdnet_internal.h: Add timeout() define.
2006-11-16 14:53:10 +00:00
Ralf Corsepius d808d8b1f0 2006-11-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/rtems/rtems_glue.c: Rename timeout() into
	  rtems_bsdnet_timeout().
2006-11-16 14:43:40 +00:00
Ralf Corsepius bd1c23685c 2006-11-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/malloc.h: Remove contigmalloc (non-implemented).
	Remove __P-guards from malloc, free.
2006-11-16 14:41:32 +00:00
Joel Sherrill 068c3ee1df 2006-11-02 Steven Johnson <sjohnson@sakuraindustries.com>
* libnetworking/netdb.h, libnetworking/libc/gethostbyht.c,
	libnetworking/libc/gethostnamadr.c: This patch adds a functional
	gethostbyname_r to RTEMS. We were having problems with multiple
	threads calling gethostbyname, so we decided the best way to deal
	with it was to do it properly, rather than kludge up our code to make
	gethostbyname safe. We have found several slightly different
	parameter lists for this function, it does not seem to be standard.
	The one we used has the linux interface. In RTEMS there was an
	existing gethostbyname_r inside a #ifdef _THREAD_SAFE which was NOT
	Threadsafe, as this just called gethostbyname. So we have placed all
	of the additional code inside the #ifdef _THREAD_SAFE.
2006-11-02 21:48:41 +00:00
Joel Sherrill 90d2585a07 2006-09-14 Joel Sherrill <joel@OARcorp.com>
* libnetworking/net/route.c, librpc/src/rpc/auth_none.c,
	librpc/src/rpc/auth_unix.c, librpc/src/rpc/authunix_prot.c,
	librpc/src/rpc/rpc_callmsg.c, librpc/src/rpc/rpc_prot.c,
	librpc/src/rpc/rtems_portmapper.c: Removed warnings.
2006-09-14 19:09:06 +00:00
Joel Sherrill 5c1023a034 2006-09-13 Joel Sherrill <joel@OARcorp.com>
* libnetworking/rtems/rtems_malloc_mbuf.c: Removed warning by adding
	prototype of malloc.
2006-09-13 16:54:54 +00:00
Joel Sherrill ea7fd1ec58 2006-09-11 Jerry Needell <jerry.needell@unh.edu>
* libnetworking/netinet/in_cksum.c: Joel should have used int32_t not
	uint32_t when removing warnings.
2006-09-11 17:34:10 +00:00
Joel Sherrill d2efdeb170 2006-09-01 Joel Sherrill <joel@OARcorp.com>
* libnetworking/net/if_loop.c: Remove warning.
2006-09-01 21:21:43 +00:00
Joel Sherrill cf04e8aca9 *** empty log message *** 2006-09-01 19:10:01 +00:00
Joel Sherrill 300c914c64 *** empty log message *** 2006-09-01 18:15:01 +00:00
Joel Sherrill b3ee778ea9 2006-09-01 Joel Sherrill <joel@OARcorp.com>
* libcsupport/src/malloc.c, libnetworking/rtems/rtems_glue.c,
	libnetworking/sys/mbuf.h: Remove warnings -- use uintptr_t or
	properly sized integers.
2006-09-01 15:37:47 +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
Joel Sherrill ae5a79c349 2006-08-30 Joel Sherrill <joel@OARcorp.com>
* libcsupport/include/sys/ioccom.h, libnetworking/kern/uipc_socket2.c,
	libnetworking/net/ethernet.h, libnetworking/net/if.h,
	libnetworking/net/if_ethersubr.c, libnetworking/net/if_ppp.c,
	libnetworking/net/if_pppvar.h, libnetworking/net/ppp_tty.c,
	libnetworking/net/pppcompress.c, libnetworking/net/slcompress.c,
	libnetworking/netinet/in.h, libnetworking/netinet/ip_icmp.c,
	libnetworking/netinet/tcp.h, libnetworking/netinet/tcp_seq.h,
	libnetworking/sys/protosw.h, libnetworking/sys/socketvar.h: Remove
	warnings. Most of the warnings were 16/32 bit integer sizing issues.
	Some constants had L appended, some had casts add, some types were
	changed to reflect a bit width requirement.
2006-08-30 17:20:33 +00:00
Joel Sherrill 352332193c 2006-08-30 Joel Sherrill <joel@OARcorp.com>
* libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-command.c,
	libmisc/monitor/mon-driver.c, libmisc/monitor/mon-symbols.c,
	libmisc/rtmonuse/rtmonuse.c, libmisc/stackchk/check.c,
	libnetworking/libc/res_debug.c, telnetd/telnetd.c: Remove printf
	format warnings.
2006-08-30 13:53:02 +00:00
Joel Sherrill 48b1e29a7d 2006-08-30 Joel Sherrill <joel@OARcorp.com>
* libcsupport/src/utsname.c, libnetworking/libc/res_debug.c,
	libnetworking/net/if_media.h, libnetworking/rtems/rtems_mii_ioctl.c,
	librpc/src/rpc/svc_simple.c: Remove printf format warnings.
2006-08-30 13:18:40 +00:00
Till Straumann d5423d834a * libnetworking/net/if_ethersubr.c: (ether_ioctl)
Return error for unknown/unsupported ioctl command.
	(Change merged from freeBSD).
2006-08-22 02:11:32 +00:00
Joel Sherrill 5f88544369 2006-08-15 Joel Sherrill <joel@OARcorp.com>
* libnetworking/kern/kern_sysctl.c: Change int to int32_t.
	* libnetworking/net/if_loop.c: Add cast to long.
	These plus a patch to machine/param.h let the h8300 build multilib.
2006-08-15 11:08:14 +00:00
Till Straumann 8f6c409e41 * libnetworking/rtems/rtems_mii_ioctl_kern.c:
fixed wrong calculation of 1000baseTx autonegotiation
	result.
2006-08-10 22:04:07 +00:00
Till Straumann a912777cf5 * libnetworking/rtems/rtems_mii_ioctl_kern.c:
read ANER and include partner's autoneg
	capability when determining active link parameters.
2006-08-09 00:01:55 +00:00
Till Straumann 47854a0d16 PR 1110/networking
* libnetworking/machine/in_cksum.h: Replaced PPC and
	i386 assembly algorithms (must not assume carry bit is preserved
	across multiple asms). Added packet header as a 'm' input
	operand for all CPU variants. Added carry bit to clobber list.
2006-07-13 01:27:30 +00:00
Thomas Doerfler c9b005a9d2 applied patches for PR1117/1118/1119/1120 2006-07-09 10:05:27 +00:00
Ralf Corsepius 1de34b8fc3 2006-06-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/if_var.h: #include <sys/queue.h>.
	Cosmetics from FreeBSD.
2006-06-24 02:57:36 +00:00
Eric Norum 491d8825c9 Update icps_allecho counter. 2006-05-31 14:52:05 +00:00
Eric Norum 261e743d66 Add flag to inhibit ICMP replies. 2006-05-30 15:12:54 +00:00
Eric Norum be31de713f Provide customisable mbuf allocation.
Patch from Steven Johnson <sjohnson@sakuraindustries.com>
2006-05-25 17:36:31 +00:00
Joel Sherrill f18ebd2ee6 2006-04-13 Joel Sherrill <joel@OARcorp.com>
PR 949/networking
	* libnetworking/sys/socket.h: GNU/Linux is wrong in making
        MSG_DONTWAIT public.  It is strictly BSD and not SUSV.  See
        http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/socket.h.html        for clarification.
2006-04-13 13:03:29 +00:00
Joel Sherrill 0637bb3b01 2006-04-12 Lars Munch <lars@segv.dk>
PR 949/networking
	* libnetworking/sys/socket.h: Make MSG_DONTWAIT public as in GNU/Linux.
2006-04-12 20:59:21 +00:00
Ralf Corsepius 2eb7d07e17 Regenerate. 2006-01-14 06:20:35 +00:00
Ralf Corsepius 4e971660a1 Remove all-local. 2006-01-12 09:57:43 +00:00
Joel Sherrill 790a300444 2006-01-08 Joel Sherrill <joel@OARcorp.com>
* libnetworking/rtems/rtems_mii_ioctl.h: Fix formatting.
2006-01-08 18:12:29 +00:00
Till Straumann 12dd862cbd removed a few spaces... 2005-11-14 23:43:11 +00:00
Ralf Corsepius 6e469da982 Reflect mii.h and if_media.h having moved. 2005-11-14 05:48:12 +00:00
Ralf Corsepius a98449013d 2005-11-13 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/net/if_media.h, libnetworking/dev/mii/mii.h:
	New (Moved from c/src/libchip).
2005-11-14 05:28:11 +00:00
Joel Sherrill 7554bb3a75 2005-11-08 Joel Sherrill <joel@OARcorp.com>
* libnetworking/net/if.h: Add forward reference declaration to
	struct mbuf so ifru_tap callback is properly typed.
	* libnetworking/rtems/rtems_bsdnet.h: Add definition of _BSD_VISIBLE
	which needs to be defined so various pieces of the .h files are
	visible to device drives.
2005-11-08 14:24:28 +00:00
Ralf Corsepius 199e748875 Eliminate obsolete types. 2005-11-06 09:22:09 +00:00
Till Straumann e131ac0754 2005-11-02 straumanatslacdotstanford.edu
* libnetworking/Makefile.am,
	libnetworking/preinstall.am: Added simple implementation of ethernet
	media ioctl SIOCSIFMEDIA/SIOCGIFMEDIA for mii compliant phys.
	* libnetworking/rtems/rtems_mii_ioctl.c,
	libnetworking/rtems/rtems_mii_ioctl.h,
	libnetworking/rtems/rtems_mii_ioctl_kern.c: New files.
2005-11-03 03:09:45 +00:00
Joel Sherrill 24cf3e5eb9 2005-11-02 Fredic Praca <freebsd-fr.org>
PR 842/networking
	* libnetworking/libc/gethostbydns.c: Avoid use of dprintf(). Rename
	dprintf to debugprintf().
2005-11-02 22:24:12 +00:00
Ralf Corsepius b14d857949 2005-11-02 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/net/zlib.c: Remove.
	* libnetworking/net/zlib.h: Remove.
	* libnetworking/Makefile.am: Reflect changes above.
2005-11-02 07:50:12 +00:00
Ralf Corsepius 8281e06c0d Update from FreeBSD. 2005-10-27 15:09:30 +00:00
Ralf Corsepius 0819f4c3bc Remove. 2005-10-27 09:40:33 +00:00
Ralf Corsepius 393f75ffe8 2005-10-27 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/Makefile.am: Don't install loop.h.
2005-10-27 09:37:13 +00:00
Ralf Corsepius e262e237ca New. 2005-10-27 08:48:28 +00:00
Eric Norum ea59f45339 Don't sign-extend address components. 2005-10-25 20:38:57 +00:00