summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/parse.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Support looking up ethernet addresses in /etc/ethers at dhcpd startup time.dtucker2020-04-161-5/+21
| | | | | If the lookup fails it falls back to parsing the ethernet address normally. ok krw@
* Bring parse_warn() into the log.[ch] 21st century and adopt the "^"krw2017-02-161-28/+13
| | | | placement logic from dhclient.
* Eliminate pointless'%m' (a.k.a. hand rolled strerror()) by using fatal() andkrw2017-02-131-39/+1
| | | | log_warn(). Zap a couple of explicit 'syslog()' calls.
* Adjust some long lines.krw2017-02-131-2/+3
|
* Switch from old errwarn.c logging to shiny new log.[ch].krw2017-02-131-20/+60
| | | | ok benno@
* Move parse_warning() into parse.c to prepare to replace errwarn.ckrw2017-02-111-1/+53
| | | | | | with standard daemon log.[ch]. ok mpi@
* Pull in <time.h> for one or more of gmtime, strftime, strptime, time,guenther2016-08-271-1/+2
| | | | | | timegm, and tzset ok deraadt@
* Eliminate #include inside *.h files and include only needed headers inkrw2016-02-061-2/+15
| | | | | | | each *.c file. Inspired by mention of header silliness by Edgar Pettijohn and mmcc@ on tech@.
* Actually use default-lease-time, max-lease-time, bootp-lease-lengthkrw2015-12-111-1/+3
| | | | | | | specified in dhcpd.conf. Broken in -r1.18. Problem noted by Arne on bugs@, identical fix independently developed by Serguey Parkhomovsky.
* Tweak parsing so that hostnames starting with 0-9 are accepted.krw2015-05-181-10/+11
| | | | | | Reported long ago by matthieu@. Also Jacob Berkman via the lists. Tests and suggestions from Jacob and Matthieu.
* Two 'break;'s in a row seems excessive.krw2013-12-181-2/+1
|
* Stop pretending we still support FDDI or token ring hardware types.krw2013-12-051-6/+1
| | | | idea ok deraadt@ matthew@
* unsigned char cast for some ctype callsderaadt2013-11-221-2/+3
| | | | ok krw
* Replace hand-rolled date printing/parsing code with strftime()/strptime().krw2013-04-171-140/+47
| | | | | | | | | | | | | | 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@.
* malloc/strlcpy -> strdup. Use consistent idiom.krw2010-03-271-9/+7
| | | | ok (as part of larger diff) blambert@ kettenis@ stsp@ zinovik@
* Echo back the Relay Agent Information option if present (RFC 3046).reyk2009-09-011-1/+4
| | | | | | | Also add support for the "ipsec-tunnel" hardware type as described in RFC 3456. ok henning@ krw@ (but needs more testing from others)
* don't leak memory, from dhclient; ok krw@stevesk2007-02-261-2/+4
|
* sync dhclient and dhcpd parse.c areas where we can.stevesk2006-11-221-19/+27
| | | | mainly formatting, whitespace; ok henning@
* fix some warning messages and comments in parse_date(); ok henning@stevesk2006-11-221-5/+5
|
* cleanup keyword lookup for the lexer, and remove keywords not valid inderaadt2006-04-181-42/+42
| | | | either dhclient or dhcpd context; tested by many
* avoid aliasing with libc functions; ok henningderaadt2004-09-161-8/+8
|
* remove things not used, spotted by lint mostly; ok henningderaadt2004-05-041-11/+1
|
* various knf; henning okderaadt2004-04-181-41/+32
|
* knf + ansihshoexer2004-04-151-65/+55
| | | | ok henning@
* the ones from dhclient do, and they're already KNF'd and annsified...henning2004-04-141-296/+296
|
* time_t and kill a few dumb defineshenning2004-04-131-14/+14
|
* may the whacking beginhenning2004-04-131-0/+642