History log of /freebsd-14.2/libexec/bootpd/bootpd.c (Results 1 – 25 of 33)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0
# 1d386b48 16-Aug-2023 Warner Losh <[email protected]>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 8b356c88 18-Apr-2023 John Baldwin <[email protected]>

bootpd: Use C89 function definitions.

Trim a few duplicate (but incomplete) function prototypes as well.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D39520


Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0
# cfb9be50 30-Sep-2021 Kyle Evans <[email protected]>

bootp: remove the USE_BFUNCS knob

We'd likely be better served by converting these to the equivalent mem*
calls, but just kill the knob for now. The b* macros being defined get
in the way of _FORTIF

bootp: remove the USE_BFUNCS knob

We'd likely be better served by converting these to the equivalent mem*
calls, but just kill the knob for now. The b* macros being defined get
in the way of _FORTIFY_SOURCE.

Reviewed by: imp, markj
Differential Revision: https://reviews.freebsd.org/D32235

show more ...


Revision tags: release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0
# 327477d6 25-May-2019 Rodney W. Grimes <[email protected]>

Correctly align usage: output


# d3f77d0a 22-May-2019 Mark Johnston <[email protected]>

Marginally improve usage() message style in bootpd.

- Remove an extra space after "usage:".
- Avoid lines exceeding 80 columns.

Based on notes from rgrimes.

MFC with: r348066
Event: Waterloo Hack

Marginally improve usage() message style in bootpd.

- Remove an extra space after "usage:".
- Avoid lines exceeding 80 columns.

Based on notes from rgrimes.

MFC with: r348066
Event: Waterloo Hackathon 2019

show more ...


# 35131b46 21-May-2019 Mark Johnston <[email protected]>

bootpd: Add an option to skip modifications to the ARP table.

PR: 30854
Submitted by: Dan Lukes <[email protected]>
Reviewed by: imp (previous version)
MFC after: 1 week
Event: Waterloo Hackathon 2019

bootpd: Add an option to skip modifications to the ARP table.

PR: 30854
Submitted by: Dan Lukes <[email protected]>
Reviewed by: imp (previous version)
MFC after: 1 week
Event: Waterloo Hackathon 2019
Differential Revision: https://reviews.freebsd.org/D2581

show more ...


# 1e13299f 19-Dec-2018 Ed Maste <[email protected]>

bootpd: validate hardware type

Due to insufficient validation of network-provided data it may have been
possible for a malicious actor to craft a bootp packet which could cause
a stack buffer overfl

bootpd: validate hardware type

Due to insufficient validation of network-provided data it may have been
possible for a malicious actor to craft a bootp packet which could cause
a stack buffer overflow.

admbugs: 850
Reported by: Reno Robert
Reviewed by: markj
Approved by: so
Security: FreeBSD-SA-18:15.bootpd
Sponsored by: The FreeBSD Foundation

show more ...


Revision tags: release/12.0.0, release/11.2.0, release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0_cvs, release/8.3.0
# 1acf0dba 07-Jan-2012 Ulrich Spörlein <[email protected]>

Spelling fixes for libexec/


Revision tags: release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0
# 09c00166 24-Dec-2005 Tom Rhodes <[email protected]>

Make tv_sec a time_t on all platforms but alpha. Brings us more in line with
POSIX. This also makes the struct correct we ever implement an i386-time64
architecture. Not that we need too.

Reviewe

Make tv_sec a time_t on all platforms but alpha. Brings us more in line with
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

show more ...


Revision tags: release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0
# 78e3eed0 14-Feb-2005 Stefan Farfeleder <[email protected]>

Fix most cases where the address of an int is passed to a function expecting a
socklen_t * argument.


Revision tags: release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1
# dc546e1a 13-Feb-2004 Peter Pentchev <[email protected]>

Add the '-h hostname' to usage(), too.
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

Add the '-h hostname' to usage(), too.
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

show more ...


Revision tags: release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0
# 9bf69bf2 15-Jun-2003 John-Mark Gurney <[email protected]>

fix a couple typos in the comments

From NetBSD's bootpd (in src/usr.sbin/bootp)


# b6a0d472 15-Jun-2003 John-Mark Gurney <[email protected]>

fix bootpd to use fd_set. For some reason on Sparc, using int with
select is broken.


Revision tags: release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0
# 538015aa 05-Feb-2003 Philippe Charnier <[email protected]>

Add FBSDID. udp/bootps -> bootps/udp. Use err(3).


Revision tags: release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs
# f19d047a 28-May-2002 Alfred Perlstein <[email protected]>

This code defined a private __P, nuke it.


# 5ed136e8 28-May-2002 Alfred Perlstein <[email protected]>

Assume __STDC__, remove non-__STDC__ code.

Reviewed by: md5


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs
# be9efd56 04-Feb-2002 Kris Kennaway <[email protected]>

Mark report() as printflike and fix resulting warnings, including one bug
(get_errmsg -> get_errmsg())


# 3f48bf18 25-Sep-2001 Ian Dowse <[email protected]>

RFC2132 is not clear about whether the "Maximum DHCP Message Size"
refers to the size of the whole ethernet packet, just the DHCP
message within the UDP payload, or something else. bootpd interpreted

RFC2132 is not clear about whether the "Maximum DHCP Message Size"
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

show more ...


Revision tags: release/4.3.0_cvs, release/4.3.0
# 1a37aa56 09-Dec-2000 David E. O'Brien <[email protected]>

Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.


Revision tags: release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs
# 7f3dea24 28-Aug-1999 Peter Wemm <[email protected]>

$Id$ -> $FreeBSD$


Revision tags: release/3.2.0
# 85966371 25-Apr-1999 Warner Losh <[email protected]>

More egcs warning fixes:
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 usel

More egcs warning fixes:
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

show more ...


# 9e9a43bd 07-Apr-1999 Brian Somers <[email protected]>

Ensure that things returned by gethostname() and
friends are terminated and allow for a maximum
host name length of MAXHOSTNAMELEN - 1.
Put parenthesis around sizeof args.
Make some variables static.

Ensure that things returned by gethostname() and
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

show more ...


Revision tags: release/3.1.0, release/3.0.0, release/2.2.8
# d284feaa 13-Dec-1998 Eivind Eklund <[email protected]>

Block for buffer overflow.


# 3a3c0cf4 12-Dec-1998 Matthew Dillon <[email protected]>

PR: bin/9031

Changed unbounded strcpy() to snprintf() to fix buffer overrun exploit


Revision tags: release/2.2.7
# 09caeade 03-Jun-1998 Joerg Wunsch <[email protected]>

Use gethostname(3) to obtain the local host name, as opposed to uname(3).
Otherwise the length of the name is limited to 32 characters only.


12