History log of /openbsd-src/usr.sbin/dhcpd/parse.c (Results 1 – 25 of 29)
Revision Date Author Comments
# a15cd296 27-Jun-2024 florian <florian@openbsd.org>

Remove outdated references to dhclient, it's finally going away.

Input & OK jmc


# 88c7b412 16-Jan-2022 naddy <naddy@openbsd.org>

dhcpd: fix -Wunused-but-set-variable warning

ok krw@


# 4c718f6a 16-Apr-2020 dtucker <dtucker@openbsd.org>

Support looking up ethernet addresses in /etc/ethers at dhcpd startup time.
If the lookup fails it falls back to parsing the ethernet address normally.
ok krw@


# e1f80b9a 16-Feb-2017 krw <krw@openbsd.org>

Bring parse_warn() into the log.[ch] 21st century and adopt the "^"
placement logic from dhclient.


# 0438cf0a 13-Feb-2017 krw <krw@openbsd.org>

Eliminate pointless'%m' (a.k.a. hand rolled strerror()) by using fatal() and
log_warn(). Zap a couple of explicit 'syslog()' calls.


# 35318e8f 13-Feb-2017 krw <krw@openbsd.org>

Adjust some long lines.


# c525a185 13-Feb-2017 krw <krw@openbsd.org>

Switch from old errwarn.c logging to shiny new log.[ch].

ok benno@


# f0a65fa0 11-Feb-2017 krw <krw@openbsd.org>

Move parse_warning() into parse.c to prepare to replace errwarn.c
with standard daemon log.[ch].

ok mpi@


# 579e3f2d 27-Aug-2016 guenther <guenther@openbsd.org>

Pull in <time.h> for one or more of gmtime, strftime, strptime, time,
timegm, and tzset

ok deraadt@


# 837cddff 06-Feb-2016 krw <krw@openbsd.org>

Eliminate #include inside *.h files and include only needed headers in
each *.c file.

Inspired by mention of header silliness by Edgar Pettijohn and mmcc@
on tech@.


# 9fbb22a7 11-Dec-2015 krw <krw@openbsd.org>

Actually use default-lease-time, max-lease-time, bootp-lease-length
specified in dhcpd.conf. Broken in -r1.18.

Problem noted by Arne on bugs@, identical fix independently developed
by Serguey Parkho

Actually use default-lease-time, max-lease-time, bootp-lease-length
specified in dhcpd.conf. Broken in -r1.18.

Problem noted by Arne on bugs@, identical fix independently developed
by Serguey Parkhomovsky.

show more ...


# 11b1f78a 18-May-2015 krw <krw@openbsd.org>

Tweak parsing so that hostnames starting with 0-9 are accepted.

Reported long ago by matthieu@. Also Jacob Berkman via the lists.

Tests and suggestions from Jacob and Matthieu.


# 8f4222ee 18-Dec-2013 krw <krw@openbsd.org>

Two 'break;'s in a row seems excessive.


# f34ac0d4 05-Dec-2013 krw <krw@openbsd.org>

Stop pretending we still support FDDI or token ring hardware types.

idea ok deraadt@ matthew@


# 0101699d 22-Nov-2013 deraadt <deraadt@openbsd.org>

unsigned char cast for some ctype calls
ok krw


# ca617185 17-Apr-2013 krw <krw@openbsd.org>

Replace hand-rolled date printing/parsing code with strftime()/strptime().
Use timegm() because all the dates are in UTC and the 'standard'
routines can't handle the truth.

Remove some 'time_t is 32

Replace hand-rolled date printing/parsing code with strftime()/strptime().
Use timegm() because all the dates are in UTC and the 'standard'
routines can't handle the truth.

Remove some 'time_t is 32bits' assumptions.

Print 'UTC' at the end of dates in the leases file, rather than
mentioning that all dates are UTC in a comment at the top of the
file.

Feedback and suggestions from guenther@, kettenis@, otto@, tedu@,
deraadt@.

show more ...


# 7a904dda 27-Mar-2010 krw <krw@openbsd.org>

malloc/strlcpy -> strdup. Use consistent idiom.

ok (as part of larger diff) blambert@ kettenis@ stsp@ zinovik@


# 5b44f46d 01-Sep-2009 reyk <reyk@openbsd.org>

Echo back the Relay Agent Information option if present (RFC 3046).
Also add support for the "ipsec-tunnel" hardware type as described in
RFC 3456.

ok henning@ krw@ (but needs more testing from othe

Echo back the Relay Agent Information option if present (RFC 3046).
Also add support for the "ipsec-tunnel" hardware type as described in
RFC 3456.

ok henning@ krw@ (but needs more testing from others)

show more ...


# ff19af11 26-Feb-2007 stevesk <stevesk@openbsd.org>

don't leak memory, from dhclient; ok krw@


# 59cf623d 22-Nov-2006 stevesk <stevesk@openbsd.org>

sync dhclient and dhcpd parse.c areas where we can.
mainly formatting, whitespace; ok henning@


# 37c9edcb 22-Nov-2006 stevesk <stevesk@openbsd.org>

fix some warning messages and comments in parse_date(); ok henning@


# f3ec5800 18-Apr-2006 deraadt <deraadt@openbsd.org>

cleanup keyword lookup for the lexer, and remove keywords not valid in
either dhclient or dhcpd context; tested by many


# 0795b389 16-Sep-2004 deraadt <deraadt@openbsd.org>

avoid aliasing with libc functions; ok henning


# 285f06ef 04-May-2004 deraadt <deraadt@openbsd.org>

remove things not used, spotted by lint mostly; ok henning


# 8e1c2028 18-Apr-2004 deraadt <deraadt@openbsd.org>

various knf; henning ok


12