]> git.ipfire.org Git - thirdparty/dhcp.git/blame - RELNOTES
- Reworked cons_options() and store_options() to fix a buffer
[thirdparty/dhcp.git] / RELNOTES
CommitLineData
98311e4b 1 Internet Systems Consortium DHCP Distribution
50342d5a
DH
2 Version 4.0.0b2
3 October 24, 2007
72c7bd79 4
98311e4b 5 Release Notes
72c7bd79 6
da411127 7 NEW FEATURES
16449d9c 8
98bd7ca0
DH
9The DHCP server in version 4.0.x of the ISC DHCP Distribution supports
10DHCPv6 in addition to DHCP for IPv4.
11
12Several new options have been added to the dhcpd executable, which are
13documented in the man page. Several changes have been made to the
14configuration file as well, which are also documented in the man
15pages.
16
45d545f0 17There are a number of DHCPv6 limitations and features missing in this
98bd7ca0
DH
18release, which will be addressed shortly:
19
99fe695e 20- Only Solaris, Linux, FreeBSD, NetBSD, and OpenBSD are supported.
98bd7ca0 21
39725d92
DH
22- There is no DHCPv6 Relay Agent implementation. There are only DHCPv6
23 Server and Client implementations.
98bd7ca0 24
39725d92 25- Only a single address is supported per IA.
98bd7ca0
DH
26
27- IA_TA addresses are not supported.
3a16098f 28
98bd7ca0 29- IA_PD prefixes are not supported.
29d5553a 30
98bd7ca0
DH
31- DHCPv6 includes human-readable text in status code messages. These
32 should be configurable, and probably localized via gettext() or the
33 like.
34
35- The "host-identifier" option is limited to a simple token.
36
37- Dynamically allocated leases do not respond to Confirm messages.
38
98bd7ca0 39- The client and server can only operate DHCPv4 or DHCPv6 at a time,
45d545f0 40 not both. To use both protocols simultaneously, two instances of the
6de1f33e 41 relevant daemon are required, one with the '-6' command line option.
4ff4053b 42
ca4606b5
TL
43For information on how to install, configure and run this software,
44as well as how to find documentation and report bugs, please consult
45the README file.
46
fe5b0fdd
DH
47ISC DHCP now uses standard GNU configure for installation. Please
48review the output of "./configure --help" to see what options are
49available.
50
51The system has only been tested on Linux, FreeBSD, and Solaris, and
52may not work on other platforms. Please report any problems and
53suggested fixes to <dhcp-users@isc.org>.
98bd7ca0 54
f765ec36
SK
55 Changes since 4.0.0b1
56
57- A number of bugs with the internal handling of lease state on the
58 server have been fixed. Some of these could cause server crashes.
fa9b593d 59
edb1283e
DH
60- The peer_wants_leases() changes pulled up from 3.1.0 were corrected,
61 'never used' leases will no longer consistently shift between servers
62 on every pool rebalance run.
63
c71c6399
DH
64- sendmsg()/recvmsg() control buffers are now declared in such a way to
65 ensure they are correctly aligned on all (esp. 64-bit) architectures.
66
5279b8f3
DH
67- The client leasing subsystem was streamlined and corrected to account
68 more closely for changes in client link attachment selection.
69
ab3a540f 70 Changes since 4.0.0a3
763cba6b 71
884a458f
SK
72- The DHCP server no longer requires a "ddns-update-style" statement,
73 and now defaults to "none", which means DNS updates are disabled.
74
fa9b593d
DH
75- Log messages when failover peer names mismatch have been improved to
76 point out the problem.
77
1b5053b5
SK
78- Bug where server advertised a IPv6 address in response to a SOLICIT
79 but would not return the address in response to a REQUEST. Thanks to
80 Dennis Kou for finding the bug.
81
c886c298
SK
82- Fixed an error causing the server to lock up on lease expiration,
83 reported independently by Jothilingam Vasu and Dennis Kou.
84
eaf7eb17
DH
85- Fixed a ./configure bug where compile tests were failing due to
86 "-Werror" (unused variable) rather than the actual test failure. Lead
87 to inconsistent and unworkable auto-configurations.
88
109e00db
DH
89- Compilation with DLPI and -Werror has been repaired.
90
3ad9d48f
SK
91- Error in decoding IA_NA option if multiple interfaces are present
92 fixed by Marcus Goller.
93
8eab95f2
DH
94- DHCPv6 server Confirm message processing has been enhanced - it no
95 longer replies only to clients with host {} records, it now replies
96 as directed in RFC3315 section 18.2.2 - that is, to all clients
97 regardless of the existence of bindings.
98
07b9a351
DH
99- A core dump during expired lease cleanup has been repaired.
100
7285af30
DH
101- DDNS updates state information are now stored in 'binding scopes' that
102 follow the leases through their lifecycles. This enables DDNS teardowns
103 on leases that are assigned and expired inbetween a server restart (the
104 state is recovered from dhcpd.leases). Arbitrary user-specified binding
105 scopes ('set var = "value";') are not yet supported.
106
2394b26b
DH
107- Additional compilation problems on HP/UX have been repaired.
108
ab3a540f
SK
109 Changes since 4.0.0a2
110
97050349
SK
111- Fix for startup where there are no IPv4 addresses on an interface.
112 Thanks to Marcus Goller for reporting the bug.
113
763cba6b 114- Fixed file descriptor leak on listen failure. Thanks to Tom Clark.
e889ded1 115
237f8d3a
SK
116- Bug in server configuration parser caused server to get stuck on
117 startup for certain bad pool declarations. Thanks to Guillaume
118 Knispel for the bug report and fix.
119
28868515
SK
120- Code cleaned to remove warnings reported by "gcc -Wall".
121
d00d373a
SK
122- DHCPv6 is now the default. You can disable DHCPv6 support using the
123 "--disable-dhcpv6" flag when you run the configure script.
124
8dfd5744
DH
125- An internal database inconsistency bug was repaired where the server
126 would segfault if a client attempted to renew a lease that had been
127 loaded from persistent storage.
128
45d545f0 129- 'request' and 'also request' syntaxes have been added to accommodate
0c20eab3
DH
130 the DHCPv6 client configuration. 'send dhcp6.oro' is no longer
131 necessary.
132
f800f4f6
SK
133- Bug fixed where configuration file parsing did not work with
134 zero-length options; this made it impossible to set the
135 rapid-commit option.
136
845e9677
DH
137- Bogus messages about host records with IPv4 fixed-addresses being of
138 non-128-bits in length were removed.
139
76c944da
SK
140 Changes since 4.0.0a1
141
71765b58
SK
142- Bug in octal parsing fixed. Thanks to Bernd Fuhrmann for the report
143 and fix.
144
847e7000
SK
145- Autoconf now supplies proper flags for Solaris DHCPv6 builds.
146
bda33169
SK
147- Fix for parsing error on some IPv6 addresses.
148
9b21e73e
SK
149- Invalid CIDR representation for IPv6 subnets or ranges now checked
150 for when loading configuration.
151
8da06bb1
DH
152- Compilation on HP/UX has been repaired. The changes should generally
153 apply to any architecture that supplies SIOCGLIFCONF but does not
154 use 'struct lifconf' structures to pass values.
155
dd328225
DH
156- Two new operators, ~= and ~~, have been integrated to implement
157 boolean matches by regular expression (such as may be used in
158 class matching statements). Thanks to a patch by Alexandr S.
159 Agranovsky, which underwent slight modification.
160
76c944da
SK
161- Fix for icmp packets on 64-bit systems (bug introduced in 4.0).
162
f796f70a
DH
163- A bug was fixed in interface discovery wherein an error identifying
164 a server-configured interface with no IPv4 addresses would SEGV.
76c944da 165
c11f349d
EH
166- Fixed a bug in which write_lease() might report a failure incorrectly
167
af5fa176
EH
168- Added support for DHCPv6 Release messages
169
170- Added -x option to dhclient, which triggers dhclient processes
171 to exit gracefully without releasing leases first
172
a546f2a7
EH
173- All binaries (client, server, relay) now change directories
174 to / before going into daemon mode, so as not to hold $CWD open
175
b55d0d5f
EH
176- Fixed a bug parsing DHCPv6 client-id's in host-identifier statements
177
26be82af
DH
178- Fixed a bug with the 'ddns-updates' boolean server configuration
179 parameter, which caused the server to fail.
180
98bd7ca0
DH
181 Changes since 4.0.0-20070413
182
d9b43370
SK
183- Old (expired) leases are now cleaned.
184
8c1752d2
DH
185- IPv6 subnets now have support for arbitrary allocation ranges via
186 a new 'range6' configuration directive.
187
98bd7ca0
DH
188- An obviated option code hash lookup to find D6O_CLIENTID was removed.
189
a512d11b
DH
190- Corrected some situations where variables might be used without being
191 initialized.
192
193- Silenced several other compiler warnings.
194
195- Include the more standard sys/uio.h rather than rely upon other
f66f02cc
DH
196 header files to include it (fixes a BSD 4.2 compile failure).
197
198- Duplicate dhclient-script updates for DHCPv6 to all provided scripts.
a512d11b 199
4ba58919
DH
200- DHCPv4 I/O methods that failed to sense hardware address were corrected.
201
202- DHCPv4 is now the default (as documented) rather than DHCPv6. The default
203 was set to DHCPv6 to facilitate ease early development, and forgotten.
204
205- Corrected a segmentation violation in DHCPv4 socket processing.
206
8ea19a71 207- dhclient will now fork() into the background once it binds to an
45d545f0 208 IPv6 address, or immediately if the -n flag is supplied.
8ea19a71
DH
209
210- -q is now the default behaviour on dhclient, with -d or -v enabling
211 non-quiet (stderr logging) mode.
212
2cf8d0bd
DH
213- Fix documentation of the domain-search atom (quoted, with commas).
214
215- Document DHCPv6 options presently in the default table.
216
fe5b0fdd
DH
217- Replaced ./configure shellscripting with GNU Autoconf.
218
98bd7ca0
DH
219 Changes since 3.1.0 (NEW FEATURES)
220
221- DHCPv6 Client and Server protocol support. Use '-6' to run the daemons
222 as v6-only. Use '-4' to run the daemons as v4-only (default. There is
223 no support currently for both.
224
225- Server support for multiple IA_NA options, containing at most one
226 IAADDR option.
227
228- Client support for one IA_NA option, containing any number of IAADDR
229 options.
230
231- Server support for the DHCPv6 Information-request message.
232
233- Inappropriate unicast DHCPv6 messages sent to the server are now
234 discarded, and this has rearchitected the IO system slightly.
235
236- The DHCPv6 server DUID defaults to type 1, is persistently stored in
237 the leases database, and can be over-ridden (either completely, or by
238 specifying type 1 or type 2).
239
240- The server only uses Rapid-Commit if it has been configured with the
241 Rapid-Commit option and the client requests it.
242
243- DDNS support. We now update AAAA records in the same place we would
244 update A records, if we have an IPv6 address. We also generate IP6.ARPA
245 style names for PTR records if we're dealing with an IPv6 address. Both
246 A and AAAA updates are done using the same 'fqdn.' virtual option space
247 (although the DHCPv4 FQDN and DHCPv6 FQDN options are formatted
248 differently, they both use the same code here).
249
250- The Linux dhclient-script attempts to set and remove assigned addresses,
251 and to configure /etc/resolv.conf from nameserver and domain name
252 configurations. It can be extended to configure other parameters.
253
254- Initial DHCPv6 lease support.
255
256- The IO system now tracks all local IP addresses, so that the DHCP
257 applications (particularly the dhcrelay) can discern between what frames
258 were transmitted to it, and what frames are being carried through it which
259 it should not intercept.
260
1418fd11
DH
261 Changes since 3.1.0 (Maintenance)
262
263- A bug was repaired where MAC Address Affinity for virgin leases always
264 mapped to the primary. Virgin leases now have an interleaved preference
265 between primary and secondary.
266
267- A bug was repaired where MAC Address Affinity for clients with no client
268 identifier was sometimes mishashed to the peer. Load balancing during
269 runtime and pool rebalancing were opposing.
270
aa3e348e
DH
271- An assertion in lease counting relating to reserved leases was repaired.
272
e9c59645
DH
273- The subnet-mask option inclusion now conforms with RFC2132 section 3.3;
274 it will only appear prior to the routers option if it is present on the
275 Parameter-Request-List. The subnet-mask option will also only be
276 included by default (if it is not on the PRL) in response to DISCOVER
277 or REQUEST messages.
278
279- The FQDN option is only supplied if the client supplied an FQDN option or
280 if the FQDN option was explicitly requested on the PRL.
281
c104546d
DH
282- Dynamic BOOTP leases are now load balanced in failover.
283
b9d0cc05
DH
284 Changes since 3.1.0rc1
285
286- The parse warning that 'deny dyanmic bootp;' must be configured for
287 failover protected subnets was removed.
288
a512cc3a
DH
289 Changes since 3.1.0b2
290
291- Failover rebalance events no longer play ping pong with round errors
292 (moving leases between free and back to backup where there are an
293 odd number of leases).
294
295- The 'pool' log line has been split into two messages, one before the
296 rebalance run, and one after.
297
298- Any queued BNDACKs are transmitted before transmitting new BNDUPDs.
299 This enforces the correct sequence of events for the remote server
300 processing these messages.
301
fe5b0fdd 302 Changes since 3.1.0b1
27837f95 303
74dc3e0b
EH
304- Fixed a bug that caused OMAPI clients to freeze when opening lease
305 objects.
306
1ba87b37
EH
307- A new server config option "fqdn-reply" specifies whether the server
308 should send out option 81 (FQDN). Defaults to "on". If set to "off",
309 the FQDN option is not sent, even if the client requested it. This is
310 needed because some clients misbehave otherwise. Thanks to Christof Chen
311 at Allianz.
312
a58da042
EH
313- Allow trace output files (-tf option) to be overwritten, rather than
314 crashing dhcpd if the file already exists
315
61252edf
EH
316- A bug was fixed that caused dhcpd to segfault if a pool was declared
317 outside the scope of a subnet in dhcpd.conf.
318
27837f95
DH
319- Some uninitialized values were repaired in dhcpleasequery.c that
320 caused the server to abort.
321
4d2eaafb
DH
322- A new server config option, 'do-reverse-updates', has been added
323 which causes the server to abstain from performing updates on PTR
324 records. Thanks to a patch from Christof Chen at Allianz.
325
06211b40
DH
326- A bug was repaired in subencapsulation support, where spaces separated
327 by empty spaces would not get included.
328
d6614ea2
DH
329- A bug in dhclient was repaired which caused it to send parameter request
330 lists of 55 bytes in length no matter how long the declared PRL was.
331
132d38f2
DH
332- 'dhcp.c(3953): non-null pointer' has been repaired. This fixes a flaw
333 wherein the DHCPv4 server may ignore a configured server-identifier.
334
fc3b9c90
DH
335- A flaw in failover startup sequences was repaired that sometimes left
336 the primary DHCP server's pool rebalance schedules unscheduled.
337
c9feb859
DH
338- Corrected a flaw that broke encapsulated spaces included due to presence
339 on the parameter request list.
340
c57db45c
SK
341 Changes since 3.1.0a3
342
343- Some spelling fixes.
98311e4b 344
bd2bc2fa
DH
345 Changes since 3.1.0a2
346
347- A bug was fixed where attempting to permit leasequeries results in a
348 fatal internal error, "Unable to find server option 49".
349
85edef5c
DH
350- A bug was fixed in dhclient rendering the textual output form of the
351 domain-search option syntax.
352
bdddcb7d
DH
353 Changes since 3.1.0a1
354
355- A bug in the FQDN universe that added FQDN codes to the NWIP universe's
356 hash table was repaired.
357
616d67cb
DH
358- The servers now try harder to transmit pending binding updates when
359 entering normal state.
360
361- UPDREQ/UPDREQALL handling was optimized - it no longer dequeues and
362 requeues all pending updates. This should reduce the number of spurious
66c8f734
DH
363 'xid mismatch' log messages.
364
365- An option definition referencing leak was fixed, which resulted in early
366 termination of dhclient upon the renewal event.
616d67cb 367
6708d944
DH
368- Some default hash table sizes were tweaked, some upwards, some downwards.
369 3.1.0a1's tables resulted in a reduction in default server memory use.
370 The new selected values provide more of a zero sum (increasing the size
371 of tables likely to be populated, decreasing the size of tables unlikely).
372
45d545f0 373- Lease structures appear in three separate hashes: by IP address, by UID,
6708d944
DH
374 and by hardware address. One type of table was used for all three, and
375 improvements to IP address hashing were applied to all three (so UID and
376 hardware addresses were treated like 4-byte integers). There are now two
377 types of tables, and the uid/hw hashes use functions more appropriate
378 to their needs.
379
380- The max-lease-misbalance percentage no longer causes scheduled rebalance
381 runs to be skipped: it still governs the schedule, but every scheduled
382 run will attempt balance.
383
a7ee93fe
DH
384- A segfault bug in recursive encapsulation support has been corrected.
385
98311e4b
DH
386 Changes since 3.0 (New Features)
387
388- A workaround for certain STSN servers that send a mangled domain-name
389 option was introduced for dhclient. The client will now accept corrupted
390 server responses, if they contain a valid DHCP_MESSAGE_TYPE (OFFER, ACK,
391 or NAK). The server will continue to not accept corrupt client packets.
392
98bd7ca0 393- Support for 'reserved' (pseudo-static) and BOOTP leases via failover
a55ccdd0 394 was introduced.
98311e4b
DH
395
396- Support for adding, removing, and managing class and subclass statements
397 via OMAPI.
398
a55ccdd0
DH
399- The failover implementation was updated to comply with revision 12 of
400 the protocol draft.
401
98311e4b
DH
402- 'make install' now creates the initial zero-length dhcpd.leases file if
403 one does not already exist on the system.
404
b43c87ad 405- RFC3942 compliance, site-local option spaces start at 224 now, not 128.
b43c87ad 406
0b17f049
DH
407- The Load Balance Algorithm was misimplemented. The current implementation
408 matches RFC 3074.
409
2727c1cf
DH
410- lcase() and ucase() configuration expressions have been added which adjust
411 their arguments from upper to lower and lower to upper cases respectively.
2714a8ef 412 Thanks to a patch from Albert Herranz.
2727c1cf 413
febbd402
DH
414- The dhclient 'reject ...;' statement, which rejects leases given by named
415 server-identifiers, now permits address ranges to be specified in CIDR
7d7073e7 416 notation. Thanks to a patch from David Boyce.
febbd402 417
ee912528
DH
418- The subnet-mask option is now supplied by default, but at lowest
419 priority. This helps a small minority of clients that provide parameter
420 request lists, but do not list the subnet-mask option because they were
421 designed to interoperate with a server that behaves in this manner.
422
423- The FQDN option is similarly supplied even if it does not appear on the
424 parameter request list, but not to the exclusion of options that do
425 appear at the parameter request list. Up until now it had ultimate
426 priority over the client's parameter request list.
427
f7fdb216 428- Varying option space code and length bit widths (8/16/32) are now
51202707 429 supported. This is a milestone in achieving RFC 3925 "VIVSO" and
f7fdb216
DH
430 DHCPv6 support.
431
5e864416
DH
432- A new common (server or client) option, 'db-time-format local;', has
433 been added which prints the local time in /var/db/dhcpd.leases rather
434 than UTC. Thanks to a patch from Ken Lalonde.
435
b500bd4c
DH
436- Some patches to improve DHCP Server startup speed from Andrew Matheson
437 have been incorporated.
438
2426234f
DH
439- Failover pairs now implement 'MAC Affinity' on leases moving from the
440 active to free states. Leases that belonged to the failover secondary
441 are moved to BACKUP state rather than FREE upon exiting EXPIRED state.
442 If lease rebalancing must move leases, it tries first to move leases
443 that belong to the peer in need.
444
445- The server no longer sends POOLREQ messages unless the pool is severely
446 misbalanced in the peer's favor (see 'man dhcpd.conf' for more details).
447
448- Pool rebalance events no longer happen upon successfully allocating a
449 lease. Instead, they happen on a schedule. See 'man dhcpd.conf' for the
450 min-balance and max-balance statements for more information.
451
334bf491
DH
452- The DHCP Relay Agent Information Option / Link Selection Sub-Option
453 is now supported. (See RFC3527 for details).
454
3004bebf
DH
455- A new DDNS related server option, update-conflict-detection, has been
456 added. If this option is enabled, dhcpd will perform normal DHCID
457 conflict resolution (the default). If this option is disabled, it will
458 instead trust the assigned name implicitly (removing any other bindings
459 on that name). This option has not been made available in dhclient.
460
567e8561
DH
461- In those cases where the DHCP software manufactures an IP header (to
462 transmit via bpf, lpf, etc), the IP TTL the software selects has been
463 increased from 16 to 128. This is intended to match Microsoft Windows
464 DHCP Client behaviour, to increase compatibility.
465
a396d25f
DH
466- 'ignore client-updates;' now has behaviour that is different from
467 'deny client-updates;'. The client's request is not truly ignored,
468 rather it is encouraged. Should this value be configured, the server
469 updates DNS as though client-updates were set to 'deny'. That is, it
470 enters into DNS whatever it is configured to do already, provided it is
471 configured to. Then it sends a response to the client that lets the
472 client believe it is performing client updates (which it will), probably
473 for a different name. In essence, this lets the client do as it will,
474 ignoring this aspect of their request.
475
dba5803b
DH
476- Support for compressed 'domain name list' style DHCP option contents, and
477 in particular the domain search option (#119) was added.
478
41e45067 479- The DHCP LEASEQUERY protocol as defined in RFC4388 is now implemented.
6d103865
SK
480 LEASEQUERY lets you query the DHCP server for information about a lease,
481 using either an IP address, MAC address, or client identifier. Thanks
482 to a patch from Justin Haddad.
483
41e45067
DH
484- DHCPD is now RFC2131 section 4.1 compliant (broadcast to all-ones ip and
485 ethernet mac address) on the SCO platform specifically without any strange
486 ifconfig hacks. Many thanks go to the Kroger Co. for donating the
487 hardware and funding the development.
6d103865 488
b543fea9
DH
489- A new common configuration executable statement, execute(), has been
490 added. This permits dhcpd or dhclient to execute a named external
491 program with command line arguments specified from other configuration
492 language. Thanks to a patch written by Mattias Ronnblom, gotten to us
493 via Robin Breathe.
494
b22de500
DH
495- A new dhcp server option 'adaptive-lease-time-threshold' has been added
496 which causes the server to substantially reduce lease-times if there are
497 few (configured percentage) remaining leases. Thanks to a patch submitted
498 from Christof Chen.
499
96bbe8c5
SK
500- Encapsulated option spaces within encapsulated option spaces is now
501 formally supported.
502
b8221d95
DH
503 Changes since 3.0.6rc1
504
505- supersede_lease() now requeues leases in their respective hardware
506 address hash bucket. This mirrors client identifier behaviour.
507
c1e6c832
DH
508 Changes since 3.0.5
509
f546c28b
DH
510- Assorted fixes for broken network devices: Packet length is now
511 determined from the IP header length field to finally calculate the
512 UDP payload length, because some NIC drivers return more data than
5a22eb63 513 they actually received.
f546c28b
DH
514
515- UDP packets are now stored in aligned data structures.
516
c1e6c832
DH
517- A logic error in omapi interface code was repaired that might result in
518 incorrectly indicating 'up' state when any flags were set, rather than
23e10d37
DH
519 specifically the INTERFACE_REQUESTED flag. Thanks to a patch from
520 Jochen Voss which got to us via Andrew Pollock at Debian.
c1e6c832 521
75ab3070
DH
522- A reference leak on binding scopes set by ddns updates was repaired.
523
d69fb6a8 524- A memory leak in the minires_nsendsigned() function call was repaired.
23e10d37 525 Effectively, this leaked ~176 bytes per DDNS update.
d69fb6a8 526
02428754
DH
527- In the case where an "L2" DHCP Relay Agent (one that does not set giaddr)
528 was directly attached to the same broadcast domain as the DHCP server,
529 the RFC3046 relay agent information option was not being returned to the
530 relay in the server's replies. This was fixed; the dhcp server no longer
531 requires the giaddr to reply with relay agent information. Note that
532 this also improves compatibility with L2 devices that "intercept" DHCP
533 packets and expect relay agent information even in unicast (renewal)
23e10d37
DH
534 replies. Thanks to a patch from Pekka Silvonen.
535
536- A bug was fixed where the BOOTP header 'sname' field had a value, the
537 copy written to persistent storage was actually the contents of the
538 'file' field.
02428754 539
ecde99a3
DH
540- A bug was fixed where the nwip virtual option space was referencing
541 the fqdn option's virtual option space's option cache.
542
67674ffb
DH
543- Timestamp parsing errors that indicated missing "minutes" fields rather
544 than the actually missing "seconds" fields have been repaired thanks to
545 a patch from Kevin Steves.
546
830ebc4c
DH
547- A grammar error in the dhclient.8 manpage was repaired thanks to a patch
548 from Chris Wagner.
549
c759db75
DH
550- Several spelling typos were repaired, and some cross-references to other
551 relevant documents were included in the manpages, thanks to a patch
552 by Andrew Pollock which got to us via Tomas Pospisek.
553
9aa3f3a5
DH
554- Some bugs were fixed in the 'emergency relay agent options hologram'
555 which is used to retain relay agent option contents from when the
556 client was in INIT or REBIND states. This should solve problems where
557 relay agent options were not echoed from the server, even when giaddr
558 was set.
559
3d0c598a
DH
560- dhclient now closes its descriptor to dhclient.leases prior to executing
561 dhclient-script. Thanks to a patch from Tomas Pospisek.
562
d5b6835f
DH
563- The server's "by client-id" and "by hardware address" hash table lists
564 are now sorted according to the preference to re-allocate that lease to
565 returning clients. This should eliminate pool starvation problems
566 arising when "INIT" clients were given new leases rather than presently
567 active ones.
568
02428754 569 Changes since 3.0.5rc1
0a73b7b6 570
901306d5 571- A bug was repaired in fixes to the dhclient, which sought to run the
0a73b7b6
SK
572 dhclient-script with the 'EXPIRE' state should it receive a NAK in
573 response to a REQUEST. The client now iterates the PREINIT state
574 after the EXPIRE state, so that interfaces that might be configured
575 'down' can be brought back 'up' and initialized.
576
87a08ccc
DH
577- DHCPINFORM handling for clients that properly set ciaddr and come to the
578 server via a relay aget has been repaired.
579
6da113fb
DH
580 Changes since 3.0.4
581
582- A warning that host statements declared within subnet or shared-network
583 scopes are actually global has been added.
584
585- The default minimum lease time (if min-lease-time was not specified)
586 was raised from 0 to 300. 0 is not thought to be sensible, and is
587 known to be damaging.
588
589- Added additional fatal error sanity checks surrounding lease binding
590 state count calculations (free/active counts used for failover pool
591 balancing).
592
dcc557db
DH
593- Some time value size fixes in 3.0.4 brought on from FreeBSD /usr/ports were
594 misapplied to server values rather than client values. The server no longer
595 advertises 8-byte lease-time options when on 64-bit platforms.
596
1b2ab55f
DH
597- A bug where leases not in ACTIVE state would get billed to billed classes
598 (classes with lease limitations) was fixed. Non-active leases OFFERed
599 to clients are no longer billed (but billing is checked before offering).
600
e48891e8
DH
601- The dhcpd.conf.5 manpage was updated in regard to the ddns-domainname
602 configuration option - the default configuration and results should be
603 more clear now.
604
6cbc6629
DH
605- If the dhclient were to receive a DHCPNAK while it was in the RENEW
606 state (and consequently, had an active, 'bound' address and related
607 configuration options), it would fail to 'tear down' this information
608 before proceeding into INIT state. dhclient now iterates the dhclient-
609 script with the 'EXPIRE' action to cause these teardowns prior to entering
1d3bfb17 610 INIT state. Thanks to a patch from Chris Zimmerman.
6cbc6629 611
c5fec5fa
DH
612- The omapi.1 manpage had some formatting errors repaired thanks to a patch
613 from Yoshihiko Sarumaru.
614
33e1cb2b
DH
615- A few lines of code that were failover-specific were moved within
616 #if defined() clauses so that compilation without failover could be
617 made possible.
618
2bddf829
DH
619- The log message emitted when the 'leased-address' value was not available
620 in dhcpd.conf "executable statements" has been updated to be more helpful.
621 Manpage information for this value has also been updated.
622
87578987
DH
623- Abandoned or dissociated (err condition) leases now remove any related
624 dynamic dns bindings. Thanks to a patch from Patrick Schoo.
625
e77c575f
DH
626- Attempting to write a new lease file to replace a corrupt (due to
627 encountering non-retryable errors during writing) lease file should
628 no longer result in an infinite recursion.
629
2178df03
DH
630- Host declaration hardware addresses and client identifiers may only be
631 configured once. dhcpd will now fail to load config files that specify
632 multiple identifiers (previous versions would silently over-ride the
633 value with the later configured value).
634
d5341d9b
SK
635- Several option codes that have been allocated since our last release
636 have been named and documented.
637
638- Option names of the form "unknown-123" have been removed from the in-
639 memory hash tables. In order to support options of these names that
640 may appear in dhclient.leases or similar in previous versions, the
641 parser will now find the new option code definition, or mock up a
642 generic option code definition. This should result in a smooth
643 transition from one name to the other, as the new name is used to
644 write new output.
645
6da113fb
DH
646 Changes since 3.0.4rc1
647
648- The dhcp-options.5 manpage was updated to correct indentation errors
649 thanks to a patch from Jean Delvare.
650
651 Changes since 3.0.4b3
652
653- Some manual pages were clarified pursuant to discussion on the dhcp-server
654 mailing list.
655
88cd8aca
DH
656 Changes since 3.0.4b2
657
45d545f0 658- Null-termination sensing for certain clients that unfortunately require
88cd8aca
DH
659 it in DHCPINFORM processing was repaired.
660
661- The host-name option and a few others were moved from "X" format to "t"
662 format to be compatible with new NULL handling functions.
663
664- DHCPINFORM processing is a little more careful about return addressing
665 its responses, or if responding via a relay. The INFORM related
666 messages also log the 'effective client ip address' rather than the
667 client's supplied ciaddr (since some clients produce null ciaddrs).
668
669- The server was inappropriately sending leases to the RESET state in the
670 event that multiple active leases were found to match a singly-identified
671 client. This was changed to RELEASED (by accepting a different, ACTIVE
672 binding, the client is implicitly releasing its lease). This repairs a
673 bug wherein secondary servers in failover pairs detecting this condition
674 move leases to RESET, and primaries refuse to accept that state
675 transition (properly).
676
677- The memset-after-dmalloc() changes made in 3.0.4b1 have been backed out.
678
679 Changes since 3.0.4b1
680
681- Command line parsing in omshell was repaired - it no longer closes
682 STDIN after reading one line.
683
684- The resolver library no longer closes the /etc/resolv.conf file
685 descriptor it opened twice.
686
687- Changes to trailing NULL removal in 't' option-atoms has been rethought,
688 it now includes 'd' (domain name) types, and tries hard not to rewind an
689 option beyond the start of the text field it is un-terminating.
690
691 Changes since 3.0.3
692
693- A DDNS update handling function was misusing the DNS error codes, rather
694 than the internal generic result enumeration. The result is a confusing
695 syslog line, logging the wrong condition.
696
697- The DHCP Server was not checking pool balance in the case where it brought
698 a non-ACTIVE lease out of storage for a client that was returning to use
699 a lease it once had long ago, and had since expired.
700
701- Failover peers no longer bother to look for free leases to allocate when
702 they already found the client's ACTIVE lease. DISCOVERs are load balanced
98bd7ca0 703 whether freely-allocated or not, unless the server doubts the peer has
88cd8aca
DH
704 leases to allocate.
705
706- Fixed a bug in dhcrelay agent addition code that suppressed trailing
45d545f0 707 PAD options - it was suppressing only one trailing PAD option, rather
88cd8aca
DH
708 than the entire block of them.
709
3a16098f
DH
710! Fixed some unlikely overlapping-region memcpy() bugs in dhcrelay agent
711 option addition and stripping code. Added a few sanity checks. Although
712 highly improbable, due to requiring the reception of a DHCP datagram well
713 in excess of all known to be used physical MTU limitations, it is possible
714 this may have been used in a stack overflow security vulnerability. Thanks
715 to a patch from infamous42md.
716
717! Added some sanity checks to OMAPI connection/authentication code.
718 Although highly improbable, due to having to deliver in excess of 2^32
719 bytes of data via the OMAPI channel, not to mention requiring dhcpd to
720 be able to malloc() a memory region 2^32 bytes in size, it was possible
721 this might have resulted in a heap overflow security vulnerability.
722 Thanks to a patch from infamous42md.
88cd8aca
DH
723
724- dmalloc() memset()'s the non-debug (data) portion of the allocated
725 memory to zero. Code that memset()'s the result returned by dmalloc() to
726 zero is redundant. These redundancies were removed.
727
728- Some type declaration corrections to u_int16_t were made in common/tr.c
729 (Token Ring support) thanks to a patch from Jason Vas Dias at RedHat.
730
731- A failover bug that was allowing leases that EXPIRED or were RELEASED
732 where tsfp and tstp are identical timestamps to languish in these
733 transitional states has been repaired. As a side effect, lease
734 databases should be kept more consistent overall, not just for these
735 transitional states.
736
737- If the lease db is deleted out from under the daemon, and it moves to rewrite
738 the db, it will go ahead with the operation and move the new db into place
739 once it detects the old db does not exist.
740
741- dhclient now ignores IRDA, SIT, and IEEE1394 network interfaces, as it
742 is either nonsensical or (in the case of IEEE1394) is not known to support
743 these interfaces. Thanks to Marius Gedminas and Andrew Pollock of Debian.
744
745- Some previously undocumented reasons for dhclient-script invoking has
45d545f0 746 been documented in the dhclient-script.8 manpage.
88cd8aca
DH
747
748- Failover potential expiry calculations (TSTP) have been corrected. Results
749 should be substantially more consistent, and proper given the constraints.
750
751- Adjusted lease state validation checks in potential-conflict, to
752 account for possible clock skew similarly to normal state, and several
753 previously illegal transitions were made legal (ex: active->released).
754
755- An impossible sanity check was removed from omapi/buffer.c, thanks to a
756 patch from 'infamous42md'.
757
758- An OMAPI host/network byte order problem in lease time values has been
759 repaired.
760
761- Several minor bugs, largely relating to treating 8-byte time values as
762 4-byte entities, have been repaired after careful review of the FreeBSD
763 ports collection's patch set. Thanks to the nameless entities who have
764 contributed to the FreeBSD ports.
765
766- When writing a trace file, the file is now created with permissions 0600,
767 to help administrators avoid accidentally publicising sensitive config
768 data.
769
770- The calculation of the maximum size of DHCP packets no longer includes
771 Ethernet framing overhead. The result is that the 'Maximum Message
772 Size' option advertised by clients, or the default value 576, is no
773 longer reduced by 14 bytes, and instead directly reflects the IP level
774 MTU (and the default, minimum allowed IP MTU of 576).
775
776- The special status of RELEASED/EXPIRED/RESET leases when a server
777 is operating in partner-down was fixed. It no longer requires a
778 lease be twice the MCLT beyond STOS to 'reallocate', and the expiry
779 event to turn these into FREE leases without peer acknowledgement
780 (after STOS+MCLT) has been repaired.
781
782- Compilation on older Solaris systems (lacking /usr/include/sys/int_types.h)
783 has been repaired.
784
785- "append"ing a string onto the end of a "t" type option (such as the
786 domain-name field) that had been improperly NULL-terminated by the
787 DHCP server will no longer result in a truncated string containing
788 only the option from the server, and not the expected appended value.
789 Thanks to a patch from Jason Vas Dias at RedHat.
790
791- File handlers on configuration state (config files and lease dbs) should
98bd7ca0 792 be treated consistently, regardless of whether TRACING is defined or not.
88cd8aca 793
45d545f0 794- The Linux build environment has had some minor improvements - better
88cd8aca
DH
795 sensing of 64-bit pointer sizes (only used for establishing an icmp_id),
796 and corrections to #if operators regarding LINUX_MAJOR should it ever
797 move to 3.[01].x.
798
799- The server now tries harder to survive the condition where it is unable
800 to open a new lease file to rewrite the lease state database.
801
c75473d8
DH
802 Changes since 3.0.3b3
803
804- dhclient.conf documentation for interface {} was updated to reflect recent
805 discussion on the dhcp-hackers mailing list.
806
807- In response to reports that the software does not compile on GCC 4.0.0,
808 -Werror was removed from Makefile.conf for all platforms that used it.
809 We will address the true problem in a future release; this is a temporary
810 workaround.
811
812 Changes since 3.0.3b2
813
814- An error in code changes introduced in 3.0.3b2 was corrected, which caused
815 static BOOTP clients to receive random addresses.
816
817 Changes since 3.0.3b1
818
819- A bug was fixed in BOOTPREQUEST handling code wherein stale references to
820 host records would be left behind on leases that were not allocated to the
821 client currently booting (eg in the case where the host was denied booting).
822
823- The dhcpd.conf.5 manpage was updated to be more clear in regards to
824 multiple host declarations (thanks to Vincent McIntyre). 'Interim' style
825 dynamic updates were also retouched.
826
98311e4b
DH
827 Changes since 3.0.2
828
829- A bug was fixed where a server might load balance a DHCP REQUEST to its
45d545f0 830 peer after already choosing not to load balance the preceding DISCOVER.
98311e4b
DH
831 The peer cannot allocate the originating server's lease.
832
833- In the case where a secondary server lost its stable storage while the
834 primary was still in communications-interrupted, and came back online,
835 the lease databases would not be fully transferred to the secondary.
836 This was due to the secondary errantly sending an extra UPDREQ message
837 when the primary made its state transition to PARTNER-DOWN known.
838
839- The package will now compile cleanly in gcc 3.3 and 3.4. As a side effect,
840 lease structures will be 9 bytes smaller on all platforms. Thanks to
841 Jason Vas Dias at Redhat.
842
843- Interface discovery code in DISCOVER_UNCONFIGURED mode is now
844 properly restricted to only detecting broadcast interfaces. Thanks
845 to a patch from Jason Vas Dias at RedHat.
846
847- decode_udp_ip_header was changed so that the IP address was copied out
848 to a variable, rather than referenced by a pointer. This enforces 4-byte
849 alignment of the 32-bit IP address value. Thanks to a patch from Dr.
850 Peter Poeml.
851
852- An incorrect log message was corrected thanks to a patch from
853 Dr. Peter Poeml.
854
855- A bug in DDNS was repaired, where if the server's first DDNS action was
856 a DDNS removal rather than a DDNS update, the resolver library's
857 retransmit timer and retry timer was set to the default, implying a
858 15 second timeout interval. Which is a little excessive in a synchronous,
859 single-threaded system. In all cases, ISC DHCP should now hold fast to
860 a 1-second timeout, trying only once.
861
862- The siaddr field was being improperly set to the server-identifier when
863 responding to DHCP messages. RFC2131 clarified the siaddr field as
864 meaning the 'next server in the bootstrap process', eg a tftp server.
865 The siaddr field is now left zeroed unless next-server is configured.
866
867- mockup_lease() could have returned in an error condition (or in the
868 condition where no fixed-address was found matching the shared
869 network) with stale references to a host record. This is probably not
870 a memory leak since host records generally never die anyway.
871
872- A bug was repaired where failover servers would let stale client identifiers
873 persist on leases that were reallocated to new clients not sending an id.
874
875- Binding scopes ("set var = value;") are now removed from leases allocated
876 by failover peers if the lease had expired. This should help reduce the
877 number of stale binding scopes on leases.
878
879- A small memory leak was closed involving client identifiers larger than
880 7 bytes, and failover.
881
882- Configuring a subnet in dhcpd.conf with a subnet mask of 32 bits might
883 cause an internal function to overflow heap. Thanks to Jason Vas Dias
884 at Redhat.
885
886- Some inconsistencies in treating numbers that the lexer parsed as 'NUMBER'
887 or 'NUMBER_OR_NAME' was repaired. Hexadecimal parsing is affected, and
888 should work better.
889
890- In several cases, parse warnings were being issued before the lexical
891 token had been advanced to the token whose value was causing an error...
892 causing parse warnings to claim the problem is on the wrong token.
893
894- Host declarations matching on client identifier for dynamic leases will
895 no longer match fixed-address host declarations (this is now identical
896 to behaviour for host records matching on hardware address).
897
898 Changes since 3.0.2rc3
899
900- A previously undocumented configuration directive, 'local-address',
901 was documented in the dhcpd.conf manpage.
902
903 Changes since 3.0.2rc2
904
45d545f0 905- Two variables introduced in 3.0.2b1 were used without being initialized
98311e4b
DH
906 in the case where neither the FILE nor SNAME fields were available for
907 overloading. This was repaired.
908
909- A heretofore believed to be impossible corner case of the option
910 overloading implementation turned out to be possible ("Unable to sort
911 overloaded options after 10 tries."). The implementation was reworked
912 to consider the case of an option so large it would require more than
913 three chunks to fit.
914
915- Many other instances of variables being used without being initialized
916 were repaired.
917
918- An uninitialized variable in omapi_io_destroy() led to the discovery
919 that this function may result in orphaned pointers (and hence, a memory
920 leak).
921
922 Changes since 3.0.2rc1
923
924- allocate_lease() was rewritten to repair a bug in which the server would
925 try to allocate an ABANDONED lease when FREE leases were available.
926
927 Changes since 3.0.2b1
928
929- Some dhcp-eval.5 manpage formatting was repaired.
930
931 Changes since 3.0.1
932
933- A bug was fixed in the server's 'option overloading' implementation,
934 where options loaded into the 'file' and 'sname' packet fields were
935 not aligned precisely as rfc2131 dictates.
936
937- The FreeBSD client script was changed to support the case where a domain
938 name was not provided by the server.
939
940- A memory leak in 'omshell' per each command line parsed was
941 repaired, thanks to a patch from Jarkko Torppa.
942
943- Log functions writing to stderr were adjusted to use the STDERR_FILENO
944 system definition rather than '2'. This is a no-op for 90% of platforms.
945
946- One call to trace_write_packet_iov() counted the number of io vectors
947 incorrectly, causing inconsistent tracefiles. This was fixed.
948
949- Some expression parse failure memory leaks were closed.
950
951- A host byte order problem in tracefiles was repaired.
952
953- Pools configured in DHCPD for failover possessing permission lists that
954 previously were assumed to not include dyanmic bootp clients are now
955 a little more pessimistic. The result is, dhcpd will nag you about just
956 about most pools that possess a 'allow' statement with no 'deny' that
957 would definitely match a dynamic bootp client.
958
959- The 'ddns-update-style' configuration warning bit now insists that
960 the configuration be globally scoped.
961
962- Two memory leaks in dhclient were closed thanks to a patch from Felix
963 Farkas.
964
965- Some minor but excellently pedantic documentation errors were fixed
966 thanks to a patch from Thomas Klausner.
967
968- Bugs in operator precedence in executable statements have been repaired
969 once again. More legal syntaxes should be parsed legally.
970
971- Failing to initialize a tracefile for any reason if a tracefile was
972 specified is now a fatal error. Thanks to a patch from Albert Herranz.
973
974- Corrected a bug in which the number of leases transferred as calculated
975 by the failover primary and sent to peers in POOLRESP responses may be
976 incorrect. This value is not believed to be used by other failover
977 implementations, excepting perhaps as logged information.
978
979- Corrected a bug in which 'dhcp_failover_send_poolresp()' was in fact
980 sending POOLREQ messages instead of POOLRESP mesasges. This message
981 was essentially ignored since failover secondaries effectively do not
982 respond to POOLREQ messages.
983
984- Type definitions for various bitwidths of integers in the sunos5-5
985 build of ISC DHCP have been fixed. It should compile and run more
986 easily when built in 64-bit for this platform.
987
988- "allow known-clients;" is now a legal syntax, to avoid confusion.
989
990- If one dhcp server chooses to 'load balance' a request to its failover
991 peer, it first checks to see if it believes said peer has a free
992 lease to allocate before ignoring the DISCOVER.
993
994- log() was logging a work buffer, rather than the value returned by
995 executing the statements configured by the user. In some cases,
996 the work buffer and the intended results were the same. In some other
997 cases, they were not. This was fixed thanks to a patch from Gunnar
998 Fjone and directconnect.no.
999
1000- Compiler warnings for some string type conversions was fixed, thanks
1001 to Andreas Gustafsson.
1002
1003- The netbsd build environments were simplified to one, in which
1004 -Wconversion is not used, thanks to Andreas Gustafsson.
1005
1006- How randomness in the backoff-cutoff dhclient configuration variable
1007 is implemented was better documented in the manpage, and the behaviour
1008 of dhclient in REQUEST timeout handling was changed to match that of
1009 DISCOVER timeout handling.
1010
1011- Omapi was hardened against clients that pass in null values, thanks
1012 to a patch from Mark Jason Dominus.
1013
1014- A bug was fixed in dhclient that kept it from doing client-side
1015 ddns updates. Thanks to a patch from Andreas Gustafsson, which
1016 underwent some modification after review by Jason Vas Dias.
1017
1018- Failover implementations disconnected due to the network between
1019 them (rather than one of the two shutting down) will now try to
1020 re-establish the failover connection every 5 seconds, rather than
1021 to simply try once and give up until one of them is restarted.
1022 Thanks to a patch from Ulf Ekberg from Infoblox, and field testing
1023 by Greger V. Teigre which led to an enhancement to it.
1024
1025- A problem that kept DHCP Failover secondaries from tearing down
1026 ddns records was repaired. Thanks to a patch from Ulf Ekberg from
1027 Infoblox.
1028
1029- 64bit pointer sizes are detected properly on FreeBSD now.
1030
1031- A bug was repaired where the DHCP server would leave stale references
1032 to host records on leases it once thought about offering to certain
1033 clients. The result would be to apply host and 'known' scopes to the
1034 wrong clients (possibly denying booting). NOTE: The 'mis-host' patch
1035 that was being circulated as a workaround is not the way this bug was
1036 fixed. If you were a victim of this bug in 3.0.1, you are cautioned
1037 to proceed carefully and see if it fixes your problem.
1038
1039- A bug was repaired in the server's DHCPINFORM handling, where it
1040 tried to divine the client's address from the source packet and
1041 would get it wrong. Thanks to Anshuman Singh Rawat.
1042
1043- A log message was introduced to help illuminate the case where the
1044 server was unable to find a lease to assign to any BOOTP client.
1045 Thanks to Daniel Baker.
1046
1047- A minor dhcpd.conf.5 manpage error was fixed.
1048
1049 Changes since 3.0.1rc14
1050
1051- The global variable 'cur_time' was centralized and is now uniformly of a
1052 type #defined in system-dependent headers. It had previously been defined
1053 in one of many places as a 32-bit value, and this causes mayhem on 64-bit
1054 big endian systems. It probably wasn't too healthy on little endian
1055 systems either.
1056
1057- A printf format string error introduced in rc14 was repaired.
1058
1059- AIX system-dependent header file was altered to only define NO_SNPRINTF
1060 if the condition used to #ifdef in vsnprintf in AIX' header files
1061 is false.
1062
1063- The Alpha/OSF system-dependent header file was altered to define
1064 NO_SNPRINTF on OS revisions older than 4.0G.
1065
1066- omapip/test.c had string.h added to its includes.
1067
1068 Changes since 3.0.1rc13
1069
1070! CAN-2004-0460 - CERT VU#317350: Five stack overflow exploits were closed
1071 in logging messages with excessively long hostnames provided by the
1072 clients. It is highly probable that these could have been used by
1073 attackers to gain arbitrary root access on systems using ISC DHCP 3.0.1
1074 release candidates 12 or 13. Special thanks to Gregory Duchemin for
1075 both finding and solving the problem.
1076
1077! CAN-2004-0461 - CERT VU#654390: Once the above was closed, an opening
45d545f0 1078 in log_*() functions was evidenced, on some specific platforms where
98311e4b
DH
1079 vsnprintf() was not believed to be available and calls were wrapped to
1080 sprintf() instead. Again, credit goes to Gregory Duchemin for finding
1081 the problem. Calls to snprintf() are now linked to a distribution-local
1082 snprintf implementation, only in those cases where the architecture is
1083 not known to provide one (see includes/cf/[arch].h). If you experience
1084 linking problems with snprintf/vsnprintf or 'isc_print_' functions, this
1085 is where to look. This vulnerability did not exist in any previously
1086 published version of ISC DHCP.
1087
1088- Compilation on hpux 11.11 was repaired.
1089
1090- 'The cross-compile bug fix' was backed out.
1091
1092 Changes since 3.0.1rc12
1093
1094- Fixed a bug in omapi lease lookup function, to form the hardware
1095 address for the hash lookup correctly, thanks to a patch from
1096 Richard Hirst.
1097
1098- Fixed a bug where dhcrelay was sending relayed responses back to the
1099 broadcast address, but with the source's unicast mac address. Should
1100 now conform to rfc2131 section 4.1.
1101
1102- Cross-compile bug fix; use $(AR) instead of ar. Thanks to Morten Brorup.
1103
1104- Fixed a crash bug in dhclient where dhcpd servers that do not provide
1105 renewal times results in an FPE. As a side effect, dhclient can now
1106 properly handle 0xFFFFFFFF (-1) expiry times supplied by servers. Thanks
1107 to a patch from Burt Silverman.
1108
1109- The 'ping timeout' debugs from rc12 were removed to -DDEBUG only,
45d545f0 1110 and reformatted to correct a compilation error on Solaris platforms.
98311e4b
DH
1111
1112- A patch was applied which fixes a case where leases read from the
1113 leases database do not properly over-ride previously read leases.
1114
1115- dhcpctl.3 manpage was tweaked.
1116
1117 Changes since 3.0.1rc11
1118
1119- A patch from Steve Campbell was applied with minor modifications to
1120 permit reverse dns PTR record updates with values containing spaces.
1121
1122- A patch from Florian Lohoff was applied with some modifications to
1123 dhcrelay. It now discards packets whose hop count exceeds 10 by default,
1124 and a command-line option (-c) can be used to set this threshold.
1125
1126- A failover bug relating to identifying peers by name length instead of
1127 by name was fixed.
1128
45d545f0 1129- Declaring failover configs within shared-network statements should no
98311e4b
DH
1130 longer result in error.
1131
1132- The -nw command line option to dhclient now works.
1133
1134- Thanks to a patch from Michael Richardson:
1135 - Some problems with long option processing have been fixed.
1136 - Some fixes to minires so that updates of KEY records will work.
1137
1138- contrib/ms2isc was updated by Shu-Min Chang of the Intel Corporation.
1139 see contrib/ms2isc/readme.txt for revision notes.
1140
1141- Dhclient no longer uses shell commands to kill another instance of
1142 itself, it sends the signal directly. Thanks to a patch from Martin
1143 Blapp.
1144
1145- The FreeBSD dhclient-script was changed so that a failure to write to
1146 /etc/resolv.conf does not prematurely end the script. This keeps dhclient
1147 from looping infinitely when this is the case. Thanks to a patch from
1148 Martin Blapp.
1149
1150- A patch from Bill Stephens was applied which resolves a problem with lease
1151 expiry times in failover configurations.
1152
1153- A memory leak in configuration parsing was closed thanks to a patch from
1154 Steve G.
1155
1156- The function which discovers interfaces will now skip non-broadcast or
1157 point-to-point interfaces, thanks to a patch from David Brownlee.
1158
1159- Options not yet known by the dhcpd or dhclient have had their names
1160 changed such that they do not contain # symbols, in case they should ever
1161 appear in a lease file. An option that might have been named "#144" is
1162 now "unknown-144".
1163
1164- Another patch from Bill Stephens which allows the ping-check timeout to
1165 be configured as 'ping-timeout'. Defaults to 1.
1166
1167 Changes since 3.0.1rc10
1168
1169- Potential buffer overflows in minires repaired.
1170
1171- A change to the linux client script to use /bin/bash, since /bin/sh may
1172 not be bash.
1173
1174- Some missing va_end cleanups thanks to a patch from Thomas Klausner.
1175
1176- A correction of boolean parsing syntax validation - some illegal syntaxes
1177 that worked before are now detected and produce errs, some legal syntaxes
1178 that errored before will now work properly.
1179
1180- Some search-and-replace errors that caused some options to change their
1181 names was repaired.
1182
1183- Shu-min Chang of the Intel corporation has contributed a perl script and
1184 module that converts the MS NT4 DHCP configuration to a ISC DHCP3
1185 configuration file.
1186
1187- Applied the remainder of the dhcpctl memory leak patch provided by Bill
1188 Squier at ReefEdge, Inc. (groo@reefedge.com).
1189
1190- Missing non-optional failover peer configurations will now result in a soft
1191 error rather than a null dereference.
1192
1193 Changes since 3.0.1rc9
1194
1195- A format string was corrected to fix compiler warnings.
1196
1197- A number of spelling corrections were made in the man pages.
1198
1199- The dhclient.conf.5 man page was changed to refer to do-forward-updates
1200 rather than a configuration option that doesn't exist.
1201
1202- A FreeBSD-specific bug in the interface removal handling was fixed.
1203
1204- A Linux-specific Token Ring detection problem was fixed.
1205
1206- Hashes removed from as-yet-unknown agent options, having those options
1207 appear in reality before we know about them will no longer produce
1208 self-corrupting lease databases.
1209
1210- dhclient will use the proper port numbers now when using the -g option.
1211
1212- A order-of-operations bug with 2 match clauses in 1 class statement is
1213 fixed thanks to a patch from Andrew Matheson.
1214
1215- Compilation problems on Solaris were fixed.
1216
1217- Compilation problems when built with DEBUG or DEBUG_PACKET were repaired.
1218
1219- A fix to the dhcp ack process which makes certain group options will be
1220 included in the first DHCPOFFER message was made thanks to a patch from
1221 Ling Gou.
1222
1223- A few memory leaks were repaired thanks to patches from Bill Squier at
1224 ReefEdge, Inc. (groo@reefedge.com).
1225
1226- A fix for shared-networks that sometimes give clients options for the
1227 wrong subnets (in particular, 'option routers') was applied, thanks to
1228 Ted Lemon for the patch.
1229
1230- Omshell's handling of dotted octets as values was changed such that dots
1231 one after the other produce zero values in the integer string.
1232
1233 Changes since 3.0.1rc8
1234
1235- Fix a format string vulnerability in the server that could lead to a
1236 remote root compromise (discovered by NGSEC Research Team, www.ngsec.com).
1237
1238- Add additional support for NetBSD/sparc64.
1239
1240- Fix a bug in the command-line parsing of the client. Also, resolve
1241 a memory leak.
1242
1243- Add better support for shells other than bash in the Linux client
1244 script.
1245
1246- Various build fixes for modern versions of FreeBSD and Linux.
1247
1248- Fix a bad bounds check when printing binding state names.
1249
1250- Clarify documentation about fixed-address and multiple addresses.
1251
1252- Fix a typo in the authoritative error message.
1253
1254- Make a log entry when we can't write a billing class.
1255
1256- Use conversion targets that are the right size on all architectures.
1257
1258- Increment the hop count when relaying.
1259
1260- Log a message when lease state is changed through OMAPI.
1261
1262- Don't rerun the shared_network when evaluating the pool.
1263
1264- Fix a reversed test in the parser.
1265
1266- Change the type of rbuf_max.
1267
1268- Make FTS_LAST a manifest constant to quiet warnings.
1269
1270 Changes since 3.0.1rc7
1271
1272- Fix two compiler warnings that are generated when compiling on Solaris
1273 with gcc. These stop the build, even though they weren't actually
1274 errors, because we prefer that our builds generate no warnings.
1275
1276 Changes since 3.0.1rc6
1277
1278- Don't allow a lease that's in the EXPIRED, RELEASED or RESET state
1279 to be renewed.
1280
1281- Implement lease stealing for cases where the primary has fewer leases
1282 than the secondary, as called for by the standard.
1283
1284- Add a fudge factor to the lease expiry acceptance code, (suggested
1285 by Kevin Miller of CMU).
1286
1287- Fix a bug in permit_list_match that made it much too willing to say
1288 that two permit lists matched.
1289
1290- Unless DEBUG_DNS_UPDATES is defined, print more user-friendly (and
1291 also more compact) messages about DNS updates.
1292
1293- Fix a bug in generating wire-format domain names for the FQDN option.
1294
1295- Fix a bug where the FQDN option would not be returned if the client
1296 requested it, contrary to the standard.
1297
1298- On Darwin, use the FreeBSD DHCP client script.
1299
1300- On NetBSD/sparc, don't check for casting warnings.
1301
1302- Add a flag in the DHCP client to disable updating the client's A
1303 record when sending an FQDN option indicating that the client is
1304 going to update its A record.
1305
1306- In the client, don't attempt a DNS update until one second after
1307 configuring the new IP address, and if the update times out, keep
1308 trying until a response, positive or negative, is received from the
1309 DNS server.
1310
1311- Fix an uninitialized memory bug in the DHCP client.
1312
1313- Apply some FreeBSD-specific bug fixes suggested by Murray Stokely.
1314
1315- Fix a bug in ns_parserr(), where it was returning the wrong sort
1316 of result code in some cases (suggested by Ben Harris of the
1317 NetBSD project).
1318
1319- Fix a bug in is_identifier(), where it was checking against EOF
1320 instead of the END_OF_FILE token (also suggested by Ben Harris).
1321
1322- Fix a bug where if an option universe contained no options, the
1323 DHCP server could dump core (Walter Steiner).
1324
1325- Fix a bug in the handling of encapsulated options.
1326
1327- Fix a bug that prevented NWIP suboptions from being processed.
1328
1329- Delete the FTS_BOOTP and FTS_RESERVED states and implement them
1330 as modifier flags to the FTS_ACTIVE state, as called for in the
1331 failover protocol standard.
1332
1333- Fix bugs in the pool merging code that resulted in references and
1334 dereferences of null pointers. This bug had no impact unless the
1335 POINTER_DEBUG flag was defined.
1336
1337- In the server, added a do-forward-updates flag that can be used to
1338 disable forward updates in all cases, so that sites that want the
1339 clients to take sole responsibility for updating their A record can
1340 do so.
1341
1342- Make it possible to disable optimization of PTR record updates.
1343
1344 Changes since 3.0.1rc5
1345
1346- Include some new documentation and changes provided by Karl Auer.
1347
1348- Add a workaround for some Lexmark printers that send a double-NUL-
1349 terminated host-name option, which would break DNS updates.
1350
1351- Fix an off-by-one error in the MAC-address checking code for
1352 DHCPRELEASE that was added in 3.0.1rc5.
1353
1354- Fix a bug where client-specific information was not being discarded
1355 from the lease when it expired or was released, resulting in
1356 problems if the lease was reallocated to a different client.
1357
1358- If more than one allocation pool is specified that has the same set
1359 of constraints as another allocation pool on the same shared
1360 network, merge the two pools.
1361
1362- Don't print an error in fallback_discard, since this just causes
1363 confusion and does not appear to be helping to encourage anyone to
1364 fix this bug.
1365
1366 Changes since 3.0.1rc4
1367
1368- Fix a bug that would cause the DHCP server to spin if asked to parse
1369 a certain kind of incorrect statement.
1370
1371- Fix a related bug that would prevent an error from being reported in
1372 the same case.
1373
1374- Additional documentation.
1375
1376- Make sure that the hardware address matches the lease when
1377 processing a DHCPRELEASE message.
1378
1379 Changes since 3.0.1rc3
1380
1381- A minor bug fix in the arguments to a logging function call.
1382- Documentation update for dhcpd.conf.
1383
1384 Changes since 3.0.1rc2
1385
1386- Allow the primary to send a POOLREQ message. This isn't what the current
1387 failover draft says to do, so we may have to back it out if I can't get the
1388 authors to relent, but the scheme for balancing that's specified in the
1389 current draft seems needlessly hairy, so I'm floating a trial balloon.
1390 The rc1 code did not implement the method described in the draft either.
1391
1392 Changes since 3.0.1rc1
1393
1394- Treat NXDOMAIN and NXRRSET as success when we are trying to delete a
1395 domain or RRSET. This allows the DHCP server to forget about a name
1396 it added to the DNS once it's been removed, even if the DHCP server
1397 wasn't the one that removed it.
1398
1399- Install defaults for failover maximum outstanding updates and maximum
1400 silent time. This prevents problems that might occur if these values
1401 were not configured.
1402
1403- Don't do DDNS deletes if ddns-update-style is none.
1404
1405- Return relay agent information options in DHCPNAK. This prevents DHCPNAK
1406 messages from being dropped when the relay agent information option contains
1407 routing information.
1408
1409- Fix a problem where coming up in recover wouldn't result in an update
1410 request being sent.
1411
1412- Add some more chatty messages when we start a recovery update and when it's
1413 done.
1414
1415- Fix a possible problem where some state might have been left around
1416 after the peer lost contact and regained contact about how many updates
1417 were pending.
1418
1419- Don't nix a lease update because of a lease conflict. This test has
1420 never (as far as I know) prevented a mistake, and it appears to cause
1421 problems with failover.
1422
1423- Add support in rc history code for keeping a selective history, rather
1424 than a history of all references and dereferences. This code is only used
1425 when extensive additional debugging is enabled.
1426
1427 Changes since 3.0
1428
1429- Make allocators for hash tables. As a side effect, this fixes a memory
1430 smash in the subclass allocation code.
1431
1432- Fix a small bug in omshell where if you try to close an object when
1433 no object is open, it dumps core.
1434
1435- Fix an obscure coredump that could occur on shutdown.
1436
1437- Fix a bug in the recording of host declaration rubouts in the lease file.
1438
1439- Fix two potential spins in the host deletion code.
1440
1441- Fix a core dump that would happen if an application tried to update
1442 a host object attribute with a null value.
1443
1444 Changes since 3.0 Release Candidate 12
1445
1446- Fix a memory leak in the evaluation code.
1447
1448- Fix an obscure core dump.
1449
1450- Print a couple of new warnings when parsing the configuration file
1451 when crucial information is left out.
1452
1453- Log "no free leases" as an error.
1454
1455- Documentation updates.
1456
1457 Changes since 3.0 Release Candidate 11
1458
1459- Always return a subnet selection option if one is sent.
1460
1461- Fix a warning that was being printed because an automatic data
1462 structure wasn't zeroed.
1463
1464- Fix some failover state transitions that were being handled
1465 incorrectly.
1466
1467- When supersede_lease is called on a lease whose end time has already
1468 expired, but for which a state transition has not yet been done, do
1469 a state transition. This fixes the case where if the secondary
1470 allocated a lease to a client and the lease "expired" while the
1471 secondary was in partner-down, no expiry event would actually
1472 happen, so the lease would remain active until the primary was
1473 restarted.
1474
1475 Changes since 3.0 Release Candidate 10
1476
1477- Fix a bug that was preventing released leases from changing state
1478 in failover-enabled pools.
1479
1480- Fix a core dump in the client identifier finder code (for host
1481 declarations).
1482
1483- Finish fixing a bug where bogus data would sometimes get logged to
1484 the dhclient.leases file because it was opened as descriptor 2.
1485
1486- Fix the Linux dhclient-script according to suggestions made by
1487 several people on the dhcp-client mailing list.
1488
1489- Log successful DNS updates at LOG_INFO, not LOG_ERROR.
1490
1491- Print an error message and refuse to run if a failover peer is
1492 defined but not referenced by any pools.
1493
1494- Correct a confusing error message in failover.
1495
eaf0b302
TL
1496 Changes since 3.0 Release Candidate 9
1497
1498- Fix a bug in lease allocation for Dynamic BOOTP clients.
1499
0db87765
TL
1500 Changes since 3.0 Release Candidate 8 Patchlevel 2
1501
1502- Fix a bug that prevented update-static-leases from working.
1503
1504- Document failover-state OMAPI object.
1505
1506- Fix a compilation error on SunOS 4.
1507
d758ad8c
TL
1508 Changes since 3.0 Release Candidate 8 Patchlevel 1
1509
1510- Fix a parsing bug that broke dns updates (both interim and ad-hoc).
1511 This was introduced in rc8pl1 as an unintended result of the memory
1512 leakage fixes that were in pl1.
1513
1514- Fix a long-standing bug where the server would record that an update
1515 had been done for a client with no name, even though no update had
1516 been done, and then when the client's lease expired the deletion of
1517 that nonexistant record would time out because the name was the null
1518 string.
1519
1520- Clean up the omshell, dhcpctl and omapi man pages a bit.
1521
d758ad8c
TL
1522 Changes since 3.0 Release Candidate 8
1523
1524- Fix a bug that could cause the DHCP server to spin if
1525 one-lease-per-client was enabled.
1526
1527- Fix a bug that was causing core dumps on BSD/os in the presence of
1528 malformed packets.
1529
1530- In partner-down state, don't restrict lease lengths to MCLT.
1531
1532- On the failover secondary, record the MCLT received from the primary
1533 so that if we come up without a connection to the primary we don't
1534 wind up giving out zero-length leases.
1535
1536- Fix some compilation problems on BSD/os.
1537
1538- Fix a bunch of memory leaks.
1539
1540- Fix a couple of bugs in the option printer.
1541
1542- Fix an obscure error reporting bug in the dns update code, and also
1543 make the message clearer when a key algorithm isn't supported.
1544
1545- Fix a bug in the tracing code that prevented trace runs that used
1546 tcp connections from being played back.
1547
1548- Add some additional debugging capability for catching memory leaks
1549 on exit.
1550
1551- Make the client release the lease correctly on shutdown.
1552
1553- Add some configurability to the build system.
1554
1555- Install omshell manual page in man1, not man8.
1556
1557- Craig Gwydir sent in a patch that fixes a long-standing bug in the
1558 DHCP client that could cause core dumps, but that for some reason
1559 hadn't been noticed until now.
1560
1561 Changes since 3.0 Release Candidate 7
1562
1563- Fix a bug in failover where we weren't sending updates after a
1564 transition from communications-interrupted to normal.
1565
1566- Handle expired/released/reset -> free transition according to the
1567 protocol specification (this works - the other way not only wasn't
1568 conformant, but also didn't work).
1569
1570- Add a control object in both client and server that allows either
1571 daemon to be shut down cleanly.
1572
1573- When writing a lease, if we run out of disk space, shut down the
1574 output file and insist on writing a new one before proceeding.
1575
1576- In the server, if the OMAPI listener port is occupied, keep trying
1577 to get it, rather than simply giving up and exiting.
1578
1579- Support fetching variables from leases and also updating and adding
1580 variables to leases via OMAPI.
1581
1582- If two failover peers have wildly different clocks, refuse to start
1583 doing failover.
1584
1585- Fix a bug in the DNS update code that could cause core dumps when
1586 running on alpha processors.
1587
1588- Fixed a bug in ddns updates for static lease entries, thanks to a
1589 patch from Andrey M Linkevitch.
1590
1591- Add support for Darwin/MacOS X
1592
1593- Install omshell (including new documentation).
1594
1595- Support DNS updates in the client (this is a very obscure feature
1596 that most DHCP client users probably will not be able to use).
1597
1598- Somewhat cleaner status logging in the client.
1599
1600- Make OMAPI key naming syntax compatible with the way keys are
1601 actually named (key names are domain names).
1602
1603- Fix a bug in the lease file writer.
1604
1605- Install DHCP ISC headers in a different place than BIND 9 ISC
1606 headers, to avoid causing trouble in BIND 9 builds.
1607
1608- Don't send updates for attributes on an object when the attributes
1609 haven't changed. Support deleting attributes on remote objects.
1610
1611- Fix a number of bugs in omshell, and add the unset and refresh
1612 statements.
1613
1614- Handle disconnects in OMAPI a little bit more intelligently (so that
1615 the caller gets ECONNRESET instead of EINVAL).
1616
1617- Fix a bunch of bugs in the handling of clients that have existing
1618 leases when the try to renew their leases while failover is
1619 operating.
1620
eaf0b302
TL
1621 Changes since 3.0 Release Candidate 6
1622
1623- Fix a core dump that could happen when processing a DHCPREQUEST from
1624 a client that had a host declaration that contained both a
1625 fixed-address declaration and a dhcp-client-identifier option
1626 declaration, if the client identifier was longer than nine bytes.
1627
1628- Fix a memory leak that could happen in certain obscure cases when
1629 using omapi to manipulate leases.
1630
1631- Fix some bugs and omissions in omshell.
1632
1633
1634 Changes since 3.0 Release Candidate 5
1635
1636- Fix a bug in omapi_object_dereference that prevented objects in
1637 chains from having their reference counts decreased on dereference.
1638
1639- Fix a bug in omapi_object_dereference that would prevent object
1640 chains from being freed upon removal of the last reference external
1641 to the chain.
1642
1643- Fix a number of other memory leaks in the OMAPI protocol subsystem.
1644
1645- Add code in the OMAPI protocol handler to trace memory leakage.
1646
1647- Clean up the memory allocation/reference history printer.
1648
98311e4b 1649- Support input of dotted quads and colon-separated hex lists as
eaf0b302
TL
1650 attribute values in omshell.
1651
98311e4b 1652- Fix a typo in the Linux interface discovery code.
eaf0b302
TL
1653
1654- Conditionalize a piece of trace code that wasn't conditional.
1655
1656 Changes since 3.0 Release Candidate 4
1657
1658- Fix a bug that would prevent leases from being abandoned properly on
1659 DHCPDECLINE.
1660
1661- Fix failover peer OMAPI support.
1662
1663- In failover, correctly handle expiration of leases. Previously,
1664 leases would never be reclaimed because they couldn't make the
1665 transition from EXPIRED to FREE.
1666
1667- Fix some broken failover state transitions.
1668
1669- Documentation fixes.
1670
1671- Take out an unnecessary check in DHCP relay agent information option
1672 stashing code that was preventing REBINDING clients from rebinding.
1673
1674- Prevent failover peers from allocating leases in DHCPREQUEST
1675 processing if the lease belongs to the other server.
1676
1677- Record server version in lease file introductory comment.
1678
1679- Correctly report connection errors in OMAPI and failover.
1680
1681- Make authentication signature algorithm name comparisons in OMAPI
1682 case-insensitive.
1683
1684- Fix compile problem on SunOS 4.x
1685
98311e4b 1686- If a signature algorithm is not terminated with '.', terminate it so
eaf0b302
TL
1687 that comparisons between fully-qualified names will work
1688 consistently.
1689
1690- Different SIOCGIFCONF probe code, may "fix" problem on some Linux
1691 systems with the probe not working correctly.
1692
1693- Don't allow user to type omapi key on command line of omshell.
1694
0596b051
TL
1695 Changes since 3.0 Release Candidate 3
1696
1697- Do lease billing on startup in a way that I *think* will finally do
1698 the billing correctly - the previous method could overbill as a
1699 result of duplicate leases.
1700
1701- Document OMAPI server objects.
1702
892fe689
TL
1703 Changes since 3.0 Release Candidate 2 Patchlevel 1
1704
1705- Fix some problems in the DDNS update code. Thanks to Albert
1706 Herranz for figuring out the main problem.
1707
1708- Fix some reference counting errors on host entries that were causing
1709 core dumps.
1710
1711- Fix a byte-swap bug in the token ring code, thanks to Jochen
1712 Friedrich.
1713
1714- Fix a bug in lease billing, thanks to Jonas Bulow.
1715
1716 Changes since 3.0 Release Candidate 2
1717
1718- Change the conditions under which a DHCPRELEASE is actually
1719 committed to be consistent with lease binding states rather than
98311e4b 1720 using the lease end time. This may fix some problems with the
892fe689
TL
1721 billing class code.
1722
1723- Fix a bug where lease updates would fail on Digital Unix (and maybe
1724 others) because malloc was called with a size of zero.
1725
1726- Fix a core dump that happens when the DHCP server can't create its
1727 trace file.
1728
79ea3de8 1729 Changes since 3.0 Release Candidate 1 Patchlevel 1
87784777 1730
79ea3de8
TL
1731- Fix the dhcp_failover_put_message to not attempt to allocate a
1732 zero-length buffer. Some versions of malloc() fail if you try to
1733 allocate a zero-length buffer, and this was causing problems on,
1734 e.g., Digital Unix.
1735
1736- Fix a case where the failover code was printing an error message
1737 when no error had occurred.
1738
1739- Fix a problem where when a server went down and back up again, the
1740 peer would not see a state transition and so would stay in the
1741 non-communicating state.
1742
1743- Be smart about going into recover_wait.
1744
1745- Fix a problem in the failover implementation where peers would fail
1746 to come into sync if interrupted in the RECOVER state. This could
1747 have been the cause of some problems people have reported recently.
1748
1749- Fix a problem with billing classes where they would not be unbilled
1750 when the client lease expired.
1751
1752- If select fails, figure out which descriptor is bad, and cut it out
1753 of the I/O loop. This prevents a potentially nasty spin. I
1754 haven't heard any report it in a while, but it came up consistently
1755 in testing.
1756
1757- Fix a bug in the relay agent where if you specified interfaces on
1758 the command line, it would fail.
1759
1760- Fix a couple of small bugs in the omapi connection object (no known
1761 user impact).
1762
1763- Add the missing 3.0 Beta 1 lease conversion script.
1764
1765- Read dhcp client script hooks if they exist, rather than only if
1766 they're executable.
1767
1768 Changes since 3.0 Release Candidate 1
87784777
TL
1769
1770- Fix a memory smash that happens when fixed-address leases are used.
1771 ANY SITE AT WHICH FIXED-ADDRESS STATEMENTS ARE BEING USED SHOULD
1772 UPGRADE IMMEDIATELY. This has been a long-standing bug - thanks to
1773 Alvise Nobile for discovering it and helping me to find it!
1774
79ea3de8
TL
1775- Fix a small bug in binary-to-ascii, thanks to H. Peter Anvin of
1776 Transmeta.
1777
87784777
TL
1778- There is a known problem with the DHCP server doing failover on
1779 Compaq Alpha systems. This patchlevel is not a release candidate
1780 because of this bug. The bug should be straightforward to fix, so
1781 a new release candidate is expected shortly.
1782
1783- There is a known problem in the DDNS update code that is probably a
1784 bug, and is not, as far as we know, fixed in this patchlevel.
1785
6d779c72
TL
1786 Changes since 3.0 Beta 2 Patchlevel 24
1787
1788- Went over problematic failover state transitions and made them all
1789 work, so that failover should now much less fragile.
1790
1791- Add some dhcpctl and omapi documentation
1792
1793- Fix compile errors when compiling with unusual predefines.
1794
1795- Make Token Ring work on Linux 2.4
1796
1797- Fix the Digital Unix BPF_WORDALIGN bug.
1798
1799- Fix some dhcp client documentation errors.
1800
1801- Update some parts of the README file.
1802
1803- Support GCC on SCO.
1804
de57e64b
TL
1805 Changes since 3.0 Beta 2 Patchlevel 23
1806
1807- Fix a bug in the DNS update code where a status code was not being
1808 checked. This may have been causing core dumps.
1809
1810- When parsing the lease file, if a lease declaration includes a
1811 billing class statement, and the lease already has a billing class,
1812 unbill the old class.
1813
1814- When processing failover transactions, where acks will be deferred,
1815 process the state transition immediately.
1816
1817- Don't try to use the new SIOCGIFCONF buffer size detection code on
1818 Linux 2.0, which doesn't provide this functionality.
1819
1820- Apply a patch suggested by Tuan Uong for a problem in dlpi.c.
1821
1822- Fix a problem in using the which command in the configure script.
1823
1824- Fix a parse error in the client when setting up an omapi listener.
1825
1826- Document the -n and -g flags to the client.
1827
1828- Make sure there is always a stdin and stdout on startup. This
1829 prevents shell scripts from accidentally writing error messages into
1830 configuration files that happen to be opened as stderr.
1831
1832- If an interface is removed, the client will now notice that it is
1833 gone rather than spinning. This has only been tested on NetBSD.
1834
1835- The client will attempt to get an address even if it can't create a
1836 lease file.
1837
1838- Don't overwrite tracefiles.
1839
1840- Fix some memory allocation bugs in failover.
2aa36519 1841
140158d3
TL
1842 Changes since 3.0 Beta 2 Patchlevel 22
1843
1844- Apply some patches suggested by Cyrille Lefevre, who is maintaining
1845 the FreeBSD ISC DHCP Distribution port.
1846
1847- Fix a core dump in DHCPRELEASE.
1848
3a395e60
TL
1849 Changes since 3.0 Beta 2 Patchlevel 21
1850
1851- This time for sure: fix the spin described in the changes for pl20.
1852
fc74dd0c
TL
1853 Changes since 3.0 Beta 2 Patchlevel 20
1854
1855- Fix a problem with Linux detecting large numbers of interfaces (Ben)
1856
1857- Fix a memory smash in the quotify code, which was introduced in
1858 pl19.
1859
1860- Actually fix the spin described in the changes for pl20. The
1861 previous fix only partially fixed the problem - enough to get it
1862 past the regression test.
1863
ed5ee591
TL
1864 Changes since 3.0 Beta 2 Patchlevel 19
1865
1866- Fix a bug that could cause the server to abort if compiled with
1867 POINTER_DEBUG enabled.
1868
1869- Fix a bug that could cause the server to spin when responding to a
1870 DHCPREQUEST.
1871
1872- Apply Joost Mulders' suggested patches for DLPI on x86.
1873
1874- Support NUL characters in quoted strings.
1875
1876- Install unformatted man pages on SunOS.
1877
b3fad8ac
TL
1878 Changes since 3.0 Beta 2 Patchlevel 18
1879
3350f5b7
TL
1880- Allow the server to be placed in partner-down state using OMAPI.
1881 (Damien Neil)
1882
1883- Implement omshell, which can be used to do arbitrary things to the
1884 server (in theory). (Damien Neil)
1885
1886- Fix a case where if a client had two different leases the server could
1887 actually dereference the second one when it hadn't been referenced,
1888 leading to memory corruption and a core dump. (James Brister)
1889
1890- Fix a case where a client could request the address of another client's
1891 lease, but find_lease wouldn't detect that the other client had it, and
1892 would attempt to allocate it to the client, resulting in a lease conflict
1893 message.
1894
1895- Fix a case where a client with more than one client identifier could be
1896 given a lease where the hardware address was correct but the client
1897 identifier was not, resulting in a lease conflict message.
1898
98311e4b 1899- Fix a problem where the server could write out a colon-separated
3350f5b7
TL
1900 hex list as a value for a variable, which would then not parse.
1901 The fix is to always write strings as quoted strings, with any
1902 non-printable characters quoted as octal escape sequences. So
1903 a file written the old way still won't work, but new files written
1904 this way will work.
1905
b3fad8ac
TL
1906- Fix documentation for sending non-standard options.
1907
1908- Use unparsable names for unknown options. WARNING: this will
1909 break any configuration files that use the option-nnn convention.
1910 If you want to continue to use this convention for some options,
1911 please be sure to write a definition, like this:
1912
1913 option option-nnn code nnn = string;
1914
1915 You can use a descriptive name instead of option-nnn if you like.
1916
1917- Fix a problem where we would see a DHCPDISCOVER/DHCPOFFER/
1918 DHCPREQUEST/DHCPACK/DHCPREQUEST/DHCPNAK sequence. This was the
1919 result of a deceptively silly bug in supersede_lease.
1920
1921- Fix client script exit status check, according to a fix supplied by
1922 Hermann Lauer.
1923
1924- Fix an endianness bug in the tracefile support, regarding ICMP
1925 messages.
1926
3350f5b7
TL
1927- Fix a bug in the client where the medium would not work correctly if
1928 it contained quoted strings.
1929
b3fad8ac
TL
1930 ** there was no pl17 **
1931
e6d30fd6
TL
1932 Changes since 3.0 Beta 2 Patchlevel 16
1933
6da9db9d
TL
1934- Add support for transaction tracing. This allows the state of the
1935 DHCP server on startup, and all the subsequent transactions, to be
1936 recorded in a file which can then be played back to reproduce the
1937 behaviour of the DHCP server. This can be used to quickly
1938 reproduce bugs that cause core dumps or corruption, and also for
1939 tracking down memory leaks.
1940
1941- Incorporate some bug fixes provided by Joost Mulders for the DLPI
1942 package which should clear up problems people have been seeing on
1943 Solaris.
1944
1945- Fix bugs in the handling of options stored as linked lists (agent
1946 options, fqdn options and nwip options) that could cause memory
1947 corruption and core dumps.
1948
1949- Fix a bug in DHCPREQUEST handling that resulted in DHCPNAK messages
1950 not being send in some cases when they were needed.
1951
1952- Make the lease structure somewhat more compact.
1953
1954- Make initial failover startup *much* faster. This was researched
1955 and implemented by Damien Neil.
1956
1957- Add a --version flag to all executables, which prints the program
1958 name and version to standard output.
1959
1960- Don't rewrite the lease file every thousand leases.
1961
e6d30fd6
TL
1962- A bug in nit.c for older SunOS machines was fixed by a patch sent in
1963 by Takeshi Hagiwara.
1964
6da9db9d
TL
1965- Fix a memory corruption bug in the DHCP client.
1966
1967- Lots of documentation updates.
1968
1969- Add a feature allowing environment variables to be passed to the
1970 DHCP client script on the DHCP client command line.
1971
1972- Fix client medium support, which had been broken for some time.
1973
1974- Fix a bug in the DHCP client initial startup backoff interval, which
1975 would cause two DHCPDISCOVERS to be sent back-to-back on startup.
1976
1977
af49fdff
TL
1978 Changes since 3.0 Beta 2 Patchlevel 15
1979
1980- Some documentation tweaks.
1981
1982- Maybe fix a problem in the DLPI code.
1983
1984- Fix some error code space inconsistencies in ddns update code.
1985
1986- Support relay agents that intercept unicast DHCP messages to stuff
1987 agent options into them.
1988
1989- Fix a small memory leak in the relay agent option support code.
1990
c5b569f8
TL
1991- Fix a core dump that would occur if a packet was sent with no
1992 options.
1993
754ae3e9
TL
1994 Changes since 3.0 Beta 2 Patchlevel 14
1995
1996- Finish fixing a long-standing bug in the agent options code. This
1997 was causing core dumps and failing to operate correctly - in
1998 particular, agent option stashing wasn't working. Agent option
1999 stashing should now be working, meaning that agent options can be
2000 used in class statements to control address allocation.
2001
2002- Fix up documentation.
2003
2004- Fix a couple of small memory leaks that would have added up
2005 significantly in a high-demand situation.
2006
2007- Add a log-facility configuration parameter.
2008
2009- Fix a compile error on some older operating systems.
2010
2011- Add the ability in the client to execute certain statements before
2012 transmitting packets to the server. Handy for debugging; not much
2013 practical use otherwise.
2014
2015- Don't send faked-out giaddr when renewing or bound - again, useful
2016 for debugging.
2017
2f2e7960
TL
2018 Changes since 3.0 Beta 2 Patchlevel 13
2019
2020- Fixed a problem where the fqdn decoder would sometimes try to store
2021 an option with an (unsigned) negative length, resulting in a core
2022 dump on some systems.
2023
2024- Work around the Win98 DHCP client, which NUL-terminates the FQDN
2025 option.
2026
2027- Work around Win98 and Win2k clients that will claim they want to do
2028 the update even when they don't have any way to do it.
2029
2030- Fix some log messages that can be printed when failover is operating
2031 that were not printing enough information.
2032
2033- It was possible for a DHCPDISCOVER to get an allocation even when
2034 the state machine said the server shouldn't be responding.
2035
2036- Don't load balance DHCPREQUESTs from clients in RENEWING and
2037 REBINDING, since in RENEWING, if we heard it, it's for us, and in
2038 REBINDING, the client wouldn't have got to REBINDING if its primary
2039 were answering.
2040
2041- When we get a bogus state lease binding state transition, don't do
2042 the transition.
2043
2044
66e98927
TL
2045 Changes since 3.0 Beta 2 Patchlevel 12
2046
2047- Fixed a couple of silly compile errors.
2048
a1e2e3d6
TL
2049 Changes since 3.0 Beta 2 Patchlevel 11
2050
2051- Albert Herranz tracked down and fixed a subtle bug in the base64
2052 decoder that would prevent any key with an 'x' in its base64
2053 representation from working correctly.
2054
2055- Thanks to Chris Cheney and Michael Sanders, we have a fix for the
2056 hang that they both spotted in the DHCP server - when
2057 one-lease-per-client was set, the code to release the "other" lease
2058 could spin.
2059
2060- Fix a problem with alignment of the input buffer in bpf in cases
2061 where two packets arrive in the same bpf read.
2062
2063- Fix a problem where the relay agent would crash if you specified an
2064 interface name on the command line.
2065
2066- Add the ability to conditionalize client behaviour based on the
2067 client state.
2068
2069- Add support for the FQDN option, and added support for a new way of
2070 doing ddns updates (ddns update style interim) that allows more than
2071 one DHCP server to update the DNS for the same network(s). This
2072 was implemented by Damien Neil with some additional functionality
2073 added by Ted Lemon.
2074
2075- Damien added a "log" statement, so that the configuration file can
2076 be made to log debugging information and other information.
2077
2078- Fixed a bug that caused option buffers not to be terminated with an
2079 end option.
2080
2081- Fixed a long-standing bug in the support for option spaces where the
2082 options are stored as an ordered list rather than in a hash table,
2083 which could theoretically result in memory pool corruption.
2084
2085- Prevent hardware declarations with no actual hardware address from
2086 being written as something unparsable, and behave correctly in the
2087 face of a null hardware address on input.
2088
2089- Allow key names to be FQDNs, and qualify the algorithm name if it is
2090 specified unqualified.
2091
2092- Modify the DDNS update code so that it never prints the "resolver
2093 failed" message, but instead says *why* the resolver failed.
2094
2095- Officially support the subnet selection option, which now has an
2096 RFC.
2097
2098- Fix a build bug on MacOS X.
2099
2100- Allow administrator to disable ping checking.
2101
2102- Clean up dhcpd.conf documentation and add more information about how
2103 it works.
2104
6c68ec36
TL
2105 Changes since 3.0 Beta 2 Patchlevel 10
2106
2107- Fix a bug introduced during debugging (!) and accidentally committed
2108 to CVS.
2109
9fd337e7
TL
2110 Changes since 3.0 Beta 2 Patchlevel 9
2111
2112- Fix DHCP client handling of vendor encapsulated options.
2113
2114- Fix a bug in the handling of relay agent information options introduced
2115 in patchlevel 9.
2116
2117- Stash agent options on client leases by default, and use the stashed
2118 options at renewal time.
2119
2120- Add the ability to test the client's binding state in the client
2121 configuration language.
2122
2123- Fix a core dump in the DNS update code.
2124
2125- Fix some expression evaluation bugs that were causing updates to be
2126 done when no client hostname was received.
2127
2128- Fix expression evaluation debugging printfs.
2129
2130- Teach pretty_print_option to print options in option spaces other than
2131 the DHCP option space.
2132
2133- Add a warning message if the RHS of a not is not boolean.
2134
2135- Never select for more than a day, because some implementations of
2136 select will just fail if the timeout is too long (!).
2137
2138- Fix a case where a DHCPDISCOVER from an unknown network would be
2139 silently dropped.
2140
2141- Fix a bug where if a client requested an IP address for which a different
2142 client had the lease, the DHCP server would reallocate it anyway.
2143
2144- Fix the DNS update code so that if the client changes its name, the DNS
2145 will be correctly updated.
2146
3922772a
TL
2147 Changes since 3.0 Beta 2 Patchlevel 8
2148
2149- Oops, there was another subtle math error in the header-length
2150 bounds-checking.
2151
2152 Changes since 3.0 Beta 2 Patchlevel 7
848c2547
TL
2153
2154- Oops, forgot to byte-swap udp header length before bounds-checking it.
2155
3922772a 2156 Changes since 3.0 Beta 2 Patchlevel 6
0f6045f8 2157
f8572308
TL
2158- Fix a possible DoS attack where a client could cause the checksummer
2159 to dump core. This was a read, not a write, so it shouldn't be
2160 possible to exploit it any further than that.
2161
2162- Implement client- and server-side support for using the Client FQDN
2163 option.
2164
2165- Support for other option spaces in the client has been added. This
2166 means that it is now possible to define a vendor option space on the
2167 client, request options in that space from the server (which must
2168 define the same option space), and then use those options in the
2169 client. This also allows NWIP and Client FQDN options to be used
2170 meaningfully.
2171
2172- Add object initializer support. This means that objects can now be
2173 initialized to something other than all-zeros when allocated, which
2174 makes, e.g., the interface object support code a little more robust.
2175
2176- Fix an off-by-one bug in the host stuffer. This was causing host
2177 deletes not the work, and may also have been causing OMAPI
2178 connections to get dropped. Thanks to James Brister for tracking
2179 this one down!
2180
2181- Fixed a core dump in the interface discovery code that is triggered
2182 when there is no subnet declaration for an interface, but the server
2183 decides to continue running. Thanks to Shane Kerr for tracking
2184 down and fixing this problem.
2185
2186 Changes since 3.0 Beta 2 Patchlevel 5
2187
0f6045f8
TL
2188- Fix a bug in the recent enhancement to the interface discovery code
2189 to support arbitrary-length interface lists.
2190
2191- Support NUL-terminated DHCP options when initializing client-script
2192 environment.
2193
2194- Fix suffix operator.
2195
2196- Fix NetWare/IP option parsing.
2197
2198- Better error/status checking in dhcpctl initialization and omapi
2199 connection code.
2200
2201- Fix a potential memory smash in dhcpctl code.
2202
2203- Fix SunOS4 and (maybe) Ultrix builds.
2204
2205- Fix a bug where a certain sort of incoming packet could cause a core
2206 dump on Solaris (and probably elsewhere).
2207
2208- Add some more safety checks in error logging code.
2209
2210- Add support for ISC_R_INCOMPLETE in OMAPI protocol connection code.
2211
2212- Fix relay agent so that if an interface is specified on the command
2213 line, the relay agent does not dump core.
2214
2215- Fix class matching so that match if can be combined with match or
2216 spawn with.
2217
2218- Do not allow spurious leases in the lease database to introduce
2219 potentially bogus leases into the in-memory database.
2220
2221- Fix a byte-order problem in the client hardware address type code
2222 for OMAPI.
2223
2224- Be slightly less picky about what sort of hardware addresses OMAPI
2225 can install in host declarations.
2226
801de092
TL
2227 Changes since 3.0 Beta 2 Patchlevel 4
2228
2229- Incorporated Peter Marschall's proposed change to array/record
2230 parsing, which allows things like the slp-agent option to be encoded
2231 correctly. Thanks very much to Peter for taking the initiative to
2232 do this, and for doing such a careful job of it (e.g., updating the
2233 comments)!
2234
2235- Added an encoding for the slp-agent option. :')
2236
6ed7a93d
TL
2237- Fixed SunOS 4 build. Thanks to Robert Elz for responding to my
2238 request for help on this with patches!
2239
2240- Incorporated a change that should fix a problem reported by Philippe
2241 Jumelle where when the network connection between two servers is
2242 lost, they never reconnect.
2243
2244- Fix client script files other than that for NetBSD to actually use
2245 make_resolv_conf as documented in the manual page.
2246
2247- Fix a bug in the packet handling code that could result in a core
2248 dump.
2249
2250- Fix a bug in the bootp code where responses on the local net would
2251 be sent to the wrong MAC address. Thanks to Jerry Schave for
2252 catching this one.
2253
490eb5e7
TL
2254 Changes since 3.0 Beta 2 Patchlevel 3
2255
2256- In the DHCP client, execute client statements prior to using the values
45d545f0 2257 of options, so that the client configuration can overridden, e.g., the
490eb5e7
TL
2258 lease renewal time.
2259
2260- Fix a reference counting error that would result in very reproducible
2261 failures in updates, as well as occasional core dumps, if a zone was
2262 declared without a key.
2263
2264- Fix some Linux 2.0 compilation problems.
2265
2266- Fix a bug in scope evaluation during execution of "on" statements that
2267 caused values not to be recorded on leases.
2268
2269- If the dhcp-max-message-size option is specified in scope, and the
2270 client didn't send this option, use the one specified in scope to
2271 determine the maximum size of the response.
2272
592d8153
TL
2273 Changes since 3.0 Beta 2 Patchlevel 2
2274
359b023e
TL
2275- Fix a case where spawning subclasses were being allocated
2276 incorrectly, resulting in a core dump.
2277
592d8153
TL
2278- Fix a case where the DHCP server might inappropriately NAK a
2279 RENEWING client.
2280
2281- Fix a place dhcprequest() where static leases could leak.
2282
2283- Include memory.h in omapip_p.h so that we don't get warnings about
2284 using memcmp().
2285
2aa36519
TL
2286 Changes since 3.0 Beta 2 Patchlevel 1
2287
2288- Notice when SIOCFIGCONF returns more data than fit in the buffer -
2289 allocate a larger buffer, and retry. Thanks to Greg Fausak for
2290 pointing this out.
2291
2292- In the server, if no interfaces were configured, report an error and
2293 exit.
2294
2295- Don't ever record a state of 'startup'.
2296
2297- Don't try to evaluate the local failover binding address if none was
2298 specified. Thanks to Joseph Breu for finding this.