History log of /freebsd-10-stable/usr.sbin/bootparamd/bootparamd/main.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 291042 18-Nov-2015 ngie

MFC r290645:

Fix some trivial warnings with bootparamd/main.c

- Convert K&R to something a bit less ancient
- Remove an incorrect, duplicate prototype for bootparamprog_1(..)

PR: 71667
Submitted by: bcran
Sponsored by: EMC / Isilon Storage Division


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 181143 01-Aug-2008 cognet

Remove a useless cast.

Spotted out by: stefanf


# 181125 01-Aug-2008 cognet

Char is unsigned on arm, so is not suitable to store the return value of
getopt(). Use an int instead.

Submitted by: Matthew Luckie
MFC after: 3 days


# 175823 30-Jan-2008 rink

Fix bootparamd on 64 bit platforms - at least amd64 was broken due to the
code believing long == 64 bits and using it to store/compare IPv4 addresses.

PR: bin/112163
Submitted by: Tyler Spivey <tspivey@pcdesk.net>
Reviewed by: imp
Approved by: imp (mentor)
MFC after: 1 week


# 173412 07-Nov-2007 kevlo

Cleanup of userland __P use


# 130243 08-Jun-2004 stefanf

- Don't use argv[i] when i is uninitialised.
- Cast isdigit's argument to unsigned char.
- Remove the now unused variable i.

Approved by: das (mentor)


# 50479 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 36917 12-Jun-1998 peter

#include <arpa/inet.h> for inet_* definitions.


# 29102 04-Sep-1997 charnier

Use err(3). Add usage and prototypes. Remove Xref: Diskless(8) does not
exist. Use An/Aq macros for Author.


# 24428 31-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 22997 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 9718 25-Jul-1995 wpaul

main.c:
- use daemon() to daemonify ourselves
- the 'Usage' printf() was missing an argument
- remove declaration of rindex and #include <string.h> instead

bootparam.c:
- get rid of local declarations of YP functions and include headers
from /usr/include/rpcsvc instead.


# 8857 30-May-1995 rgrimes

Remove trailing whitespace.


# 6752 26-Feb-1995 wpaul

This commit was generated by cvs2svn to compensate for changes in r6751,
which included commits to RCS files with non-trunk default branches.


# 6751 26-Feb-1995 wpaul

Obtained from: The Xkernel source distribution

I hope I'm doing this right.

This is an initial version of bootparamd for FreeBSD based on a public
domain rpc.bootparamd implementation by a gentleman named Klas Heggemann.
This program has apparently been around for a while. The README explicitly
lists the code as public domain, so I guess it's safe to use.

This program is needed for booting diskless SunOS and Solaris machines.
rarpd is also required, but that's in the works too.

I have made two changes to this code:

- Implemented NIS lookups. If /etc/bootparams contains a '+' then the
bootparams map is consulted.

- Allow 0.0.0.0 as a user-specified router address. The SunOS rpc.bootparamd
returns this value in many cases.