Commit Graph

34 Commits

Author SHA1 Message Date
Joel Sherrill
bb679b3111 Move <memory.h> and <sys/uio.h> to non-networking directory
These two header files were installed from libnetworking even
when networking was disabled. This patch moves them to a
non-networking location and updates uio.h to match the FreeBSD 8.x
source being used for the USB stack and TCP/IP stack upgrade.

 - cpukit/include/memory.h
   Move from cpukit/libnetworking/memory.h. No changes

 - cpukit/include/sys/uio.h
   Move from cpukit/libnetworking/sys/uio.h. Replace with FreeBSD 8.x version.

 - cpukit/include/sys/_iovec.h
   New. FreeBSD 8.x file supporting <sys/uio.h>.

 - cpukit/Makefile.am
   Reflect movement of <memory.h> and <sys/uio.h>.

 - cpukit/preinstall.am
   Regenerate

 - cpukit/libnetworking/nfs/bootp_subr.c
   Eliminate use of uio_procp field no longer in FreeBSD structure. This
   field was set and never read so eliminating the set has no impact.
2013-01-23 13:38:04 -06:00
Sebastien Bourdeauducq
6c18c97be0 network/bootp: PR2031: Add and use header file 2012-06-06 13:30:14 +02:00
Joel Sherrill
65c6425de9 Remove CVS Id Strings (manual edits after script)
These modifications were required by hand after running the script.
In some cases, the file names did not match patterns. In others,
the format of the file did not match any common patterns.
2012-05-11 08:44:14 -05:00
Ralf Corsepius
5605990592 2011-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/rtems/rtems_dhcp.c:
	Make format_ip, dhcp_init static.
	* libnetworking/nfs/bootp_subr.c:
	Make bootp_strdup_realloc static.
2011-12-08 05:09:04 +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
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
046fe12b33 2009-04-28 Chris Johns <chrisj@rtems.org>
* libnetworking/nfs/bootp_subr.c: Fixed PR1384. The route set in
        the initialise pass is not deleted so an exists error is
        returned. Ignore the error. Print the server address as an IP
        address not hex digits.

        * libnetworking/rtems/rtems_dhcp.c: Fixed
        PR1338. Close the socket, handle the returned event flags.
2009-04-28 11:12:03 +00:00
Ralf Corsepius
0d37bf16e5 Cosmetics from FreeBSD. 2009-02-10 08:25:06 +00:00
Ralf Corsepius
e8a837d6e1 #include <sys/ucred.h>. 2009-02-04 12:54:28 +00:00
Ralf Corsepius
029c374c9c Stop using old-style function definitions. 2008-09-01 07:02:00 +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
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
Ralf Corsepius
dcefab604e Eliminate __P(). 2007-03-28 02:42: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
Ralf Corsepius
4e6948474c Cosmetics 2005-09-16 14:20:51 +00:00
Ralf Corsepius
bc100edfc2 Remove superfluous includes. 2005-09-16 06:17:00 +00:00
Ralf Corsepius
a605cecde3 2005-08-06 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/nfs/bootp_subr.c: Don't include
	nfs/nfs.h, nfs/krpc.h.
2005-08-06 03:28:49 +00:00
Joel Sherrill
3274c87676 2005-04-28 Joel Sherrill <joel@OARcorp.com>
* libnetworking/kern/kern_sysctl.c, libnetworking/libc/inet_ntop.c,
	libnetworking/net/if_ppp.c, libnetworking/net/pppcompress.c,
	libnetworking/net/slcompress.c, libnetworking/netinet/ip_output.c,
	libnetworking/netinet/udp_usrreq.c, libnetworking/nfs/bootp_subr.c,
	libnetworking/rtems/rtems_select.c,
	libnetworking/rtems/rtems_showifstat.c,
	libnetworking/rtems/rtems_showroute.c,
	libnetworking/rtems/rtems_syscall.c: Fixed type mismatch and
	uninitialized variable warnings.
2005-04-28 21:49:50 +00:00
Ralf Corsepius
74404409a7 Reflect having introduced nfsclient/. 2005-04-17 07:34:11 +00:00
Ralf Corsepius
b90307a092 2005-02-03 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 755/rtems
	* libnetworking/libc/res_init.c, libnetworking/lib/rtems_bsdnet_ntp.c,
	libnetworking/nfs/bootp_subr.c: Include <rtems/bsdnet/servers.h>.
2005-02-03 05:49:30 +00:00
Joel Sherrill
6d380c7aea 2004-09-17 Till Strauman <strauman@slac.stanford.edu>
PR 676/networking
	* libnetworking/nfs/bootp_subr.c: /etc/resolv.conf contains NTP instead
	of DNS servers.
2004-09-17 16:39:44 +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
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
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
Joel Sherrill
9fcd1a1c58 2002-07-30 Joel Sherrill <joel@OARcorp.com>
* machine/types.h: Removed as a simpler version of this file is
	now part of the RTEMS newlib support.
	* machine/Makefile.am, machine/endian.h, nfs/bootp_subr.c,
	rtems/rtems_bsdnet_internal.h, sys/Makefile.am, sys/systm.h:
	Minor modifications to use the simpler machine/types.h.  Mostly
	more complete sets of #include's to account for machine/types.h
	no longer doing this.
2002-07-30 23:31:00 +00:00
Joel Sherrill
9b02fa6509 2002-03-27 Thomas.Doerfler@imd-systems.de
* PR144
        * nfs/bootp_subr.c bootpc_init(): Performs a write to memory address
	0 when called for the first time. This is done when trying to clear
	the variable "dhcp_hostname".
2002-03-27 14:44:55 +00:00
Joel Sherrill
4bde23948c 2001-09-19 Chris Johns <ccj@acm.org>
* nfs/bootp_subr.c, rtems/rtems_bootp.c, rtems/rtems_bsdnet.h,
	rtems/rtems_bsdnet_internal.h Added support for populating the
	initial "root" filesystem with information obtained via the DHCP
	response.
2001-09-19 17:30:38 +00:00
Joel Sherrill
cbccd37599 Patch from Eric Norum <eric@cls.usask.ca> which includes:
Patches against 1105 snapshot to add NTP server support to network
    configuration/BOOTP.
1999-11-10 14:31:11 +00:00
Joel Sherrill
a0af97d2bf Patch from Eric Norum <eric@cls.usask.ca> to add NTP BOOTP support because
EPICS needs a synchronized time-of-day clock.  This patch is the changes
needed to get NTP server information from a BOOTP server.

This patch also adds NTP server information to the network configuration
structure, too.
1999-11-09 03:43:47 +00:00
Joel Sherrill
a238cc97d0 Patch from D. V. Henkel-Wallace <gumby@zembu.com> to remove compiler
warnings.
1999-05-17 15:45:15 +00:00
Joel Sherrill
847375f3ad Patch from Eric Norum <eric@skatter.usask.ca>:
1) Socket timeout field changed from `short' to `long'.  This makes longer
       timeouts possible.  With a 1 kHz system clock the old system allowed
       timeouts only up to a little over 30 seconds!  This change is a
       slightly cleaned-up version of the patch proposed by Ian Lance Taylor.

    2) Major changes to BOOTP/DHCP reply handling.  Now supports much of
       RFC2132.  These changes were done at the request of, and with the
       assistance of, Erik Ivanenko.

    If you're making changes, you might want to change the network
    supplement  Essentially just do a global search and replace of BOOTP
    with BOOTP/DHCP.
1998-11-19 17:35:49 +00:00
Joel Sherrill
ff0f694d46 Fixed many warnings. 1998-08-20 21:47:37 +00:00
Joel Sherrill
39e6e65a2c Base files 1998-08-19 21:32:28 +00:00