1 Internet Systems Consortium DHCP Distribution 2 Version 4.4.3-P1 3 ? ????? 2022 4 Release Notes 5 6Please note that that ISC DHCP is licensed under the Mozilla Public 7License, MPL 2.0. Please see https://www.mozilla.org/en-US/MPL/2.0/ to read 8the MPL 2.0 license terms. 9 10NOTE: The client and relay components are now End-Of-Life. 114.4.3 is the final release for those components. 12 13For information on how to install, configure, and run this software, as 14well as how to find documentation and report bugs, please consult the 15README file. 16 17ISC DHCP uses the standard GNU configure command for installation. Please review the 18output of `./configure --help` to see what options are available. 19 20The system has only been tested on Linux and FreeBSD, and may not work on 21other platforms. Please subscribe to the dhcp-users mailing list at 22https://lists.isc.org/mailman/listinfo/dhcp-users and report any problems 23and/or suggested fixes to dhcp-users@lists.isc.org. 24 25ISC DHCP is open source software maintained by Internet Systems 26Consortium. This product includes cryptographic software written 27by Eric Young (eay@cryptsoft.com). 28 29 Changes since 4.4.3 (Bug Fixes) 30 31! Corrected a reference count leak that occurs when the server builds 32 responses to leasequery packets. Thanks to VictorV of Cyber Kunlun 33 Lab for reporting the issue. 34 [Gitblab #253] 35 CVE: CVS-2022-2928 36 37! Corrected a memory leak that occurs when unpacking a packet that has an 38 FQDN option (81) that contains a label whose lenght is greater than 63. 39 Thanks to VictorV of Cyber Kunlun Lab for reporting the issue. 40 [Gitblab #254] 41 CVE: CVS-2022-2929 42 43 Changes since 4.4.2-P1 (New Features) 44 45- Two new OMAPI function calls were added, `dhcpctl_timed_connect()` 46 and `dhcpctl_timed_wait_for_completion()`. These provide timed 47 versions of creating a connection and waiting for an operation 48 to complete. 49 [GitLab #76] 50 51- The BIND libraries have been updated to the latest version, 9.11.36. This fixes a number 52 of compilation issues on various systems, including OpenWRT. Thanks to 53 Philip Prindeville for testing on OpenWRT. 54 [GitLab #218, #171, #180, #192] 55 56- Support was added for the new DHCPv4 option v6-only-preferred, specified 57 in RFC 8925. A new reason code, V6ONLY, was added to the client script 58 and the client Linux script sample was updated. 59 [GitLab #132] 60 61 Changes since 4.4.2-P1 (Bug Fixes) 62 63- Minor corrections were made to allow compilation under gcc 10. 64 [GitLab #117] 65 66- The logic in dhclient that causes it to decline DHCPv4 leases if the 67 client script exits abnormally (i.e. crashes) has been corrected. 68 [GitLab #123] 69 70- The limit on the size of a lease file that can be loaded at startup 71 is now only enforced on 32-bit systems. 72 [GitLab #92] 73 74- The PRNG initialization has been improved. It now uses the configure flag 75 `--with-randomdev=PATH`, which specifies the device from which to read the 76 initial seed. That is typically `/dev/random` (the default value) or 77 `/dev/urandom`, but may be specified otherwise on the local system. The old 78 behavior can be forced by disabling this feature (`--with-randomdev=no`). 79 If the initialization is disabled or reading from the random device fails, 80 the previous algorithm (retrieve the last four bytes of hardware addresses 81 from all network interfaces that have them, and use the current time and 82 process ID) is used. 83 [GitLab #197] 84 85- A minor dhclient code fix was made to remove compilation warnings. 86 [GitLab #190] 87 88- The hard-coded MD5 algorithm name was removed in OMAPI connection logic. 89 Previously, using any other algorithm via a key-algorithm statement would 90 allow OMAPI connections to be made, but subsequent actions such as updating 91 an object would fail. 92 [GitLab #148] 93 94- The parallel build has been improved. Thanks to Sergei Trofimovich for 95 the patch. The parallel build is still experimental, as officially the 96 BIND 9 code does not support the parallel build for libraries. 97 [GitLab #91] 98 99- Handling of LDAP options (`ldap-gssapi-principal` and `ldap-gssapi-keytab`) 100 has been improved. This is contributed code that has not been tested by ISC. Thank 101 you to Petr Mensik and Pavel Zhukov for the patches! 102 [GitLab !56,!75] 103 104- It is now possible to use `option -g ipaddr` in the dhcrelay to replace the giaddr sent to 105 clients with the given ipaddr, to work around bogus clients like Solaris 11 106 grub which use giaddr instead of the announced router (3) to set up their 107 default route. Thanks to Jens Elkner for the patch! 108 [GitLab #223, !86, !92] 109 110 Changes since 4.4.2 (Bug Fixes) 111 112- Corrected a buffer overwrite possible when parsing hexadecimal 113 literals with more than 1024 octets. 114 [Gitlab #182] 115 CVE: CVE-2021-25217 116 117 Changes since 4.4.2b1 (Bug Fixes) 118 119- Added a clarification on DHCPINFORMs and server authority to 120 dhcpd.conf.5 121 [Gitlab #37] 122 123- Only emit lease scrubbing log messages when DEBUG_FAILOVER_MESSAGES 124 is defined. 125 [Gitlab #72] 126 127- Added the interface name to socket initialization failure log messages. 128 Prior to this the log messages stated only the error reason without 129 stating the target interface. 130 [Gitlab #75] 131 132- Corrected buffer pointer logic in dhcrelay functions that manipulate 133 agent relay options. Thanks to Thomas Imbert of MSRC Vulnerabilities 134 & Mitigations for reporting the issue. 135 [Gitlab #71] 136 137- Corrected unresolved symbol errors building relay_unittests when 138 configured to build using libtool. 139 [Gitlab #80] 140 141 Changes since 4.4.1 (New Features) 142 143- A new configuration parameter, ping-cltt-secs (v4 operation only), has 144 been added to allow the user to specify the number of seconds that must 145 elapse since CLTT before a ping check is conducted. Prior to this, the 146 value was hard coded at 60 seconds. Please see the server man pages for 147 a more detailed discussion. 148 [ISC-Bugs #36283] 149 150- A new configuration parameter, ping-timeout-ms (v4 operation only), 151 has been added that allows the user to specify the amount of time 152 the server waits for a ping-check response in milliseconds rather 153 than in seconds (via ping-timeout). When greater than zero, the value 154 of ping-timeout-ms will override the value of ping-timeout. Thanks 155 to Jay Doran from Bluecat Networks for suggesting this feature. 156 [Gitlab #10] 157 158- An experimental tool called, Keama (KEA Migration Assistant), which helps 159 translate ISC DHCP configurations to Kea configurations, is now included 160 in the distribution. 161 [Gitlab #34] 162 163 Changes since 4.4.1 (Bug Fixes) 164 165- Corrected a misuse of the BIND9 DDNS API which caused DDNS updates to be 166 carried out over TCP rather than UDP. The coding error was exposed by 167 migration to BIND9 9.11. Thanks to Jinmei Tatuya at Infoblox for 168 reporting the issue. 169 [ISC-Bugs #47757] 170 171- Bind9 now defaults to requiring python to build. The Makefile for 172 building Bind9 when bundled with ISC DHCP was modified to turn off 173 this dependency. 174 [Gitlab #3] 175 176- Corrected a dual-stack mixed-mode issue that occurs when both 177 ddns-guard-id-must-match and ddns-other-guard-is-dynamic 178 are enabled and that caused the server to incorrectly interpret 179 the presence of a guard record belonging to another client as 180 a case of no guard record at all. Thanks to Fernando Soto 181 from BlueCat Networks for reporting this issue. 182 [Gitlab #1] 183 184- Corrected a compilation issue that occurred when building without DNS 185 update ability (e.g. by undefining NSUPDATE). 186 [Gitlab #16] 187 188- Corrected an issue that was causing the server, when running in 189 DHPCv4 mode, to segfault when class lease limits are reached. 190 Thanks to Peter Nagy at Porion-Digital for reporting the matter 191 and submitting a patch. 192 [Gitlab #13] 193 194- Made minor changes to eliminate warnings when compiled with GCC 9. 195 Thanks to Brett Neumeier for bringing the matter to our attention. 196 [Gitlab #15] 197 198- Fixed potential memory leaks in parser error message generation 199 spotted by Coverity, CIDs: 1448191, 1448193, 1448194, 1448195 200 [Gitlab #30] 201 202- Updated URL of IEEE oui.txt in contrib/dhcp-lease-list.pl. Thanks 203 to Tommy Smith for contributing the patch. 204 [Gitlab #26] 205 206- Fixed define flags when using SO_BINDTODEVICE. Thanks to Joe LeVeque for 207 reporting the issue. 208 [GitLab #19] 209 210- Applied a patch from OpenBSD to always set the scope id of outbound 211 DHPCv6 packets. Note this change only applies when compiling under 212 OpenBSD. Thanks to Brad Smith at OpenBSD from bringing it to our 213 attention. 214 [Gitlab #33] 215 216- Modified dhclient to not discard config file leases that are 217 duplicates of server-provided leases and to retain such leases 218 after they have been used as the fallback active lease and 219 DHCP service has been restored. This allows them to be used 220 more than once during the lifetime of a dhclient instance. 221 This applies to DHCPv4 operation only. 222 [Gitlab #9] 223 224- Corrected a number of reference counter and zero-length buffer leaks. 225 Thanks to Christopher Ertl of MSRC Vulnerabilities & Mitigations for 226 pointing them out. 227 [Gitlab #57] 228 229- Closed a small window of time between the installation of graceful 230 shutdown signal handlers and application context startup, during which 231 the receipt of shutdown signal would cause a REQUIRE() assertion to 232 occur. Note this issue is only visible when compiling with 233 ENABLE_GENTLE_SHUTDOWN defined. 234 [Gitlab #53] 235 236- Corrected a buffer overflow that can occur when retrieving zone 237 names that are more than 255 characters in length. 238 [Gitlab #20] 239 240- The "d" domain name option format was incorrectly handled as text 241 instead of RFC 1035 wire format. Thanks to Jay Doran at BlueCat Networks 242 for reporting this issue. 243 [Gitlab #2] 244 245- Improved the error message issued when a host declaration has both 246 a uid and a dhcp-client-identifier. Server configuration parsing will 247 now fail if a host declaration specifies more than one uid. 248 [Gitlab #7] 249 250- Updated developer's documentation on building and running unit tests. 251 Removed support for --with-atf=bind as BIND9 no longer bundles in ATF 252 source. 253 [Gitlab #35] 254 255- Fixed a syntax error in ldap.c which cropped up under Ubuntu 256 18.04.1/gcc 7.4.0. Thanks to Charles Hedrick for pointing it out. 257 [Gitlab #51] 258 259- Added clarification to dhcp-options.5 section on ip-address values 260 describing the first-use DNS resolution of options with hostnames as 261 values (e.g. next-server). 262 [Gitlab #28] 263 264- The option format for the server option omapi-key was changed to a 265 format type 'k' (key name); while server options ldap-port and 266 ldap-init-retry were changed to 'L' (unsigned 32-bit integer). These 267 three options were inadvertantly broken when the 'd' format content 268 was changed to comply with RFC 1035 wire format (see Gitlab #2). 269 [Gitlab #68] 270 271 Changes since 4.4.0 (New Features) 272- none 273 Changes since 4.4.0 (Bug Fixes) 274 275- A delayed-ack value of 0 (the default), now correctly disables the delayed 276 feature. A change in 4.4.0 prohibited lease updates marking leases active 277 from be written to the lease file when delayed-ack is 0. This in turn, 278 caused servers to lose active lease assignments upon restart. 279 [ISC-Bugs #47141] 280 281! Option reference count was not correctly decremented in error path 282 when parsing buffer for options. Reported by Felix Wilhelm, Google 283 Security Team. 284 [ISC-Bugs #47140] 285 CVE: CVE-2018-5733 286 287! Corrected an issue where large sized 'X/x' format options were causing 288 option handling logic to overwrite memory when expanding them to human 289 readable form. Reported by Felix Wilhelm, Google Security Team. 290 [ISC-Bugs #47139] 291 CVE: CVE-2018-5732 292 293- Added use of new Bind9 compatibility header files, that are now necessary 294 to supply type definitions for primitive data types, removed from Bind9 295 proper. Altered util/bind.sh to pull from Bind9 repo on gitlab. 296 [ISC-Bugs #48072] 297 [ISC-Bugs #48071] 298 299 Changes since 4.4.0b1 (New Features) 300 301- Duplicate address detection when binding to a new IPv6 address was added 302 to the following dhclient scripts: linux,freebsd,netbsd,openbsd, and macos. 303 The scripts will check for DAD errors after binding to a new IPv6 address 304 for at most --dad-wait-time seconds. If a DAD error is detected the script 305 will exit with a value of 3, instructing dhclient to decline the address. If 306 dad-wait-time is zero (the default), DAD error checking is not peformed. 307 [ISC-Bugs 46805] 308 309- Support for sending and receiving additional DHCP4 options has been added 310 to both the dhcpd and dhclient. Specifically: option codes 93,94, and 97 311 (RFC 4578); code 150 (RFC 5859); and codes 209,219, and 211 (RFC 5071). 312 Beyond configuring, sending, requesting, and receiving these options neither 313 server nor client apply any additional logic based on their values. 314 Thanks to Peter Lewis for requesting this change. 315 [ISC-Bugs 47062] 316 317 Changes since 4.4.0b1 (Bug Fixes) 318 319- Added clarifying text to dhcpd.conf.5 explaining the class match expressions 320 cannot rely on the results of executable statements. 321 [ISC-Bugs #45451] 322 323- Fixed a bug which causes dhcpd and dhclient to crash on certain 324 systems when given relative path names for lease or pid files on 325 the command line. Affected systems are those on which the C library 326 function, realpath() does not support a second parameter value of 327 NULL (see manpages for realpath(3)). 328 [ISC-Bugs #46957] 329 330- Fixed a build issue when building with embedded BIND9 under OpenBSD that 331 was causing BIND9 build to not generate dns/enumclass.h and dns/enumtype.h. 332 [ISC-Bugs #46971] 333 334- Added <dhcp>/m4/README to the distribution tarball. Some versions of 335 ac_local() treat the absence of the m4 subdirectory as error rather than 336 warning. This was causing the call to autoreconf, necessary for building 337 with libtool, to fail. 338 [ISC-Bugs #47075] 339 340 Changes since 4.4.0a1 (New Features) 341 342- Added experimental support for relay port (draft-ietf-dhc-relay-port-10.txt) 343 feature for DHCPv4, DHCPv6 and DHCPv4-over-DHCPv6. Relay port has to be 344 enabled at compile time via --enable-relay-port and is fully backward 345 compatible (i.e. works with previous implementations of servers and relays 346 using the standard ports). A new --rp <relay-port> command line option 347 specifies to dhcrelay an alternate source port for upstream (i.e. toward 348 the server) messages. Thanks to Naiming Shen and Enke Chen of Cisco 349 systems for submitting these patches. 350 [ISC-Bugs #44535] 351 352- Added --release-on-roam to dhcpd server. When enabled and the server detects 353 that a DHCPv6 client (IAID+DUID) has roamed to a new network, it will release 354 the pre-existing leases on the old network and emit a log statement similar 355 to the following: 356 357 "Client: <id> roamed to new network, releasing lease: <address>" 358 359 The server will carry out all of the same steps that would normally occur 360 when a client explicitly releases a lease. This behavior is disabled by 361 default and may only be specified globally. Prior to this the server renders 362 the leases unavailable until they expire or the server is restarted. Clients 363 that need leases in multiple networks must supply a unique IAID in each IA. 364 When release-on-roam is disabled (the default) the server maintains the 365 prior behavior of making such leases unavailable until they expire or the 366 server is restarted. Clients that need leases in multiple networks must 367 supply a unique IAID in each IA. This parameter may only be specified at 368 the global level. Thanks to Fernando Soto from BlueCat Networks for 369 suggesting this change. 370 [ISC-Bugs #44576] 371 [ISC-Bugs #46849] 372 373- Support for delayed-ack is now compiled in by default. Prior to this 374 it had to be enabled at compile time via --enable-delayed-acks. The 375 default value for delayed-ack, however, has been changed from 28 to 0 376 (i.e. disabled). This was done to minimize the impact on users not 377 currently using the feature. Please note that the delayed-ack feature 378 is not currently compatible with support for DHPCv4-over-DHCPv6 so 379 when a 4to6 port command line argument enables this in the server the 380 delayed-ack value is reset to 0. 381 [ISC-Bugs #42446] 382 383- The server (-6) now honors the parameter, update-static-leases, for static 384 (fixed-address6) DHCPv6 leases. It is worth noting that because stateful 385 data is not retained by the server for static leases, each time a client 386 requests or renews a static lease, the server will perform DDNS updates for 387 it. This may have significant performance implications for environments 388 with many clients that request or renew static leases often. Similarly, 389 the DNS entries will not be removed by server when a client issues a RELEASE 390 nor if the lease is deleted from the configuration. In such cases the DNS 391 entries must be removed manually. This feature is disabled by default. 392 Thanks to both Bill Shirley and dgutier-at-cern-dot-ch for requesting 393 this change. 394 [ISC-Bugs #34097] 395 [ISC-Bugs #41054] 396 [ISC-Bugs #41450] 397 398- Added to the server (-6) a new statement, local-address6, which specifies 399 the source address of packets sent by the server. An additional flag, 400 bind-local-address6, disabled by default, binds the service socket to 401 to local-address6. Note that bind-local-address does not work with direct 402 clients: a relay has to forward packets to the server using the 403 local-address6 destination. 404 [ISC-Bugs #46084] 405 406 Changes since 4.4.0a1 (Bugs) 407 408- The server now recognizes environment variables PATH_DHCPD_DB and 409 PATH_DHCPD_PID. These had been incorrectly compiled out of the code 410 unless DHCPv6 support was disabled. Additionally, the server man 411 pages were corrected to accurately reflect how the server chooses 412 file names (see lease-file-name and pid-file-name statements). Thanks 413 to Fernando Soto at Bluecat Networks for bringing this matter to our 414 attention. 415 [ISC-Bugs #46859] 416 417- Removed an "Impossible condition" error upon exit in the dhcpd server that 418 has been shutdown via OMAPI. This condition was only apparent under Solaris 419 when building with --enable-use-sockets and --enable-ipv4-pktinfo. 420 [ISC-Bugs #36118] 421 422- Corrected some minor Coverity issues: CID 1426059, 1426058, and 1426057. 423 [ISC-Bugs #46836] 424 425- Added missing text to dhclient.8 and expanded release note coverage 426 for --address-prefix-len changes. 427 428 Changes since 4.3.6 (New Features) 429 430- Added --enable-bind-install to install embedded bind includes and 431 libraries. Default is to not install them (it was the previous 432 behavior). If you'd like to change the includedir and/or libdir 433 installation directories to something different than for ISC DHCP 434 you must pass them using the --with-bind-extra-config configuration 435 arguments. 436 [ISC-Bugs #39318] 437 438- Added support of dynamic shared libraries with libtool. A new 439 --enable-libtool configuration parameter is available but 440 should not be used directly: *please* read the build configuration 441 section in the README file for the recommended procedure. 442 [ISC-Bugs #29402] 443 444- IPv6 operation now supports an EUI-64 based address allocation which will 445 calculate addresses for clients with EUI-64 DUIDs based on those DUIDs when 446 enabled by setting use-eui-64 true. The parameter may defined down to the 447 pool scope. Note this feature must be compiled in by defining EUI_64 in 448 includes/site.h. This flag is undefined by default. 449 [ISC-Bugs #43927] 450 451- The directory includes/isc-dhcp and it's only occupant, dst.h, have 452 been removed from the source tree. They are obsolete for branches 453 other than v4_1_esv. 454 [ISC-bugs #45541] 455 456- Replaced ISC licensing with Mozilla Public License, MPL 2.0 licensing 457 throughout. Please see https://www.mozilla.org/en-US/MPL/2.0/ to read 458 the MPL 2.0 license terms. 459 [ISC-Bugs #45541] 460 461- Load balancing for failover peers can now be disabled by setting 462 "load balance max secs" to 0. Doing so for both peers means both 463 servers will respond to all DHCPDISCOVERs or DHCPREQUESTs as soon as 464 they are received. 465 [ISC-Bugs #39669] 466 467- Added a new dhclient command line parameter, --prefix-len-hint <length>. 468 When used in conjunction with -P, it directs dhclient to use the given 469 length as the prefix length hint when requesting prefixes. Thanks to both 470 Indy, of the FireballISO open source project and H. Peter Anvin for 471 suggesting this change. 472 [ISC-Bugs #43792] 473 [ISC-Bugs #35112] 474 [ISC-Bugs #32228] 475 [ISC-Bugs #29470] 476 477- dhclient will now wait for 10 seconds after declining an IPv4 address 478 before issuing a discover. This is in keeping with RFC 2131, section 3.1.5. 479 Prior to this dhclient did not wait at all. The amount of time dhclient 480 waits can be specified via a new command line parameter: 481 --decline-wait-time <seconds>. A value of zero equates to no wait at all. 482 Thanks to Pavel Kankovsky for bringing this matter to our attention. 483 **NOTE: THIS IS CHANGE IN DEFAULT BEHAVIOR. 484 [ISC-Bugs #45457] 485 486- dhclient will now include the lease address when logging DHCPOFFERs, 487 DHCPREQUESTs, DHCPACKs, DHCPRELEASEs, and DHCPDECLINEs. Additionally, 488 DHCPOFFERs will be logged before their corresponding DHCPREQUESTs are 489 sent and logged. 490 [ISC-Bugs #2729] 491 492- When given the -T command line argument, in addition to reading the 493 current lease file, the server will write the leases to a temporary 494 lease file. This can help detect issues in server configuration that 495 only surface when leases are written to the file. The current lease 496 file will not be modified and the temporary lease file is removed upon 497 completion of the test. 498 [ISC-Bugs #22267] 499 500- dhclient will now generate a DHCPv6 DECLINE message containing all IA_NA 501 addresses which for which the client script indicates a DAD failure. After 502 receiving the DECLINE reply, dhclient will restart the solicit process. 503 Note, the client script must exit with a value of 3 to signify that the 504 address failed DAD. Thanks to Jiri Popelka of Red Hat for submitting the 505 patch that was the foundation for this change. 506 **NOTE: THIS IS CHANGE IN DEFAULT BEHAVIOR. 507 [ISC-Bugs #21237] 508 [ISC-Bugs #23357] 509 [ISC-Bugs #36966] 510 511- Replaced compilation option, enable-secs-byteorder, with a run-time, server 512 configuration parameter, check-secs-byte-order. When enabled, the 513 server will check for clients that do the byte ordering on the secs field 514 incorrectly. This field should be in network byte order but some clients 515 get it wrong. When this parameter is enabled the server will examine the 516 secs field and if it looks wrong (high byte non zero and low byte zero) swap 517 the bytes. The default is disabled. This parameter is only useful when 518 doing load balancing within failover. 519 [ISC-Bugs #45364] 520 521- The default value for server (-6) parameter, prefix-length-mode, has been 522 changed from "exact" to "prefer". In "prefer" mode the server will offer 523 the first available prefix with the same length as that requested by the 524 client. If none are found then it will offer the first available prefix of 525 any length. This is more in line with with RFC 8168 and should improve 526 the out-of-the-box user experience. 527 **NOTE: THIS IS CHANGE IN DEFAULT BEHAVIOR. 528 [ISC-Bugs #45615] 529 530- Added support for 'dhcp-cache-threshold' to IPv6 operation: If a client 531 renews before 'dhcp-cache-threshold' percent of its lease has elapsed 532 (default 25%), the server will reuse the allocated lease (provide a 533 lease within the currently allocated lease-time) rather than extend or 534 renew the lease. This allows the server to reply without needlessly 535 writing leases to disk. The preferred and valid lease lifetimes 536 sent to the client will be reduced by the age of the lease. The option 537 may be specified down to the pool level and is supported for all three 538 pool types: NA, TA, and PD. 539 [ISC-Bugs #45292] 540 541- Added three new server configuration parameters which influence DDNS: 542 1. ddns-dual-stack-mixed-mode - alters DNS conflict resolution behavior 543 to mitigate issues with non-compliant clients in dual stack environments. 544 545 2. ddns-guard-id-must-match - relaxes the DHCID RR client id matching 546 requirement of DNS conflict resolution. 547 548 3. ddns-other-guard-is-dynamic - alters dual-stack-mixed-mode behavior to 549 allow unguarded DNS entries to be overwritten in certain cases 550 [ISC-Bugs #42620] 551 [ISC-Bugs #42621] 552 [ISC-Bugs #44753] 553 554- A "key-algorithm <algorithm>" statement has been added to omshell to 555 allow the specification of the key algorithm to use during transaction 556 authentication. Prior to this it was hard-coded to be hmac-md5. It now 557 supports all of the same algorithms as the dhcpd server: hmac-md5 (the 558 default), hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha384, and hmac-sha512. 559 [ISC-Bugs #46771] 560 561- Added a server configuration parameter, persist-eui-64-leases, which 562 determines whether or not EUI-64 based leases are written to the 563 leases file. Default is true. 564 [ISC-Bugs #45046] 565 566- Changed the default value of the prefix length passed by dhclient into the 567 client script for each IPv6 address from 64 to 128. This was done to comply 568 with RFC3315bis draft (-09, page 64) and RFC5942, Section 4, point 1. 569 In addition, dhclient now supports a command line argument, 570 --address-prefix-len, which may be used to override the default value. 571 **WARNING**: This change may not be backwardly compatible with your 572 environment. If you are operating without a router, such as between VMs on 573 a host, you may find they cannot see each with prefix length of 128. In 574 such cases, you'll need to either provide routing or use the command line 575 parameter to set the value to 64. Alternatively you may change the default 576 at compile time by setting DHCLIENT_DEFAULT_PREFIX_LEN in includes/site.h. 577 [ISC-Bugs #23252] 578 [ISC-Bugs #37221] 579 580- Modified dhclient (-6) to bypass sending a confirm (INIT REBOOT) when it has 581 only expired address associations. Thanks to Jiri Popelka at Red Hat for 582 raising the issue and submitting the patch. 583 [ISC-Bugs #22675] 584 Changes since 4.3.6 (Bugs): 585 586- Corrected an issue where the server would return a client's previously 587 released prefix lease even when the client provides a prefix length 588 hint that does not match the prior lease. Now the server will only 589 return the previous lease if it exactly matches the hint. If not 590 it will attempt to allocate a new prefix based on the hint and the 591 prefix-length-mode. Thanks to Tim DeNike - Lightspeed Communications 592 for pointing out the error of our ways. 593 [ISC-bugs #45780] 594 595- Added explicit include of BIND9 isc/util.h to adapt to revisions 596 in BIND9 (see BIND9 ticket #46311). Prior to this the build was failing 597 with implicit function declarations errors for POST() and INSIST(). 598 [ISC-bugs #46332] 599 600- Added to code ignore empty IPv4 host name option (code 12). While RFC 2132 601 states the option cannot be empty, some clients are apparently capable of 602 sending it. Prior to this the server was attempting to use it and store it 603 in the lease file causing issues with DDNS and so forth. 604 [ISC-bugs #43786] 605 606- Corrected dhclient command line parsing for --dad-wait-time that causes 607 even valid values to fail as invalid on some environments. 608 [ISC-Bugs #46535] 609 610- Replaced iasubopt::heap_index with separate values for active and inactive 611 heaps: iasubopt::active_index and iasubopt::inactive_index. This was done 612 to accommodate a change in behavior in BIND9 isc_heap_delete(). 613 [ISC-bugs #46719] 614 615! Plugged a socket descriptor leak in OMAPI, that can occur when there is 616 data pending to be written to an OMAPI connection, when the connection 617 is closed by the reader. Thanks to Pavel Zhukov at RedHat for bringing 618 this issue to our attention and whose patch helped guide us in the right 619 direction. 620 [ISC-Bugs #46767] 621 622- The ability of the server to send back dhcp6.vendor-opts values has been 623 restored. A change in 4.3.5 (see #29246) which enabled it to send back the 624 FQDN option unfortunately broke its ability send back dhcp6.vendor-opts. 625 Thanks to Sumant Gupta (sumantgupta at gmail dot com) of Landis+Gry for 626 bringing this issue to our attention. 627 [ISC-Bugs #46427] 628 629 Changes since 4.3.6b1 630 631- None 632 633 Changes since 4.3.5 634 635- The server now allows the client identifier (option 61) to own leases 636 in more than one subnet concurrently. Prior to this the server would 637 incorrectly release an existing lease in one subnet prior to assigning 638 a lease in another subnet. Note that the prior behavior can be still 639 be achieved by enabling one-lease-per-client. Thanks to both David Zych at 640 the University of Illinois and Norm Proffitt of Infoblox for reporting 641 the issue; and Norm for suggesting a solution. 642 [ISC-Bugs #41358] 643 644- When replying to a DHCPINFORM, the server will now include options specified 645 at the pool scope, provided the ciaddr field of the DHCPINFORM is populated. 646 Prior to this the server only evaluated options down to the subnet scope. 647 Thanks to Fernando Soto at BlueCat Networks for reporting the issue. 648 [ISC-Bugs #43219] 649 [ISC-Bugs #45051] 650 651- When memory allocation fails in a repeated way the process writes 652 "Run out of memory." on the standard error and exists with status 1. 653 [ISC-Bugs #32744] 654 655- The new lmdb (Lightning Memory DataBase) bind9 configure option is 656 now disabled by default to avoid the presence of this library to be 657 detected which can lead to a link failure. 658 [ISC-Bugs #45069] 659 660- The linux interface discovery code has been modified to use getifaddrs() 661 as is done for BSD and OS-X. Prior to this the code would only recognize 662 the first address on an interface and thereby omit vlans. 663 Thanks to Jiri Popelka at Redhat, Marius Tomaschewski at SUSE, and Wei 664 Kong at Novell, who all submitted patches. 665 [ISC-Bugs #28761] 666 [ISC-Bugs #31992] 667 [ISC-Bugs #25428] 668 [ISC-Bugs #31940] 669 [ISC-Bugs #32935] 670 671- Fixed a bug in OMAPI that causes omshell to crash when a name-value 672 pair with a zero length value is shipped in an object. Thanks to 673 Fernando Soto at BlueCat Networks for reporting the issue and 674 supplying the patch. 675 [ISC-Bugs #29108] 676 677- On 64-bit platforms, dhclient now generates the correct value for the 678 script environment variable, "expiry", the lease expiry value exceeds 679 0x7FFFFFFF. Prior to this such values would produce negative values 680 for expiry in the script environment. 681 [ISC-Bugs #43326] 682 683- Common timer logic was modified to cap the maximum timeout values at 684 0x7FFFFFFF - 1. Values larger than that were causing fatal timer out of 685 range errors on 64-bit platforms. Thanks to Jiri Popelka at Red Hat for 686 reporting the issue. 687 [ISC-Bugs #28038] 688 689- DHCP6 FQDN option unpacking code now correctly handles values that contain 690 spaces, special, or non-printable characters. Prior to this the buffer 691 size needed was underestimated causing a conversion error message to 692 be logged and DNS updates to be skipped. Thanks to Fernando Soto at 693 BlueCat Networks for bringing the matter to our attention. 694 [ISC-Bugs #43592] 695 696- When running in -6 mode, dhclient can enforce the require option statement 697 and will discard offered leases that do not contain all the required 698 options specified in the client configuration. If not enabled the client 699 will still consider such leases. This must be enabled at compile time 700 (see ENFORCE_DHCPV6_CLIENT_REQUIRE in includes/site.h). Thanks to 701 Mritunjaykumar Dubey at Nokia for reporting the issue. 702 [ISC-Bugs #41473] 703 704- Altered DHCPv4 lease time calculation to avoid roll over errors on 64-bit 705 OS systems when using -1 or large values for default-lease-time. Rollover 706 values will be replaced with 0x7FFFFFFF - 1. This alleviates unintentionally 707 short expiration times being handed out when infinite lease times (-1) in 708 conjunction with failover. Our thanks to Alessandro Gherardi for bringing 709 the issue to our attention. 710 [ISC-Bugs #41976] 711 712- Added new compile time option --with-srv-conf-file which specifies a 713 default location of the server configuration file. 714 [ISC-Bugs #44765] 715 716- Added --dad-wait-time parameter to dhclient. It specifies the maximum time, 717 in seconds, that the client process should wait for the duplicate address 718 detection to complete before initiating DHCP requests. This value is 719 propagated to the dhclient script and the script is responsible for waiting 720 the specified amount of time or until DAD has completed. If the script does 721 not support it, specifying this parameter has no effect. The default value 722 is 0 which specifies that the script should not wait for DAD. With this 723 change the following scripts have been modified to support the new parameter: 724 freebsd, linux, macos, netbsd, openbsd. 725 [ISC-Bugs #36169] 726 727- The server nows checks both the address and length of a prefix delegation 728 when attempting to match it to a prefix pool. This ensures the server 729 responds properly when pool configurations change such that once valid, 730 "in-pool" delegations are now treated as being invalid. During lease 731 file loading at startup, the server will discard any PD leases that 732 are deemed "out-of-pool" either by address or mis-matched prefix length. 733 Clients seeking to renew or rebind such leases will get a response of 734 No Binding in the case of the former, and the prefix delegation with 735 lifetimes set to zero in the case of the latter. Thanks to Mark Nejedlo 736 at TDS Telecom for reporting this issue. 737 [ISC-Bugs #35378] 738 739- Modified DDNS support initialization such that DNS related ports will only be 740 opened by the server (dhcpd) at startup if ddns-update-style is not "none"; 741 by dhclient only if and when the it first attempts an update; and never by 742 dhcrelay. Prior to this all three always did the initialization at startup 743 which causes them to always open on and listen for traffic on two random 744 ports. Thanks to Rodney Beede for reporting this issue. 745 [ISC-Bugs #45290] 746 [ISC-Bugs #33377] 747 748- Added error logging to two memory allocation failure checks. Thanks to Bill 749 Parker (wp02855 at gmail dot com) for reporting the issue. 750 [ISC-Bugs #41185] 751 752- Corrected a dhclient -6 issue that caused the client to crash with an 753 "Impossible condition" error after de-preferencing its only IA binding. 754 The crash occurred when server configuration changes rendered the existing 755 binding out-of-range and no other leases were available to offer. Thanks 756 to Pierre Clerissi for bringing this issue to our attention. 757 [ISC-Bugs #44373] 758 759- By defining CALL_SCRIPT_ON_ONETRY_FAIL in includes/site.h, dhclient will 760 now call the script with reason set to FAIL when run with -1 (one try) and 761 there are no server responses. This applies to IPv4 mode only. Thanks for a 762 patch by Martin Pitt which got to us via Andrew Pollock. 763 [ISC-bugs #18183] 764 765- The server now detects failover peers that are not referenced in at least 766 one pool when run with the command line option for test mode, -T. Prior to 767 this the check was performed too far down stream to be detected in test mode. 768 [ISC-Bugs #29892] 769 770- Linux script updated. The script is now based on Debian version. It uses 771 ip tool from iproute2 package and ifconfig is no longer used. This also 772 addresses an issue of calling arping with inappropriate parameter. 773 [ISC-bugs #19430] 774 [ISC-bugs #18111] 775 776- Changed severity of the log message indicating UDP checksum errors in 777 the received packets from 'info' to 'debug' to avoid logging excessive 778 number of false positives when UDP checksum offloading is enabled. 779 [ISC-bugs #41757] 780 781- The directory minires has been removed from the source tree. It has 782 long been obsolete for branches other than v4_1_esv. Additionally, 783 includes/minires.h was renamed includes/ns_name.h. 784 [ISC-bugs #45471] 785 786- Replaced ifconfig parameters "add" and "delete" with "alias" and "-alias" 787 for IPv6 mode in the client scripts, netbsd and openbsd. This was 788 preventing IPv6 addresses from being added or removed from interfaces. 789 Thanks to Tim Dean for reporting this issue. 790 [ISC-bugs #31573] 791 792 Changes since 4.3.5b1 793 794- Corrected a bug which could cause the server to sporadically crash while 795 loading lease files with the lease-id-format is set to "hex". Our thanks 796 to Jay Ford, University of Iowa for reporting the issue. 797 [ISC-Bugs #43185] 798 799- Eliminated a noisy, but otherwise harmless debug log statment that may 800 appear during server startup when building with --enable-binary-leases 801 and configuring multiple pools in a shared network. Thanks to Fernando 802 Soto from BlueCat Networks for reporting the issue and supplying a patch. 803 [ISC-Bugs #43262] 804 805 Changes since 4.3.4 806 807- Fixed util/bindvar.sh error handling. 808 [ISC-Bugs #41973] 809 810- Correct error message in relay to use remote id length instead 811 of circuit id length. 812 [ISC-Bugs #42556] 813 814- Add logic to test directory Makefiles to avoid copying Attfile(s) 815 when building within the source tree. This eliminates a noisy but 816 otherwise harmless error message when running "make check". 817 [ISC-Bugs #41883] 818 819- Leases are now scrubbed of certain prior use information when pool 820 re-balancing reassigns them from one FO peer to the other. This 821 corrects an issue where leases that were offered but not used 822 by the client retained the client hostname from the original 823 client. Thanks to Pavel Polacek, Jan Evangelista Purkyne University 824 for reporting the issue. 825 [ISC-Bugs #42008] 826 827- In the LDAP code and schema add some missing '6' characters to use 828 the v6 instead of the v4 versions. Thanks to Denis Taranushin for 829 reporting this issue and supplying its patch. 830 [ISC-Bugs #42666] 831 832- Correct how the pick-first-value expression is written to a lease 833 file. Previously it was written as a concat expression due to 834 a cut and paste error. 835 [ISC-Bugs #42253] 836 837- Modify the DDNS code to clean up the PTR record even if there 838 are issues while cleaning up the A or AAAA records. 839 [ISC-Bugs #23954] 840 841- Added global configuration parameter, abandon-lease-time, which determines 842 the amount of time a lease remains abandoned. The default is 84600 seconds. 843 Additionaly, the server now conducts a ping check (if ping checks are 844 enabled) prior to offering an abandoned lease to client. Our thanks to 845 David Zych at University of Illinois for reporting the issue and working 846 with us to produce a viable solution. 847 [ISC-Bugs #41815] 848 849- Correct handling of interface names during interface discovery. This 850 addresses an issue where interface names of 15 characters in length 851 could lead to crashes or interface recognition errors during startup 852 of dhcpd, dhclient, and dhcrelay. 853 [ISC-Bugs #42226] 854 855- Updates to contrib/dhcp-lease-list.pl to make it more friendly. 856 The updates are: looking for the lease file in more places and skipping 857 the "processing complete" output when creating machine readable 858 output. Thanks to Cameron Paine (cbp at null dot net) for the 859 patch. 860 [ISC-Bugs #42113] 861 862- When reusing a lease for dhcp-cache-threshold return the hostname 863 to the original lease. Also if the host pointer, UID or hardware address 864 change don't allow reuse of the lease. 865 Thanks to Michael Vincent for reporting this and helping us 866 verify the problem and fix. 867 [ISC-Bugs #42849] 868 869- Change dmalloc to use a size_t as the length argument to bring it 870 in line with the call it will make to malloc(). 871 [ISC-Bugs #40843] 872 873- If the failover socket can't be bound, close it. Otherwise if the 874 user configures an incorrect address in the failover stanza the 875 server will continue to open new sockets every 90 seconds until 876 it runs out. 877 [ISC-Bugs #42452] 878 879- Add DHCPv4-mode, dhcrelay command line options, "-iu" and "-id", that 880 allow interfaces to be upstream or downstream respectively. Upstream 881 interfaces will accept and forward only BOOTP replies, while downstream 882 interfaces will accept and forward only BOOTP requests. 883 [ISC-Bugs #41547] 884 885- Clean up some memory references in the vendor-class construct. 886 [ISC-Bugs #42984] 887 888 Changes since 4.3.4b1 889 890- None 891 892 Changes since 4.3.3 893 894- Corrected a static analyzer warning in common/execute.c 895 [ISC-Bugs #40374] 896 897- ISC DHCP now follows the common convention to use the base name a 898 program is invoked with (aka argv[0], vs. a builtin name) for 899 logs. This should help differentiate syslog entries for DHCPv4 and 900 DHCPv6 servers. You can define OLD_LOG_NAME in includes/site.h to 901 keep the previous behavior. 902 [ISC-Bugs #38692] 903 904- The Linux packet filter code now correctly treats only the least significant 905 12 bits in an inbound packet's TCI value as the VLAN id (per IEEE 802.1Q). 906 Prior to this it was using the entire 16 bit value as the VLAN id and 907 incorrectly discarding packets. Thanks to Jiri Popelka at Red Hat for 908 reporting this issue and supplying its patch. 909 [ISC-Bugs #40591] 910 911- Fixed several static analysis issues such as potential null 912 references, unchecked strdup returns. Thanks to Bill Parker (wp02855 at 913 gmail dot com) who identified these issues and supplied patches to 914 address them. 915 [ISC-Bugs #40754] 916 [ISC-Bugs #40823] 917 918- Corrected compilation errors that prohibited building the server 919 and its ATF unit tests when failover is disabled. 920 [ISC-Bugs #40372] 921 922- Added the lease address to the end of the debug level log message 923 emitted when an existing lease is renewed within the dhcp-cache-threshold. 924 Thanks to Nathan Neulinger at Missouri S&T for suggesting the change. 925 [ISC-Bugs #40598] 926 927- Added dhcpv6 and delayed-ack to settings listed in the "Features:" 928 section of the configure script output. Additionally, all of the 929 features reported on will now always show either a "yes" or "no" 930 value. Prior to this features left to their default setting would 931 not show a value. 932 [ISC-Bugs #40381] 933 934- Added a parameter, authoring-byte-order, to the lease file. This value 935 is automatically added to the top of new lease files by the server and 936 indicates the internal byte order (big endian or little endian) of the 937 server. This permits lease files generated on a server with one form of 938 byte order to be used on a server with the opposite form. Our thanks to 939 Timothe Litt for calling this to our attention and for the suggestions 940 he provided. 941 [ISC-Bugs #38396] 942 943- Fixed a small memory leak in the DHCPv6 version of the client code. 944 This is unlikely to cause significant issues in actual use. 945 [ISC-Bugs #40990] 946 947- Corrected a few minor memory leaks in omapi's dereferencing of 948 host objects. Thanks to Jiri Popelka at Red Hat for reporting 949 the issue and supplying the patches. 950 [ISC-Bugs #33990] 951 [ISC-Bugs #41325] 952 953- Cleaned up some of the Make infrastructure to make --with-libbind 954 work better. Though it still only works with an absolute path. 955 [ISC-Bugs #39210] 956 957- Made the embedded bind libraries able to be cross compiled 958 (please refer to the bind9 documentation to learn how to cross 959 compile DHCP and its bind library dependency). 960 [ISC-Bugs #38836] 961 962- Update the client code to better support getting IA_NAs and IA_PDs 963 in the same packet, see RFC7550 for some discussion. 964 [ISC-Bugs #40190] 965 966! Update the bounds checking when receiving a packet. 967 Thanks to Sebastian Poehn from Sophos for the bug report and a suggested 968 patch. 969 [ISC-Bugs #41267] 970 CVE: CVE-2015-8605 971 972- When handling an incorrect command line for dhcpd, dhclient or dhcrelay 973 print out a specific error message about the first error in addition 974 to the usage string. This may be disabled by editing includes/site.h. 975 [ISC-Bugs #40321] 976 [ISC-Bugs #41454] 977 978- The configure script will now exit with an error message if it cannot find 979 a GNU-style make tool (needed when building BIND libraries) or pkg-config 980 (needed to locate ATF used for building unit tests). Prior to this the 981 script would exit indicating success causing subsequent attempts to build 982 the software to fail. 983 [ISC-Bugs #40371] 984 985- Properly terminate strings before passing them to regex and fix 986 a boundary error when creating certain new data strings. 987 Thanks to Andrey Jr. Melnikov for the bug report. 988 [ISC-Bugs #41217] 989 990- Option expressions, such as prepend and append, are now supported when 991 running dhclient for IPv6. Prior to this such statements in the 992 client configuration file would be parsed but have no affect. Thanks 993 to Jiri Popelka at Red Hat for reporting the issue. 994 [ISC-Bugs #39952] 995 996- A failover primary server will now accept a binding status update from the 997 secondary which transitions a lease from ACTIVE to ABANDONED. This accounts 998 for instances in which a client declines a lease and only the secondary 999 server receives it. Prior to this the primary server would reject such an 1000 update as an "invalid state transition". 1001 [ISC_BUGS #25189] 1002 1003- Properly allocate memory for a bpf filter. 1004 Thanks to Bill Parker (wp02855 at gmail dot com) who identified this issue. 1005 [ISC-Bugs #41485] 1006 1007- Updated contrib/dhcp-lease-list.pl to handle garbage in the oui file better 1008 and to print out the hostnames a bit better. 1009 Thanks to Antoine Beaupré from Debian for the suggested patch. 1010 [ISC-Bugs #41288] 1011 1012- The DHCPv6 server now handles long valid and preferred lease times better. 1013 Values that would cause the internal end time of the lease to wrap are 1014 modified to work as infinite. 1015 [ISC-Bugs #40773] 1016 1017- Updated support for cross compiling by allowing the library archiver 1018 to be set at configure time via the environment variable 'AR'. 1019 [ISC-Bugs #41536] 1020 1021- The server will now match DHCPv6 relayed clients to host declarations 1022 which include the "hardware" statement, if the relay connected to the 1023 client supplies the client's hardware address via client-linklayer-address 1024 option as per RFC 6939. 1025 [ISC-Bugs #40334] 1026 1027- Allow a filename to be specified instead of /dev/random during 1028 configuration. This is passed to the BIND configuration to allow 1029 for cross compilation. 1030 [ISC-Bugs #33835] 1031 1032- Add more option definitions. 1033 [ISC-Bugs #40562] 1034 1035- Correct outputting of long lines in the lease file when writing 1036 a lease that includes long strings in an execute statement. 1037 [ISC-Bugs #40994] 1038 1039- The server will now correctly treat a lease as reserved when the client 1040 requests an infinite lease time (i.e. OxFFFFFFFF) and "infinite-is-reserved" 1041 is enabled. Prior to this the server would halt. In addition, corrections 1042 were made to the server to allow a lease's flags field to be set via omapi. 1043 Prior to this, the server, depending on the host architecture, would 1044 incorrectly parse the new flags value from the omapi message. 1045 [ISC-Bugs #31179] 1046 1047- ISC DHCP can now be configured and built from a directory other than 1048 the top level source directory. Note that "make distcheck" uses this 1049 feature. 1050 [ISC-Bugs #39262] 1051 1052- Add support for RFC 3527 to dhcrelay. A new, dhcrelay command line argument, 1053 "-U <interface>" enables the addition of a RFC 3527 compliant link selection 1054 suboption to the agent option added for clients directly connected to the 1055 relay. 1056 [ISC-Bugs #34875] 1057 [ISC-Bugs #41708] 1058 1059- Add a new global DHCPv6 option, dhcpv6-set-tee-times, which when enabled 1060 instructs the server to calculate T1 and T2 as recommended in RFC 3315, 1061 Section 22.4. 1062 [ISC-Bugs #25687] 1063 1064- Corrected minor Coverity issues. 1065 [ISC-Bugs #35144] 1066 1067- Add support for RFC 7341 DHCPv4 over DHCPv6 with a new configuration 1068 option "--enable-dhcpv4o6". Note this feature requires DHCPv6 support 1069 and is not compatible with delayed-ack. Both client and server use 2 1070 processes which communicate over UDP on a pair of sockets. The new 1071 "-4o6 <port>" command line argument enables DHCPv4 over DHCPv6 support 1072 and specifies the consecutive ports to use for inter-process communication. 1073 Please look at doc/DHCPv4-over-DHCPv6 for more details. 1074 [ISC-Bugs #35711] 1075 1076- Correct interface name formation when using DLPI under Solaris 11. As of 1077 Solaris 11, ethernet device files are located in "/dev/net". The configure 1078 script has been modified to detect this situation and adjust the directory 1079 used accordingly. Thanks to Jarkko Torppa for reporting this issue and 1080 submitting a patch 1081 [ISC-Bugs #37954] 1082 [ISC-Bugs #40752] 1083 1084- Add a dereference call when handling an error condition while 1085 decoding a packet. 1086 [ISC-Bugs #41774] 1087 1088- Add a new parameter, lease-id-format, to both dhcpd and dhclient. The 1089 parameter controls the format in which certain values are written to lease 1090 files. Formats supported are octal - quoted string containing octal 1091 escapes, and hex - unquoted, colon separated hex digits. Thanks to 1092 Jay Ford, University of Iowa for bringing the issue to our attention. 1093 [ISC-Bugs #26378] 1094 1095! Add an option in site.h to limit the number of failover and control 1096 connections the server will accept. By default this is 200. 1097 [ISC-Bugs #41845] 1098 CVE: CVE-2016-2774 1099 1100 Changes since 4.3.3b1 1101 1102- None 1103 1104 Changes since 4.3.2 1105 1106- The server now does a better check to see if it can allocate the memory 1107 for large blocks of v4 leases and should provide a slightly better error 1108 message. Note well: the server pre-allocates v4 addresses, if you use 1109 a large range, such as a /8, the server will attempt to use a large 1110 amount of memory and may not start if there either isn't enough memory 1111 or the size exceeds what the code supports. 1112 [ISC-Bugs #38637] 1113 1114- The server will now reject unicast Request, Renew, Decline, and Release 1115 messages from a client unless the server would have sent that client the 1116 dhcp6.unicast option. This behavior is in compliance with paragraph 1 in 1117 each of the sections 18.2,1, 18.2.3, 18.2.6, and 18.2.7 of RFC 3315. Prior 1118 to this, the server would simply accept the messages. Now, in order for 1119 the server to accept such a message, the server configuration must include 1120 the dhcp6.unicast option either globally or within the shared network to 1121 which the requested lease belongs. In other words, the server will map 1122 the first IA_XX address found within the client message to a shared-network 1123 and look for the presence of the unicast option there and then globally. 1124 Thanks to Jiri Popelka at Red Hat for this issue and his patch which 1125 inspired the fix. 1126 [ISC-Bugs #21235] 1127 1128- The ATF (Automated Testing Framework) tools used for optional unit tests 1129 can now be built from its embedded sources in bind, solving the 1130 atf-run / atf-report issue with recent (>= 0.20) versions of ATF. 1131 The new configuration option is "./configure --with-atf=bind". 1132 [ISC-Bugs #38754, #39300] 1133 1134- Corrected a compilation error introduced by the fix for ISC-Bugs #22806. 1135 On older linuxes that do not include the tpacket_auxdata structure don't 1136 bother allocating the cmsgbuf as it isn't necessary and we don't have 1137 a proper length for it. 1138 [ISC-Bugs #39209] 1139 1140- Remove the dst directory. This was replaced in 4.2.0 with the dst 1141 code from the Bind libraries but we continued to include it for 1142 backwards compatibility. As we have now released 4.3.x it seems 1143 reasonable to remove it. 1144 [ISC-Buts #39019] 1145 1146- Write out the DUID server id on startup in all cases, previously if it 1147 was read in from server-duid option in the config or lease files for 1148 DHCPv4 it would not be written to the new lease file. 1149 [ISC-Bugs #37791] 1150 1151- When parsing dates for leases convert dates past 2038 to "never". 1152 This avoids problems with integer overflows in the date and time 1153 handling code for people that decide to use very large lease times 1154 or add a lease entry with a date far in the future. 1155 [ISC-Bugs #33056] 1156 1157- Leave the siaddr field clear when sending a NACK as per RFC 2131 1158 table 3. 1159 [ISC-Bugs #38769] 1160 1161- In the client don't send expired addresses to the script as part of 1162 the binding process. Thanks to Sven Trenkel at Google for reporting 1163 the issue and suggesting the patch. 1164 [ISC-Bugs #38631] 1165 1166- While parsing IPv6 addresses treat "add" as part of the address instead 1167 of as a token. 1168 [ISC-Bugs #39529] 1169 1170- Add support for accessing the v4 lease queues (active, free etc) in a 1171 binary fashion instead of needing to walk through a linear list to 1172 insert, find or remove an entry from the queues. In addition add a 1173 compile time option "--enable-binary-leases" to enable the new code 1174 or to continue using the old code. The old code is the default. 1175 Thanks to Fernando Soto from BlueCat Networks for the patch. 1176 [ISC-Bugs #39078] 1177 1178- Delayed-ack now works properly with Failover. Prior to this, bind updates 1179 post startup were being queued but never delivered. Among other things, this 1180 was causing leases to not transition from expired or released to free. 1181 [ISC-Bugs #31474] 1182 1183- Clean up parsing of v6 lease files a bit to avoid infinite loops if the 1184 lease file is corrupt in certain ways. 1185 [ISC-Bugs #39760] 1186 1187- Corrected a crash in dhclient that occurs during lease renewal if the 1188 client is performing its own DNS updates. Thanks to Jiri Popelka at Red Hat 1189 for the bug report. 1190 [ISC-Bugs #38639] 1191 1192- Corrected an issue in v6 lease file parsing. Prior to this, when encountering 1193 a lease with an address for which no configured pool exists, the server was 1194 declaring the lease file corrupt and incorrectly skipping over the subsequent 1195 entry in the file. The server will now emit a log message indicating that 1196 no pool was found for the address (or prefix) and correctly resume parsing 1197 with the next entry in the lease file. Our thanks to Michal Žejdl for 1198 reporting the issue. 1199 [ISC-Bugs #39314] 1200 1201- Be more liberal in finding a subnet group associated with a static 1202 prefix. When we added the class matching code for v6 we also added 1203 a requirement that the static prefix must be within a subnet the 1204 client was in, in order to find the proper statements. We now 1205 look for a subnet based on the prefix, failing that on the static 1206 address for the client and failing that on the shared network 1207 itself. 1208 [ISC-Bugs #38329] 1209 1210- Add a new action expression "parse_vendor_options", which can be used 1211 to parse a vendor-encapsualted-option received by the server based on 1212 the encoding specified by the vendor-option-space statement. 1213 [ISC-Bugs #36449] 1214 1215- Enhance the PARANOIA patch to include fchown() the lease file to 1216 allow it to be manipulated after the server does a chown(). 1217 Thanks to Jiri Popelka at Red Hat for the patch. 1218 [ISC-Bugs #36978] 1219 1220- Relax the requirement that prefix pools must be within the subnet. 1221 This was added in as part of #32453 in order to avoid configuration 1222 mistakes but is being removed as prefixes aren't required to be 1223 within the same subnet and many people configure them in that fashion. 1224 [ISC-Bugs #40077] 1225 1226- Fixed a server crash that could occur when the server attempts to remove 1227 the billing class from the last lease billed to a dynamic class after said 1228 class has been deleted. Our thanks to Lasse Pesonen for reporting the 1229 issue. 1230 [ISC-Bugs #39978] 1231 1232- LDAP Patches - Numerous small patches submitted by contributors have 1233 been applied to the contributed code which supplies LDAP support. 1234 In addition, two larger submissions have also been included. The 1235 first adds support for IPv6 configuration and the second provides 1236 GSSAPI authentication. We would like to thank the following for their 1237 contributions (alphabetically): 1238 Alex Novak at SUSE 1239 Bill Parker (wp02855 at gmail dot com) 1240 Jiri Popelka at Red Hat 1241 Marius Tomaschewski at SUSE 1242 (william at adelaide.edu.au), The University of Adelaide 1243 [ISC-Bugs #39056] 1244 [ISC-Bugs #22742] 1245 [ISC-Bugs #24449] 1246 [ISC-Bugs #28545] 1247 [ISC-Bugs #29873] 1248 [ISC-Bugs #30183] 1249 [ISC-Bugs #30402] 1250 [ISC-Bugs #32217] 1251 [ISC-Bugs #32240] 1252 [ISC-Bugs #33176] 1253 [ISC-Bugs #33178] 1254 [ISC-Bugs #36409] 1255 [ISC-Bugs #36774] 1256 [ISC-Bugs #37876] 1257 1258- Handle an out of memory condition in the client a bit better. 1259 Thanks to Frédéric Perrin from Brocade for finding the issue 1260 and suggesting a patch. 1261 [ISC-Bugs #39279] 1262 1263 Changes since 4.3.2rc2 1264- None 1265 1266 Changes since 4.3.2rc1 1267 1268- Corrected a compilation error introduced by the fix for ISC-Bugs #37415. 1269 The error occurs on Linux variants that do not support VLAN tag information 1270 in packet auxiliary data. The configure script now only enables inclusion 1271 of the VLAN tag-based logic if it is supported by the underlying OS. 1272 [ISC-Bugs #38677] 1273 1274 Changes since 4.3.2b1 1275 1276- Specifying the option, --disable-debug, on the configure script command line 1277 now disables debug features. Prior to this, specifying --disable-debug 1278 incorrectly enabled debug features. Thanks to Gustavo Zacarias for reporting 1279 the issue. 1280 [ISC-Bugs #37780] 1281 1282- Unit test execution now uses a path augmented during configuration 1283 processing of the --with-atf option to locate ATF runtime tools, atf-run 1284 and atf-report. For most installations of ATF, this should alleviate the 1285 need to manually include them in the PATH, as was formerly required. 1286 If the configure script cannot locate the tools it will emit a warning, 1287 informing the user that the tools must be in the PATH when running unit 1288 tests. 1289 Secondly, please note that "make check" will now exit with a failure status 1290 code (non-zero) if one or more unit tests fail. This means that invoking 1291 "make check" from an upper level directory will cause the make process to 1292 STOP after the first test subdirectory with failed test(s). To force all 1293 tests in all subdirectories to run, regardless of individual test outcome, 1294 use the command "make -k check". 1295 [ISC-Bugs #38619] 1296 1297 Changes since 4.3.1 1298 1299- Corrected parser's right brace matching when a statement contains an error. 1300 [ISC-Bugs #36021] 1301 1302- TSIG-authenticated dynamic DNS updates now support the use of these 1303 additional algorithms: hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha384, 1304 and hmac-sha512 1305 [ISC-Bugs #36947] 1306 1307- Added check for invalid failover message type. Thanks to Tobias Stoeckmann 1308 working with the OpenBSD project who spotted the issue and provided the 1309 patch. 1310 [ISC-Bugs #36653] 1311 1312- Corrected rate limiting checks for bad packet logging. Thanks to Tobias 1313 Stoeckmann working with the OpenBSD project who spotted the issue and 1314 provided the patch. 1315 [ISC-Bugs #36897] 1316 1317- Log statements depicting what files will be used by the server now occur 1318 after the configuration file has been processed. 1319 [ISC-Bugs #36671] 1320 1321- Addressed Coverity issues reported as of 07-31-2014: 1322 [ISC-Bugs #36712] Corrects Coverity reported "high" impact issues. 1323 [ISC-Bugs #36933] Corrects Coverity reported "medium" impact issues 1324 [ISC-Bugs #37708] Fixes compilation error in dst_api.c seen in older 1325 compilers that was introduced by #36712 1326 1327- Server now supports a failover split value of 256. 1328 [ISC-Bugs] #36664] 1329 1330- Remove unneeded error #defines. These defines were included in case 1331 external programs required the older versions of the macro. They 1332 have been #ifdeffed for now and will be removed at a future date. 1333 See site.h for the #define to include them again, but you should 1334 switch to using the DHCP_R_* versions instead of the ISC_R_* versions. 1335 Also ISC_R_MULTIPLE has been removed as it is also defined in bind. 1336 [ISC-Bugs #37128] 1337 1338- Added checks in range6 and prefix6 statement parsing to ensure addresses 1339 are within the declared subnet. Thanks to Jiri Popelka at Red Hat for the 1340 bug report and patch. 1341 [ISC-Bugs #32453] 1342 [ISC-Bugs #17766] 1343 [ISC-Bugs #18510] 1344 [ISC-Bugs #23698] 1345 [ISC-Bugs #28883] 1346 1347- Addressed checksum issues: 1348 Added checksum readiness check to Linux packet filtering which eliminates 1349 invalid packet drops due to checksum errors when checksum offloading is 1350 in use. Based on dhcp-4.2.2-xen-checksum.patch made to the Fedora project. 1351 [ISC-Bugs #22806] 1352 [ISC-Bugs #15902] 1353 [ISC-Bugs #17739] 1354 [ISC-Bugs #18010] 1355 [ISC-Bugs #22556] 1356 [ISC-Bugs #29769] 1357 Inbound packets with UDP checksums of 0xffff now validate correctly rather 1358 than being dropped. 1359 [ISC-Bugs #24216] 1360 [ISC-Bugs #25587] 1361 1362- Added the echo-client-id configuration parameter to the server configuration. 1363 The server now supports RFC 6842 compliant behavior by setting a new 1364 configuration parameter, echo-client-id. When enabled, the server will 1365 include the client identifier option (Option code 61) if received, in its 1366 responses. The server identifier returned in NAKs (if enabled) will now 1367 be the globally defined value (if one) if the server cannot attribute the 1368 inbound request to a known subnet. 1369 [ISC-Bugs #35958] 1370 [ISC-Bugs #32545] 1371 1372- Added support of the configuration parameter, use-host-decl-names, to 1373 BOOTP request handling. 1374 [ISC-Bugs #36233] 1375 1376- Added logic to ignore the signal, SIGPIPE, which ensures write failures 1377 will be delivered as errors rather than as SIGPIPE signals on all OSs. 1378 Thanks to Marius Tomaschewski from SUSE who reported the issue and provided 1379 the patch upon which the fix is based. 1380 [ISC-Bugs #32222] 1381 1382- In the failover code, handle the case of communications being interrupted 1383 when the servers are dealing with POTENTIAL-CONFLICT. This patch allows 1384 the primary to accept the secondary moving from POTENTIAL-CONFLICT to 1385 RESOLUTION-INTERRUPTED as well as handling the bind update process better. 1386 In addition the code to resend update or update all requests has been 1387 modified to send requests more often. 1388 [ISC-Bugs #36810] 1389 [ISC-Bugs #20352] 1390 1391- By default, the server will now choose the value to use in the forward DNS 1392 name from the following in order of preference: 1393 1394 1. FQDN option if provided by the client 1395 2. Host name option if provided by the client 1396 3. Configured option host-name if defined 1397 1398 As before, this may be overridden by defining ddns-hostname to the desired 1399 value (or expression). In addition, the server logic has been extended to 1400 use the value of the host name declaration if use-host-decl-names is enabled 1401 and no other value is available. 1402 [ISC-Bugs #21323] 1403 1404- DNS updates were being attempted when dhcp-cache-threshold enabled the use of 1405 the existing lease and the forward DNS name had not changed. This has been 1406 corrected. 1407 [ISC-Bugs #37368] 1408 [ISC-Bugs #38636] 1409 1410- Corrected an issue which caused dhclient to incorrectly form the result when 1411 prepending or appending to the IPv4 domain-search option, received from the 1412 server, when either of the values being combined contain compressed 1413 components. 1414 [ISC-Bugs #20558] 1415 1416- Added the server-id-check parameter to the server configuration. 1417 This parameter allows run-time control over whether or not a server, 1418 participating in failover, verifies the dhcp-server-identifier option in 1419 DHCP REQUESTs against the server's id before processing the request. 1420 Formerly, enabling this behavior was done at compilation time through 1421 the use of the #define, SERVER_ID_CHECK, which has been removed from site.h 1422 The functionality is now only available through the new runtime parameter. 1423 [ISC-Bugs #37551] 1424 1425- During startup, when the server encounters a lease whose binding state is 1426 FTS_BACKUP but whose pool has no configured failover peer, it will reset the 1427 lease's binding state to FTS_FREE. This allows the leases to be reclaimed 1428 by the server after a pool's configuration has changed from failover to 1429 standalone. Prior to this such leases would remain stuck in the backup state 1430 making them unavailable for assignment. Note this conversion will occur 1431 whether or not the server is compiled for failover. 1432 [ISC-Bugs #36960] 1433 1434- Fixed a small issue in the treatment of hosts in the inform processing 1435 that could cause the response to an inform to include information from 1436 the wrong scope. The two examples we've heard of are getting subnet 1437 instead of group information associated with a host entry, or getting 1438 global information instead of subnet if the host entry was built via 1439 omapi. Thanks to Julien Soula at University of Lille for finding the 1440 bug and supplying a patch. 1441 [ISC-Bugs #35712] 1442 1443- Avoid calling pool_timer() recursively from supersede_lease(). This could 1444 result in leases changing state incorrectly or delaying the running of the 1445 leae expiration code. 1446 [ISC-Bugs #38002] 1447 1448- Move the check for a PID file and process to be before we rewrite the 1449 lease file. This avoids the possibility of starting a second instance 1450 of a server which changes the current lease file confusing the first 1451 instance. This check is only included if the admin hasn't disabled PID 1452 files. 1453 [ISC-Bugs #38078] 1454 [ISC-Bugs #38143] 1455 1456- In the client code change the way preferred_life and max_life are printed 1457 for environment variables to be unsigned rather than signed. 1458 Thanks to Jiri Popelka at Red Hat for the bug report and patch. 1459 [ISC-Bugs #37084] 1460 1461- Modified Linux packet handling such that packets received via VLAN are now 1462 seen only by the VLAN interface. Prior to this, such packets were seen by 1463 both the VLAN interface and its parent (physical) interface, causing the 1464 server to respond to both. Note this remains an issue for non-Linux OSs. 1465 Thanks to Jiri Popelka at Red Hat for the patch. 1466 [ISC-Bugs #37415] 1467 [ISC-Bugs #37133] 1468 [ISC-Bugs #36668] 1469 [ISC-Bugs #36652] 1470 1471- Log content has been changed to more directly suggest that admins should 1472 check for multiple IPv6 clients attempting to use the same DUID when only 1473 abandoned addresses are available. Debug level logging will now emit counts 1474 of the total number of, in-use, and abandoned addresses in a shared subnet 1475 when the server finds no addresses available for a given DUID. Lastly, 1476 threshold logging is now automatically disabled for shared subnets whose 1477 total number of possible addresses exceeds (2^64)-1. 1478 [ISC-Bugs #26376] 1479 [ISC-Bugs #38131] 1480 1481- Added a global parameter, prefix-length-mode, which may be used to determine 1482 how the server uses a non-zero value for prefix-length supplied by clients 1483 when soliciting DHCPv6 prefixes. The server supports selection modes of: 1484 ignore, prefer, exact, minimum and maximum which are described in detail in 1485 the server man pages. The prior behavior of the server was to only offer a 1486 prefix whose length exactly matched the prefix-length value requested. If 1487 no such prefixes were available, the server returned a status of none 1488 available. Note the default mode, "exact", provides this same behavior. 1489 [ISC-Bugs #36780] 1490 [ISC-Bugs #32228] 1491 1492- Corrected inconsistencies in dhcrelay's setting the upper interface hop count 1493 limit such that it now sets it to 32 when the upstream address is a multicast 1494 address per RFC 3315 Section 20. Prior to this if the -u argument preceded 1495 the -l argument on the command line or if the same interface was specified 1496 for both; the logic to set the hop limit count for the upper interface was 1497 skipped. This caused the hop count limit to be set to the default value 1498 (typically 1) in the outbound upstream packets. 1499 [ISC-Bugs #37426] 1500 1501 Changes since 4.3.1b1 1502 1503- Modify the linux and openwrt dhclient scripts to process information 1504 from a stateless request. Thanks to Jiri Popelka at Red Hat for the 1505 bug report and patch. 1506 [ISC-Bugs #36102] 1507 1508- Remove more unused RCSID tags. These weren't noticed in 4.3 as 1509 the code isn't used anymore but we remove them here to keep the 1510 code consistent across versions. 1511 [ISC-Bugs #36451] 1512 1513 Changes since 4.3.0 1514 1515- Tidy up several small tickets. 1516 Correct parsing of DUID from config file, previously the LL type 1517 was put in the wrong place in the DUID string. 1518 [ISC-Bugs #20962] 1519 Add code to parse "do-forward-updates" as well as "do-forward-update" 1520 Thanks to Jiri Popelka at Red Hat. 1521 [ISC-Bugs #31328] 1522 Remove log_priority as it isn't currently used. 1523 [ISC-Bugs #33397] 1524 Increase the size of the buffer used for reading interface information. 1525 [ISC-Bugs #34858] 1526 1527- Remove an extra set of the msg_controllen variable. 1528 [ISC-Bugs #21035] 1529 1530- Add a more understandable error message if a configuration attempts 1531 to add multiple keys for a single zone. Thanks to a patch from Jiri 1532 Popelka at Red Hat. 1533 [ISC-Bugs #31892] 1534 1535- Fix some minor issues in the dst code. 1536 [ISC-Bugs #34172] 1537 1538- Properly #ifdef functions so that the code can compile without NSUPDATE. 1539 [ISC-Bugs #35058] 1540 1541- Update the partner's stos (start time of state, basically when we last 1542 heard from this partner) field when updating the state in failover. 1543 [ISC-Bugs #35549] 1544 1545- Modify the overload processing to allow space for the remote agent ID. 1546 [ISC-Bugs #35569] 1547 Handle the ordering of the SUBNET_MASK option even if it is the last 1548 option in the list. 1549 [ISC-Bugs #24580] 1550 1551- Remove the code that allows a server to follow RFC3315 instead of 1552 the subsequent errata from August 2010 when determining which IAs 1553 to include if no addresses will be assigned. 1554 [ISC-Bugs #28938] 1555 1556- Remove unused RCSID tags. 1557 [ISC-Bugs #35846] 1558 1559- Correct the v6 client timing code. When doing the timing backoff 1560 for MRT limit it to MRD. 1561 Thanks to Jiri Popelka at Red Hat for the bug report and fix. 1562 [ISC-Bugs #21238 1563 1564- Add a log entry when killing a client and remove the PID files 1565 when a server, relay or client are killed. 1566 [ISC-Bugs #16970] 1567 [ISC-Bugs #17258] 1568 1569- Some minor cleanups in the client code. 1570 In addition to checking for dhcpc check for bootpc in the services list. 1571 [ISC-Bugs #18933] 1572 Correct the client code to only try to get a lease once when the 1573 given the "-1" argument. 1574 Thanks to Jiri Popelka at Red Hat for the bug report and fix. 1575 [ISC-Bugs #26735] 1576 When asked for the version don't send the output to syslog. 1577 [ISC-Bugs #29772] 1578 Add the next server information to the environment variables for 1579 use by the client script. In order to avoid changing the client 1580 lease file the next server information isn't written to it. 1581 Thanks to Tomas Hozza at Red Hat for the suggestion and a prototype fix. 1582 [ISC-Bugs #33098] 1583 1584- Several updates to the dhcp server code. 1585 When not in quiet mode print out the files being used. 1586 [ISC-Bugs #17551] 1587 As accessing some pid files may require privileges move the dropping 1588 of permission bits due to the paranoia patch to be after the pid code. 1589 Thanks to Jiri Popelka at Red Hat for the bug report and fix. 1590 [ISC-Bugs #25806] 1591 When processing a "--version" request don't output the version information 1592 to syslog. 1593 1594- Add the "enable-log-pid" build option to the configure script. When enabled 1595 this causes the client, server and relay programs to include the PID 1596 number in syslog messages. 1597 Thanks to Marius Tomaschewski for the suggestion and proto-patch. 1598 [ISC-Bugs #29713] 1599 1600- Add a #define to specify the prefix length used when a client attempts 1601 to configure an address. This can be modified by editing includes/site.h. 1602 By default it is set to 64. While 128 might be a better choice it would 1603 also be a change for currently running systems, so we have left it at 64. 1604 [ISC-Bugs #DHCP-2] 1605 1606- Add a run time option to the client "-df" to allow the administrator to 1607 point to a second lease file the client can search for a DUID. This can 1608 be used to allow a v4 and a v6 instance of the client to share a DUID. 1609 The second file will only be searched if there isn't a DUID in the main 1610 lease file and the DUID will be written out to the main lease file. 1611 [ISC-Bugs #34886] 1612 1613- Have the client fsync the lease file to avoid lease corruption if the 1614 client hibernates or otherwise shuts down. 1615 [ISC-Bugs #35894] 1616 1617- Add a check for L2VLAN in bpf.c to help support VLAN interfaces 1618 Thanks to Steinar Haug for the suggestion. 1619 [ISC-Bugs #36033] 1620 1621- Modify the handling of the resolv.conf file to allow the DHCP 1622 process to start up even if the resolv.conf file has problems. 1623 [ISC-Bugs #35989] 1624 1625- Add threshold logging functionality. Two new options, 1626 log-threshold-low and log-threshold-high, indicate to the 1627 server if and when it should log an error message as addresses 1628 in a pool are used. 1629 [ISC-Bugs #34487] 1630 1631- Add code to properly dereference a pointer in the dhclient code 1632 on an error condition. 1633 [ISC-Bugs #36194] 1634 1635- Add code to help clean up soft leases. 1636 [ISC-Bugs #36304] 1637 1638- Disable the gentle shutdown functionality until we can determine 1639 the best way to present it to remove or reduce the side effects. 1640 [ISC-Bugs #36066] 1641 1642 Changes since 4.3.0rc1 1643 1644- None 1645 Changes since 4.3.0b1 1646 1647- Tidy up receive packet processing. 1648 Thanks to Brad Plank of GTA for reporting the issue and suggesting 1649 a possible patch. 1650 [ISC-Bugs #34447] 1651 1652 Changes since 4.3.0a1 1653 1654- Modify the message displayed when a process hits a fatal error. 1655 The new message is much shorter and simply points to the README 1656 and our website for directions on bug submissions. 1657 [ISC-Bugs #24789] 1658 1659 Changes since 4.2.0 (new features) 1660 1661- If a client renews before 'dhcp-cache-threshold' percent of its lease 1662 has elapsed (default 25%), the server will reuse the allocated lease 1663 (provide a lease within the currently allocated lease-time) rather 1664 than extend or renew the lease. This absolves the server of needing 1665 to perform an fsync() operation on the lease database before reply, 1666 which improves performance. [ISC-Bugs #22228] 1667 Updated this patch to support asynchronous DDNS. If the server is 1668 attempting to do DDNS on a lease it should be updated and written to 1669 disk even if that wouldn't be necessary due to the thresholding. 1670 [ISC-Bugs #26311] 1671 1672- The 'no available billing' log line now also logs the name of the last 1673 matching billing class tried before failing to provide a billing. 1674 [ISC-Bugs #21759] 1675 1676- A problem with missing get_hw_addr function when --enable-use-sockets 1677 was used is now solved on GNU/Linux, BSD and GNU/Hurd systems. Note 1678 that use-sockets feature was not tested on those systems. Client and 1679 server code no longer use MAX_PATH constant that is not defined on 1680 GNU/Hurd systems. [ISC-Bugs #25979] 1681 1682- Add a perl script in the contrib directory, dhcp-lease-list.pl, which 1683 can parse v4 lease files and output the lease information in a more 1684 human friendly manner. This was written by Christian Hammers with 1685 some updates by vom and ISC. This is contributed code and is not 1686 supported by ISC; however it may be useful to some users. 1687 [ISC-Bugs #20680] 1688 1689- Add support in v6 for on-commit, on-expire and on-release. 1690 [ISC-Bugs #27912] 1691 1692- Add support for using classes with v6. 1693 [ISC-Bugs #26510] 1694 1695- Update the DDNS code to current standards and allow for sharing 1696 of DDNS entries between v4 and v6 clients. The new code is used 1697 if the ddns-update-style is set to "standard", the older code is 1698 still available if ddns-update-style is set to "interim". The 1699 oldest DDNS code "ad-hoc" has been removed. Thanks to Thomas Pegeot 1700 who submitted a patch for this issue. This patch is based on 1701 that work with some modifications. 1702 [ISC-Bugs #21139] 1703 1704- Add a configuration option to the server to suppress using fsync(). 1705 Enabling this option will mean that fsync() is never called. This 1706 may provide better performance but there is also a risk that a lease 1707 will not be properly written to the disk after it has been issued 1708 to a client and before the server stops. Using this option is 1709 not recommended. 1710 [ISC-Bugs #34810] 1711 1712- Add some logging statements to indicate when the server is ready 1713 to serve. One statement is emitted after the server has finished 1714 reading its files and is about to enter the dispatch loop. 1715 This is "Server starting service.". 1716 The second is emitted when a server determines that both it and 1717 its failover peer are in the normal state. 1718 This is "failover peer <name>: Both servers normal." 1719 [ISC-Bugs #33208] 1720 1721- Add support for accessing options from v6 relays. The v6relay 1722 statement allows the administrator to choose which relay to 1723 use when searching for an option, see the dhcp-options man page 1724 for a description. The host-identifier option has also been 1725 updated to support the use of relay options, see the dhcpd.conf 1726 man page for a description. 1727 [ISC-Bugs #19598] 1728 1729- When doing DDNS if there isn't an appropriate zone statement attempt 1730 to find a reasonable nameserver via a DNS resolver. This restores 1731 some functionality that was lost in the transition to asynchronous 1732 DDNS. Due to the lack of security and increase in fragility of the 1733 system when using this feature we strongly recommend the use of 1734 appropriate zone statements rather than using this functionality. 1735 [ISC-Bugs #30461] 1736 1737- Add support for specifying the address from which to send 1738 DDNS updates on the DHCP server. There are two new options 1739 "ddns-local-address4" and "ddns-local-address6" that each take 1740 one instance of their respective address types. 1741 [ISC-Bugs #34779] 1742 1743- Add ignore-client-uids option in the server. This option causes 1744 the server to not record a client's uid in its lease. This 1745 violates the specification but may also be useful when a client 1746 can dual boot using different client ids but the same mac address. 1747 Thank you to Brian De Wolf at Cal Poly Pomona for the patch. 1748 [ISC-Bugs #32427] 1749 [ISC-Bugs #35066] 1750 1751- Extend the DHCPINFORM processing to honor the subnet selection option 1752 and take host declarations into account. 1753 Thanks to Christof Chen for testing and submitting the patch. 1754 [ISC-Bugs #35015] 1755 1756- Extend the hardware expression to look into the lease structure 1757 for a hardware address if there is no packet. This allows the 1758 server to find the hardware address during on-expiry processing. 1759 [ISC-Bugs #24584] 1760 1761- Add definitions for some options that have been specified by the IETF. 1762 [ISC-Bugs #29268] 1763 [ISC-Bugs #35198] 1764 1765 Changes since 4.2.0 (bug fixes) 1766 1767- When using 'ignore client-updates;', the FQDN returned to the client 1768 is no longer truncated to one octet. 1769 1770- Cleaned up an unused hardware address variable in nak_lease(). 1771 1772- Manpage entries for the ia-pd and ia-prefix options were updated to 1773 reflect support for prefix delegation. 1774 1775- Cleaned up some compiler warnings 1776 1777- An optimization described in the failover protocol draft is now included, 1778 which permits a DHCP server operating in communications-interrupted state 1779 to 'rewind' a lease to the state most recently transmitted to its peer, 1780 greatly increasing a server's endurance in communications-interrupted. 1781 This is supported using a new 'rewind state' record on the dhcpd.leases 1782 entry for each lease. 1783 1784- Fix the trace code which was broken by the changes to the DDNS code. 1785 1786- Update the fsync code to work with the changes to the DDNS code. It now 1787 uses a timer instead of noticing if there are no more packets to process. 1788 1789- When constructing the DNS name structure from a text string append 1790 the root to relative names. This satisfies a requirement in the DNS 1791 library that names be absolute instead of relative and prevents DHCP 1792 from crashing. [ISC-Bugs #21054] 1793 1794- "The LDAP Patch" that has been circulating for some time, written by 1795 Brian Masney and S.Kalyanasundraram and maintained for application to 1796 the DHCP-4 sources by David Cantrell has been included. Please be 1797 advised that these sources were contributed, and do not yet meet the 1798 high standards we place on production sources we include by default. 1799 As a result, the LDAP features are only included by using a compile-time 1800 option which defaults off, and if you enable it you do so under your 1801 own recognizance. We will be improving this software over time. 1802 [ISC-Bugs #17741] 1803 1804- Prohibit including lease time information in a response to a DHCP INFORM. 1805 [ISC-Bugs #21092] 1806 1807! Accept a client id of length 0 while hashing. Previously the server would 1808 exit if it attempted to hash a zero length client id, providing attackers 1809 with a simple denial of service attack. [ISC-Bugs #21253] 1810 CERT: VU#541921 - CVE: CVE-2010-2156 1811 1812- A memory leak in ddns processing was closed. [ISC-Bugs #21377] 1813 1814- Modify the exception handling for initial context creation. Previously 1815 we would try and clean up before exiting. This could present problems 1816 when the cleanup required part of the context that wasn't available. It 1817 also didn't do much as we exited afterwards anyway. Now we simply log 1818 the error and exit. [ISC-Bugs #21093] 1819 1820- A bug was fixed that could cause the DHCPv6 server to advertise/assign a 1821 previously allocated (active) lease to a client that has changed subnets, 1822 despite being on different shared networks. Dynamic prefixes specifically 1823 allocated in shared networks also now are not offered if the client has 1824 moved. [ISC-Bugs #21152] 1825 1826- Add some debugging output for use with the DDNS code. [ISC-Bugs #20916] 1827 1828- Fix the trace code to handle timing events better and to truncate a file 1829 before using instead of overwriting it. [ISC-Bugs #20969] 1830 1831- Modify the determination of the default TTL to use for DDNS updates. 1832 The user may still configure the ttl via ddns-ttl. The default for 1833 both v4 and v6 is now 1/2 the (preferred) lease time with a limit. The 1834 previous defaults (1/2 lease time without a limit for v4 and a default 1835 value for v6) may be used by defining USE_OLD_DDNS_TTL in site.h 1836 [ISC-Bugs #21126] 1837 1838- libisc/libdns is now brought up to version 9.7.1rc1. This corrects 1839 three reported flaws in ISC DHCP; 1840 1841 o DHCP processes (dhcpd, dhclient) fail to start if one of either the 1842 IPv4 or IPv6 address families is not present. [ISC-Bugs #21122] 1843 1844 o Assertion failure when attempting to cancel a previously running DDNS 1845 update. [ISC-Bugs #21133] 1846 1847 o Compilation failure of libisc/libdns due to the use of a flexible 1848 array member. [ISC-Bugs #21316] 1849 1850- Add declaration for variable in debug code in alloc.c. [ISC-Bugs #21472] 1851 1852- Documentation cleanup covering multiple tickets 1853 [ISC-Bugs #20265] [ISC-Bugs #20259] minor cleanup 1854 [ISC-Bugs #20263] add text describing some default values 1855 [ISC-Bugs #20193] single quotes at the start of a line indicate a control 1856 line to nroff, escape them if we actually want a quote. 1857 [ISC-Bugs #18916] sync the pointer to web pages amongst the different docs 1858 1859- 'get-host-names true;' now also works even if 'use-host-decl-names true;' 1860 was also configured. The nature of this repair also fixes another 1861 error; the host-name supplied by a client is no longer overridden by a 1862 reverse lookup of the lease address. Thanks to a patch from Wilco Baan 1863 Hofman supplied to us by the Debian package maintenance team. 1864 [ISC-Bugs #21691] {Debian Bug#509445} 1865 1866- The .TH tag for the dhcp-options manpage was typo repaired 1867 thanks to a report from jidanni and the Debian package maintenance 1868 team. [ISC-Bugs #21676] {Debian Bug#563613} 1869 1870- More documentation changes - primarily to put the options in the dhclient 1871 and dhcpd man pages into the standard form. Thanks in part to a patch 1872 from David Cantrell at Red Hat. 1873 [ISC-Bugs #20264] and parts of [ISC-Bugs #17744] dhclient.8 changes 1874 1875- Add code to clear the pointer to an object in an OMAPI handle when the 1876 object is freed due to a dereference. [ISC-Bugs #21306] 1877 1878- Fixed a bug that leaks host record references onto lease structures, 1879 causing the server to apply configuration intended for one host to any 1880 other innocent clients that come along later. [ISC-Bugs #22018] 1881 1882- Minor code fixes 1883 [ISC-Bugs #19566] When trying to find the zone for a name for ddns allow 1884 the name to be at the apex of the zone. 1885 [ISC-Bugs #19617] Restrict length of interface name read from command line 1886 in dhcpd - based on a patch from David Cantrell at Red Hat. 1887 [ISC-Bugs #20039] Correct some error messages in dhcpd.c 1888 [ISC-Bugs #20070] Better range check on values when creating a DHCID. 1889 [ISC-Bugs #20198] Avoid writing past the end of the field when adding 1890 overly long file or server names to a packet and add a log message 1891 if the configuration supplied overly long names for these fields. 1892 Thanks to Martin Pala. 1893 [ISC-Bugs #21497] Add a little more randomness to rng seed in client 1894 thanks to a patch from Jeremiah Jinno. 1895 1896- Correct error handling in DLPI [ISC-Bugs #20378] 1897 1898- Remove __sun__ and __hpux__ typedefs in osdep.h as they are now being 1899 checked in configure. [ISC-Bugs #20443] 1900 1901- Modify how the cmsg header is allocated the v6 send and received routines 1902 to compile on more compilers. [ISC-Bugs #20524] 1903 1904- When parsing a domain name free the memory for the name after we are 1905 done with it. [ISC-Bugs #20824] 1906 1907- Add an elapsed time option to the release message and refactor the 1908 code to move most of the common code to a single routine. 1909 [ISC-Bugs #21171]. 1910 1911- Two identical log messages for commit_leases() have been disambiguated. 1912 [ISC-Bugs #18915] 1913 1914- Parse date strings more properly - the code now handles semi-colons in 1915 date strings correctly. Thanks to a patch from Jiri Popelka at Red Hat. 1916 [ISC-Bugs #21501, #20598] 1917 1918- Fixes to lease input and output. 1919 [ISC-Bugs #20418] - Some systems don't support the "%s" argument to 1920 strftime, paste together the same string using mktime instead. 1921 [ISC-Bugs #19596] - When parsing iaid values accept printable 1922 characters. 1923 [ISC-Bugs #21585] - Always print time values in omshell as hex 1924 instead of ascii if the values happen to be printable characters. 1925 1926- Minor changes for scripts, configure.ac and Makefiles 1927 [ISC-Bugs #19147] Use domain-search instead of domain-name in manual and 1928 example conf file. Thanks to a patch from David Cantrell 1929 at Red Hat. 1930 [ISC-Bugs #19761] Restore address when doing a rebind in DHCPv6 1931 [ISC-Bugs #19945] Properly close the quote on some arguments. 1932 [ISC-Bugs #20952] Add 64 bit types to configure.ac 1933 [ISC-Bugs #21308] Add "PATH=" to CLIENT_PATH environment variable 1934 1935- Update the code to parse dhcpv6 lease files to accept a semi-colon at 1936 the end of the max-life and preferred-life clauses. In order to be 1937 backwards compatible with older lease files not finding a semi-colon 1938 is also accepted. [ISC-Bugs #22303]. 1939 1940! Handle a relay forward message with an unspecified address in the 1941 link address field. Previously such a message would cause the 1942 server to crash. Thanks to a report from John Gibbins. [ISC-Bugs #21992] 1943 CERT: VU#102047 CVE: CVE-2010-3611 1944 1945- ./configure on longer searches for -lcrypto to explicitly link against. 1946 This fixes a bug where 'dhclient' would have shared library dependencies 1947 on '/usr/lib'. [ISC-Bugs #21967] 1948 1949- Handle pipe failures more gracefully. Some OSes pass a SIGPIPE 1950 signal to a process and will kill the process if the signal isn't 1951 caught. This patch adds code to turn off the SIGPIPE signal via 1952 a setsockopt() call. The signal is already being ignored as part 1953 of the ISC library. [ISC-Bugs #22269] 1954 1955- Restore printing of values in omshell to the style pre 21585. For 1956 21585 we changed the print routines to always display time values 1957 as a hex list. This had a side effect of printing all data strings 1958 as a hex list. We shall investigate other ways of displaying time 1959 values more usefully. [ISC-Bugs #22626] 1960 1961! Fix the handling of connection requests on the failover port. 1962 Previously a connection request from a source that wasn't 1963 listed as a failover peer would cause the server to become 1964 non-responsive. Thanks to a report from Brad Bendily, brad@bendily.com. 1965 [ISC-Bugs #22679] 1966 CERT: VU#159528 CVE: CVE-2010-3616 1967 1968- Don't pass the ISC_R_INPROGRESS status to the omapi signal handlers. 1969 Passing it through to the handlers caused the omshell program to fail 1970 to connect to the server. [ISC-Bugs #21839] 1971 1972- Fix the parenthesis in the code to process configuration statements 1973 beginning with "auth". The previous arrangement caused 1974 "auto-partner-down" to be processed incorrectly. [ISC-Bugs #21854] 1975 1976- Limit the timeout period allowed in the dispatch code to 2^^32-1 seconds. 1977 Thanks to a report from Jiri Popelka at Red Hat. 1978 [ISC-Bugs #22033], [Red Hat Bug #628258] 1979 1980- When processing the format flags for a given option consume the 1981 flag indicating an optional value correctly. A symptom of this 1982 bug was an infinite loop when trying to parse the slp-service-scope 1983 option. Thanks to a patch from Marius Tomaschewski. 1984 [ISC-Bugs #22055] 1985 1986- Disable the use of kqueue in the ISC library. This avoids a problem 1987 between the fork and socket code that caused the dhcpd process to 1988 use all available cpu if the program daemonized itself. 1989 [ISC-Bugs #21911] 1990 1991! When processing a request in the DHCPv6 server code that specifies 1992 an address that is tagged as abandoned (meaning we received a 1993 decline request for it previously) don't attempt to move it from 1994 the inactive to active pool as doing so can result in the server 1995 crashing on an assert failure. Also retag the lease as active 1996 and reset its timeout value. 1997 [ISC-Bugs #21921] 1998 1999- Removed the restriction on using IPv6 addresses in IPv4 mode. This 2000 allows IPv4 options which contain IPv6 addresses to be specified. For 2001 example the 6rd option can be specified and used like this: 2002 [ISC-Bugs #23039] 2003 2004 option 6rd code 212 = { integer 8, integer 8, 2005 ip6-address, array of ip-address }; 2006 option 6rd 16 10 2001:: 1.2.3.4, 5.6.7.8; 2007 2008- Handle some DDNS corner cases better. Maintain the DDNS transaction 2009 information when updating a lease and cancel any existing transactions 2010 when removing the ddns information. 2011 [ISC-Bugs #23103] 2012 2013- Some fixes for LDAP 2014 [ISC-Bugs #21783] - Include lber library when building ldap 2015 [ISC-Bugs #22888] - Enable the ldap code when buidling common 2016 The above fixes are from Jiri Popelka at Red Hat. 2017 2018- Modify the dlpi code to accept getmsg() returning a positive value. 2019 [ISC-Bugs #22824] 2020 2021! In dhclient check the data for some string options for 2022 reasonableness before passing it along to the script that 2023 interfaces with the OS. 2024 [ISC-Bugs #23722] 2025 CVE: CVE-2011-0997 2026 2027- DHCPv6 server now responds properly if client asks for a prefix that 2028 is already assigned to a different client. [ISC-Bugs #23948] 2029 2030- Add the option "--no-pid" to the client, relay and server code, 2031 to disable writing a pid file. Add the option "-pf pidfile" 2032 to the relay to allow the user to supply the pidfile name at 2033 runtime. Add the "with-relay6-pid-file" option to configure 2034 to allow the user to supply the pidfile name for the relay 2035 in v6 mode at configure time. 2036 [ISC-Bugs #23351] [ISC-Bugs #17541] 2037 2038- 'dhclient' no longer waits a random interval after first starting up to 2039 begin in the INIT state. This conforms to RFC 2131, but elects not to 2040 implement a 'SHOULD' direction in section 4.1. The goal of this change 2041 is to start up faster. [ISC-Bugs #19660] 2042 2043- Added 'initial-delay' parameter that specifies maximum amount of time 2044 before client goes to the INIT state. The default value is 0. In previous 2045 versions of the code client could wait up to 5 seconds. The old behavior 2046 may be restored by using 'initial-delay 5;' in the client config file. 2047 [ISC-Bugs #19660] 2048 2049- ICMP ping-check should now sit closer to precisely the number of seconds 2050 configured (or default 1), due to making use of the new microsecond 2051 scale timer internally to dhcpd. This corrects a bug where the server 2052 may immediately timeout an ICMP ping-check if it was made late in the 2053 current second. [ISC-Bugs #19660] 2054 2055- The DHCP client will schedule renewal and rebinding events in 2056 microseconds if the DHCP server provided a lease-time that would result 2057 in sub-1-second timers. This corrects a bug where a 2-second or lower 2058 lease-time would cause the DHCP client to enter an infinite loop by 2059 scheduling renewal at zero seconds. [ISC-Bugs #19660] 2060 2061- Client lease records are recorded at most once every 15 seconds. This 2062 keeps the client from filling the lease database disk quickly on very small 2063 lease times. [ISC-Bugs #19660] 2064 2065- To defend against RFC 2131 non-compliant DHCP servers which fail to 2066 advertise a lease-time (either mangled, or zero in value) the DHCP 2067 client now adds the server to the reject list ACL and returns to INIT 2068 state to hopefully find an RFC 2131 compliant server (or retry in INIT 2069 forever). [ISC-Bugs #19660] 2070 2071- Parameters configured to evaluate from user defined function calls can 2072 now be correctly written to dhcpd.leases (as on 'on events' or dynamic 2073 host records inserted via OMAPI). [ISC-Bugs #22266] 2074 2075- If a 'next-server' parameter is configured in a dynamic host record via 2076 OMAPI as a domain name, the syntax written to disk is now correctly parsed 2077 upon restart. [ISC-Bugs #22266] 2078 2079- The DHCP server now responds to DHCPLEASEQUERY messages from agents using 2080 IP addresses not covered by a subnet in configuration. Whether or not to 2081 respond to such an agent is still governed by the 'allow leasequery;' 2082 configuration parameter, in the case of an agent not covered by a configured 2083 subnet the root configuration area is examined. Server now also returns 2084 vendor-class-id option, if client sent it. [ISC-Bugs #21094] 2085 2086- Documentation fixes 2087 [ISC-Bugs #17959] add text to AIX section describing how to have it send 2088 responses to the all-ones address. 2089 [ISC-Bugs #19615] update the includes in dhcpctl/dhcpctl.3 to be more correct 2090 [ISC-Bugs #20676] update dhcpd.conf.5 to include the RFC numbers for DDNS 2091 2092- Relay no longer crashes, when DHCP packet is received over interface without 2093 any IPv4 address assigned. Also extended logging message about discarding 2094 packets with invalid hlen with information about relevant interface name. 2095 [ISC-Bugs #22409] 2096 2097- Relay now properly logs that packet was received over interface without 2098 global IPv6 address [ISC-Bugs #24070] 2099 2100- Linux Packet Filter interface improvement. sockaddr_pkt structure is used, 2101 rather than sockaddr. Packet ethertype is now forced to ETH_P_IP. 2102 [ISC-Bugs #18975] 2103 2104- Minor code cleanups - but note port change for #23196 2105 [ISC-Bugs #23470] - Modify when an ignore return macro is defined to 2106 handle unsed error return warnings for more versions of gcc. 2107 [ISC-Bugs #23196] - Modify the reply handling in the server code to 2108 send to a specified port rather than to the source port for the incoming 2109 message. Sending to the source port was test code that should have 2110 been removed. The previous functionality may be restored by defining 2111 REPLY_TO_SOURCE_PORT in the includes/site.h file. We suggest you don't 2112 enable this except for testing purposes. 2113 [ISC-Bugs #22695] - Close a file descriptor in an error path. 2114 [ISC-Bugs #19368] - Tidy up variable types in validate_port. 2115 2116- Code cleanup: remove obsolete PROTO, KandR, INLINE and ANSI_DECL macros 2117 [ISC-Bugs #13151] 2118 2119- Compilation problem with gcc4.5 and omshell.c resolved. [ISC-Bugs #23831] 2120 2121- Client Script fixes 2122 [ISC-Bugs #23045] Typos in client/scripts/openbsd 2123 [ISC-Bugs #23565] In the client scripts add a zone id (interface id) if 2124 the domain search address is link local. 2125 [ISC-Bugs #1277] In some of the client scripts add code to handle the 2126 case of the default router information being changed without the address 2127 being changed. 2128 2129- Documentation cleanup 2130 [ISC-Bugs #23326] Updated References document, several man page updates 2131 2132- Server no longer complains about NULL pointer when configured 2133 server-identifier expression fails to evaluate. [ISC-Bugs #24547] 2134 2135- Convert ISC_R_INPROGRESS status to ISC_R_SUCCESS when called from other 2136 than the dispatch handler. This fixes an issue where omshell, when 2137 run from the same platform as the server, would appear to fail to 2138 connect. This is a companion to #21839. [ISC-Bugs #23592] 2139 2140- Enlarge the buffer size used by the Omshell code and some of the 2141 print routines to allow for greater than 60 characters or, when 2142 printing as hex strings, 20 characters. [ISC-Bugs #22743] 2143 2144- In Solaris 11 switch to using sockets instead of DLPI, thanks 2145 to a patch form Oracle. [ISC-Bugs #24634]. 2146 2147- Strict checks for content of domain-name DHCPv4 option can now be 2148 configured during compilation time. Even though RFC2132 does not allow 2149 to store more than one domain in domain-name option, such behavior is 2150 now enabled by default, but this may change some time in the future. 2151 See ACCEPT_LIST_IN_DOMAIN_NAME define in includes/site.h. 2152 [ISC-Bugs #24167] 2153 2154- DNS Update fix. A misconfigured server could crash during DNS update 2155 processing if the configuration included overlapping pools or 2156 multiple fixed-address entries for a single address. This issue 2157 affected both IPv4 and IPv6. The fix allows a server to detect such 2158 conditions, provides the user with extra information and recommended 2159 steps to fix the problem. If the user enables the appropriate option 2160 in site.h then server will be terminated 2161 [ISC-Bugs #23595] 2162 2163! Two packets were found that cause a server to halt. The code 2164 has been updated to properly process or reject the packets as 2165 appropriate. Thanks to David Zych at University of Illinois 2166 for reporting this issue. [ISC-Bugs #24960] 2167 One CVE number for each class of packet. 2168 CVE-2011-2748 2169 CVE-2011-2749 2170 2171- Fix the code that checks for an existing DDNS transaction to cancel 2172 when removing DDNS information, so that we will continue with the 2173 processing if we have a lease even if it doesn't have an outstanding 2174 transaction. [ISC-Bugs #24682] 2175 2176- Add AM_MAINTAINER_MODE to configure.ac to avoid rebuilding 2177 configuration files. [ISC-Bugs #24107] 2178 2179- Add support for passing DDNS information to a DNS server over 2180 an IPv6 address. [ISC-Bugs #22647] 2181 2182- Enhanced patch for 23595 to handle IPv4 fixed addresses more 2183 cleanly. [ISC-Bugs #23595] 2184 2185! Add a check for a null pointer before calling the regexec function. 2186 Without this check we could, under some circumstances, pass 2187 a null pointer to the regexec function causing it to segfault. 2188 Thanks to a report from BlueCat Networks. 2189 [ISC-Bugs #26704]. 2190 CVE: CVE-2011-4539 2191 2192! Modify the DDNS handling code. In a previous patch we added logging 2193 code to the DDNS handling. This code included a bug that caused it 2194 to attempt to dereference a NULL pointer and eventually segfault. 2195 While reviewing the code as we addressed this problem, we determined 2196 that some of the updates to the lease structures would not work as 2197 planned since the structures being updated were in the process of 2198 being freed: these updates were removed. In addition we removed an 2199 incorrect call to the DDNS removal function that could cause a failure 2200 during the removal of DDNS information from the DNS server. 2201 Thanks to Jasper Jongmans for reporting this issue. 2202 [ISC-Bugs #27078] 2203 CVE: CVE-2011-4868 2204 2205- Fixed the code that checks if an address the server is planning 2206 to hand out is in a reserved range. This would appear as 2207 the server being out of addresses in pools with particular ranges. 2208 [ISC-Bugs #26498] 2209 2210- In the DDNS code handle error conditions more gracefully and add more 2211 logging code. The major change is to handle unexpected cancel events 2212 from the DNS client code. 2213 [ISC-Bugs #26287] 2214 2215- Tidy up the receive calls and eliminate the need for found_pkt. 2216 [ISC-Bugs #25066] 2217 2218- Add support for Infiniband over sockets to the server and 2219 relay code. We've tested this on Solaris and hope to expand 2220 support for Infiniband in the future. This patch also corrects 2221 some issues we found in the socket code. 2222 [ISC-Bugs #24245] 2223 2224- Add a compile time check for the presence of the noreturn attribute 2225 and use it for log_fatal if it's available. This will help code 2226 checking programs to eliminate false positives. 2227 [ISC-Bugs #27539] 2228 2229- Fixed many compilation problems ("set, but not used" warnings) for 2230 gcc 4.6 that may affect Ubuntu 11.10 users. [ISC-Bugs #27588] 2231 2232- Modify the code that determines if an outstanding DDNS request 2233 should be cancelled. This patch results in cancelling the 2234 outstanding request less often. It fixes the problem caused 2235 by a client doing a release where the TXT and PTR records 2236 weren't removed from the DNS. 2237 [ISC-BUGS #27858] 2238 2239- Use offsetof() instead of sizeof() to get the sizes for dhcpv6_relay_packet 2240 and dhcpv6_packet in several more places. Thanks to a report from 2241 Bruno Verstuyft and Vincent Demaertelaere of Excentis. 2242 [ISC-Bugs #27941] 2243 2244- Remove outdated note in the description of the bootp keyword about the 2245 option not satisfying the requirement of failover peers for denying 2246 dynamic bootp clients. 2247 [ISC-bugs #28574] 2248 2249- Multiple items to clean up IPv6 address processing. 2250 When processing an IA that we've seen check to see if the 2251 addresses are usable (not in use by somebody else) before 2252 handing it out. 2253 When reading in leases from the file discard expired addresses. 2254 When picking an address for a client include the IA ID in 2255 addition to the client ID to generally pick different addresses 2256 for different IAs. 2257 [ISC-Bugs #23138] [ISC-Bugs #27945] [ISC-Bugs #25586] 2258 [ISC-Bugs #27684] 2259 2260- Remove unnecessary checks in the lease query code and clean up 2261 several compiler issues (some dereferences of NULL and treating 2262 an int as a boolean). 2263 [ISC-Bugs #26203] 2264 2265- Fix the NA and PD allocation code to handle the case where a client 2266 provides a preference and the server doesn't have any addresses or 2267 prefixes available. Previously the server ignored the request with 2268 this patch it replies with a NoAddrsAvail or NoPrefixAvail response. 2269 By default the code performs according to the errata of August 2010 2270 for RFC 3315 section 17.2.2; to enable the previous style see the 2271 section on RFC3315_PRE_ERRATA_2010_08 in includes/site.h. This option 2272 may be removed in the future. 2273 Thanks to Jiri Popelka at Red Hat for the patch. 2274 [ISC-Bugs #22676] 2275 2276- Fix up some issues found by static analysis. 2277 A potential memory leak and NULL dereference in omapi. 2278 The use of a boolean test instead of a bitwise test in dst. 2279 [ISC-Bugs #28941] 2280 2281- Rotate the lease file when running in v6 mode. 2282 Thanks to Christoph Moench-Tegeder at Astaro for the 2283 report and the first version of the patch. 2284 [ISC-Bugs #24887] 2285 2286- Correct code to calculate timing values in client to compare 2287 rebind value to infinity instead of renew value. 2288 Thanks to Chenda Huang from H3C Technologies Co., Limited 2289 for reporting this issue. 2290 [ISC-Bugs #29062] 2291 2292- Fix some issues in the code for parsing and printing options. 2293 [ISC-Bugs #22625] - properly print options that have several fields 2294 followed by an array of something for example "fIa" 2295 [ISC-Bugs #27289] - properly parse options in declarations that have 2296 several fields followed by an array of something for example "fIa" 2297 [ISC-Bugs #27296] - properly determine if we parsed a 16 or 32 bit 2298 value in evaluate_numeric_expression (extract-int). 2299 [ISC-Bugs #27314] - properly parse a zero length option from 2300 a lease file. Thanks to Marius Tomaschewski from SUSE for the report 2301 and prototype patch for this ticket as well as ticket 27289. 2302 2303! Previously the server code was relaxed to allow packets with zero 2304 length client ids to be processed. Under some situations use of 2305 zero length client ids can cause the server to go into an infinite 2306 loop. As such ids are not valid according to RFC 2132 section 9.14 2307 the server no longer accepts them. Client ids with a length of 1 2308 are also invalid but the server still accepts them in order to 2309 minimize disruption. The restriction will likely be tightened in 2310 the future to disallow ids with a length of 1. 2311 Thanks to Markus Hietava of Codenomicon CROSS project for the 2312 finding this issue and CERT-FI for vulnerability coordination. 2313 [ISC-Bugs #29851] 2314 CVE: CVE-2012-3571 2315 2316! When attempting to convert a DUID from a client id option 2317 into a hardware address handle unexpected client ids properly. 2318 Thanks to Markus Hietava of Codenomicon CROSS project for the 2319 finding this issue and CERT-FI for vulnerability coordination. 2320 [ISC-Bugs #29852] 2321 CVE: CVE-2012-3570 2322 2323! A pair of memory leaks were found and fixed. Thanks to 2324 Glen Eustace of Massey University, New Zealand for finding 2325 this issue. 2326 [ISC-Bugs #30024] 2327 CVE: CVE-2012-3954 2328 2329- Existing legacy unit-tests have been migrated to Automated Test 2330 Framework (ATF). Several new tests have been developed. To enable 2331 unit-tests, please use --with-atf in configure script. A Developer's 2332 Guide has been added. To generate it, please use make devel in 2333 the doc directory. It is currently in early stages of development, 2334 but is expected to grow in the near future. [ISC-Bugs 25901] 2335 2336! An issue with the use of lease times was found and fixed. Making 2337 certain changes to the end time of an IPv6 lease could cause the 2338 server to abort. Thanks to Glen Eustace of Massey University, 2339 New Zealand for finding this issue. 2340 [ISC-Bugs #30281] 2341 CVE: CVE-2012-3955 2342 2343- Update the memory leakage debug code to work with v6. 2344 [ISC-Bugs #30297] 2345 2346- Relax the requirements for deleting an A or AAAA record. 2347 Previously the DDNS removal code required both the A or AAAA 2348 record and the TXT record to exist. This requirement could 2349 cause problems if something interrupted the removal leaving 2350 the TXT record alone. This relaxation was codified in RFC 4703. 2351 [ISC-Bugs #30734] 2352 2353- Modify the failover code to handle incorrect peer names 2354 better. Previously the structure holding the name might 2355 have been freed inappropriately in some cases and not 2356 freed in other cases. 2357 [ISC-Bugs #30320] 2358 2359- Add a configure option, enable-secs-byteorder, to deal with 2360 clients that do the byte ordering on the secs field incorrectly. 2361 This field should be in network byte order but some clients 2362 get it wrong. When this option is enabled the server will examine 2363 the secs field and if it looks wrong (high byte non zero and low 2364 byte zero) swap the bytes. The default is disabled. This option 2365 is only useful when doing load balancing within failover. 2366 [ISC-Bugs #26108] 2367 2368- Fix a set of issues that were discovered via a code inspection 2369 tool. Thanks to Jiri Popelka and Tomas Hozza Red Hat for the logs 2370 and patches. 2371 [ISC-Bugs #23833] 2372 2373- Parsing unquoted base64 strings improved. Parser now properly handles 2374 strings that contain reserved names. [ISC-Bugs #23048] 2375 2376- Modify the nak_lease function to make some attempts to find a 2377 server-identifier option to use for the NAK. 2378 [ISC-Bugs #25689] 2379 2380- The client now passes information about the options it requested 2381 from the server to the script code via environment variables. 2382 These variables are of the form requested_<option_name>=1 with 2383 the option name being the same as used in the new_* and old_* 2384 variables. 2385 [ISC-Bugs #29068] 2386 2387- Add support for a simple check that the server id in a request message 2388 to a failover peer matches the server id of the server. This support 2389 is enabled by editing the file includes/site.h and uncommenting the 2390 definition for SERVER_ID_CHECK. The option has several restrictions 2391 and issues - please read the comment in the site.h file before 2392 enabling it. 2393 [ISC-Bugs #31463] 2394 2395- Tidy up some compiler issues in the debug code. 2396 [ISC-Bugs #26460] 2397 2398- Move the dhcpd.conf example file to dhcpd.conf.example to avoid 2399 overwriting the dhcpd.conf file when installing a new version of 2400 ISC DHCP. The user will now need to manual copy and edit the 2401 dhcpd.conf file as desired. 2402 [ISC-Bugs #19337] 2403 2404- Check the status value when trying to read from a connection to 2405 see if it may have been closed. If it appears closed don't try 2406 to read from it again. This avoids a potential busy-wait like 2407 loop when the peer names are mismatched. 2408 [ISC-Bugs #31231] 2409 2410- Remove an unused variable to keep compilers happy. 2411 [ISC-Bugs #31983] 2412 2413- Modify test makefiles to be more similar to standard makefiles 2414 and comment out a currently unused test. 2415 [ISC-Bugs #32089] 2416 2417- Address static analysis warnings. 2418 [ISC-Bugs #33510] [ISC-Bugs #33511] 2419 2420- Silence benign static analysis warnings. 2421 [ISC-Bugs #33428] 2422 2423- Add check for 64-bit package for atf. 2424 [ISC-Bugs #32206] 2425 2426- Use newer auto* tool packages and turn on RFC_3542 support on Mac OS. 2427 [ISC-Bugs #26303] 2428 2429- Remove a variable when it isn't being used due to #ifdefs to avoid 2430 a compiler warning on Solaris using GCC. 2431 [ISC-Bugs #33032] 2432 2433- Add a check for too much whitespace in a config or lease file. 2434 Thanks to Paolo Pellegrino for finding the issue and a suggestion 2435 for the patch. 2436 [ISC-Bugs #33351] 2437 2438- Fix several problems with using OMAPI to manipulate class and subclass 2439 objects. 2440 [ISC-Bugs #27452] 2441 2442- Added a sleep call after killing the old client to allow time 2443 for the sockets to be cleaned. This should allow the -r option 2444 to work more consistently. 2445 [ISC-Bugs #18175] 2446 2447- Missing files for ISC DHCP Developer's Guide are now included in 2448 the release tarballs. To generate this documentation, please use 2449 make devel command in doc directory. [ISC-Bugs #32767] 2450 2451- Update client script for use with openwrt. 2452 [ISC-Bugs #29843] 2453 2454- Fix the socket handling for DHCPv6 clients to allow multiple instances 2455 of a client on a single machine to work properly. Previously only 2456 one client would receive the packets. Thanks to Jiri Popelka at Red Hat 2457 for the bug report and a potential patch. 2458 [ISC-Bugs #34784] 2459 2460- Added support for gentle shutdown after signal is received. 2461 [ISC-Bugs #32692] [ISC-Bugs 34945] 2462 2463- Enhance the DHCPv6 server logging to include the addresses that are assigned 2464 to the clients. 2465 [ISC-Bugs #26377] 2466 2467- Fix an operation in the DDNS code to be a bitwise instead of logical or. 2468 [ISC-Bugs #35138] 2469 2470 2471 Changes since 4.1.0 (new features) 2472 2473- Failover port configuration can now be left to defaults (port 647) as 2474 described in the -12 revision of the Failover draft (and assigned by 2475 IANA). Thanks in part to a patch from David Cantrell at Red Hat. 2476 2477- If configured, dhclient may now transmit to an anycast MAC address, 2478 rather than using a broadcast address. Thanks to a patch from David 2479 Cantrell at Red Hat. 2480 2481- Added client support for setting interface MTU and metric, thanks to 2482 Roy "UberLord" Marples <roy@marples.name>. 2483 2484- Added client -D option to specify DUID type to send. 2485 2486- A new failover configuration parameter has been introduced for those 2487 environments where DHCP servers can be reasonably guaranteed to be 2488 "down" when the failover TCP socket is severed, "auto-partner-down". 2489 This parameter is not generally safe, and by default is disabled, so 2490 please carefully review the documentation of this parameter in the 2491 dhcpd.conf(5) manpage before determining to use it yourself. 2492 2493- Added a configuration function, 'gethostname()', which calls the system 2494 function of the same name and presents the results as a data expression. 2495 This function can be used to incorporate the system level hostname of 2496 the system the DHCP software is operating on in responses or queries (such 2497 as including a failover partner's hostname in a dhcp message or binding 2498 scope, or having a DHCP client send any system hostname in the host-name or 2499 FQDN options by default). 2500 2501- The dhcp-renewal-time and dhcp-rebinding-time options may now be configured 2502 for DHCPv4 operation and used independently of the dhcp-lease-time 2503 calculations. Invalid renew and rebinding times (e.g., greater than the 2504 determined lease time) are omitted. 2505 2506- Processing the DHCP to DNS server transactions in an asynchronous fashion, 2507 the DHCP server or client can now continue with its processing while 2508 awaiting replies from the DNS server. 2509 2510- The 'hardware [ethernet|etc] ...;' parameter in host records has been 2511 extended to attempt to match DHCPv6 clients by the last octets of a 2512 DUID-LL or DUID-LLT provided by the client. 2513 2514 Changes since 4.1.0 (bug fixes) 2515 2516- Remove infinite loop in token_print_indent_concat(). 2517 2518- Validate the argument to the -p option. 2519 2520- The notorious 'option <unknown> ... larger than buffer' log line, 2521 which is seen in some malformed DHCP client packets, was modified. 2522 It now logs the universe name, and does not log the length values 2523 (which are bogus corruption read from the packet anyway). It also 2524 carries a hopefully more useful explanation. 2525 2526- Suppress spurious warnings from configure about --datarootdir 2527 2528- A bug was fixed that caused the server not to answer some valid Solicit 2529 and Request packets, if the dynamic range covering any requested addresses 2530 had been deleted from configuration. 2531 2532- Update the code to deal with GCC 4.3. This included two sets of changes. 2533 The first is to the configuration files to include the use of 2534 AC_USE_SYSTEM_EXTENSIONS. The second is to deal with return values that 2535 were being ignored. 2536 2537- The db-time-format option was documented in manpages. 2538 2539- Using reserved leases no longer results in 'lease with binding state 2540 free not on its queue' error messages, thanks to a patch from Frode 2541 Nordahl. 2542 2543- Fix a build error in dhcrelay, using older versions of gcc with 2544 dhcpv6 disabled. 2545 2546- Two uninitialized stack structures are now memset to zero, thanks to a 2547 patch from David Cantrell at Red Hat. 2548 2549- Fixed a cosmetic bug where pretty-printing valid domain-search options would 2550 result in an erroneous error log message ('garbage in format string'). 2551 2552- A bug in DLPI packet transmission (Solaris, HP/UX) that caused the server 2553 to stop receiving packets is fixed. The same fix also means that the MAC 2554 address will no longer appear 'bogus' on DLPI-based systems. 2555 2556- A bug in select handling was discovered where the results of one select() 2557 call were discarded, causing the server to process the next select() call 2558 and use more system calls than required. This has been repaired - the 2559 sockets will be handled after the first return from select(), resulting in 2560 fewer system calls. 2561 2562- The update-conflict-detection feature would leave an FQDN updated without 2563 a DHCID (still currently implemented as a TXT RR). This would cause later 2564 expiration or release events to fail to remove the domain name. The feature 2565 now also inserts the client's up to date DHCID record, so records may safely 2566 be removed at expiration or release time. Thanks to a patch submitted by 2567 Christof Chen. 2568 2569- Memory leak in the load_balance_mine() function is fixed. This would 2570 leak ~20-30 octets per DHCPDISCOVER packet while failover was in use 2571 and in normal state. 2572 2573- Various compilation fixes have been included for the memory related 2574 DEBUG #defines in includes/site.h. 2575 2576- Fixed Linux client script 'unary operator expected' errors with DHCPv6. 2577 2578- Fixed setting hostname in Linux hosts that require hostname argument 2579 to be double-quoted. Also allow server-provided hostname to 2580 override hostnames 'localhost' and '(none)'. 2581 2582- Fixed failover reconnection retry code to continue to retry to reconnect 2583 rather than restarting the listener. 2584 2585- Compilation on Solaris with USE_SOCKETS defined in includes/site.h has 2586 been repaired. Other USE_ overrides should work better. 2587 2588- A check for the local flavor of IFNAMSIZ had a broken 'else' condition, 2589 that probably still resulted in the correct behaviour (but wouldn't use 2590 a larger defined value provided by the host OS). 2591 2592- Fixed a bug where an OMAPI socket disconnection message would not result 2593 in scheduling a failover reconnection, if the link had not negotiated a 2594 failover connect yet (e.g.: connection refused, asynch socket connect() 2595 timeouts). 2596 2597- A bug was fixed that caused the 'conflict-done' state to fail to be parsed 2598 in failover state records. 2599 2600! A stack overflow vulnerability was fixed in dhclient that could allow 2601 remote attackers to execute arbitrary commands as root on the system, 2602 or simply terminate the client, by providing an over-long subnet-mask 2603 option. CERT VU#410676 - CVE-2009-0692 2604 2605- Fixed a bug where relay agent options would never be returned when 2606 processing a DHCPINFORM. 2607 2608- Versions 3.0.x syntax with multiple name->code option definitions is now 2609 supported. Note that, similarly to 3.0.x, for by-code lookups only the 2610 last option definition is used. 2611 2612- Fixed a bug where a time difference of greater than 60 seconds between a 2613 failover pair could cause the primary to crash on contact with the 2614 secondary. Thanks to a patch from Steinar Haug. 2615 2616- Don't look for IPv6 interfaces on Linux when running in DHCPv4 mode. 2617 Thanks to patches from Matthew Newton and David Cantrell. 2618 2619- Secondary servers in a failover pair will now perform ddns removals if 2620 they had performed ddns updates on a lease that is expiring, or was 2621 released through the primary. As part of the same fix, stale binding scopes 2622 will now be removed if a change in identity of a lease's active client is 2623 detected, rather than simply if a lease is noticed to have expired (which it 2624 may have expired without a failover server noticing in some situations). 2625 2626- A patch supplied by David Cantrell at RedHat was applied that detects 2627 invalid calling parameters given to the ns_name_ntop() function. 2628 Specifically, it detects if the caller passed a pointer and size pair 2629 that causes the pointer to integer-wrap past zero. 2630 2631! Fixed a fenceposting bug when a client had two host records configured, 2632 one using 'uid' and the other using 'hardware ethernet'. CVE-2009-1892 2633 2634- Fixed the check in the dhcp_interface_signal_handler routine to verify 2635 the existence of the linked signal handler before calling it. 2636 2637- Both host and subnet6 configuration groups are now included whether a 2638 fixed-address6 (DHCPv6) is in use or not. Host scoped configuration takes 2639 precedence. This fixes two bugs, one where host scoped configuration 2640 would not be included from a non-fixed-address6 host record, and the equal 2641 and opposite bug where subnet6 scoped configuration would not be used when 2642 over-riding values were not present in a matching fixed-address6 host 2643 configuration. 2644 2645- ./configure now checks to ensure the intX_t and u_intX_t types are defined, 2646 correcting a compilation failure when using Sun's compiler. 2647 2648- Modified the handling of a connection to avoid releasing the omapi io 2649 object for the connection while it is still in use. One symptom from 2650 this error was a segfault when a failover secondary attempted to connect 2651 to the failover primary if their clocks were not synchronized. 2652 2653- Clean up to allow compilation with gcc 2.95.4 on FreeBSD. Remove an 2654 extra semi-colon from common/dns.c and moved setting a variable to NULL 2655 in server/dhcpv6.c to allow the compiler to decide that the variable 2656 was always properly set. 2657 2658 Changes since 4.1.0b1 2659 2660- A missing "else" in dhcrelay.c could have caused an interface not to 2661 be recognized. 2662 2663 Changes since 4.1.0a2 2664 2665- A cosmetic bug in DHCPDECLINE processing was fixed which caused all 2666 successful DHCPDECLINEs to be logged as "not found" rather than 2667 "abandoned". 2668 2669- Added configuration file examples for DHCPv6. 2670 2671- Some failover debugging #defines have been better defined and some 2672 high frequency messages moved to a deeper debugging symbol. 2673 2674- The CLTT parameter in failover is now only updated by client activity, 2675 and not by failover binding updates (taking on the peer's CLTT). 2676 2677- Failover BNDUPD messages are now discarded if they conflict with an 2678 update that has been transmitted, but not acknowledged. 2679 2680- A bug cleaning up unknown-xxx temporary option definitions was fixed. 2681 2682- Delayed-ack is now a compile-time option, compiled out by default. 2683 This feature is simply too experimental for right now, and causes 2684 some problems to some failover installations. We will revisit this 2685 in future releases. 2686 2687- The !inet_pton() call in res_mkupdrec was adjusted to '<= 0' as 2688 inet_pton returns either 1, 0, or -1. 2689 2690- A dhclient-script for MacOS X has been included, which enables 2691 'dhclient -6' support. 2692 2693- DDNS removal routines were updated so that the DHCID is not removed until 2694 the client has been deprived of all A and AAAA records (not only the last 2695 one of either of those). This resolves a bug where dual stack clients 2696 would not be able to regain their names after either expiration event. 2697 2698 Changes since 4.1.0a1 2699 2700- Corrected list of failover state values in dhcpd man page. 2701 2702- Fixed a bug that caused some request types to be logged incorrectly. 2703 2704- Clients that sent a parameter request list containing the 2705 routers option before the subnet mask option were receiving 2706 only the latter. Fixed. 2707 2708- The server wasn't always sending the FQDN option when it should. 2709 2710- A partner-down failover server no longer emits 'peer holds all free leases' 2711 if it is able to newly-allocate one of the peer's leases. 2712 2713- Fixed a coredump when adding a class via OMAPI. 2714 2715- Check whether files are zero length before trying to parse them. 2716 2717- Ari Edelkind's PARANOIA patch has been included and may be compiled in 2718 via two ./configure parameters, --enable-paranoia and 2719 --enable-early-chroot. 2720 2721- ./configure was extended to cover many optional build features, such 2722 as failover, server tracing, debugging, and the execute() command. 2723 2724- There is now a default 1/4 of a second scheduled delay between delayed 2725 fsync()'s, it can be configured by the max-ack-delay configuration 2726 parameter. 2727 2728- A bug was fixed where the length of a hostname was miscalculated, so that 2729 hosts were given odd-looking domain names ("foo.bar.ba.example.com"). 2730 2731- Shared network selection should be done from the innermost relay 2732 valid link-address field, rather than the outermost. 2733 2734- Prefix pools are attached to shared network scopes. 2735 2736- Merged IA_XX related structures. 2737 2738- Add DHCPv6 files in configure. 2739 2740- A memory leak when using omapi has been fixed. 2741 2742- DHCPv6 vendor-class options (VSIO) are now only sent when they appear 2743 on the DHCPv6 ORO. This resolves a bug where VSIO options were placed 2744 in IA_NA encapsulated options fields. 2745 2746- Integrated client with stateless, temporary address and prefix delegation 2747 support. 2748 2749- A double-dereference in dhclient transmission of DHCPDECLINEs was 2750 repaired. 2751 2752- Fix handling of format code 'Z'. 2753 2754- Support "-1" argument in DHCPv6. 2755 2756- Merge DHCPv6-only "dhcrelay6" into general-purpose "dhcrelay" (use 2757 "-6" option to select DHCPv6 mode). 2758 2759- Fix handling of -A and -a flags in dhcrelay; it was failing to expand 2760 packet size as needed to add relay agent options. 2761 2762- A bug in subnet6 parsing where options contained in subnet6 clauses would 2763 not be applied to clients addressed within that network was repaired. 2764 2765- When configuring a "subnet {}" or "subnet6 {}" without an explicit 2766 shared-network enclosing it, the DHCP software would synthesize a 2767 shared-network to contain the subnet. However, all configuration 2768 parameters within the subnet more intuitively belong "to any client 2769 on that interface", or rather the synthesized shared-network. So, 2770 when a shared-network is synthesized, it is used to contain the 2771 configuration present inside the subnet {} clause. This means that 2772 the configuration will be valid for all clients on that network, not 2773 just those addressed out of the stated subnet. If you intended the 2774 opposite, the workaround is to explicitly configure an empty 2775 shared-network. 2776 2777- A bug was fixed where Information-Request processing was not sourcing 2778 configured option values. 2779 2780- A warning was added since the DHCPv6 processing software does not yet 2781 support class statements. 2782 2783- Compilation warnings on GCC 4.3 relating to bootp source address 2784 selection were repaired. 2785 2786- The v6 BSD socket method was updated to use a single UDP BSD socket 2787 no matter how many interfaces are involved, differentiating the 2788 interfaces the packets were received on by the interface index supplied 2789 by the OS. 2790 2791- The relay agent no longer listens to the All DHCP Servers Multicast 2792 address. 2793 2794- A bug was fixed in data_string_sprintfa() where va_start was only called 2795 once for two invocations of vsprintf() variants. 2796 2797- ERO (RFC 4994) server support. 2798 2799- Basic and partial DHCPv6 leasequery support. 2800 2801- Reliable DHCPv6 release (previous behavior, send release and exit, is 2802 still available with dhclient -6 -1 -r). 2803 2804 Changes since 4.0.0 (new features) 2805 2806- Added DHCPv6 rapid commit support. 2807 2808- Added explicit parser support for zero-length DHCP options, such as 2809 rapid-commit, via format code 'Z'. 2810 2811- It's now possible to update the "ends" field of a lease with OMAPI. 2812 This is useful if you want not only to release a lease, but also make 2813 it available for reuse right away. Hat tip to Christof Chen. 2814 2815- Fixed definition of the iaaddr hash functions to use the correct 2816 functions when referencing and dereferencing memory. 2817 2818- Some definitions not in phase with the IANA registry were updated. 2819 2820- Allocated interface IDs are better controlled ('u' bit set to zero, 2821 reserved IDs avoided). 2822 2823- Unicast options are taken into account only for RENEWs. 2824 2825- NoAddrsAvail answers to SOLICITs are always ADVERTISEs even when a SOLICIT 2826 carries a rapid-commit option. 2827 2828- Return in place of raise an impossible condition when one tries to release 2829 an empty active lease. 2830 2831- Timer granularity is now 1/100s in the DHCPv6 client. 2832 2833- The dhclient-script was updated to create a host route for the default 2834 gateway if the supplied subnet mask for an IPv4 address was a /32. This 2835 allows the client to work in 'captive' network environments, where the 2836 operator does not want clients to crosstalk directly. 2837 2838- MINUS tokens should be parsable again. 2839 2840- Multiple (up to "delayed-ack x;" maximum) DHCPv4 packets are now queued and 2841 released in bursts after single fsync() events when the upper limit is 2842 reached or if the receiving sockets go dry. The practical upshot is 2843 that fsync-coupled server performance is now multiplicitively increased. 2844 The default delayed ack limit is 28. Thanks entirely to a patch from 2845 Christof Chen. 2846 2847 Changes since 4.0.0 (bug fixes) 2848 2849- DHCP now builds on AIX. 2850 2851- Exit with warning when DHCPv6-specific statements are used in the 2852 config file but -6 is not specified. 2853 2854- Fixed "--version" flag in dhcrelay 2855 2856- The 'min-secs' configuration parameter's log message has been updated to 2857 be more helpful. 2858 2859- The warning logged when an address range doesn't fit in the subnets 2860 they were declared has been updated to be more helpful and identify the 2861 typo in configuration that created the spanning addresses. 2862 2863- A bug in failover pool rebalancing that caused POOLREQ message ping-pongs 2864 was repaired. 2865 2866- A flaw in failover pool rebalancing that could cause POOLREQ messages to 2867 be sent outside of the min-balance/max-balance scheduled intervals has 2868 been repaired. 2869 2870- A cosmetic bug during potential-conflict recovery that caused the peer's 2871 'conflict-done' state message to be logged as 'unknown-state' has been 2872 repaired. It is now logged correctly. 2873 2874- A bug was fixed where the 'giaddr' may be used to find the client's subnet 2875 rather than its own 'ciaddr'. 2876 2877- A log message was introduced to clarify the situation where a failover 2878 'address' parameter (the server's local address) did not resolve to an 2879 IPv4 address. 2880 2881- The minimum site code value was set to 224 in 3.1.0 to track RFC3942. This 2882 broke a lot of legacy site local configurations. The new code in place will 2883 track site local space minimum option codes and logs a warning to encourage 2884 updates and exploration of site local code migration problems. Option 2885 codes less than 128 in site local spaces remain inaccessible. 2886 2887- A possible relay agent option bug was repaired where random server 2888 initialization state may have been used to signal the relay agent 2889 information options sub-option code for the 'END' of the option space. 2890 2891- Fixes to allow code to compile and run on Solaris 9. 2892 2893- Fixes to allow code to compile on Mac OS X Leopard (10.5). 2894 2895- When server is configured with options that it overrides, a warning is 2896 issued when the configuration file is read, rather than at the time the 2897 option is overridden. This was important, because the warning was given 2898 every time the option was overridden, which could create a lot of 2899 unnecessary logging. 2900 2901- Fixed a compilation problems on platforms that define a value for FDDI, 2902 which conflicts with a dhcp configuration syntax token by the same name. 2903 2904- When a failover server suspects it has encountered a peer running a 2905 version 3.0.x failover server, a warning that the failover wire protocol 2906 is incompatible is printed. 2907 2908- The failover server no longer issues a floating point error if it encounters 2909 a previously undefined option code. 2910 2911- Fix startup error messages to report a missing "subnet6 declaration", rather 2912 than a missing "subnet declaration", when running as a DHCPv6 server. 2913 2914- DHCPv6 client timestamp in DUID was based on the year 1970 rather 2915 than the year 2000. 2916 2917- Warn when attempting to use a hardware parameter in DHCPv6. 2918 2919- DHCPv6 released resources are now marked as released by the client. 2920 2921- 'Soft' bindings have no more side-effects. 2922 2923 Changes since 4.0.0b3 2924 2925- The reverse dns name for PTR updates on IPv6 addresses has been fixed to 2926 use ip6.arpa. rather than default to in-addr.arpa and require user 2927 configuration. 2928 2929- dhc6_lease_destroy() and dhc6_ia_destroy() now set lease and IA pointers 2930 to NULL after freeing, to prevent subsequent accesses to freed memory. 2931 2932- The DHCPv6 server would not send the preference option unless the 2933 client requested it, via the ORO. This has been fixed, so the DHCPv6 2934 server will always send the preference value if it is configured. 2935 2936- When addresses were passed as hints to the server in an IA, they were 2937 incorrectly handled, sometimes being treated as an error. Now the 2938 server will treat these as hints and ignore them if it cannot supply 2939 a requested address. 2940 2941- If the client had multiple addresses, and one expired (was not renewed 2942 by the server), the client would continue to attempt to renew the same 2943 old address over and over. Now, the client will omit any expired 2944 addresses from future Confirm, Renew, or Rebind messages. 2945 2946- dhclient -6 will now select renew/rebind timers based upon the longest 2947 address expiration time rather than the shortest expiration time, in 2948 order to avoid cascading renewals in the event a server elects not to 2949 extend one of multiple IAADDR leases. 2950 2951- The server now limits clients that request multiple addresses to one 2952 address per IA by default, which can be adjusted through the 2953 "limit-addrs-per-ia" configuration option. 2954 2955- The DHCPv6 client now issues fresh transaction IDs on Renew and Rebind 2956 message exchanges, rather than using the most recent ID. 2957 2958- The DHCPv6 server now replies to Information-Request messages. 2959 2960- A bug was fixed in the dhclient-script for BSDs to correctly carry error 2961 codes through some conditions. 2962 2963- The parsing of some options in the dhclient lease file, in particular 2964 the success DHCPv6 status-code, was fixed. 2965 2966- A bug was fixed that caused the DHCPv6 ORO option to be corrupted with 2967 seemingly random values. 2968 2969- A reference overleak in DHCPv6 shared network processing was repaired. 2970 2971- ./configure now autodetects local database locations rather than trying 2972 to put dhcpd.leases and dhclient.leases in /usr/local/var/db, which no 2973 one ever has. 2974 2975- Regression fix for bug where server advertised a IPv6 address in 2976 response to a SOLICIT but would not return the address in response 2977 to a REQUEST. 2978 2979- A bug was fixed where the DHCPv6 server puts the NoAddrsAvail status 2980 code in the IA_NA was fixed. The status code now appears in the root 2981 level. 2982 2983 Changes since 4.0.0b2 2984 2985- Clarified error message when lease limit exceeded 2986 2987- Relative time may now be used as a qualifier for 'allow' and 'deny' access 2988 control lists. These directives may be used to assist in re-addressing 2989 address pools without having to constantly reconfigure the server. Please 2990 see 'man dhcpd.conf' for more information on allow/deny 'after time' syntax. 2991 Thanks to a patch from Christof Chen. 2992 2993- The server will now include multiple IA_NA's and multiple IAADDRs within 2994 them, if advertised by the client. It still only seeks to allocate one 2995 new address. 2996 2997 Changes since 4.0.0b1 2998 2999- Use different paths for PID and lease files when running in DHCPv4 3000 or DHCPv6 mode, so that servers for both protocols can be run 3001 simultaneously on a single interface. 3002 3003- Fixed a buffer overflow error which could have allowed a denial 3004 of service under unusual server configurations 3005 3006- Eliminated a spurious error message from the client 3007 3008- A number of bugs with the internal handling of lease state on the 3009 server have been fixed. Some of these could cause server crashes. 3010 3011- The peer_wants_leases() changes pulled up from 3.1.0 were corrected, 3012 'never used' leases will no longer consistently shift between servers 3013 on every pool rebalance run. 3014 3015- sendmsg()/recvmsg() control buffers are now declared in such a way to 3016 ensure they are correctly aligned on all (esp. 64-bit) architectures. 3017 3018- The client leasing subsystem was streamlined and corrected to account 3019 more closely for changes in client link attachment selection. 3020 3021 Changes since 4.0.0a3 3022 3023- The DHCP server no longer requires a "ddns-update-style" statement, 3024 and now defaults to "none", which means DNS updates are disabled. 3025 3026- Log messages when failover peer names mismatch have been improved to 3027 point out the problem. 3028 3029- Bug where server advertised a IPv6 address in response to a SOLICIT 3030 but would not return the address in response to a REQUEST. Thanks to 3031 Dennis Kou for finding the bug. 3032 3033- Fixed an error causing the server to lock up on lease expiration, 3034 reported independently by Jothilingam Vasu and Dennis Kou. 3035 3036- Fixed a ./configure bug where compile tests were failing due to 3037 "-Werror" (unused variable) rather than the actual test failure. Lead 3038 to inconsistent and unworkable auto-configurations. 3039 3040- Compilation with DLPI and -Werror has been repaired. 3041 3042- Error in decoding IA_NA option if multiple interfaces are present 3043 fixed by Marcus Goller. 3044 3045- DHCPv6 server Confirm message processing has been enhanced - it no 3046 longer replies only to clients with host {} records, it now replies 3047 as directed in RFC3315 section 18.2.2 - that is, to all clients 3048 regardless of the existence of bindings. 3049 3050- A core dump during expired lease cleanup has been repaired. 3051 3052- DDNS updates state information are now stored in 'binding scopes' that 3053 follow the leases through their lifecycles. This enables DDNS teardowns 3054 on leases that are assigned and expired inbetween a server restart (the 3055 state is recovered from dhcpd.leases). Arbitrary user-specified binding 3056 scopes ('set var = "value";') are not yet supported. 3057 3058- Additional compilation problems on HP/UX have been repaired. 3059 3060 Changes since 4.0.0a2 3061 3062- Fix for startup where there are no IPv4 addresses on an interface. 3063 Thanks to Marcus Goller for reporting the bug. 3064 3065- Fixed file descriptor leak on listen failure. Thanks to Tom Clark. 3066 3067- Bug in server configuration parser caused server to get stuck on 3068 startup for certain bad pool declarations. Thanks to Guillaume 3069 Knispel for the bug report and fix. 3070 3071- Code cleaned to remove warnings reported by "gcc -Wall". 3072 3073- DHCPv6 is now the default. You can disable DHCPv6 support using the 3074 "--disable-dhcpv6" flag when you run the configure script. 3075 3076- An internal database inconsistency bug was repaired where the server 3077 would segfault if a client attempted to renew a lease that had been 3078 loaded from persistent storage. 3079 3080- 'request' and 'also request' syntaxes have been added to accommodate 3081 the DHCPv6 client configuration. 'send dhcp6.oro' is no longer 3082 necessary. 3083 3084- Bug fixed where configuration file parsing did not work with 3085 zero-length options; this made it impossible to set the 3086 rapid-commit option. 3087 3088- Bogus messages about host records with IPv4 fixed-addresses being of 3089 non-128-bits in length were removed. 3090 3091 Changes since 4.0.0a1 3092 3093- Bug in octal parsing fixed. Thanks to Bernd Fuhrmann for the report 3094 and fix. 3095 3096- Autoconf now supplies proper flags for Solaris DHCPv6 builds. 3097 3098- Fix for parsing error on some IPv6 addresses. 3099 3100- Invalid CIDR representation for IPv6 subnets or ranges now checked 3101 for when loading configuration. 3102 3103- Compilation on HP/UX has been repaired. The changes should generally 3104 apply to any architecture that supplies SIOCGLIFCONF but does not 3105 use 'struct lifconf' structures to pass values. 3106 3107- Two new operators, ~= and ~~, have been integrated to implement 3108 boolean matches by regular expression (such as may be used in 3109 class matching statements). Thanks to a patch by Alexandr S. 3110 Agranovsky, which underwent slight modification. 3111 3112- Fix for icmp packets on 64-bit systems (bug introduced in 4.0). 3113 3114- A bug was fixed in interface discovery wherein an error identifying 3115 a server-configured interface with no IPv4 addresses would SEGV. 3116 3117- Fixed a bug in which write_lease() might report a failure incorrectly 3118 3119- Added support for DHCPv6 Release messages 3120 3121- Added -x option to dhclient, which triggers dhclient processes 3122 to exit gracefully without releasing leases first 3123 3124- All binaries (client, server, relay) now change directories 3125 to / before going into daemon mode, so as not to hold $CWD open 3126 3127- Fixed a bug parsing DHCPv6 client-id's in host-identifier statements 3128 3129- Fixed a bug with the 'ddns-updates' boolean server configuration 3130 parameter, which caused the server to fail. 3131 3132 Changes since 4.0.0-20070413 3133 3134- Old (expired) leases are now cleaned. 3135 3136- IPv6 subnets now have support for arbitrary allocation ranges via 3137 a new 'range6' configuration directive. 3138 3139- An obviated option code hash lookup to find D6O_CLIENTID was removed. 3140 3141- Corrected some situations where variables might be used without being 3142 initialized. 3143 3144- Silenced several other compiler warnings. 3145 3146- Include the more standard sys/uio.h rather than rely upon other 3147 header files to include it (fixes a BSD 4.2 compile failure). 3148 3149- Duplicate dhclient-script updates for DHCPv6 to all provided scripts. 3150 3151- DHCPv4 I/O methods that failed to sense hardware address were corrected. 3152 3153- DHCPv4 is now the default (as documented) rather than DHCPv6. The default 3154 was set to DHCPv6 to facilitate ease early development, and forgotten. 3155 3156- Corrected a segmentation violation in DHCPv4 socket processing. 3157 3158- dhclient will now fork() into the background once it binds to an 3159 IPv6 address, or immediately if the -n flag is supplied. 3160 3161- -q is now the default behaviour on dhclient, with -d or -v enabling 3162 non-quiet (stderr logging) mode. 3163 3164- Fix documentation of the domain-search atom (quoted, with commas). 3165 3166- Document DHCPv6 options presently in the default table. 3167 3168- Replaced ./configure shellscripting with GNU Autoconf. 3169 3170 Changes since 3.1.0 (NEW FEATURES) 3171 3172- DHCPv6 Client and Server protocol support. Use '-6' to run the daemons 3173 as v6-only. Use '-4' to run the daemons as v4-only (default. There is 3174 no support currently for both. 3175 3176- Server support for multiple IA_NA options, containing at most one 3177 IAADDR option. 3178 3179- Client support for one IA_NA option, containing any number of IAADDR 3180 options. 3181 3182- Server support for the DHCPv6 Information-request message. 3183 3184- Inappropriate unicast DHCPv6 messages sent to the server are now 3185 discarded, and this has rearchitected the IO system slightly. 3186 3187- The DHCPv6 server DUID defaults to type 1, is persistently stored in 3188 the leases database, and can be over-ridden (either completely, or by 3189 specifying type 1 or type 2). 3190 3191- The server only uses Rapid-Commit if it has been configured with the 3192 Rapid-Commit option and the client requests it. 3193 3194- DDNS support. We now update AAAA records in the same place we would 3195 update A records, if we have an IPv6 address. We also generate IP6.ARPA 3196 style names for PTR records if we're dealing with an IPv6 address. Both 3197 A and AAAA updates are done using the same 'fqdn.' virtual option space 3198 (although the DHCPv4 FQDN and DHCPv6 FQDN options are formatted 3199 differently, they both use the same code here). 3200 3201- The Linux dhclient-script attempts to set and remove assigned addresses, 3202 and to configure /etc/resolv.conf from nameserver and domain name 3203 configurations. It can be extended to configure other parameters. 3204 3205- Initial DHCPv6 lease support. 3206 3207- The IO system now tracks all local IP addresses, so that the DHCP 3208 applications (particularly the dhcrelay) can discern between what frames 3209 were transmitted to it, and what frames are being carried through it which 3210 it should not intercept. 3211 3212 Changes since 3.1.0 (Maintenance) 3213 3214- A bug was repaired where MAC Address Affinity for virgin leases always 3215 mapped to the primary. Virgin leases now have an interleaved preference 3216 between primary and secondary. 3217 3218- A bug was repaired where MAC Address Affinity for clients with no client 3219 identifier was sometimes mishashed to the peer. Load balancing during 3220 runtime and pool rebalancing were opposing. 3221 3222- An assertion in lease counting relating to reserved leases was repaired. 3223 3224- The subnet-mask option inclusion now conforms with RFC2132 section 3.3; 3225 it will only appear prior to the routers option if it is present on the 3226 Parameter-Request-List. The subnet-mask option will also only be 3227 included by default (if it is not on the PRL) in response to DISCOVER 3228 or REQUEST messages. 3229 3230- The FQDN option is only supplied if the client supplied an FQDN option or 3231 if the FQDN option was explicitly requested on the PRL. 3232 3233- Dynamic BOOTP leases are now load balanced in failover. 3234 3235 Changes since 3.1.0rc1 3236 3237- The parse warning that 'deny dynamic bootp;' must be configured for 3238 failover protected subnets was removed. 3239 3240 Changes since 3.1.0b2 3241 3242- Failover rebalance events no longer play ping pong with round errors 3243 (moving leases between free and back to backup where there are an 3244 odd number of leases). 3245 3246- The 'pool' log line has been split into two messages, one before the 3247 rebalance run, and one after. 3248 3249- Any queued BNDACKs are transmitted before transmitting new BNDUPDs. 3250 This enforces the correct sequence of events for the remote server 3251 processing these messages. 3252 3253 Changes since 3.1.0b1 3254 3255- Fixed a bug that caused OMAPI clients to freeze when opening lease 3256 objects. 3257 3258- A new server config option "fqdn-reply" specifies whether the server 3259 should send out option 81 (FQDN). Defaults to "on". If set to "off", 3260 the FQDN option is not sent, even if the client requested it. This is 3261 needed because some clients misbehave otherwise. Thanks to Christof Chen 3262 at Allianz. 3263 3264- Allow trace output files (-tf option) to be overwritten, rather than 3265 crashing dhcpd if the file already exists 3266 3267- A bug was fixed that caused dhcpd to segfault if a pool was declared 3268 outside the scope of a subnet in dhcpd.conf. 3269 3270- Some uninitialized values were repaired in dhcpleasequery.c that 3271 caused the server to abort. 3272 3273- A new server config option, 'do-reverse-updates', has been added 3274 which causes the server to abstain from performing updates on PTR 3275 records. Thanks to a patch from Christof Chen at Allianz. 3276 3277- A bug was repaired in subencapsulation support, where spaces separated 3278 by empty spaces would not get included. 3279 3280- A bug in dhclient was repaired which caused it to send parameter request 3281 lists of 55 bytes in length no matter how long the declared PRL was. 3282 3283- 'dhcp.c(3953): non-null pointer' has been repaired. This fixes a flaw 3284 wherein the DHCPv4 server may ignore a configured server-identifier. 3285 3286- A flaw in failover startup sequences was repaired that sometimes left 3287 the primary DHCP server's pool rebalance schedules unscheduled. 3288 3289- Corrected a flaw that broke encapsulated spaces included due to presence 3290 on the parameter request list. 3291 3292 Changes since 3.1.0a3 3293 3294- Some spelling fixes. 3295 3296 Changes since 3.1.0a2 3297 3298- A bug was fixed where attempting to permit leasequeries results in a 3299 fatal internal error, "Unable to find server option 49". 3300 3301- A bug was fixed in dhclient rendering the textual output form of the 3302 domain-search option syntax. 3303 3304 Changes since 3.1.0a1 3305 3306- A bug in the FQDN universe that added FQDN codes to the NWIP universe's 3307 hash table was repaired. 3308 3309- The servers now try harder to transmit pending binding updates when 3310 entering normal state. 3311 3312- UPDREQ/UPDREQALL handling was optimized - it no longer dequeues and 3313 requeues all pending updates. This should reduce the number of spurious 3314 'xid mismatch' log messages. 3315 3316- An option definition referencing leak was fixed, which resulted in early 3317 termination of dhclient upon the renewal event. 3318 3319- Some default hash table sizes were tweaked, some upwards, some downwards. 3320 3.1.0a1's tables resulted in a reduction in default server memory use. 3321 The new selected values provide more of a zero sum (increasing the size 3322 of tables likely to be populated, decreasing the size of tables unlikely). 3323 3324- Lease structures appear in three separate hashes: by IP address, by UID, 3325 and by hardware address. One type of table was used for all three, and 3326 improvements to IP address hashing were applied to all three (so UID and 3327 hardware addresses were treated like 4-byte integers). There are now two 3328 types of tables, and the uid/hw hashes use functions more appropriate 3329 to their needs. 3330 3331- The max-lease-misbalance percentage no longer causes scheduled rebalance 3332 runs to be skipped: it still governs the schedule, but every scheduled 3333 run will attempt balance. 3334 3335- A segfault bug in recursive encapsulation support has been corrected. 3336 3337 Changes since 3.0 (New Features) 3338 3339- A workaround for certain STSN servers that send a mangled domain-name 3340 option was introduced for dhclient. The client will now accept corrupted 3341 server responses, if they contain a valid DHCP_MESSAGE_TYPE (OFFER, ACK, 3342 or NAK). The server will continue to not accept corrupt client packets. 3343 3344- Support for 'reserved' (pseudo-static) and BOOTP leases via failover 3345 was introduced. 3346 3347- Support for adding, removing, and managing class and subclass statements 3348 via OMAPI. 3349 3350- The failover implementation was updated to comply with revision 12 of 3351 the protocol draft. 3352 3353- 'make install' now creates the initial zero-length dhcpd.leases file if 3354 one does not already exist on the system. 3355 3356- RFC3942 compliance, site-local option spaces start at 224 now, not 128. 3357 3358- The Load Balance Algorithm was misimplemented. The current implementation 3359 matches RFC 3074. 3360 3361- lcase() and ucase() configuration expressions have been added which adjust 3362 their arguments from upper to lower and lower to upper cases respectively. 3363 Thanks to a patch from Albert Herranz. 3364 3365- The dhclient 'reject ...;' statement, which rejects leases given by named 3366 server-identifiers, now permits address ranges to be specified in CIDR 3367 notation. Thanks to a patch from David Boyce. 3368 3369- The subnet-mask option is now supplied by default, but at lowest 3370 priority. This helps a small minority of clients that provide parameter 3371 request lists, but do not list the subnet-mask option because they were 3372 designed to interoperate with a server that behaves in this manner. 3373 3374- The FQDN option is similarly supplied even if it does not appear on the 3375 parameter request list, but not to the exclusion of options that do 3376 appear at the parameter request list. Up until now it had ultimate 3377 priority over the client's parameter request list. 3378 3379- Varying option space code and length bit widths (8/16/32) are now 3380 supported. This is a milestone in achieving RFC 3925 "VIVSO" and 3381 DHCPv6 support. 3382 3383- A new common (server or client) option, 'db-time-format local;', has 3384 been added which prints the local time in /var/db/dhcpd.leases rather 3385 than UTC. Thanks to a patch from Ken Lalonde. 3386 3387- Some patches to improve DHCP Server startup speed from Andrew Matheson 3388 have been incorporated. 3389 3390- Failover pairs now implement 'MAC Affinity' on leases moving from the 3391 active to free states. Leases that belonged to the failover secondary 3392 are moved to BACKUP state rather than FREE upon exiting EXPIRED state. 3393 If lease rebalancing must move leases, it tries first to move leases 3394 that belong to the peer in need. 3395 3396- The server no longer sends POOLREQ messages unless the pool is severely 3397 misbalanced in the peer's favor (see 'man dhcpd.conf' for more details). 3398 3399- Pool rebalance events no longer happen upon successfully allocating a 3400 lease. Instead, they happen on a schedule. See 'man dhcpd.conf' for the 3401 min-balance and max-balance statements for more information. 3402 3403- The DHCP Relay Agent Information Option / Link Selection Sub-Option 3404 is now supported. (See RFC3527 for details). 3405 3406- A new DDNS related server option, update-conflict-detection, has been 3407 added. If this option is enabled, dhcpd will perform normal DHCID 3408 conflict resolution (the default). If this option is disabled, it will 3409 instead trust the assigned name implicitly (removing any other bindings 3410 on that name). This option has not been made available in dhclient. 3411 3412- In those cases where the DHCP software manufactures an IP header (to 3413 transmit via bpf, lpf, etc), the IP TTL the software selects has been 3414 increased from 16 to 128. This is intended to match Microsoft Windows 3415 DHCP Client behaviour, to increase compatibility. 3416 3417- 'ignore client-updates;' now has behaviour that is different from 3418 'deny client-updates;'. The client's request is not truly ignored, 3419 rather it is encouraged. Should this value be configured, the server 3420 updates DNS as though client-updates were set to 'deny'. That is, it 3421 enters into DNS whatever it is configured to do already, provided it is 3422 configured to. Then it sends a response to the client that lets the 3423 client believe it is performing client updates (which it will), probably 3424 for a different name. In essence, this lets the client do as it will, 3425 ignoring this aspect of their request. 3426 3427- Support for compressed 'domain name list' style DHCP option contents, and 3428 in particular the domain search option (#119) was added. 3429 3430- The DHCP LEASEQUERY protocol as defined in RFC4388 is now implemented. 3431 LEASEQUERY lets you query the DHCP server for information about a lease, 3432 using either an IP address, MAC address, or client identifier. Thanks 3433 to a patch from Justin Haddad. 3434 3435- DHCPD is now RFC2131 section 4.1 compliant (broadcast to all-ones ip and 3436 ethernet mac address) on the SCO platform specifically without any strange 3437 ifconfig hacks. Many thanks go to the Kroger Co. for donating the 3438 hardware and funding the development. 3439 3440- A new common configuration executable statement, execute(), has been 3441 added. This permits dhcpd or dhclient to execute a named external 3442 program with command line arguments specified from other configuration 3443 language. Thanks to a patch written by Mattias Ronnblom, gotten to us 3444 via Robin Breathe. 3445 3446- A new dhcp server option 'adaptive-lease-time-threshold' has been added 3447 which causes the server to substantially reduce lease-times if there are 3448 few (configured percentage) remaining leases. Thanks to a patch submitted 3449 from Christof Chen. 3450 3451- Encapsulated option spaces within encapsulated option spaces is now 3452 formally supported. 3453 3454 Changes since 3.0.6rc1 3455 3456- supersede_lease() now requeues leases in their respective hardware 3457 address hash bucket. This mirrors client identifier behaviour. 3458 3459 Changes since 3.0.5 3460 3461- Assorted fixes for broken network devices: Packet length is now 3462 determined from the IP header length field to finally calculate the 3463 UDP payload length, because some NIC drivers return more data than 3464 they actually received. 3465 3466- UDP packets are now stored in aligned data structures. 3467 3468- A logic error in omapi interface code was repaired that might result in 3469 incorrectly indicating 'up' state when any flags were set, rather than 3470 specifically the INTERFACE_REQUESTED flag. Thanks to a patch from 3471 Jochen Voss which got to us via Andrew Pollock at Debian. 3472 3473- A reference leak on binding scopes set by ddns updates was repaired. 3474 3475- A memory leak in the minires_nsendsigned() function call was repaired. 3476 Effectively, this leaked ~176 bytes per DDNS update. 3477 3478- In the case where an "L2" DHCP Relay Agent (one that does not set giaddr) 3479 was directly attached to the same broadcast domain as the DHCP server, 3480 the RFC3046 relay agent information option was not being returned to the 3481 relay in the server's replies. This was fixed; the dhcp server no longer 3482 requires the giaddr to reply with relay agent information. Note that 3483 this also improves compatibility with L2 devices that "intercept" DHCP 3484 packets and expect relay agent information even in unicast (renewal) 3485 replies. Thanks to a patch from Pekka Silvonen. 3486 3487- A bug was fixed where the BOOTP header 'sname' field had a value, the 3488 copy written to persistent storage was actually the contents of the 3489 'file' field. 3490 3491- A bug was fixed where the nwip virtual option space was referencing 3492 the fqdn option's virtual option space's option cache. 3493 3494- Timestamp parsing errors that indicated missing "minutes" fields rather 3495 than the actually missing "seconds" fields have been repaired thanks to 3496 a patch from Kevin Steves. 3497 3498- A grammar error in the dhclient.8 manpage was repaired thanks to a patch 3499 from Chris Wagner. 3500 3501- Several spelling typos were repaired, and some cross-references to other 3502 relevant documents were included in the manpages, thanks to a patch 3503 by Andrew Pollock which got to us via Tomas Pospisek. 3504 3505- Some bugs were fixed in the 'emergency relay agent options hologram' 3506 which is used to retain relay agent option contents from when the 3507 client was in INIT or REBIND states. This should solve problems where 3508 relay agent options were not echoed from the server, even when giaddr 3509 was set. 3510 3511- dhclient now closes its descriptor to dhclient.leases prior to executing 3512 dhclient-script. Thanks to a patch from Tomas Pospisek. 3513 3514- The server's "by client-id" and "by hardware address" hash table lists 3515 are now sorted according to the preference to re-allocate that lease to 3516 returning clients. This should eliminate pool starvation problems 3517 arising when "INIT" clients were given new leases rather than presently 3518 active ones. 3519 3520 Changes since 3.0.5rc1 3521 3522- A bug was repaired in fixes to the dhclient, which sought to run the 3523 dhclient-script with the 'EXPIRE' state should it receive a NAK in 3524 response to a REQUEST. The client now iterates the PREINIT state 3525 after the EXPIRE state, so that interfaces that might be configured 3526 'down' can be brought back 'up' and initialized. 3527 3528- DHCPINFORM handling for clients that properly set ciaddr and come to the 3529 server via a relay aget has been repaired. 3530 3531 Changes since 3.0.4 3532 3533- A warning that host statements declared within subnet or shared-network 3534 scopes are actually global has been added. 3535 3536- The default minimum lease time (if min-lease-time was not specified) 3537 was raised from 0 to 300. 0 is not thought to be sensible, and is 3538 known to be damaging. 3539 3540- Added additional fatal error sanity checks surrounding lease binding 3541 state count calculations (free/active counts used for failover pool 3542 balancing). 3543 3544- Some time value size fixes in 3.0.4 brought on from FreeBSD /usr/ports were 3545 misapplied to server values rather than client values. The server no longer 3546 advertises 8-byte lease-time options when on 64-bit platforms. 3547 3548- A bug where leases not in ACTIVE state would get billed to billed classes 3549 (classes with lease limitations) was fixed. Non-active leases OFFERed 3550 to clients are no longer billed (but billing is checked before offering). 3551 3552- The dhcpd.conf.5 manpage was updated in regard to the ddns-domainname 3553 configuration option - the default configuration and results should be 3554 more clear now. 3555 3556- If the dhclient were to receive a DHCPNAK while it was in the RENEW 3557 state (and consequently, had an active, 'bound' address and related 3558 configuration options), it would fail to 'tear down' this information 3559 before proceeding into INIT state. dhclient now iterates the dhclient- 3560 script with the 'EXPIRE' action to cause these teardowns prior to entering 3561 INIT state. Thanks to a patch from Chris Zimmerman. 3562 3563- The omapi.1 manpage had some formatting errors repaired thanks to a patch 3564 from Yoshihiko Sarumaru. 3565 3566- A few lines of code that were failover-specific were moved within 3567 #if defined() clauses so that compilation without failover could be 3568 made possible. 3569 3570- The log message emitted when the 'leased-address' value was not available 3571 in dhcpd.conf "executable statements" has been updated to be more helpful. 3572 Manpage information for this value has also been updated. 3573 3574- Abandoned or dissociated (err condition) leases now remove any related 3575 dynamic dns bindings. Thanks to a patch from Patrick Schoo. 3576 3577- Attempting to write a new lease file to replace a corrupt (due to 3578 encountering non-retryable errors during writing) lease file should 3579 no longer result in an infinite recursion. 3580 3581- Host declaration hardware addresses and client identifiers may only be 3582 configured once. dhcpd will now fail to load config files that specify 3583 multiple identifiers (previous versions would silently over-ride the 3584 value with the later configured value). 3585 3586- Several option codes that have been allocated since our last release 3587 have been named and documented. 3588 3589- Option names of the form "unknown-123" have been removed from the in- 3590 memory hash tables. In order to support options of these names that 3591 may appear in dhclient.leases or similar in previous versions, the 3592 parser will now find the new option code definition, or mock up a 3593 generic option code definition. This should result in a smooth 3594 transition from one name to the other, as the new name is used to 3595 write new output. 3596 3597 Changes since 3.0.4rc1 3598 3599- The dhcp-options.5 manpage was updated to correct indentation errors 3600 thanks to a patch from Jean Delvare. 3601 3602 Changes since 3.0.4b3 3603 3604- Some manual pages were clarified pursuant to discussion on the dhcp-server 3605 mailing list. 3606 3607 Changes since 3.0.4b2 3608 3609- Null-termination sensing for certain clients that unfortunately require 3610 it in DHCPINFORM processing was repaired. 3611 3612- The host-name option and a few others were moved from "X" format to "t" 3613 format to be compatible with new NULL handling functions. 3614 3615- DHCPINFORM processing is a little more careful about return addressing 3616 its responses, or if responding via a relay. The INFORM related 3617 messages also log the 'effective client ip address' rather than the 3618 client's supplied ciaddr (since some clients produce null ciaddrs). 3619 3620- The server was inappropriately sending leases to the RESET state in the 3621 event that multiple active leases were found to match a singly-identified 3622 client. This was changed to RELEASED (by accepting a different, ACTIVE 3623 binding, the client is implicitly releasing its lease). This repairs a 3624 bug wherein secondary servers in failover pairs detecting this condition 3625 move leases to RESET, and primaries refuse to accept that state 3626 transition (properly). 3627 3628- The memset-after-dmalloc() changes made in 3.0.4b1 have been backed out. 3629 3630 Changes since 3.0.4b1 3631 3632- Command line parsing in omshell was repaired - it no longer closes 3633 STDIN after reading one line. 3634 3635- The resolver library no longer closes the /etc/resolv.conf file 3636 descriptor it opened twice. 3637 3638- Changes to trailing NULL removal in 't' option-atoms has been rethought, 3639 it now includes 'd' (domain name) types, and tries hard not to rewind an 3640 option beyond the start of the text field it is un-terminating. 3641 3642 Changes since 3.0.3 3643 3644- A DDNS update handling function was misusing the DNS error codes, rather 3645 than the internal generic result enumeration. The result is a confusing 3646 syslog line, logging the wrong condition. 3647 3648- The DHCP Server was not checking pool balance in the case where it brought 3649 a non-ACTIVE lease out of storage for a client that was returning to use 3650 a lease it once had long ago, and had since expired. 3651 3652- Failover peers no longer bother to look for free leases to allocate when 3653 they already found the client's ACTIVE lease. DISCOVERs are load balanced 3654 whether freely-allocated or not, unless the server doubts the peer has 3655 leases to allocate. 3656 3657- Fixed a bug in dhcrelay agent addition code that suppressed trailing 3658 PAD options - it was suppressing only one trailing PAD option, rather 3659 than the entire block of them. 3660 3661! Fixed some unlikely overlapping-region memcpy() bugs in dhcrelay agent 3662 option addition and stripping code. Added a few sanity checks. Although 3663 highly improbable, due to requiring the reception of a DHCP datagram well 3664 in excess of all known to be used physical MTU limitations, it is possible 3665 this may have been used in a stack overflow security vulnerability. Thanks 3666 to a patch from infamous42md. 3667 3668! Added some sanity checks to OMAPI connection/authentication code. 3669 Although highly improbable, due to having to deliver in excess of 2^32 3670 bytes of data via the OMAPI channel, not to mention requiring dhcpd to 3671 be able to malloc() a memory region 2^32 bytes in size, it was possible 3672 this might have resulted in a heap overflow security vulnerability. 3673 Thanks to a patch from infamous42md. 3674 3675- dmalloc() memset()'s the non-debug (data) portion of the allocated 3676 memory to zero. Code that memset()'s the result returned by dmalloc() to 3677 zero is redundant. These redundancies were removed. 3678 3679- Some type declaration corrections to u_int16_t were made in common/tr.c 3680 (Token Ring support) thanks to a patch from Jason Vas Dias at Red Hat. 3681 3682- A failover bug that was allowing leases that EXPIRED or were RELEASED 3683 where tsfp and tstp are identical timestamps to languish in these 3684 transitional states has been repaired. As a side effect, lease 3685 databases should be kept more consistent overall, not just for these 3686 transitional states. 3687 3688- If the lease db is deleted out from under the daemon, and it moves to rewrite 3689 the db, it will go ahead with the operation and move the new db into place 3690 once it detects the old db does not exist. 3691 3692- dhclient now ignores IRDA, SIT, and IEEE1394 network interfaces, as it 3693 is either nonsensical or (in the case of IEEE1394) is not known to support 3694 these interfaces. Thanks to Marius Gedminas and Andrew Pollock of Debian. 3695 3696- Some previously undocumented reasons for dhclient-script invoking has 3697 been documented in the dhclient-script.8 manpage. 3698 3699- Failover potential expiry calculations (TSTP) have been corrected. Results 3700 should be substantially more consistent, and proper given the constraints. 3701 3702- Adjusted lease state validation checks in potential-conflict, to 3703 account for possible clock skew similarly to normal state, and several 3704 previously illegal transitions were made legal (ex: active->released). 3705 3706- An impossible sanity check was removed from omapi/buffer.c, thanks to a 3707 patch from 'infamous42md'. 3708 3709- An OMAPI host/network byte order problem in lease time values has been 3710 repaired. 3711 3712- Several minor bugs, largely relating to treating 8-byte time values as 3713 4-byte entities, have been repaired after careful review of the FreeBSD 3714 ports collection's patch set. Thanks to the nameless entities who have 3715 contributed to the FreeBSD ports. 3716 3717- When writing a trace file, the file is now created with permissions 0600, 3718 to help administrators avoid accidentally publicising sensitive config 3719 data. 3720 3721- The calculation of the maximum size of DHCP packets no longer includes 3722 Ethernet framing overhead. The result is that the 'Maximum Message 3723 Size' option advertised by clients, or the default value 576, is no 3724 longer reduced by 14 bytes, and instead directly reflects the IP level 3725 MTU (and the default, minimum allowed IP MTU of 576). 3726 3727- The special status of RELEASED/EXPIRED/RESET leases when a server 3728 is operating in partner-down was fixed. It no longer requires a 3729 lease be twice the MCLT beyond STOS to 'reallocate', and the expiry 3730 event to turn these into FREE leases without peer acknowledgement 3731 (after STOS+MCLT) has been repaired. 3732 3733- Compilation on older Solaris systems (lacking /usr/include/sys/int_types.h) 3734 has been repaired. 3735 3736- "append"ing a string onto the end of a "t" type option (such as the 3737 domain-name field) that had been improperly NULL-terminated by the 3738 DHCP server will no longer result in a truncated string containing 3739 only the option from the server, and not the expected appended value. 3740 Thanks to a patch from Jason Vas Dias at Red Hat. 3741 3742- File handlers on configuration state (config files and lease dbs) should 3743 be treated consistently, regardless of whether TRACING is defined or not. 3744 3745- The Linux build environment has had some minor improvements - better 3746 sensing of 64-bit pointer sizes (only used for establishing an icmp_id), 3747 and corrections to #if operators regarding LINUX_MAJOR should it ever 3748 move to 3.[01].x. 3749 3750- The server now tries harder to survive the condition where it is unable 3751 to open a new lease file to rewrite the lease state database. 3752 3753 Changes since 3.0.3b3 3754 3755- dhclient.conf documentation for interface {} was updated to reflect recent 3756 discussion on the dhcp-hackers mailing list. 3757 3758- In response to reports that the software does not compile on GCC 4.0.0, 3759 -Werror was removed from Makefile.conf for all platforms that used it. 3760 We will address the true problem in a future release; this is a temporary 3761 workaround. 3762 3763 Changes since 3.0.3b2 3764 3765- An error in code changes introduced in 3.0.3b2 was corrected, which caused 3766 static BOOTP clients to receive random addresses. 3767 3768 Changes since 3.0.3b1 3769 3770- A bug was fixed in BOOTPREQUEST handling code wherein stale references to 3771 host records would be left behind on leases that were not allocated to the 3772 client currently booting (eg in the case where the host was denied booting). 3773 3774- The dhcpd.conf.5 manpage was updated to be more clear in regards to 3775 multiple host declarations (thanks to Vincent McIntyre). 'Interim' style 3776 dynamic updates were also retouched. 3777 3778 Changes since 3.0.2 3779 3780- A bug was fixed where a server might load balance a DHCP REQUEST to its 3781 peer after already choosing not to load balance the preceding DISCOVER. 3782 The peer cannot allocate the originating server's lease. 3783 3784- In the case where a secondary server lost its stable storage while the 3785 primary was still in communications-interrupted, and came back online, 3786 the lease databases would not be fully transferred to the secondary. 3787 This was due to the secondary errantly sending an extra UPDREQ message 3788 when the primary made its state transition to PARTNER-DOWN known. 3789 3790- The package will now compile cleanly in gcc 3.3 and 3.4. As a side effect, 3791 lease structures will be 9 bytes smaller on all platforms. Thanks to 3792 Jason Vas Dias at Red Hat. 3793 3794- Interface discovery code in DISCOVER_UNCONFIGURED mode is now 3795 properly restricted to only detecting broadcast interfaces. Thanks 3796 to a patch from Jason Vas Dias at Red Hat. 3797 3798- decode_udp_ip_header was changed so that the IP address was copied out 3799 to a variable, rather than referenced by a pointer. This enforces 4-byte 3800 alignment of the 32-bit IP address value. Thanks to a patch from Dr. 3801 Peter Poeml. 3802 3803- An incorrect log message was corrected thanks to a patch from 3804 Dr. Peter Poeml. 3805 3806- A bug in DDNS was repaired, where if the server's first DDNS action was 3807 a DDNS removal rather than a DDNS update, the resolver library's 3808 retransmit timer and retry timer was set to the default, implying a 3809 15 second timeout interval. Which is a little excessive in a synchronous, 3810 single-threaded system. In all cases, ISC DHCP should now hold fast to 3811 a 1-second timeout, trying only once. 3812 3813- The siaddr field was being improperly set to the server-identifier when 3814 responding to DHCP messages. RFC2131 clarified the siaddr field as 3815 meaning the 'next server in the bootstrap process', eg a tftp server. 3816 The siaddr field is now left zeroed unless next-server is configured. 3817 3818- mockup_lease() could have returned in an error condition (or in the 3819 condition where no fixed-address was found matching the shared 3820 network) with stale references to a host record. This is probably not 3821 a memory leak since host records generally never die anyway. 3822 3823- A bug was repaired where failover servers would let stale client identifiers 3824 persist on leases that were reallocated to new clients not sending an id. 3825 3826- Binding scopes ("set var = value;") are now removed from leases allocated 3827 by failover peers if the lease had expired. This should help reduce the 3828 number of stale binding scopes on leases. 3829 3830- A small memory leak was closed involving client identifiers larger than 3831 7 bytes, and failover. 3832 3833- Configuring a subnet in dhcpd.conf with a subnet mask of 32 bits might 3834 cause an internal function to overflow heap. Thanks to Jason Vas Dias 3835 at Red Hat. 3836 3837- Some inconsistencies in treating numbers that the lexer parsed as 'NUMBER' 3838 or 'NUMBER_OR_NAME' was repaired. Hexadecimal parsing is affected, and 3839 should work better. 3840 3841- In several cases, parse warnings were being issued before the lexical 3842 token had been advanced to the token whose value was causing an error... 3843 causing parse warnings to claim the problem is on the wrong token. 3844 3845- Host declarations matching on client identifier for dynamic leases will 3846 no longer match fixed-address host declarations (this is now identical 3847 to behaviour for host records matching on hardware address). 3848 3849 Changes since 3.0.2rc3 3850 3851- A previously undocumented configuration directive, 'local-address', 3852 was documented in the dhcpd.conf manpage. 3853 3854 Changes since 3.0.2rc2 3855 3856- Two variables introduced in 3.0.2b1 were used without being initialized 3857 in the case where neither the FILE nor SNAME fields were available for 3858 overloading. This was repaired. 3859 3860- A heretofore believed to be impossible corner case of the option 3861 overloading implementation turned out to be possible ("Unable to sort 3862 overloaded options after 10 tries."). The implementation was reworked 3863 to consider the case of an option so large it would require more than 3864 three chunks to fit. 3865 3866- Many other instances of variables being used without being initialized 3867 were repaired. 3868 3869- An uninitialized variable in omapi_io_destroy() led to the discovery 3870 that this function may result in orphaned pointers (and hence, a memory 3871 leak). 3872 3873 Changes since 3.0.2rc1 3874 3875- allocate_lease() was rewritten to repair a bug in which the server would 3876 try to allocate an ABANDONED lease when FREE leases were available. 3877 3878 Changes since 3.0.2b1 3879 3880- Some dhcp-eval.5 manpage formatting was repaired. 3881 3882 Changes since 3.0.1 3883 3884- A bug was fixed in the server's 'option overloading' implementation, 3885 where options loaded into the 'file' and 'sname' packet fields were 3886 not aligned precisely as rfc2131 dictates. 3887 3888- The FreeBSD client script was changed to support the case where a domain 3889 name was not provided by the server. 3890 3891- A memory leak in 'omshell' per each command line parsed was 3892 repaired, thanks to a patch from Jarkko Torppa. 3893 3894- Log functions writing to stderr were adjusted to use the STDERR_FILENO 3895 system definition rather than '2'. This is a no-op for 90% of platforms. 3896 3897- One call to trace_write_packet_iov() counted the number of io vectors 3898 incorrectly, causing inconsistent tracefiles. This was fixed. 3899 3900- Some expression parse failure memory leaks were closed. 3901 3902- A host byte order problem in tracefiles was repaired. 3903 3904- Pools configured in DHCPD for failover possessing permission lists that 3905 previously were assumed to not include dynamic bootp clients are now 3906 a little more pessimistic. The result is, dhcpd will nag you about just 3907 about most pools that possess a 'allow' statement with no 'deny' that 3908 would definitely match a dynamic bootp client. 3909 3910- The 'ddns-update-style' configuration warning bit now insists that 3911 the configuration be globally scoped. 3912 3913- Two memory leaks in dhclient were closed thanks to a patch from Felix 3914 Farkas. 3915 3916- Some minor but excellently pedantic documentation errors were fixed 3917 thanks to a patch from Thomas Klausner. 3918 3919- Bugs in operator precedence in executable statements have been repaired 3920 once again. More legal syntaxes should be parsed legally. 3921 3922- Failing to initialize a tracefile for any reason if a tracefile was 3923 specified is now a fatal error. Thanks to a patch from Albert Herranz. 3924 3925- Corrected a bug in which the number of leases transferred as calculated 3926 by the failover primary and sent to peers in POOLRESP responses may be 3927 incorrect. This value is not believed to be used by other failover 3928 implementations, excepting perhaps as logged information. 3929 3930- Corrected a bug in which 'dhcp_failover_send_poolresp()' was in fact 3931 sending POOLREQ messages instead of POOLRESP mesasges. This message 3932 was essentially ignored since failover secondaries effectively do not 3933 respond to POOLREQ messages. 3934 3935- Type definitions for various bitwidths of integers in the sunos5-5 3936 build of ISC DHCP have been fixed. It should compile and run more 3937 easily when built in 64-bit for this platform. 3938 3939- "allow known-clients;" is now a legal syntax, to avoid confusion. 3940 3941- If one dhcp server chooses to 'load balance' a request to its failover 3942 peer, it first checks to see if it believes said peer has a free 3943 lease to allocate before ignoring the DISCOVER. 3944 3945- log() was logging a work buffer, rather than the value returned by 3946 executing the statements configured by the user. In some cases, 3947 the work buffer and the intended results were the same. In some other 3948 cases, they were not. This was fixed thanks to a patch from Gunnar 3949 Fjone and directconnect.no. 3950 3951- Compiler warnings for some string type conversions was fixed, thanks 3952 to Andreas Gustafsson. 3953 3954- The netbsd build environments were simplified to one, in which 3955 -Wconversion is not used, thanks to Andreas Gustafsson. 3956 3957- How randomness in the backoff-cutoff dhclient configuration variable 3958 is implemented was better documented in the manpage, and the behaviour 3959 of dhclient in REQUEST timeout handling was changed to match that of 3960 DISCOVER timeout handling. 3961 3962- Omapi was hardened against clients that pass in null values, thanks 3963 to a patch from Mark Jason Dominus. 3964 3965- A bug was fixed in dhclient that kept it from doing client-side 3966 ddns updates. Thanks to a patch from Andreas Gustafsson, which 3967 underwent some modification after review by Jason Vas Dias. 3968 3969- Failover implementations disconnected due to the network between 3970 them (rather than one of the two shutting down) will now try to 3971 re-establish the failover connection every 5 seconds, rather than 3972 to simply try once and give up until one of them is restarted. 3973 Thanks to a patch from Ulf Ekberg from Infoblox, and field testing 3974 by Greger V. Teigre which led to an enhancement to it. 3975 3976- A problem that kept DHCP Failover secondaries from tearing down 3977 ddns records was repaired. Thanks to a patch from Ulf Ekberg from 3978 Infoblox. 3979 3980- 64bit pointer sizes are detected properly on FreeBSD now. 3981 3982- A bug was repaired where the DHCP server would leave stale references 3983 to host records on leases it once thought about offering to certain 3984 clients. The result would be to apply host and 'known' scopes to the 3985 wrong clients (possibly denying booting). NOTE: The 'mis-host' patch 3986 that was being circulated as a workaround is not the way this bug was 3987 fixed. If you were a victim of this bug in 3.0.1, you are cautioned 3988 to proceed carefully and see if it fixes your problem. 3989 3990- A bug was repaired in the server's DHCPINFORM handling, where it 3991 tried to divine the client's address from the source packet and 3992 would get it wrong. Thanks to Anshuman Singh Rawat. 3993 3994- A log message was introduced to help illuminate the case where the 3995 server was unable to find a lease to assign to any BOOTP client. 3996 Thanks to Daniel Baker. 3997 3998- A minor dhcpd.conf.5 manpage error was fixed. 3999 4000 Changes since 3.0.1rc14 4001 4002- The global variable 'cur_time' was centralized and is now uniformly of a 4003 type #defined in system-dependent headers. It had previously been defined 4004 in one of many places as a 32-bit value, and this causes mayhem on 64-bit 4005 big endian systems. It probably wasn't too healthy on little endian 4006 systems either. 4007 4008- A printf format string error introduced in rc14 was repaired. 4009 4010- AIX system-dependent header file was altered to only define NO_SNPRINTF 4011 if the condition used to #ifdef in vsnprintf in AIX' header files 4012 is false. 4013 4014- The Alpha/OSF system-dependent header file was altered to define 4015 NO_SNPRINTF on OS revisions older than 4.0G. 4016 4017- omapip/test.c had string.h added to its includes. 4018 4019 Changes since 3.0.1rc13 4020 4021! CAN-2004-0460 - CERT VU#317350: Five stack overflow exploits were closed 4022 in logging messages with excessively long hostnames provided by the 4023 clients. It is highly probable that these could have been used by 4024 attackers to gain arbitrary root access on systems using ISC DHCP 3.0.1 4025 release candidates 12 or 13. Special thanks to Gregory Duchemin for 4026 both finding and solving the problem. 4027 4028! CAN-2004-0461 - CERT VU#654390: Once the above was closed, an opening 4029 in log_*() functions was evidenced, on some specific platforms where 4030 vsnprintf() was not believed to be available and calls were wrapped to 4031 sprintf() instead. Again, credit goes to Gregory Duchemin for finding 4032 the problem. Calls to snprintf() are now linked to a distribution-local 4033 snprintf implementation, only in those cases where the architecture is 4034 not known to provide one (see includes/cf/[arch].h). If you experience 4035 linking problems with snprintf/vsnprintf or 'isc_print_' functions, this 4036 is where to look. This vulnerability did not exist in any previously 4037 published version of ISC DHCP. 4038 4039- Compilation on hpux 11.11 was repaired. 4040 4041- 'The cross-compile bug fix' was backed out. 4042 4043 Changes since 3.0.1rc12 4044 4045- Fixed a bug in omapi lease lookup function, to form the hardware 4046 address for the hash lookup correctly, thanks to a patch from 4047 Richard Hirst. 4048 4049- Fixed a bug where dhcrelay was sending relayed responses back to the 4050 broadcast address, but with the source's unicast mac address. Should 4051 now conform to rfc2131 section 4.1. 4052 4053- Cross-compile bug fix; use $(AR) instead of ar. Thanks to Morten Brorup. 4054 4055- Fixed a crash bug in dhclient where dhcpd servers that do not provide 4056 renewal times results in an FPE. As a side effect, dhclient can now 4057 properly handle 0xFFFFFFFF (-1) expiry times supplied by servers. Thanks 4058 to a patch from Burt Silverman. 4059 4060- The 'ping timeout' debugs from rc12 were removed to -DDEBUG only, 4061 and reformatted to correct a compilation error on Solaris platforms. 4062 4063- A patch was applied which fixes a case where leases read from the 4064 leases database do not properly over-ride previously read leases. 4065 4066- dhcpctl.3 manpage was tweaked. 4067 4068 Changes since 3.0.1rc11 4069 4070- A patch from Steve Campbell was applied with minor modifications to 4071 permit reverse dns PTR record updates with values containing spaces. 4072 4073- A patch from Florian Lohoff was applied with some modifications to 4074 dhcrelay. It now discards packets whose hop count exceeds 10 by default, 4075 and a command-line option (-c) can be used to set this threshold. 4076 4077- A failover bug relating to identifying peers by name length instead of 4078 by name was fixed. 4079 4080- Declaring failover configs within shared-network statements should no 4081 longer result in error. 4082 4083- The -nw command line option to dhclient now works. 4084 4085- Thanks to a patch from Michael Richardson: 4086 - Some problems with long option processing have been fixed. 4087 - Some fixes to minires so that updates of KEY records will work. 4088 4089- contrib/ms2isc was updated by Shu-Min Chang of the Intel Corporation. 4090 see contrib/ms2isc/readme.txt for revision notes. 4091 4092- Dhclient no longer uses shell commands to kill another instance of 4093 itself, it sends the signal directly. Thanks to a patch from Martin 4094 Blapp. 4095 4096- The FreeBSD dhclient-script was changed so that a failure to write to 4097 /etc/resolv.conf does not prematurely end the script. This keeps dhclient 4098 from looping infinitely when this is the case. Thanks to a patch from 4099 Martin Blapp. 4100 4101- A patch from Bill Stephens was applied which resolves a problem with lease 4102 expiry times in failover configurations. 4103 4104- A memory leak in configuration parsing was closed thanks to a patch from 4105 Steve G. 4106 4107- The function which discovers interfaces will now skip non-broadcast or 4108 point-to-point interfaces, thanks to a patch from David Brownlee. 4109 4110- Options not yet known by the dhcpd or dhclient have had their names 4111 changed such that they do not contain # symbols, in case they should ever 4112 appear in a lease file. An option that might have been named "#144" is 4113 now "unknown-144". 4114 4115- Another patch from Bill Stephens which allows the ping-check timeout to 4116 be configured as 'ping-timeout'. Defaults to 1. 4117 4118 Changes since 3.0.1rc10 4119 4120- Potential buffer overflows in minires repaired. 4121 4122- A change to the linux client script to use /bin/bash, since /bin/sh may 4123 not be bash. 4124 4125- Some missing va_end cleanups thanks to a patch from Thomas Klausner. 4126 4127- A correction of boolean parsing syntax validation - some illegal syntaxes 4128 that worked before are now detected and produce errs, some legal syntaxes 4129 that errored before will now work properly. 4130 4131- Some search-and-replace errors that caused some options to change their 4132 names was repaired. 4133 4134- Shu-min Chang of the Intel corporation has contributed a perl script and 4135 module that converts the MS NT4 DHCP configuration to a ISC DHCP3 4136 configuration file. 4137 4138- Applied the remainder of the dhcpctl memory leak patch provided by Bill 4139 Squier at ReefEdge, Inc. (groo@reefedge.com). 4140 4141- Missing non-optional failover peer configurations will now result in a soft 4142 error rather than a null dereference. 4143 4144 Changes since 3.0.1rc9 4145 4146- A format string was corrected to fix compiler warnings. 4147 4148- A number of spelling corrections were made in the man pages. 4149 4150- The dhclient.conf.5 man page was changed to refer to do-forward-updates 4151 rather than a configuration option that doesn't exist. 4152 4153- A FreeBSD-specific bug in the interface removal handling was fixed. 4154 4155- A Linux-specific Token Ring detection problem was fixed. 4156 4157- Hashes removed from as-yet-unknown agent options, having those options 4158 appear in reality before we know about them will no longer produce 4159 self-corrupting lease databases. 4160 4161- dhclient will use the proper port numbers now when using the -g option. 4162 4163- A order-of-operations bug with 2 match clauses in 1 class statement is 4164 fixed thanks to a patch from Andrew Matheson. 4165 4166- Compilation problems on Solaris were fixed. 4167 4168- Compilation problems when built with DEBUG or DEBUG_PACKET were repaired. 4169 4170- A fix to the dhcp ack process which makes certain group options will be 4171 included in the first DHCPOFFER message was made thanks to a patch from 4172 Ling Gou. 4173 4174- A few memory leaks were repaired thanks to patches from Bill Squier at 4175 ReefEdge, Inc. (groo@reefedge.com). 4176 4177- A fix for shared-networks that sometimes give clients options for the 4178 wrong subnets (in particular, 'option routers') was applied, thanks to 4179 Ted Lemon for the patch. 4180 4181- Omshell's handling of dotted octets as values was changed such that dots 4182 one after the other produce zero values in the integer string. 4183 4184 Changes since 3.0.1rc8 4185 4186- Fix a format string vulnerability in the server that could lead to a 4187 remote root compromise (discovered by NGSEC Research Team, www.ngsec.com). 4188 4189- Add additional support for NetBSD/sparc64. 4190 4191- Fix a bug in the command-line parsing of the client. Also, resolve 4192 a memory leak. 4193 4194- Add better support for shells other than bash in the Linux client 4195 script. 4196 4197- Various build fixes for modern versions of FreeBSD and Linux. 4198 4199- Fix a bad bounds check when printing binding state names. 4200 4201- Clarify documentation about fixed-address and multiple addresses. 4202 4203- Fix a typo in the authoritative error message. 4204 4205- Make a log entry when we can't write a billing class. 4206 4207- Use conversion targets that are the right size on all architectures. 4208 4209- Increment the hop count when relaying. 4210 4211- Log a message when lease state is changed through OMAPI. 4212 4213- Don't rerun the shared_network when evaluating the pool. 4214 4215- Fix a reversed test in the parser. 4216 4217- Change the type of rbuf_max. 4218 4219- Make FTS_LAST a manifest constant to quiet warnings. 4220 4221 Changes since 3.0.1rc7 4222 4223- Fix two compiler warnings that are generated when compiling on Solaris 4224 with gcc. These stop the build, even though they weren't actually 4225 errors, because we prefer that our builds generate no warnings. 4226 4227 Changes since 3.0.1rc6 4228 4229- Don't allow a lease that's in the EXPIRED, RELEASED or RESET state 4230 to be renewed. 4231 4232- Implement lease stealing for cases where the primary has fewer leases 4233 than the secondary, as called for by the standard. 4234 4235- Add a fudge factor to the lease expiry acceptance code, (suggested 4236 by Kevin Miller of CMU). 4237 4238- Fix a bug in permit_list_match that made it much too willing to say 4239 that two permit lists matched. 4240 4241- Unless DEBUG_DNS_UPDATES is defined, print more user-friendly (and 4242 also more compact) messages about DNS updates. 4243 4244- Fix a bug in generating wire-format domain names for the FQDN option. 4245 4246- Fix a bug where the FQDN option would not be returned if the client 4247 requested it, contrary to the standard. 4248 4249- On Darwin, use the FreeBSD DHCP client script. 4250 4251- On NetBSD/sparc, don't check for casting warnings. 4252 4253- Add a flag in the DHCP client to disable updating the client's A 4254 record when sending an FQDN option indicating that the client is 4255 going to update its A record. 4256 4257- In the client, don't attempt a DNS update until one second after 4258 configuring the new IP address, and if the update times out, keep 4259 trying until a response, positive or negative, is received from the 4260 DNS server. 4261 4262- Fix an uninitialized memory bug in the DHCP client. 4263 4264- Apply some FreeBSD-specific bug fixes suggested by Murray Stokely. 4265 4266- Fix a bug in ns_parserr(), where it was returning the wrong sort 4267 of result code in some cases (suggested by Ben Harris of the 4268 NetBSD project). 4269 4270- Fix a bug in is_identifier(), where it was checking against EOF 4271 instead of the END_OF_FILE token (also suggested by Ben Harris). 4272 4273- Fix a bug where if an option universe contained no options, the 4274 DHCP server could dump core (Walter Steiner). 4275 4276- Fix a bug in the handling of encapsulated options. 4277 4278- Fix a bug that prevented NWIP suboptions from being processed. 4279 4280- Delete the FTS_BOOTP and FTS_RESERVED states and implement them 4281 as modifier flags to the FTS_ACTIVE state, as called for in the 4282 failover protocol standard. 4283 4284- Fix bugs in the pool merging code that resulted in references and 4285 dereferences of null pointers. This bug had no impact unless the 4286 POINTER_DEBUG flag was defined. 4287 4288- In the server, added a do-forward-updates flag that can be used to 4289 disable forward updates in all cases, so that sites that want the 4290 clients to take sole responsibility for updating their A record can 4291 do so. 4292 4293- Make it possible to disable optimization of PTR record updates. 4294 4295 Changes since 3.0.1rc5 4296 4297- Include some new documentation and changes provided by Karl Auer. 4298 4299- Add a workaround for some Lexmark printers that send a double-NUL- 4300 terminated host-name option, which would break DNS updates. 4301 4302- Fix an off-by-one error in the MAC-address checking code for 4303 DHCPRELEASE that was added in 3.0.1rc5. 4304 4305- Fix a bug where client-specific information was not being discarded 4306 from the lease when it expired or was released, resulting in 4307 problems if the lease was reallocated to a different client. 4308 4309- If more than one allocation pool is specified that has the same set 4310 of constraints as another allocation pool on the same shared 4311 network, merge the two pools. 4312 4313- Don't print an error in fallback_discard, since this just causes 4314 confusion and does not appear to be helping to encourage anyone to 4315 fix this bug. 4316 4317 Changes since 3.0.1rc4 4318 4319- Fix a bug that would cause the DHCP server to spin if asked to parse 4320 a certain kind of incorrect statement. 4321 4322- Fix a related bug that would prevent an error from being reported in 4323 the same case. 4324 4325- Additional documentation. 4326 4327- Make sure that the hardware address matches the lease when 4328 processing a DHCPRELEASE message. 4329 4330 Changes since 3.0.1rc3 4331 4332- A minor bug fix in the arguments to a logging function call. 4333- Documentation update for dhcpd.conf. 4334 4335 Changes since 3.0.1rc2 4336 4337- Allow the primary to send a POOLREQ message. This isn't what the current 4338 failover draft says to do, so we may have to back it out if I can't get the 4339 authors to relent, but the scheme for balancing that's specified in the 4340 current draft seems needlessly hairy, so I'm floating a trial balloon. 4341 The rc1 code did not implement the method described in the draft either. 4342 4343 Changes since 3.0.1rc1 4344 4345- Treat NXDOMAIN and NXRRSET as success when we are trying to delete a 4346 domain or RRSET. This allows the DHCP server to forget about a name 4347 it added to the DNS once it's been removed, even if the DHCP server 4348 wasn't the one that removed it. 4349 4350- Install defaults for failover maximum outstanding updates and maximum 4351 silent time. This prevents problems that might occur if these values 4352 were not configured. 4353 4354- Don't do DDNS deletes if ddns-update-style is none. 4355 4356- Return relay agent information options in DHCPNAK. This prevents DHCPNAK 4357 messages from being dropped when the relay agent information option contains 4358 routing information. 4359 4360- Fix a problem where coming up in recover wouldn't result in an update 4361 request being sent. 4362 4363- Add some more chatty messages when we start a recovery update and when it's 4364 done. 4365 4366- Fix a possible problem where some state might have been left around 4367 after the peer lost contact and regained contact about how many updates 4368 were pending. 4369 4370- Don't nix a lease update because of a lease conflict. This test has 4371 never (as far as I know) prevented a mistake, and it appears to cause 4372 problems with failover. 4373 4374- Add support in rc history code for keeping a selective history, rather 4375 than a history of all references and dereferences. This code is only used 4376 when extensive additional debugging is enabled. 4377 4378 Changes since 3.0 4379 4380- Make allocators for hash tables. As a side effect, this fixes a memory 4381 smash in the subclass allocation code. 4382 4383- Fix a small bug in omshell where if you try to close an object when 4384 no object is open, it dumps core. 4385 4386- Fix an obscure coredump that could occur on shutdown. 4387 4388- Fix a bug in the recording of host declaration rubouts in the lease file. 4389 4390- Fix two potential spins in the host deletion code. 4391 4392- Fix a core dump that would happen if an application tried to update 4393 a host object attribute with a null value. 4394 4395 Changes since 3.0 Release Candidate 12 4396 4397- Fix a memory leak in the evaluation code. 4398 4399- Fix an obscure core dump. 4400 4401- Print a couple of new warnings when parsing the configuration file 4402 when crucial information is left out. 4403 4404- Log "no free leases" as an error. 4405 4406- Documentation updates. 4407 4408 Changes since 3.0 Release Candidate 11 4409 4410- Always return a subnet selection option if one is sent. 4411 4412- Fix a warning that was being printed because an automatic data 4413 structure wasn't zeroed. 4414 4415- Fix some failover state transitions that were being handled 4416 incorrectly. 4417 4418- When supersede_lease is called on a lease whose end time has already 4419 expired, but for which a state transition has not yet been done, do 4420 a state transition. This fixes the case where if the secondary 4421 allocated a lease to a client and the lease "expired" while the 4422 secondary was in partner-down, no expiry event would actually 4423 happen, so the lease would remain active until the primary was 4424 restarted. 4425 4426 Changes since 3.0 Release Candidate 10 4427 4428- Fix a bug that was preventing released leases from changing state 4429 in failover-enabled pools. 4430 4431- Fix a core dump in the client identifier finder code (for host 4432 declarations). 4433 4434- Finish fixing a bug where bogus data would sometimes get logged to 4435 the dhclient.leases file because it was opened as descriptor 2. 4436 4437- Fix the Linux dhclient-script according to suggestions made by 4438 several people on the dhcp-client mailing list. 4439 4440- Log successful DNS updates at LOG_INFO, not LOG_ERROR. 4441 4442- Print an error message and refuse to run if a failover peer is 4443 defined but not referenced by any pools. 4444 4445- Correct a confusing error message in failover. 4446 4447 Changes since 3.0 Release Candidate 9 4448 4449- Fix a bug in lease allocation for Dynamic BOOTP clients. 4450 4451 Changes since 3.0 Release Candidate 8 Patchlevel 2 4452 4453- Fix a bug that prevented update-static-leases from working. 4454 4455- Document failover-state OMAPI object. 4456 4457- Fix a compilation error on SunOS 4. 4458 4459 Changes since 3.0 Release Candidate 8 Patchlevel 1 4460 4461- Fix a parsing bug that broke dns updates (both interim and ad-hoc). 4462 This was introduced in rc8pl1 as an unintended result of the memory 4463 leakage fixes that were in pl1. 4464 4465- Fix a long-standing bug where the server would record that an update 4466 had been done for a client with no name, even though no update had 4467 been done, and then when the client's lease expired the deletion of 4468 that nonexistant record would time out because the name was the null 4469 string. 4470 4471- Clean up the omshell, dhcpctl and omapi man pages a bit. 4472 4473 Changes since 3.0 Release Candidate 8 4474 4475- Fix a bug that could cause the DHCP server to spin if 4476 one-lease-per-client was enabled. 4477 4478- Fix a bug that was causing core dumps on BSD/os in the presence of 4479 malformed packets. 4480 4481- In partner-down state, don't restrict lease lengths to MCLT. 4482 4483- On the failover secondary, record the MCLT received from the primary 4484 so that if we come up without a connection to the primary we don't 4485 wind up giving out zero-length leases. 4486 4487- Fix some compilation problems on BSD/os. 4488 4489- Fix a bunch of memory leaks. 4490 4491- Fix a couple of bugs in the option printer. 4492 4493- Fix an obscure error reporting bug in the dns update code, and also 4494 make the message clearer when a key algorithm isn't supported. 4495 4496- Fix a bug in the tracing code that prevented trace runs that used 4497 tcp connections from being played back. 4498 4499- Add some additional debugging capability for catching memory leaks 4500 on exit. 4501 4502- Make the client release the lease correctly on shutdown. 4503 4504- Add some configurability to the build system. 4505 4506- Install omshell manual page in man1, not man8. 4507 4508- Craig Gwydir sent in a patch that fixes a long-standing bug in the 4509 DHCP client that could cause core dumps, but that for some reason 4510 hadn't been noticed until now. 4511 4512 Changes since 3.0 Release Candidate 7 4513 4514- Fix a bug in failover where we weren't sending updates after a 4515 transition from communications-interrupted to normal. 4516 4517- Handle expired/released/reset -> free transition according to the 4518 protocol specification (this works - the other way not only wasn't 4519 conformant, but also didn't work). 4520 4521- Add a control object in both client and server that allows either 4522 daemon to be shut down cleanly. 4523 4524- When writing a lease, if we run out of disk space, shut down the 4525 output file and insist on writing a new one before proceeding. 4526 4527- In the server, if the OMAPI listener port is occupied, keep trying 4528 to get it, rather than simply giving up and exiting. 4529 4530- Support fetching variables from leases and also updating and adding 4531 variables to leases via OMAPI. 4532 4533- If two failover peers have wildly different clocks, refuse to start 4534 doing failover. 4535 4536- Fix a bug in the DNS update code that could cause core dumps when 4537 running on alpha processors. 4538 4539- Fixed a bug in ddns updates for static lease entries, thanks to a 4540 patch from Andrey M Linkevitch. 4541 4542- Add support for Darwin/MacOS X 4543 4544- Install omshell (including new documentation). 4545 4546- Support DNS updates in the client (this is a very obscure feature 4547 that most DHCP client users probably will not be able to use). 4548 4549- Somewhat cleaner status logging in the client. 4550 4551- Make OMAPI key naming syntax compatible with the way keys are 4552 actually named (key names are domain names). 4553 4554- Fix a bug in the lease file writer. 4555 4556- Install DHCP ISC headers in a different place than BIND 9 ISC 4557 headers, to avoid causing trouble in BIND 9 builds. 4558 4559- Don't send updates for attributes on an object when the attributes 4560 haven't changed. Support deleting attributes on remote objects. 4561 4562- Fix a number of bugs in omshell, and add the unset and refresh 4563 statements. 4564 4565- Handle disconnects in OMAPI a little bit more intelligently (so that 4566 the caller gets ECONNRESET instead of EINVAL). 4567 4568- Fix a bunch of bugs in the handling of clients that have existing 4569 leases when the try to renew their leases while failover is 4570 operating. 4571 4572 Changes since 3.0 Release Candidate 6 4573 4574- Fix a core dump that could happen when processing a DHCPREQUEST from 4575 a client that had a host declaration that contained both a 4576 fixed-address declaration and a dhcp-client-identifier option 4577 declaration, if the client identifier was longer than nine bytes. 4578 4579- Fix a memory leak that could happen in certain obscure cases when 4580 using omapi to manipulate leases. 4581 4582- Fix some bugs and omissions in omshell. 4583 4584 Changes since 3.0 Release Candidate 5 4585 4586- Fix a bug in omapi_object_dereference that prevented objects in 4587 chains from having their reference counts decreased on dereference. 4588 4589- Fix a bug in omapi_object_dereference that would prevent object 4590 chains from being freed upon removal of the last reference external 4591 to the chain. 4592 4593- Fix a number of other memory leaks in the OMAPI protocol subsystem. 4594 4595- Add code in the OMAPI protocol handler to trace memory leakage. 4596 4597- Clean up the memory allocation/reference history printer. 4598 4599- Support input of dotted quads and colon-separated hex lists as 4600 attribute values in omshell. 4601 4602- Fix a typo in the Linux interface discovery code. 4603 4604- Conditionalize a piece of trace code that wasn't conditional. 4605 4606 Changes since 3.0 Release Candidate 4 4607 4608- Fix a bug that would prevent leases from being abandoned properly on 4609 DHCPDECLINE. 4610 4611- Fix failover peer OMAPI support. 4612 4613- In failover, correctly handle expiration of leases. Previously, 4614 leases would never be reclaimed because they couldn't make the 4615 transition from EXPIRED to FREE. 4616 4617- Fix some broken failover state transitions. 4618 4619- Documentation fixes. 4620 4621- Take out an unnecessary check in DHCP relay agent information option 4622 stashing code that was preventing REBINDING clients from rebinding. 4623 4624- Prevent failover peers from allocating leases in DHCPREQUEST 4625 processing if the lease belongs to the other server. 4626 4627- Record server version in lease file introductory comment. 4628 4629- Correctly report connection errors in OMAPI and failover. 4630 4631- Make authentication signature algorithm name comparisons in OMAPI 4632 case-insensitive. 4633 4634- Fix compile problem on SunOS 4.x 4635 4636- If a signature algorithm is not terminated with '.', terminate it so 4637 that comparisons between fully-qualified names will work 4638 consistently. 4639 4640- Different SIOCGIFCONF probe code, may "fix" problem on some Linux 4641 systems with the probe not working correctly. 4642 4643- Don't allow user to type omapi key on command line of omshell. 4644 4645 Changes since 3.0 Release Candidate 3 4646 4647- Do lease billing on startup in a way that I *think* will finally do 4648 the billing correctly - the previous method could overbill as a 4649 result of duplicate leases. 4650 4651- Document OMAPI server objects. 4652 4653 Changes since 3.0 Release Candidate 2 Patchlevel 1 4654 4655- Fix some problems in the DDNS update code. Thanks to Albert 4656 Herranz for figuring out the main problem. 4657 4658- Fix some reference counting errors on host entries that were causing 4659 core dumps. 4660 4661- Fix a byte-swap bug in the token ring code, thanks to Jochen 4662 Friedrich. 4663 4664- Fix a bug in lease billing, thanks to Jonas Bulow. 4665 4666 Changes since 3.0 Release Candidate 2 4667 4668- Change the conditions under which a DHCPRELEASE is actually 4669 committed to be consistent with lease binding states rather than 4670 using the lease end time. This may fix some problems with the 4671 billing class code. 4672 4673- Fix a bug where lease updates would fail on Digital Unix (and maybe 4674 others) because malloc was called with a size of zero. 4675 4676- Fix a core dump that happens when the DHCP server can't create its 4677 trace file. 4678 4679 Changes since 3.0 Release Candidate 1 Patchlevel 1 4680 4681- Fix the dhcp_failover_put_message to not attempt to allocate a 4682 zero-length buffer. Some versions of malloc() fail if you try to 4683 allocate a zero-length buffer, and this was causing problems on, 4684 e.g., Digital Unix. 4685 4686- Fix a case where the failover code was printing an error message 4687 when no error had occurred. 4688 4689- Fix a problem where when a server went down and back up again, the 4690 peer would not see a state transition and so would stay in the 4691 non-communicating state. 4692 4693- Be smart about going into recover_wait. 4694 4695- Fix a problem in the failover implementation where peers would fail 4696 to come into sync if interrupted in the RECOVER state. This could 4697 have been the cause of some problems people have reported recently. 4698 4699- Fix a problem with billing classes where they would not be unbilled 4700 when the client lease expired. 4701 4702- If select fails, figure out which descriptor is bad, and cut it out 4703 of the I/O loop. This prevents a potentially nasty spin. I 4704 haven't heard any report it in a while, but it came up consistently 4705 in testing. 4706 4707- Fix a bug in the relay agent where if you specified interfaces on 4708 the command line, it would fail. 4709 4710- Fix a couple of small bugs in the omapi connection object (no known 4711 user impact). 4712 4713- Add the missing 3.0 Beta 1 lease conversion script. 4714 4715- Read dhcp client script hooks if they exist, rather than only if 4716 they're executable. 4717 4718 Changes since 3.0 Release Candidate 1 4719 4720- Fix a memory smash that happens when fixed-address leases are used. 4721 ANY SITE AT WHICH FIXED-ADDRESS STATEMENTS ARE BEING USED SHOULD 4722 UPGRADE IMMEDIATELY. This has been a long-standing bug - thanks to 4723 Alvise Nobile for discovering it and helping me to find it! 4724 4725- Fix a small bug in binary-to-ascii, thanks to H. Peter Anvin of 4726 Transmeta. 4727 4728- There is a known problem with the DHCP server doing failover on 4729 Compaq Alpha systems. This patchlevel is not a release candidate 4730 because of this bug. The bug should be straightforward to fix, so 4731 a new release candidate is expected shortly. 4732 4733- There is a known problem in the DDNS update code that is probably a 4734 bug, and is not, as far as we know, fixed in this patchlevel. 4735 4736 Changes since 3.0 Beta 2 Patchlevel 24 4737 4738- Went over problematic failover state transitions and made them all 4739 work, so that failover should now much less fragile. 4740 4741- Add some dhcpctl and omapi documentation 4742 4743- Fix compile errors when compiling with unusual predefines. 4744 4745- Make Token Ring work on Linux 2.4 4746 4747- Fix the Digital Unix BPF_WORDALIGN bug. 4748 4749- Fix some dhcp client documentation errors. 4750 4751- Update some parts of the README file. 4752 4753- Support GCC on SCO. 4754 4755 Changes since 3.0 Beta 2 Patchlevel 23 4756 4757- Fix a bug in the DNS update code where a status code was not being 4758 checked. This may have been causing core dumps. 4759 4760- When parsing the lease file, if a lease declaration includes a 4761 billing class statement, and the lease already has a billing class, 4762 unbill the old class. 4763 4764- When processing failover transactions, where acks will be deferred, 4765 process the state transition immediately. 4766 4767- Don't try to use the new SIOCGIFCONF buffer size detection code on 4768 Linux 2.0, which doesn't provide this functionality. 4769 4770- Apply a patch suggested by Tuan Uong for a problem in dlpi.c. 4771 4772- Fix a problem in using the which command in the configure script. 4773 4774- Fix a parse error in the client when setting up an omapi listener. 4775 4776- Document the -n and -g flags to the client. 4777 4778- Make sure there is always a stdin and stdout on startup. This 4779 prevents shell scripts from accidentally writing error messages into 4780 configuration files that happen to be opened as stderr. 4781 4782- If an interface is removed, the client will now notice that it is 4783 gone rather than spinning. This has only been tested on NetBSD. 4784 4785- The client will attempt to get an address even if it can't create a 4786 lease file. 4787 4788- Don't overwrite tracefiles. 4789 4790- Fix some memory allocation bugs in failover. 4791 4792 Changes since 3.0 Beta 2 Patchlevel 22 4793 4794- Apply some patches suggested by Cyrille Lefevre, who is maintaining 4795 the FreeBSD ISC DHCP Distribution port. 4796 4797- Fix a core dump in DHCPRELEASE. 4798 4799 Changes since 3.0 Beta 2 Patchlevel 21 4800 4801- This time for sure: fix the spin described in the changes for pl20. 4802 4803 Changes since 3.0 Beta 2 Patchlevel 20 4804 4805- Fix a problem with Linux detecting large numbers of interfaces (Ben) 4806 4807- Fix a memory smash in the quotify code, which was introduced in 4808 pl19. 4809 4810- Actually fix the spin described in the changes for pl20. The 4811 previous fix only partially fixed the problem - enough to get it 4812 past the regression test. 4813 4814 Changes since 3.0 Beta 2 Patchlevel 19 4815 4816- Fix a bug that could cause the server to abort if compiled with 4817 POINTER_DEBUG enabled. 4818 4819- Fix a bug that could cause the server to spin when responding to a 4820 DHCPREQUEST. 4821 4822- Apply Joost Mulders' suggested patches for DLPI on x86. 4823 4824- Support NUL characters in quoted strings. 4825 4826- Install unformatted man pages on SunOS. 4827 4828 Changes since 3.0 Beta 2 Patchlevel 18 4829 4830- Allow the server to be placed in partner-down state using OMAPI. 4831 (Damien Neil) 4832 4833- Implement omshell, which can be used to do arbitrary things to the 4834 server (in theory). (Damien Neil) 4835 4836- Fix a case where if a client had two different leases the server could 4837 actually dereference the second one when it hadn't been referenced, 4838 leading to memory corruption and a core dump. (James Brister) 4839 4840- Fix a case where a client could request the address of another client's 4841 lease, but find_lease wouldn't detect that the other client had it, and 4842 would attempt to allocate it to the client, resulting in a lease conflict 4843 message. 4844 4845- Fix a case where a client with more than one client identifier could be 4846 given a lease where the hardware address was correct but the client 4847 identifier was not, resulting in a lease conflict message. 4848 4849- Fix a problem where the server could write out a colon-separated 4850 hex list as a value for a variable, which would then not parse. 4851 The fix is to always write strings as quoted strings, with any 4852 non-printable characters quoted as octal escape sequences. So 4853 a file written the old way still won't work, but new files written 4854 this way will work. 4855 4856- Fix documentation for sending non-standard options. 4857 4858- Use unparsable names for unknown options. WARNING: this will 4859 break any configuration files that use the option-nnn convention. 4860 If you want to continue to use this convention for some options, 4861 please be sure to write a definition, like this: 4862 4863 option option-nnn code nnn = string; 4864 4865 You can use a descriptive name instead of option-nnn if you like. 4866 4867- Fix a problem where we would see a DHCPDISCOVER/DHCPOFFER/ 4868 DHCPREQUEST/DHCPACK/DHCPREQUEST/DHCPNAK sequence. This was the 4869 result of a deceptively silly bug in supersede_lease. 4870 4871- Fix client script exit status check, according to a fix supplied by 4872 Hermann Lauer. 4873 4874- Fix an endianness bug in the tracefile support, regarding ICMP 4875 messages. 4876 4877- Fix a bug in the client where the medium would not work correctly if 4878 it contained quoted strings. 4879 4880 ** there was no pl17 ** 4881 4882 Changes since 3.0 Beta 2 Patchlevel 16 4883 4884- Add support for transaction tracing. This allows the state of the 4885 DHCP server on startup, and all the subsequent transactions, to be 4886 recorded in a file which can then be played back to reproduce the 4887 behaviour of the DHCP server. This can be used to quickly 4888 reproduce bugs that cause core dumps or corruption, and also for 4889 tracking down memory leaks. 4890 4891- Incorporate some bug fixes provided by Joost Mulders for the DLPI 4892 package which should clear up problems people have been seeing on 4893 Solaris. 4894 4895- Fix bugs in the handling of options stored as linked lists (agent 4896 options, fqdn options and nwip options) that could cause memory 4897 corruption and core dumps. 4898 4899- Fix a bug in DHCPREQUEST handling that resulted in DHCPNAK messages 4900 not being send in some cases when they were needed. 4901 4902- Make the lease structure somewhat more compact. 4903 4904- Make initial failover startup *much* faster. This was researched 4905 and implemented by Damien Neil. 4906 4907- Add a --version flag to all executables, which prints the program 4908 name and version to standard output. 4909 4910- Don't rewrite the lease file every thousand leases. 4911 4912- A bug in nit.c for older SunOS machines was fixed by a patch sent in 4913 by Takeshi Hagiwara. 4914 4915- Fix a memory corruption bug in the DHCP client. 4916 4917- Lots of documentation updates. 4918 4919- Add a feature allowing environment variables to be passed to the 4920 DHCP client script on the DHCP client command line. 4921 4922- Fix client medium support, which had been broken for some time. 4923 4924- Fix a bug in the DHCP client initial startup backoff interval, which 4925 would cause two DHCPDISCOVERS to be sent back-to-back on startup. 4926 4927 Changes since 3.0 Beta 2 Patchlevel 15 4928 4929- Some documentation tweaks. 4930 4931- Maybe fix a problem in the DLPI code. 4932 4933- Fix some error code space inconsistencies in ddns update code. 4934 4935- Support relay agents that intercept unicast DHCP messages to stuff 4936 agent options into them. 4937 4938- Fix a small memory leak in the relay agent option support code. 4939 4940- Fix a core dump that would occur if a packet was sent with no 4941 options. 4942 4943 Changes since 3.0 Beta 2 Patchlevel 14 4944 4945- Finish fixing a long-standing bug in the agent options code. This 4946 was causing core dumps and failing to operate correctly - in 4947 particular, agent option stashing wasn't working. Agent option 4948 stashing should now be working, meaning that agent options can be 4949 used in class statements to control address allocation. 4950 4951- Fix up documentation. 4952 4953- Fix a couple of small memory leaks that would have added up 4954 significantly in a high-demand situation. 4955 4956- Add a log-facility configuration parameter. 4957 4958- Fix a compile error on some older operating systems. 4959 4960- Add the ability in the client to execute certain statements before 4961 transmitting packets to the server. Handy for debugging; not much 4962 practical use otherwise. 4963 4964- Don't send faked-out giaddr when renewing or bound - again, useful 4965 for debugging. 4966 4967 Changes since 3.0 Beta 2 Patchlevel 13 4968 4969- Fixed a problem where the fqdn decoder would sometimes try to store 4970 an option with an (unsigned) negative length, resulting in a core 4971 dump on some systems. 4972 4973- Work around the Win98 DHCP client, which NUL-terminates the FQDN 4974 option. 4975 4976- Work around Win98 and Win2k clients that will claim they want to do 4977 the update even when they don't have any way to do it. 4978 4979- Fix some log messages that can be printed when failover is operating 4980 that were not printing enough information. 4981 4982- It was possible for a DHCPDISCOVER to get an allocation even when 4983 the state machine said the server shouldn't be responding. 4984 4985- Don't load balance DHCPREQUESTs from clients in RENEWING and 4986 REBINDING, since in RENEWING, if we heard it, it's for us, and in 4987 REBINDING, the client wouldn't have got to REBINDING if its primary 4988 were answering. 4989 4990- When we get a bogus state lease binding state transition, don't do 4991 the transition. 4992 4993 4994 Changes since 3.0 Beta 2 Patchlevel 12 4995 4996- Fixed a couple of silly compile errors. 4997 4998 Changes since 3.0 Beta 2 Patchlevel 11 4999 5000- Albert Herranz tracked down and fixed a subtle bug in the base64 5001 decoder that would prevent any key with an 'x' in its base64 5002 representation from working correctly. 5003 5004- Thanks to Chris Cheney and Michael Sanders, we have a fix for the 5005 hang that they both spotted in the DHCP server - when 5006 one-lease-per-client was set, the code to release the "other" lease 5007 could spin. 5008 5009- Fix a problem with alignment of the input buffer in bpf in cases 5010 where two packets arrive in the same bpf read. 5011 5012- Fix a problem where the relay agent would crash if you specified an 5013 interface name on the command line. 5014 5015- Add the ability to conditionalize client behaviour based on the 5016 client state. 5017 5018- Add support for the FQDN option, and added support for a new way of 5019 doing ddns updates (ddns update style interim) that allows more than 5020 one DHCP server to update the DNS for the same network(s). This 5021 was implemented by Damien Neil with some additional functionality 5022 added by Ted Lemon. 5023 5024- Damien added a "log" statement, so that the configuration file can 5025 be made to log debugging information and other information. 5026 5027- Fixed a bug that caused option buffers not to be terminated with an 5028 end option. 5029 5030- Fixed a long-standing bug in the support for option spaces where the 5031 options are stored as an ordered list rather than in a hash table, 5032 which could theoretically result in memory pool corruption. 5033 5034- Prevent hardware declarations with no actual hardware address from 5035 being written as something unparsable, and behave correctly in the 5036 face of a null hardware address on input. 5037 5038- Allow key names to be FQDNs, and qualify the algorithm name if it is 5039 specified unqualified. 5040 5041- Modify the DDNS update code so that it never prints the "resolver 5042 failed" message, but instead says *why* the resolver failed. 5043 5044- Officially support the subnet selection option, which now has an 5045 RFC. 5046 5047- Fix a build bug on MacOS X. 5048 5049- Allow administrator to disable ping checking. 5050 5051- Clean up dhcpd.conf documentation and add more information about how 5052 it works. 5053 5054 Changes since 3.0 Beta 2 Patchlevel 10 5055 5056- Fix a bug introduced during debugging (!) and accidentally committed 5057 to CVS. 5058 5059 Changes since 3.0 Beta 2 Patchlevel 9 5060 5061- Fix DHCP client handling of vendor encapsulated options. 5062 5063- Fix a bug in the handling of relay agent information options introduced 5064 in patchlevel 9. 5065 5066- Stash agent options on client leases by default, and use the stashed 5067 options at renewal time. 5068 5069- Add the ability to test the client's binding state in the client 5070 configuration language. 5071 5072- Fix a core dump in the DNS update code. 5073 5074- Fix some expression evaluation bugs that were causing updates to be 5075 done when no client hostname was received. 5076 5077- Fix expression evaluation debugging printfs. 5078 5079- Teach pretty_print_option to print options in option spaces other than 5080 the DHCP option space. 5081 5082- Add a warning message if the RHS of a not is not boolean. 5083 5084- Never select for more than a day, because some implementations of 5085 select will just fail if the timeout is too long (!). 5086 5087- Fix a case where a DHCPDISCOVER from an unknown network would be 5088 silently dropped. 5089 5090- Fix a bug where if a client requested an IP address for which a different 5091 client had the lease, the DHCP server would reallocate it anyway. 5092 5093- Fix the DNS update code so that if the client changes its name, the DNS 5094 will be correctly updated. 5095 5096 Changes since 3.0 Beta 2 Patchlevel 8 5097 5098- Oops, there was another subtle math error in the header-length 5099 bounds-checking. 5100 5101 Changes since 3.0 Beta 2 Patchlevel 7 5102 5103- Oops, forgot to byte-swap udp header length before bounds-checking it. 5104 5105 Changes since 3.0 Beta 2 Patchlevel 6 5106 5107- Fix a possible DoS attack where a client could cause the checksummer 5108 to dump core. This was a read, not a write, so it shouldn't be 5109 possible to exploit it any further than that. 5110 5111- Implement client- and server-side support for using the Client FQDN 5112 option. 5113 5114- Support for other option spaces in the client has been added. This 5115 means that it is now possible to define a vendor option space on the 5116 client, request options in that space from the server (which must 5117 define the same option space), and then use those options in the 5118 client. This also allows NWIP and Client FQDN options to be used 5119 meaningfully. 5120 5121- Add object initializer support. This means that objects can now be 5122 initialized to something other than all-zeros when allocated, which 5123 makes, e.g., the interface object support code a little more robust. 5124 5125- Fix an off-by-one bug in the host stuffer. This was causing host 5126 deletes not the work, and may also have been causing OMAPI 5127 connections to get dropped. Thanks to James Brister for tracking 5128 this one down! 5129 5130- Fixed a core dump in the interface discovery code that is triggered 5131 when there is no subnet declaration for an interface, but the server 5132 decides to continue running. Thanks to Shane Kerr for tracking 5133 down and fixing this problem. 5134 5135 Changes since 3.0 Beta 2 Patchlevel 5 5136 5137- Fix a bug in the recent enhancement to the interface discovery code 5138 to support arbitrary-length interface lists. 5139 5140- Support NUL-terminated DHCP options when initializing client-script 5141 environment. 5142 5143- Fix suffix operator. 5144 5145- Fix NetWare/IP option parsing. 5146 5147- Better error/status checking in dhcpctl initialization and omapi 5148 connection code. 5149 5150- Fix a potential memory smash in dhcpctl code. 5151 5152- Fix SunOS4 and (maybe) Ultrix builds. 5153 5154- Fix a bug where a certain sort of incoming packet could cause a core 5155 dump on Solaris (and probably elsewhere). 5156 5157- Add some more safety checks in error logging code. 5158 5159- Add support for ISC_R_INCOMPLETE in OMAPI protocol connection code. 5160 5161- Fix relay agent so that if an interface is specified on the command 5162 line, the relay agent does not dump core. 5163 5164- Fix class matching so that match if can be combined with match or 5165 spawn with. 5166 5167- Do not allow spurious leases in the lease database to introduce 5168 potentially bogus leases into the in-memory database. 5169 5170- Fix a byte-order problem in the client hardware address type code 5171 for OMAPI. 5172 5173- Be slightly less picky about what sort of hardware addresses OMAPI 5174 can install in host declarations. 5175 5176 Changes since 3.0 Beta 2 Patchlevel 4 5177 5178- Incorporated Peter Marschall's proposed change to array/record 5179 parsing, which allows things like the slp-agent option to be encoded 5180 correctly. Thanks very much to Peter for taking the initiative to 5181 do this, and for doing such a careful job of it (e.g., updating the 5182 comments)! 5183 5184- Added an encoding for the slp-agent option. :') 5185 5186- Fixed SunOS 4 build. Thanks to Robert Elz for responding to my 5187 request for help on this with patches! 5188 5189- Incorporated a change that should fix a problem reported by Philippe 5190 Jumelle where when the network connection between two servers is 5191 lost, they never reconnect. 5192 5193- Fix client script files other than that for NetBSD to actually use 5194 make_resolv_conf as documented in the manual page. 5195 5196- Fix a bug in the packet handling code that could result in a core 5197 dump. 5198 5199- Fix a bug in the bootp code where responses on the local net would 5200 be sent to the wrong MAC address. Thanks to Jerry Schave for 5201 catching this one. 5202 5203 Changes since 3.0 Beta 2 Patchlevel 3 5204 5205- In the DHCP client, execute client statements prior to using the values 5206 of options, so that the client configuration can overridden, e.g., the 5207 lease renewal time. 5208 5209- Fix a reference counting error that would result in very reproducible 5210 failures in updates, as well as occasional core dumps, if a zone was 5211 declared without a key. 5212 5213- Fix some Linux 2.0 compilation problems. 5214 5215- Fix a bug in scope evaluation during execution of "on" statements that 5216 caused values not to be recorded on leases. 5217 5218- If the dhcp-max-message-size option is specified in scope, and the 5219 client didn't send this option, use the one specified in scope to 5220 determine the maximum size of the response. 5221 5222 Changes since 3.0 Beta 2 Patchlevel 2 5223 5224- Fix a case where spawning subclasses were being allocated 5225 incorrectly, resulting in a core dump. 5226 5227- Fix a case where the DHCP server might inappropriately NAK a 5228 RENEWING client. 5229 5230- Fix a place dhcprequest() where static leases could leak. 5231 5232- Include memory.h in omapip_p.h so that we don't get warnings about 5233 using memcmp(). 5234 5235 Changes since 3.0 Beta 2 Patchlevel 1 5236 5237- Notice when SIOCFIGCONF returns more data than fit in the buffer - 5238 allocate a larger buffer, and retry. Thanks to Greg Fausak for 5239 pointing this out. 5240 5241- In the server, if no interfaces were configured, report an error and 5242 exit. 5243 5244- Don't ever record a state of 'startup'. 5245 5246- Don't try to evaluate the local failover binding address if none was 5247 specified. Thanks to Joseph Breu for finding this. 5248