OpenBSD CVS

CVS log for src/usr.sbin/dhcpd/confpars.c


[BACK] Up to [local] / src / usr.sbin / dhcpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.36 / (download) - annotate - [select for diffs], Thu Apr 23 15:00:27 2020 UTC (4 years, 1 month ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, HEAD
Changes since 1.35: +32 -31 lines
Diff to previous 1.35 (colored)

Correctly parse "0/0" as the default route when specifying
the classless-[ms-]static-routes options in dhcpd.conf.

Brings dhcpd.conf CIDR parsing in line with dhclient.conf,
dhcp-options(5) and the command lines of various utilities.

Inconsistency noted and fix tested by Freda Bundchen. Thanks!

Revision 1.35 / (download) - annotate - [select for diffs], Fri May 10 15:03:58 2019 UTC (5 years, 1 month ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.34: +6 -4 lines
Diff to previous 1.34 (colored)

Fix dhcpd build on gcc architectures.

OK deraadt@ jca@

Revision 1.34 / (download) - annotate - [select for diffs], Wed May 8 22:00:55 2019 UTC (5 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.33: +94 -1 lines
Diff to previous 1.33 (colored)

Switch domain-search parsing from hand rolled hex string to
human readable list of strings.

Slightly tweaked version of a diff from William Ahern via tech@.

Long silence on all fronts leads to community based testing.

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Wed May 3 02:22:00 2017 UTC (7 years, 1 month ago) by jsg
Branch: OPENBSD_6_1
Changes since 1.31: +6 -1 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

OpenBSD 6.1 errata 001, May 2, 2017

dhcpd(8) unconditionally echoed client identifier. Add parameter
"echo-client-id" to allow this behaviour to be turned off.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Apr 24 14:58:36 2017 UTC (7 years, 1 month ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.32: +6 -1 lines
Diff to previous 1.32 (colored)

Add 'echo-client-id' statment, so that RFC 6842 behaviour can be
turned off for those clients and networks that find it impossible to
move past RFC 2131. Modelled on the same statement in recent ISC
versions, though we default to 'on' (a.k.a. RFC 6842) rather that
'off' (a.k.a. RFC 2131).

Problems reported by Bastien Durel (Xerox Phaser 6022 printer) and
Bryan Vyhmeister (Hon Hai Precision router) via misc@. Thanks!

Revision 1.32 / (download) - annotate - [select for diffs], Wed Apr 12 19:12:01 2017 UTC (7 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.31: +3 -1 lines
Diff to previous 1.31 (colored)

Add missing function prototypes. Mark kw_cmp() as static like all
its friends.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Feb 13 23:04:05 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE
Branch point for: OPENBSD_6_1
Changes since 1.30: +4 -5 lines
Diff to previous 1.30 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Mon Feb 13 22:33:39 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
Changes since 1.29: +13 -9 lines
Diff to previous 1.29 (colored)

Adjust some long lines.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Feb 13 19:13:14 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
Changes since 1.28: +21 -20 lines
Diff to previous 1.28 (colored)

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

ok benno@

Revision 1.28 / (download) - annotate - [select for diffs], Wed Aug 17 00:55:33 2016 UTC (7 years, 9 months ago) by krw
Branch: MAIN
Changes since 1.27: +171 -139 lines
Diff to previous 1.27 (colored)

KNF and clean up many comments.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Aug 17 00:38:26 2016 UTC (7 years, 9 months ago) by krw
Branch: MAIN
Changes since 1.26: +23 -36 lines
Diff to previous 1.26 (colored)

Ansify function definitions.

Diff from Edgar Pettijohn.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Feb 6 23:50:10 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.25: +13 -1 lines
Diff to previous 1.25 (colored)

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@.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Aug 20 22:39:29 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.24: +2 -3 lines
Diff to previous 1.24 (colored)

stdlib.h is in scope; do not cast malloc/calloc/realloc*
ok millert krw

Revision 1.24 / (download) - annotate - [select for diffs], Mon May 18 17:51:21 2015 UTC (9 years ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.23: +32 -25 lines
Diff to previous 1.23 (colored)

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.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jul 9 13:42:24 2014 UTC (9 years, 11 months ago) by yasuoka
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.22: +7 -6 lines
Diff to previous 1.22 (colored)

Fix classless-{ms-,}static-routes to comply RFC 3442.  Number of
octets should be changed by corresponding to the prefix length.  And 0
should be allowed for the prefix length.  Also fix white spaces.

Based on diff from Yuuichi Someya.

ok krw

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jan 21 03:07:51 2014 UTC (10 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.21: +52 -1 lines
Diff to previous 1.21 (colored)

Add parsing for options 121 (classless-static-routes) and 249
(classless-ms-static-routes). dhcpd can now specify and serve
these options and dhclient can recognize and use supersede, etc.
statements on them.

Based on a diff from Stefan Rinke. Thanks!

Revision 1.21 / (download) - annotate - [select for diffs], Mon Oct 21 12:02:25 2013 UTC (10 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.20: +4 -1 lines
Diff to previous 1.20 (colored)

Use the provided netmask on the subnet value provided in 'subnet'
statements, allowing subsequent comparisions with interface
addresses to always work properly.

Problem noted, fix tested & ok dlg@

Revision 1.20 / (download) - annotate - [select for diffs], Fri Apr 2 17:03:58 2010 UTC (14 years, 2 months ago) by zinovik
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.19: +39 -8 lines
Diff to previous 1.19 (colored)

plug memory leaks on error paths

joint work with krw@

ok krw@, stsp@

Revision 1.19 / (download) - annotate - [select for diffs], Sat Mar 27 14:11:38 2010 UTC (14 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.18: +8 -14 lines
Diff to previous 1.18 (colored)

malloc/strlcpy -> strdup. Use consistent idiom.

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

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jan 2 04:21:16 2010 UTC (14 years, 5 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.17: +2 -3 lines
Diff to previous 1.17 (colored)

Eliminate all uses of dmalloc() where the returned pointer
is checked for NULL and a specific error/warning issued. Add
two such manual warning/error checks and kill those dmalloc
calls. And then there were none, so kill dmalloc(). Whew.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 1 08:02:34 2010 UTC (14 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

Two more calloc() wrapper wrappers, new_shared_network() and
new_subnet(), bite the dust.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 17 18:03:33 2006 UTC (17 years, 5 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.15: +1 -10 lines
Diff to previous 1.15 (colored)

remove one-lease-per-client parameter which was never implemented (it
doesn't do anything and is not documented); ok henning@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jun 13 08:47:57 2006 UTC (18 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

typo; from sstull
ok ckuethe

Revision 1.14 / (download) - annotate - [select for diffs], Tue Apr 18 19:18:32 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.13: +102 -102 lines
Diff to previous 1.13 (colored)

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

Revision 1.13 / (download) - annotate - [select for diffs], Mon Mar 13 19:57:42 2006 UTC (18 years, 3 months ago) by otto
Branch: MAIN
Changes since 1.12: +2 -18 lines
Diff to previous 1.12 (colored)

tiny bit of delinting; ok krw@

Revision 1.12 / (download) - annotate - [select for diffs], Thu Sep 16 18:35:42 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.11: +17 -23 lines
Diff to previous 1.11 (colored)

avoid aliasing with libc functions; ok henning

Revision 1.11 / (download) - annotate - [select for diffs], Wed Sep 15 18:15:50 2004 UTC (19 years, 8 months ago) by henning
Branch: MAIN
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

minor KNF, Moritz Jodeit <moritz@jodeit.org>

Revision 1.10 / (download) - annotate - [select for diffs], Thu Sep 9 20:51:57 2004 UTC (19 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.9: +4 -2 lines
Diff to previous 1.9 (colored)

Avoid following a NULL pointer if a hostname lookup fails and
remove an extraneous "exiting" when there is a config file error.
OK henning@ and mcbride@

Revision 1.9 / (download) - annotate - [select for diffs], Sat May 8 06:11:53 2004 UTC (20 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.8: +7 -2 lines
Diff to previous 1.8 (colored)

resolve hostnames at parse time, solves PR3771, ok theo

Revision 1.8 / (download) - annotate - [select for diffs], Thu May 6 22:05:48 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.7: +27 -27 lines
Diff to previous 1.7 (colored)

spacing

Revision 1.7 / (download) - annotate - [select for diffs], Tue Apr 20 05:35:33 2004 UTC (20 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.6: +1 -3 lines
Diff to previous 1.6 (colored)

$OpenBSD$

Revision 1.6 / (download) - annotate - [select for diffs], Sun Apr 18 01:19:07 2004 UTC (20 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.5: +64 -56 lines
Diff to previous 1.5 (colored)

more KNF

Revision 1.5 / (download) - annotate - [select for diffs], Sun Apr 18 00:59:52 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.4: +373 -385 lines
Diff to previous 1.4 (colored)

more knf

Revision 1.4 / (download) - annotate - [select for diffs], Sun Apr 18 00:43:27 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.3: +94 -94 lines
Diff to previous 1.3 (colored)

various knf; henning ok

Revision 1.3 / (download) - annotate - [select for diffs], Wed Apr 14 04:34:19 2004 UTC (20 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +34 -34 lines
Diff to previous 1.2 (colored)

spaces

Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 13 23:57:49 2004 UTC (20 years, 2 months ago) by henning
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

time_t and kill a few dumb defines

Revision 1.1 / (download) - annotate - [select for diffs], Tue Apr 13 23:41:48 2004 UTC (20 years, 2 months ago) by henning
Branch: MAIN

may the whacking begin

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.