summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd/bootpd.c
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes for libexec/uqs2012-01-071-2/+2
|
* Make tv_sec a time_t on all platforms but alpha. Brings us more in line withtrhodes2005-12-241-2/+3
| | | | | | | | | POSIX. This also makes the struct correct we ever implement an i386-time64 architecture. Not that we need too. Reviewed by: imp, brooks Approved by: njl (acpica), des (no objects, touches procfs) Tested with: make universe
* Fix most cases where the address of an int is passed to a function expecting astefanf2005-02-141-1/+2
| | | | socklen_t * argument.
* Add the '-h hostname' to usage(), too.roam2004-02-131-1/+3
| | | | | | | | While I'm here, sync the usage() synopsis with the manual page synopsis: make the [-i | -s] explicit and sort the options alphabetically. Reminded by: ru MFC after: 3 days
* fix a couple typos in the commentsjmg2003-06-151-2/+2
| | | | From NetBSD's bootpd (in src/usr.sbin/bootp)
* fix bootpd to use fd_set. For some reason on Sparc, using int withjmg2003-06-151-4/+6
| | | | select is broken.
* Add FBSDID. udp/bootps -> bootps/udp. Use err(3).charnier2003-02-051-5/+4
|
* This code defined a private __P, nuke it.alfred2002-05-281-13/+9
|
* Assume __STDC__, remove non-__STDC__ code.alfred2002-05-281-4/+0
| | | | Reviewed by: md5
* Mark report() as printflike and fix resulting warnings, including one bugkris2002-02-041-1/+1
| | | | (get_errmsg -> get_errmsg())
* RFC2132 is not clear about whether the "Maximum DHCP Message Size"iedowse2001-09-251-2/+2
| | | | | | | | | | | | | | | refers to the size of the whole ethernet packet, just the DHCP message within the UDP payload, or something else. bootpd interpreted it as a maximum UDP payload size, so it could end up sending fragmented packets to clients (such as some versions of Etherboot) that used different interpretations of the maximum message size. Switch to the most conservative interpretation: ensure that the ethernet packet containing the response is no larger than the specified maximum message size. This matches the behaviour of the ISC dhcpd. MFC after: 1 week
* Add `_PATH_DEVZERO'.obrien2000-12-091-1/+2
| | | | Use _PATH_* where where possible.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* More egcs warning fixes:imp1999-04-251-2/+3
| | | | | | | | | | o main returns int not void o use return 0 at end of main when needed o use braces to avoid potentially ambiguous else o don't default to type int (and also remove a useless register modifier). Reviewed by: obrien and chuckr
* Ensure that things returned by gethostname() andbrian1999-04-071-3/+5
| | | | | | | | | | friends are terminated and allow for a maximum host name length of MAXHOSTNAMELEN - 1. Put parenthesis around sizeof args. Make some variables static. Fix telnetd -u (broken by my last commit) Prompted by: bde
* Block for buffer overflow.eivind1998-12-131-1/+3
|
* PR: bin/9031dillon1998-12-121-2/+2
| | | | Changed unbounded strcpy() to snprintf() to fix buffer overrun exploit
* Use gethostname(3) to obtain the local host name, as opposed to uname(3).joerg1998-06-031-5/+4
| | | | Otherwise the length of the name is limited to 32 characters only.
* Don't rely on stderr to report bad news.phk1997-05-111-8/+8
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* add forgotten $Id$wosch1996-09-221-0/+3
|
* Fix conflicts from 2.4.3 mergepst1996-01-231-28/+51
|
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Rearrange bootpdpst1994-09-301-0/+1380
OpenPOWER on IntegriCloud