13965be93Schristos Internet Systems Consortium DHCP Distribution 2*8272f735Schristos Version 4.4.3-P1 3*8272f735Schristos ? ????? 2022 43965be93Schristos Release Notes 53965be93Schristos 6f5e96ebaSchristosPlease note that that ISC DHCP is licensed under the Mozilla Public 7f5e96ebaSchristosLicense, MPL 2.0. Please see https://www.mozilla.org/en-US/MPL/2.0/ to read 8f5e96ebaSchristosthe MPL 2.0 license terms. 93965be93Schristos 10f5e96ebaSchristosNOTE: The client and relay components are now End-Of-Life. 11f5e96ebaSchristos4.4.3 is the final release for those components. 123965be93Schristos 13f5e96ebaSchristosFor information on how to install, configure, and run this software, as 143965be93Schristoswell as how to find documentation and report bugs, please consult the 153965be93SchristosREADME file. 163965be93Schristos 17f5e96ebaSchristosISC DHCP uses the standard GNU configure command for installation. Please review the 18f5e96ebaSchristosoutput of `./configure --help` to see what options are available. 193965be93Schristos 20f5e96ebaSchristosThe system has only been tested on Linux and FreeBSD, and may not work on 21f5e96ebaSchristosother platforms. Please subscribe to the dhcp-users mailing list at 22f5e96ebaSchristoshttps://lists.isc.org/mailman/listinfo/dhcp-users and report any problems 23f5e96ebaSchristosand/or suggested fixes to dhcp-users@lists.isc.org. 243965be93Schristos 253965be93SchristosISC DHCP is open source software maintained by Internet Systems 263965be93SchristosConsortium. This product includes cryptographic software written 273965be93Schristosby Eric Young (eay@cryptsoft.com). 283965be93Schristos 29*8272f735Schristos Changes since 4.4.3 (Bug Fixes) 30*8272f735Schristos 31*8272f735Schristos! Corrected a reference count leak that occurs when the server builds 32*8272f735Schristos responses to leasequery packets. Thanks to VictorV of Cyber Kunlun 33*8272f735Schristos Lab for reporting the issue. 34*8272f735Schristos [Gitblab #253] 35*8272f735Schristos CVE: CVS-2022-2928 36*8272f735Schristos 37*8272f735Schristos! Corrected a memory leak that occurs when unpacking a packet that has an 38*8272f735Schristos FQDN option (81) that contains a label whose lenght is greater than 63. 39*8272f735Schristos Thanks to VictorV of Cyber Kunlun Lab for reporting the issue. 40*8272f735Schristos [Gitblab #254] 41*8272f735Schristos CVE: CVS-2022-2929 42*8272f735Schristos 43f5e96ebaSchristos Changes since 4.4.2-P1 (New Features) 44f5e96ebaSchristos 45f5e96ebaSchristos- Two new OMAPI function calls were added, `dhcpctl_timed_connect()` 46f5e96ebaSchristos and `dhcpctl_timed_wait_for_completion()`. These provide timed 47f5e96ebaSchristos versions of creating a connection and waiting for an operation 48f5e96ebaSchristos to complete. 49f5e96ebaSchristos [GitLab #76] 50f5e96ebaSchristos 51f5e96ebaSchristos- The BIND libraries have been updated to the latest version, 9.11.36. This fixes a number 52f5e96ebaSchristos of compilation issues on various systems, including OpenWRT. Thanks to 53f5e96ebaSchristos Philip Prindeville for testing on OpenWRT. 54f5e96ebaSchristos [GitLab #218, #171, #180, #192] 55f5e96ebaSchristos 56f5e96ebaSchristos- Support was added for the new DHCPv4 option v6-only-preferred, specified 57f5e96ebaSchristos in RFC 8925. A new reason code, V6ONLY, was added to the client script 58f5e96ebaSchristos and the client Linux script sample was updated. 59f5e96ebaSchristos [GitLab #132] 60f5e96ebaSchristos 61f5e96ebaSchristos Changes since 4.4.2-P1 (Bug Fixes) 62f5e96ebaSchristos 63f5e96ebaSchristos- Minor corrections were made to allow compilation under gcc 10. 64f5e96ebaSchristos [GitLab #117] 65f5e96ebaSchristos 66f5e96ebaSchristos- The logic in dhclient that causes it to decline DHCPv4 leases if the 67f5e96ebaSchristos client script exits abnormally (i.e. crashes) has been corrected. 68f5e96ebaSchristos [GitLab #123] 69f5e96ebaSchristos 70f5e96ebaSchristos- The limit on the size of a lease file that can be loaded at startup 71f5e96ebaSchristos is now only enforced on 32-bit systems. 72f5e96ebaSchristos [GitLab #92] 73f5e96ebaSchristos 74f5e96ebaSchristos- The PRNG initialization has been improved. It now uses the configure flag 75f5e96ebaSchristos `--with-randomdev=PATH`, which specifies the device from which to read the 76f5e96ebaSchristos initial seed. That is typically `/dev/random` (the default value) or 77f5e96ebaSchristos `/dev/urandom`, but may be specified otherwise on the local system. The old 78f5e96ebaSchristos behavior can be forced by disabling this feature (`--with-randomdev=no`). 79f5e96ebaSchristos If the initialization is disabled or reading from the random device fails, 80f5e96ebaSchristos the previous algorithm (retrieve the last four bytes of hardware addresses 81f5e96ebaSchristos from all network interfaces that have them, and use the current time and 82f5e96ebaSchristos process ID) is used. 83f5e96ebaSchristos [GitLab #197] 84f5e96ebaSchristos 85f5e96ebaSchristos- A minor dhclient code fix was made to remove compilation warnings. 86f5e96ebaSchristos [GitLab #190] 87f5e96ebaSchristos 88f5e96ebaSchristos- The hard-coded MD5 algorithm name was removed in OMAPI connection logic. 89f5e96ebaSchristos Previously, using any other algorithm via a key-algorithm statement would 90f5e96ebaSchristos allow OMAPI connections to be made, but subsequent actions such as updating 91f5e96ebaSchristos an object would fail. 92f5e96ebaSchristos [GitLab #148] 93f5e96ebaSchristos 94f5e96ebaSchristos- The parallel build has been improved. Thanks to Sergei Trofimovich for 95f5e96ebaSchristos the patch. The parallel build is still experimental, as officially the 96f5e96ebaSchristos BIND 9 code does not support the parallel build for libraries. 97f5e96ebaSchristos [GitLab #91] 98f5e96ebaSchristos 99f5e96ebaSchristos- Handling of LDAP options (`ldap-gssapi-principal` and `ldap-gssapi-keytab`) 100f5e96ebaSchristos has been improved. This is contributed code that has not been tested by ISC. Thank 101f5e96ebaSchristos you to Petr Mensik and Pavel Zhukov for the patches! 102f5e96ebaSchristos [GitLab !56,!75] 103f5e96ebaSchristos 104f5e96ebaSchristos- It is now possible to use `option -g ipaddr` in the dhcrelay to replace the giaddr sent to 105f5e96ebaSchristos clients with the given ipaddr, to work around bogus clients like Solaris 11 106f5e96ebaSchristos grub which use giaddr instead of the announced router (3) to set up their 107f5e96ebaSchristos default route. Thanks to Jens Elkner for the patch! 108f5e96ebaSchristos [GitLab #223, !86, !92] 109f5e96ebaSchristos 11099e6d4b3Schristos Changes since 4.4.2 (Bug Fixes) 11199e6d4b3Schristos 112f5e96ebaSchristos- Corrected a buffer overwrite possible when parsing hexadecimal 113f5e96ebaSchristos literals with more than 1024 octets. 11499e6d4b3Schristos [Gitlab #182] 11599e6d4b3Schristos CVE: CVE-2021-25217 11699e6d4b3Schristos 11736f889b1Schristos Changes since 4.4.2b1 (Bug Fixes) 11836f889b1Schristos 11936f889b1Schristos- Added a clarification on DHCPINFORMs and server authority to 12036f889b1Schristos dhcpd.conf.5 12136f889b1Schristos [Gitlab #37] 12236f889b1Schristos 12336f889b1Schristos- Only emit lease scrubbing log messages when DEBUG_FAILOVER_MESSAGES 12436f889b1Schristos is defined. 12536f889b1Schristos [Gitlab #72] 12636f889b1Schristos 12736f889b1Schristos- Added the interface name to socket initialization failure log messages. 12836f889b1Schristos Prior to this the log messages stated only the error reason without 12936f889b1Schristos stating the target interface. 13036f889b1Schristos [Gitlab #75] 13136f889b1Schristos 13236f889b1Schristos- Corrected buffer pointer logic in dhcrelay functions that manipulate 13336f889b1Schristos agent relay options. Thanks to Thomas Imbert of MSRC Vulnerabilities 13436f889b1Schristos & Mitigations for reporting the issue. 135f5e96ebaSchristos [Gitlab #71] 13636f889b1Schristos 13736f889b1Schristos- Corrected unresolved symbol errors building relay_unittests when 13836f889b1Schristos configured to build using libtool. 139f5e96ebaSchristos [Gitlab #80] 14036f889b1Schristos 14136f889b1Schristos Changes since 4.4.1 (New Features) 14236f889b1Schristos 14336f889b1Schristos- A new configuration parameter, ping-cltt-secs (v4 operation only), has 14436f889b1Schristos been added to allow the user to specify the number of seconds that must 14536f889b1Schristos elapse since CLTT before a ping check is conducted. Prior to this, the 14636f889b1Schristos value was hard coded at 60 seconds. Please see the server man pages for 14736f889b1Schristos a more detailed discussion. 14836f889b1Schristos [ISC-Bugs #36283] 14936f889b1Schristos 15036f889b1Schristos- A new configuration parameter, ping-timeout-ms (v4 operation only), 15136f889b1Schristos has been added that allows the user to specify the amount of time 15236f889b1Schristos the server waits for a ping-check response in milliseconds rather 15336f889b1Schristos than in seconds (via ping-timeout). When greater than zero, the value 15436f889b1Schristos of ping-timeout-ms will override the value of ping-timeout. Thanks 15536f889b1Schristos to Jay Doran from Bluecat Networks for suggesting this feature. 15636f889b1Schristos [Gitlab #10] 15736f889b1Schristos 15836f889b1Schristos- An experimental tool called, Keama (KEA Migration Assistant), which helps 15936f889b1Schristos translate ISC DHCP configurations to Kea configurations, is now included 16036f889b1Schristos in the distribution. 16136f889b1Schristos [Gitlab #34] 16236f889b1Schristos 16336f889b1Schristos Changes since 4.4.1 (Bug Fixes) 16436f889b1Schristos 16536f889b1Schristos- Corrected a misuse of the BIND9 DDNS API which caused DDNS updates to be 16636f889b1Schristos carried out over TCP rather than UDP. The coding error was exposed by 16736f889b1Schristos migration to BIND9 9.11. Thanks to Jinmei Tatuya at Infoblox for 16836f889b1Schristos reporting the issue. 16936f889b1Schristos [ISC-Bugs #47757] 17036f889b1Schristos 17136f889b1Schristos- Bind9 now defaults to requiring python to build. The Makefile for 17236f889b1Schristos building Bind9 when bundled with ISC DHCP was modified to turn off 17336f889b1Schristos this dependency. 17436f889b1Schristos [Gitlab #3] 17536f889b1Schristos 17636f889b1Schristos- Corrected a dual-stack mixed-mode issue that occurs when both 17736f889b1Schristos ddns-guard-id-must-match and ddns-other-guard-is-dynamic 17836f889b1Schristos are enabled and that caused the server to incorrectly interpret 17936f889b1Schristos the presence of a guard record belonging to another client as 18036f889b1Schristos a case of no guard record at all. Thanks to Fernando Soto 18136f889b1Schristos from BlueCat Networks for reporting this issue. 18236f889b1Schristos [Gitlab #1] 18336f889b1Schristos 18436f889b1Schristos- Corrected a compilation issue that occurred when building without DNS 18536f889b1Schristos update ability (e.g. by undefining NSUPDATE). 18636f889b1Schristos [Gitlab #16] 18736f889b1Schristos 18836f889b1Schristos- Corrected an issue that was causing the server, when running in 18936f889b1Schristos DHPCv4 mode, to segfault when class lease limits are reached. 19036f889b1Schristos Thanks to Peter Nagy at Porion-Digital for reporting the matter 19136f889b1Schristos and submitting a patch. 19236f889b1Schristos [Gitlab #13] 19336f889b1Schristos 19436f889b1Schristos- Made minor changes to eliminate warnings when compiled with GCC 9. 19536f889b1Schristos Thanks to Brett Neumeier for bringing the matter to our attention. 19636f889b1Schristos [Gitlab #15] 19736f889b1Schristos 19836f889b1Schristos- Fixed potential memory leaks in parser error message generation 19936f889b1Schristos spotted by Coverity, CIDs: 1448191, 1448193, 1448194, 1448195 20036f889b1Schristos [Gitlab #30] 20136f889b1Schristos 20236f889b1Schristos- Updated URL of IEEE oui.txt in contrib/dhcp-lease-list.pl. Thanks 20336f889b1Schristos to Tommy Smith for contributing the patch. 20436f889b1Schristos [Gitlab #26] 20536f889b1Schristos 20636f889b1Schristos- Fixed define flags when using SO_BINDTODEVICE. Thanks to Joe LeVeque for 20736f889b1Schristos reporting the issue. 20836f889b1Schristos [GitLab #19] 20936f889b1Schristos 21036f889b1Schristos- Applied a patch from OpenBSD to always set the scope id of outbound 21136f889b1Schristos DHPCv6 packets. Note this change only applies when compiling under 21236f889b1Schristos OpenBSD. Thanks to Brad Smith at OpenBSD from bringing it to our 21336f889b1Schristos attention. 21436f889b1Schristos [Gitlab #33] 21536f889b1Schristos 21636f889b1Schristos- Modified dhclient to not discard config file leases that are 21736f889b1Schristos duplicates of server-provided leases and to retain such leases 21836f889b1Schristos after they have been used as the fallback active lease and 21936f889b1Schristos DHCP service has been restored. This allows them to be used 22036f889b1Schristos more than once during the lifetime of a dhclient instance. 22136f889b1Schristos This applies to DHCPv4 operation only. 22236f889b1Schristos [Gitlab #9] 22336f889b1Schristos 22436f889b1Schristos- Corrected a number of reference counter and zero-length buffer leaks. 22536f889b1Schristos Thanks to Christopher Ertl of MSRC Vulnerabilities & Mitigations for 22636f889b1Schristos pointing them out. 22736f889b1Schristos [Gitlab #57] 22836f889b1Schristos 22936f889b1Schristos- Closed a small window of time between the installation of graceful 23036f889b1Schristos shutdown signal handlers and application context startup, during which 23136f889b1Schristos the receipt of shutdown signal would cause a REQUIRE() assertion to 23236f889b1Schristos occur. Note this issue is only visible when compiling with 23336f889b1Schristos ENABLE_GENTLE_SHUTDOWN defined. 23436f889b1Schristos [Gitlab #53] 23536f889b1Schristos 23636f889b1Schristos- Corrected a buffer overflow that can occur when retrieving zone 23736f889b1Schristos names that are more than 255 characters in length. 23836f889b1Schristos [Gitlab #20] 23936f889b1Schristos 24036f889b1Schristos- The "d" domain name option format was incorrectly handled as text 24136f889b1Schristos instead of RFC 1035 wire format. Thanks to Jay Doran at BlueCat Networks 24236f889b1Schristos for reporting this issue. 24336f889b1Schristos [Gitlab #2] 24436f889b1Schristos 24536f889b1Schristos- Improved the error message issued when a host declaration has both 24636f889b1Schristos a uid and a dhcp-client-identifier. Server configuration parsing will 24736f889b1Schristos now fail if a host declaration specifies more than one uid. 24836f889b1Schristos [Gitlab #7] 24936f889b1Schristos 25036f889b1Schristos- Updated developer's documentation on building and running unit tests. 25136f889b1Schristos Removed support for --with-atf=bind as BIND9 no longer bundles in ATF 25236f889b1Schristos source. 25336f889b1Schristos [Gitlab #35] 25436f889b1Schristos 25536f889b1Schristos- Fixed a syntax error in ldap.c which cropped up under Ubuntu 25636f889b1Schristos 18.04.1/gcc 7.4.0. Thanks to Charles Hedrick for pointing it out. 25736f889b1Schristos [Gitlab #51] 25836f889b1Schristos 25936f889b1Schristos- Added clarification to dhcp-options.5 section on ip-address values 26036f889b1Schristos describing the first-use DNS resolution of options with hostnames as 26136f889b1Schristos values (e.g. next-server). 26236f889b1Schristos [Gitlab #28] 26336f889b1Schristos 26436f889b1Schristos- The option format for the server option omapi-key was changed to a 26536f889b1Schristos format type 'k' (key name); while server options ldap-port and 26636f889b1Schristos ldap-init-retry were changed to 'L' (unsigned 32-bit integer). These 26736f889b1Schristos three options were inadvertantly broken when the 'd' format content 26836f889b1Schristos was changed to comply with RFC 1035 wire format (see Gitlab #2). 26936f889b1Schristos [Gitlab #68] 27036f889b1Schristos 2713965be93Schristos Changes since 4.4.0 (New Features) 2723965be93Schristos- none 2733965be93Schristos Changes since 4.4.0 (Bug Fixes) 2743965be93Schristos 2753965be93Schristos- A delayed-ack value of 0 (the default), now correctly disables the delayed 2763965be93Schristos feature. A change in 4.4.0 prohibited lease updates marking leases active 2773965be93Schristos from be written to the lease file when delayed-ack is 0. This in turn, 2783965be93Schristos caused servers to lose active lease assignments upon restart. 2793965be93Schristos [ISC-Bugs #47141] 2803965be93Schristos 2813965be93Schristos! Option reference count was not correctly decremented in error path 2823965be93Schristos when parsing buffer for options. Reported by Felix Wilhelm, Google 2833965be93Schristos Security Team. 2843965be93Schristos [ISC-Bugs #47140] 2853965be93Schristos CVE: CVE-2018-5733 2863965be93Schristos 2873965be93Schristos! Corrected an issue where large sized 'X/x' format options were causing 2883965be93Schristos option handling logic to overwrite memory when expanding them to human 2893965be93Schristos readable form. Reported by Felix Wilhelm, Google Security Team. 2903965be93Schristos [ISC-Bugs #47139] 2913965be93Schristos CVE: CVE-2018-5732 2923965be93Schristos 29336f889b1Schristos- Added use of new Bind9 compatibility header files, that are now necessary 29436f889b1Schristos to supply type definitions for primitive data types, removed from Bind9 29536f889b1Schristos proper. Altered util/bind.sh to pull from Bind9 repo on gitlab. 29636f889b1Schristos [ISC-Bugs #48072] 29736f889b1Schristos [ISC-Bugs #48071] 29836f889b1Schristos 2993965be93Schristos Changes since 4.4.0b1 (New Features) 3003965be93Schristos 3013965be93Schristos- Duplicate address detection when binding to a new IPv6 address was added 3023965be93Schristos to the following dhclient scripts: linux,freebsd,netbsd,openbsd, and macos. 3033965be93Schristos The scripts will check for DAD errors after binding to a new IPv6 address 3043965be93Schristos for at most --dad-wait-time seconds. If a DAD error is detected the script 3053965be93Schristos will exit with a value of 3, instructing dhclient to decline the address. If 3063965be93Schristos dad-wait-time is zero (the default), DAD error checking is not peformed. 3073965be93Schristos [ISC-Bugs 46805] 3083965be93Schristos 3093965be93Schristos- Support for sending and receiving additional DHCP4 options has been added 3103965be93Schristos to both the dhcpd and dhclient. Specifically: option codes 93,94, and 97 3113965be93Schristos (RFC 4578); code 150 (RFC 5859); and codes 209,219, and 211 (RFC 5071). 3123965be93Schristos Beyond configuring, sending, requesting, and receiving these options neither 3133965be93Schristos server nor client apply any additional logic based on their values. 3143965be93Schristos Thanks to Peter Lewis for requesting this change. 3153965be93Schristos [ISC-Bugs 47062] 3163965be93Schristos 3173965be93Schristos Changes since 4.4.0b1 (Bug Fixes) 3183965be93Schristos 3193965be93Schristos- Added clarifying text to dhcpd.conf.5 explaining the class match expressions 3203965be93Schristos cannot rely on the results of executable statements. 3213965be93Schristos [ISC-Bugs #45451] 3223965be93Schristos 3233965be93Schristos- Fixed a bug which causes dhcpd and dhclient to crash on certain 3243965be93Schristos systems when given relative path names for lease or pid files on 3253965be93Schristos the command line. Affected systems are those on which the C library 3263965be93Schristos function, realpath() does not support a second parameter value of 3273965be93Schristos NULL (see manpages for realpath(3)). 3283965be93Schristos [ISC-Bugs #46957] 3293965be93Schristos 3303965be93Schristos- Fixed a build issue when building with embedded BIND9 under OpenBSD that 3313965be93Schristos was causing BIND9 build to not generate dns/enumclass.h and dns/enumtype.h. 3323965be93Schristos [ISC-Bugs #46971] 3333965be93Schristos 3343965be93Schristos- Added <dhcp>/m4/README to the distribution tarball. Some versions of 3353965be93Schristos ac_local() treat the absence of the m4 subdirectory as error rather than 3363965be93Schristos warning. This was causing the call to autoreconf, necessary for building 3373965be93Schristos with libtool, to fail. 3383965be93Schristos [ISC-Bugs #47075] 3393965be93Schristos 3403965be93Schristos Changes since 4.4.0a1 (New Features) 3413965be93Schristos 3423965be93Schristos- Added experimental support for relay port (draft-ietf-dhc-relay-port-10.txt) 3433965be93Schristos feature for DHCPv4, DHCPv6 and DHCPv4-over-DHCPv6. Relay port has to be 3443965be93Schristos enabled at compile time via --enable-relay-port and is fully backward 3453965be93Schristos compatible (i.e. works with previous implementations of servers and relays 3463965be93Schristos using the standard ports). A new --rp <relay-port> command line option 3473965be93Schristos specifies to dhcrelay an alternate source port for upstream (i.e. toward 3483965be93Schristos the server) messages. Thanks to Naiming Shen and Enke Chen of Cisco 3493965be93Schristos systems for submitting these patches. 3503965be93Schristos [ISC-Bugs #44535] 3513965be93Schristos 3523965be93Schristos- Added --release-on-roam to dhcpd server. When enabled and the server detects 3533965be93Schristos that a DHCPv6 client (IAID+DUID) has roamed to a new network, it will release 3543965be93Schristos the pre-existing leases on the old network and emit a log statement similar 3553965be93Schristos to the following: 3563965be93Schristos 3573965be93Schristos "Client: <id> roamed to new network, releasing lease: <address>" 3583965be93Schristos 3593965be93Schristos The server will carry out all of the same steps that would normally occur 3603965be93Schristos when a client explicitly releases a lease. This behavior is disabled by 3613965be93Schristos default and may only be specified globally. Prior to this the server renders 3623965be93Schristos the leases unavailable until they expire or the server is restarted. Clients 3633965be93Schristos that need leases in multiple networks must supply a unique IAID in each IA. 3643965be93Schristos When release-on-roam is disabled (the default) the server maintains the 3653965be93Schristos prior behavior of making such leases unavailable until they expire or the 3663965be93Schristos server is restarted. Clients that need leases in multiple networks must 3673965be93Schristos supply a unique IAID in each IA. This parameter may only be specified at 3683965be93Schristos the global level. Thanks to Fernando Soto from BlueCat Networks for 3693965be93Schristos suggesting this change. 3703965be93Schristos [ISC-Bugs #44576] 3713965be93Schristos [ISC-Bugs #46849] 3723965be93Schristos 3733965be93Schristos- Support for delayed-ack is now compiled in by default. Prior to this 3743965be93Schristos it had to be enabled at compile time via --enable-delayed-acks. The 3753965be93Schristos default value for delayed-ack, however, has been changed from 28 to 0 3763965be93Schristos (i.e. disabled). This was done to minimize the impact on users not 3773965be93Schristos currently using the feature. Please note that the delayed-ack feature 3783965be93Schristos is not currently compatible with support for DHPCv4-over-DHCPv6 so 3793965be93Schristos when a 4to6 port command line argument enables this in the server the 3803965be93Schristos delayed-ack value is reset to 0. 3813965be93Schristos [ISC-Bugs #42446] 3823965be93Schristos 3833965be93Schristos- The server (-6) now honors the parameter, update-static-leases, for static 3843965be93Schristos (fixed-address6) DHCPv6 leases. It is worth noting that because stateful 3853965be93Schristos data is not retained by the server for static leases, each time a client 3863965be93Schristos requests or renews a static lease, the server will perform DDNS updates for 3873965be93Schristos it. This may have significant performance implications for environments 3883965be93Schristos with many clients that request or renew static leases often. Similarly, 3893965be93Schristos the DNS entries will not be removed by server when a client issues a RELEASE 3903965be93Schristos nor if the lease is deleted from the configuration. In such cases the DNS 3913965be93Schristos entries must be removed manually. This feature is disabled by default. 3923965be93Schristos Thanks to both Bill Shirley and dgutier-at-cern-dot-ch for requesting 3933965be93Schristos this change. 3943965be93Schristos [ISC-Bugs #34097] 3953965be93Schristos [ISC-Bugs #41054] 3963965be93Schristos [ISC-Bugs #41450] 3973965be93Schristos 3983965be93Schristos- Added to the server (-6) a new statement, local-address6, which specifies 3993965be93Schristos the source address of packets sent by the server. An additional flag, 4003965be93Schristos bind-local-address6, disabled by default, binds the service socket to 4013965be93Schristos to local-address6. Note that bind-local-address does not work with direct 4023965be93Schristos clients: a relay has to forward packets to the server using the 4033965be93Schristos local-address6 destination. 4043965be93Schristos [ISC-Bugs #46084] 4053965be93Schristos 4063965be93Schristos Changes since 4.4.0a1 (Bugs) 4073965be93Schristos 4083965be93Schristos- The server now recognizes environment variables PATH_DHCPD_DB and 4093965be93Schristos PATH_DHCPD_PID. These had been incorrectly compiled out of the code 4103965be93Schristos unless DHCPv6 support was disabled. Additionally, the server man 4113965be93Schristos pages were corrected to accurately reflect how the server chooses 4123965be93Schristos file names (see lease-file-name and pid-file-name statements). Thanks 4133965be93Schristos to Fernando Soto at Bluecat Networks for bringing this matter to our 4143965be93Schristos attention. 4153965be93Schristos [ISC-Bugs #46859] 4163965be93Schristos 4173965be93Schristos- Removed an "Impossible condition" error upon exit in the dhcpd server that 4183965be93Schristos has been shutdown via OMAPI. This condition was only apparent under Solaris 4193965be93Schristos when building with --enable-use-sockets and --enable-ipv4-pktinfo. 4203965be93Schristos [ISC-Bugs #36118] 4213965be93Schristos 4223965be93Schristos- Corrected some minor Coverity issues: CID 1426059, 1426058, and 1426057. 4233965be93Schristos [ISC-Bugs #46836] 4243965be93Schristos 4253965be93Schristos- Added missing text to dhclient.8 and expanded release note coverage 4263965be93Schristos for --address-prefix-len changes. 4273965be93Schristos 4283965be93Schristos Changes since 4.3.6 (New Features) 4293965be93Schristos 4303965be93Schristos- Added --enable-bind-install to install embedded bind includes and 4313965be93Schristos libraries. Default is to not install them (it was the previous 4323965be93Schristos behavior). If you'd like to change the includedir and/or libdir 4333965be93Schristos installation directories to something different than for ISC DHCP 4343965be93Schristos you must pass them using the --with-bind-extra-config configuration 4353965be93Schristos arguments. 4363965be93Schristos [ISC-Bugs #39318] 4373965be93Schristos 4383965be93Schristos- Added support of dynamic shared libraries with libtool. A new 4393965be93Schristos --enable-libtool configuration parameter is available but 4403965be93Schristos should not be used directly: *please* read the build configuration 4413965be93Schristos section in the README file for the recommended procedure. 4423965be93Schristos [ISC-Bugs #29402] 4433965be93Schristos 4443965be93Schristos- IPv6 operation now supports an EUI-64 based address allocation which will 4453965be93Schristos calculate addresses for clients with EUI-64 DUIDs based on those DUIDs when 4463965be93Schristos enabled by setting use-eui-64 true. The parameter may defined down to the 4473965be93Schristos pool scope. Note this feature must be compiled in by defining EUI_64 in 4483965be93Schristos includes/site.h. This flag is undefined by default. 4493965be93Schristos [ISC-Bugs #43927] 4503965be93Schristos 4513965be93Schristos- The directory includes/isc-dhcp and it's only occupant, dst.h, have 4523965be93Schristos been removed from the source tree. They are obsolete for branches 4533965be93Schristos other than v4_1_esv. 4543965be93Schristos [ISC-bugs #45541] 4553965be93Schristos 4563965be93Schristos- Replaced ISC licensing with Mozilla Public License, MPL 2.0 licensing 4573965be93Schristos throughout. Please see https://www.mozilla.org/en-US/MPL/2.0/ to read 4583965be93Schristos the MPL 2.0 license terms. 4593965be93Schristos [ISC-Bugs #45541] 4603965be93Schristos 4613965be93Schristos- Load balancing for failover peers can now be disabled by setting 4623965be93Schristos "load balance max secs" to 0. Doing so for both peers means both 4633965be93Schristos servers will respond to all DHCPDISCOVERs or DHCPREQUESTs as soon as 4643965be93Schristos they are received. 4653965be93Schristos [ISC-Bugs #39669] 4663965be93Schristos 4673965be93Schristos- Added a new dhclient command line parameter, --prefix-len-hint <length>. 4683965be93Schristos When used in conjunction with -P, it directs dhclient to use the given 4693965be93Schristos length as the prefix length hint when requesting prefixes. Thanks to both 4703965be93Schristos Indy, of the FireballISO open source project and H. Peter Anvin for 4713965be93Schristos suggesting this change. 4723965be93Schristos [ISC-Bugs #43792] 4733965be93Schristos [ISC-Bugs #35112] 4743965be93Schristos [ISC-Bugs #32228] 4753965be93Schristos [ISC-Bugs #29470] 4763965be93Schristos 4773965be93Schristos- dhclient will now wait for 10 seconds after declining an IPv4 address 4783965be93Schristos before issuing a discover. This is in keeping with RFC 2131, section 3.1.5. 4793965be93Schristos Prior to this dhclient did not wait at all. The amount of time dhclient 4803965be93Schristos waits can be specified via a new command line parameter: 4813965be93Schristos --decline-wait-time <seconds>. A value of zero equates to no wait at all. 4823965be93Schristos Thanks to Pavel Kankovsky for bringing this matter to our attention. 4833965be93Schristos **NOTE: THIS IS CHANGE IN DEFAULT BEHAVIOR. 4843965be93Schristos [ISC-Bugs #45457] 4853965be93Schristos 4863965be93Schristos- dhclient will now include the lease address when logging DHCPOFFERs, 4873965be93Schristos DHCPREQUESTs, DHCPACKs, DHCPRELEASEs, and DHCPDECLINEs. Additionally, 4883965be93Schristos DHCPOFFERs will be logged before their corresponding DHCPREQUESTs are 4893965be93Schristos sent and logged. 4903965be93Schristos [ISC-Bugs #2729] 4913965be93Schristos 4923965be93Schristos- When given the -T command line argument, in addition to reading the 4933965be93Schristos current lease file, the server will write the leases to a temporary 4943965be93Schristos lease file. This can help detect issues in server configuration that 4953965be93Schristos only surface when leases are written to the file. The current lease 4963965be93Schristos file will not be modified and the temporary lease file is removed upon 4973965be93Schristos completion of the test. 4983965be93Schristos [ISC-Bugs #22267] 4993965be93Schristos 5003965be93Schristos- dhclient will now generate a DHCPv6 DECLINE message containing all IA_NA 5013965be93Schristos addresses which for which the client script indicates a DAD failure. After 5023965be93Schristos receiving the DECLINE reply, dhclient will restart the solicit process. 5033965be93Schristos Note, the client script must exit with a value of 3 to signify that the 5043965be93Schristos address failed DAD. Thanks to Jiri Popelka of Red Hat for submitting the 5053965be93Schristos patch that was the foundation for this change. 5063965be93Schristos **NOTE: THIS IS CHANGE IN DEFAULT BEHAVIOR. 5073965be93Schristos [ISC-Bugs #21237] 5083965be93Schristos [ISC-Bugs #23357] 5093965be93Schristos [ISC-Bugs #36966] 5103965be93Schristos 5113965be93Schristos- Replaced compilation option, enable-secs-byteorder, with a run-time, server 5123965be93Schristos configuration parameter, check-secs-byte-order. When enabled, the 5133965be93Schristos server will check for clients that do the byte ordering on the secs field 5143965be93Schristos incorrectly. This field should be in network byte order but some clients 5153965be93Schristos get it wrong. When this parameter is enabled the server will examine the 5163965be93Schristos secs field and if it looks wrong (high byte non zero and low byte zero) swap 5173965be93Schristos the bytes. The default is disabled. This parameter is only useful when 5183965be93Schristos doing load balancing within failover. 5193965be93Schristos [ISC-Bugs #45364] 5203965be93Schristos 5213965be93Schristos- The default value for server (-6) parameter, prefix-length-mode, has been 5223965be93Schristos changed from "exact" to "prefer". In "prefer" mode the server will offer 5233965be93Schristos the first available prefix with the same length as that requested by the 5243965be93Schristos client. If none are found then it will offer the first available prefix of 5253965be93Schristos any length. This is more in line with with RFC 8168 and should improve 5263965be93Schristos the out-of-the-box user experience. 5273965be93Schristos **NOTE: THIS IS CHANGE IN DEFAULT BEHAVIOR. 5283965be93Schristos [ISC-Bugs #45615] 5293965be93Schristos 5303965be93Schristos- Added support for 'dhcp-cache-threshold' to IPv6 operation: If a client 5313965be93Schristos renews before 'dhcp-cache-threshold' percent of its lease has elapsed 5323965be93Schristos (default 25%), the server will reuse the allocated lease (provide a 5333965be93Schristos lease within the currently allocated lease-time) rather than extend or 5343965be93Schristos renew the lease. This allows the server to reply without needlessly 5353965be93Schristos writing leases to disk. The preferred and valid lease lifetimes 5363965be93Schristos sent to the client will be reduced by the age of the lease. The option 5373965be93Schristos may be specified down to the pool level and is supported for all three 5383965be93Schristos pool types: NA, TA, and PD. 5393965be93Schristos [ISC-Bugs #45292] 5403965be93Schristos 5413965be93Schristos- Added three new server configuration parameters which influence DDNS: 5423965be93Schristos 1. ddns-dual-stack-mixed-mode - alters DNS conflict resolution behavior 5433965be93Schristos to mitigate issues with non-compliant clients in dual stack environments. 5443965be93Schristos 5453965be93Schristos 2. ddns-guard-id-must-match - relaxes the DHCID RR client id matching 5463965be93Schristos requirement of DNS conflict resolution. 5473965be93Schristos 5483965be93Schristos 3. ddns-other-guard-is-dynamic - alters dual-stack-mixed-mode behavior to 5493965be93Schristos allow unguarded DNS entries to be overwritten in certain cases 5503965be93Schristos [ISC-Bugs #42620] 5513965be93Schristos [ISC-Bugs #42621] 5523965be93Schristos [ISC-Bugs #44753] 5533965be93Schristos 5543965be93Schristos- A "key-algorithm <algorithm>" statement has been added to omshell to 5553965be93Schristos allow the specification of the key algorithm to use during transaction 5563965be93Schristos authentication. Prior to this it was hard-coded to be hmac-md5. It now 5573965be93Schristos supports all of the same algorithms as the dhcpd server: hmac-md5 (the 5583965be93Schristos default), hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha384, and hmac-sha512. 5593965be93Schristos [ISC-Bugs #46771] 5603965be93Schristos 5613965be93Schristos- Added a server configuration parameter, persist-eui-64-leases, which 5623965be93Schristos determines whether or not EUI-64 based leases are written to the 5633965be93Schristos leases file. Default is true. 5643965be93Schristos [ISC-Bugs #45046] 5653965be93Schristos 5663965be93Schristos- Changed the default value of the prefix length passed by dhclient into the 5673965be93Schristos client script for each IPv6 address from 64 to 128. This was done to comply 5683965be93Schristos with RFC3315bis draft (-09, page 64) and RFC5942, Section 4, point 1. 5693965be93Schristos In addition, dhclient now supports a command line argument, 5703965be93Schristos --address-prefix-len, which may be used to override the default value. 5713965be93Schristos **WARNING**: This change may not be backwardly compatible with your 5723965be93Schristos environment. If you are operating without a router, such as between VMs on 5733965be93Schristos a host, you may find they cannot see each with prefix length of 128. In 5743965be93Schristos such cases, you'll need to either provide routing or use the command line 5753965be93Schristos parameter to set the value to 64. Alternatively you may change the default 5763965be93Schristos at compile time by setting DHCLIENT_DEFAULT_PREFIX_LEN in includes/site.h. 5773965be93Schristos [ISC-Bugs #23252] 5783965be93Schristos [ISC-Bugs #37221] 5793965be93Schristos 5803965be93Schristos- Modified dhclient (-6) to bypass sending a confirm (INIT REBOOT) when it has 5813965be93Schristos only expired address associations. Thanks to Jiri Popelka at Red Hat for 5823965be93Schristos raising the issue and submitting the patch. 5833965be93Schristos [ISC-Bugs #22675] 5843965be93Schristos Changes since 4.3.6 (Bugs): 5853965be93Schristos 5863965be93Schristos- Corrected an issue where the server would return a client's previously 5873965be93Schristos released prefix lease even when the client provides a prefix length 5883965be93Schristos hint that does not match the prior lease. Now the server will only 5893965be93Schristos return the previous lease if it exactly matches the hint. If not 5903965be93Schristos it will attempt to allocate a new prefix based on the hint and the 5913965be93Schristos prefix-length-mode. Thanks to Tim DeNike - Lightspeed Communications 5923965be93Schristos for pointing out the error of our ways. 5933965be93Schristos [ISC-bugs #45780] 5943965be93Schristos 5953965be93Schristos- Added explicit include of BIND9 isc/util.h to adapt to revisions 5963965be93Schristos in BIND9 (see BIND9 ticket #46311). Prior to this the build was failing 5973965be93Schristos with implicit function declarations errors for POST() and INSIST(). 5983965be93Schristos [ISC-bugs #46332] 5993965be93Schristos 6003965be93Schristos- Added to code ignore empty IPv4 host name option (code 12). While RFC 2132 6013965be93Schristos states the option cannot be empty, some clients are apparently capable of 6023965be93Schristos sending it. Prior to this the server was attempting to use it and store it 6033965be93Schristos in the lease file causing issues with DDNS and so forth. 6043965be93Schristos [ISC-bugs #43786] 6053965be93Schristos 6063965be93Schristos- Corrected dhclient command line parsing for --dad-wait-time that causes 6073965be93Schristos even valid values to fail as invalid on some environments. 6083965be93Schristos [ISC-Bugs #46535] 6093965be93Schristos 6103965be93Schristos- Replaced iasubopt::heap_index with separate values for active and inactive 6113965be93Schristos heaps: iasubopt::active_index and iasubopt::inactive_index. This was done 6123965be93Schristos to accommodate a change in behavior in BIND9 isc_heap_delete(). 6133965be93Schristos [ISC-bugs #46719] 6143965be93Schristos 6153965be93Schristos! Plugged a socket descriptor leak in OMAPI, that can occur when there is 6163965be93Schristos data pending to be written to an OMAPI connection, when the connection 6173965be93Schristos is closed by the reader. Thanks to Pavel Zhukov at RedHat for bringing 6183965be93Schristos this issue to our attention and whose patch helped guide us in the right 6193965be93Schristos direction. 6203965be93Schristos [ISC-Bugs #46767] 6213965be93Schristos 6223965be93Schristos- The ability of the server to send back dhcp6.vendor-opts values has been 6233965be93Schristos restored. A change in 4.3.5 (see #29246) which enabled it to send back the 6243965be93Schristos FQDN option unfortunately broke its ability send back dhcp6.vendor-opts. 6253965be93Schristos Thanks to Sumant Gupta (sumantgupta at gmail dot com) of Landis+Gry for 6263965be93Schristos bringing this issue to our attention. 6273965be93Schristos [ISC-Bugs #46427] 6283965be93Schristos 6293965be93Schristos Changes since 4.3.6b1 6303965be93Schristos 6313965be93Schristos- None 6323965be93Schristos 6333965be93Schristos Changes since 4.3.5 6343965be93Schristos 6353965be93Schristos- The server now allows the client identifier (option 61) to own leases 6363965be93Schristos in more than one subnet concurrently. Prior to this the server would 6373965be93Schristos incorrectly release an existing lease in one subnet prior to assigning 6383965be93Schristos a lease in another subnet. Note that the prior behavior can be still 6393965be93Schristos be achieved by enabling one-lease-per-client. Thanks to both David Zych at 6403965be93Schristos the University of Illinois and Norm Proffitt of Infoblox for reporting 6413965be93Schristos the issue; and Norm for suggesting a solution. 6423965be93Schristos [ISC-Bugs #41358] 6433965be93Schristos 6443965be93Schristos- When replying to a DHCPINFORM, the server will now include options specified 6453965be93Schristos at the pool scope, provided the ciaddr field of the DHCPINFORM is populated. 6463965be93Schristos Prior to this the server only evaluated options down to the subnet scope. 6473965be93Schristos Thanks to Fernando Soto at BlueCat Networks for reporting the issue. 6483965be93Schristos [ISC-Bugs #43219] 6493965be93Schristos [ISC-Bugs #45051] 6503965be93Schristos 6513965be93Schristos- When memory allocation fails in a repeated way the process writes 6523965be93Schristos "Run out of memory." on the standard error and exists with status 1. 6533965be93Schristos [ISC-Bugs #32744] 6543965be93Schristos 6553965be93Schristos- The new lmdb (Lightning Memory DataBase) bind9 configure option is 6563965be93Schristos now disabled by default to avoid the presence of this library to be 6573965be93Schristos detected which can lead to a link failure. 6583965be93Schristos [ISC-Bugs #45069] 6593965be93Schristos 6603965be93Schristos- The linux interface discovery code has been modified to use getifaddrs() 6613965be93Schristos as is done for BSD and OS-X. Prior to this the code would only recognize 6623965be93Schristos the first address on an interface and thereby omit vlans. 6633965be93Schristos Thanks to Jiri Popelka at Redhat, Marius Tomaschewski at SUSE, and Wei 6643965be93Schristos Kong at Novell, who all submitted patches. 6653965be93Schristos [ISC-Bugs #28761] 6663965be93Schristos [ISC-Bugs #31992] 6673965be93Schristos [ISC-Bugs #25428] 6683965be93Schristos [ISC-Bugs #31940] 6693965be93Schristos [ISC-Bugs #32935] 6703965be93Schristos 6713965be93Schristos- Fixed a bug in OMAPI that causes omshell to crash when a name-value 6723965be93Schristos pair with a zero length value is shipped in an object. Thanks to 6733965be93Schristos Fernando Soto at BlueCat Networks for reporting the issue and 6743965be93Schristos supplying the patch. 6753965be93Schristos [ISC-Bugs #29108] 6763965be93Schristos 6773965be93Schristos- On 64-bit platforms, dhclient now generates the correct value for the 6783965be93Schristos script environment variable, "expiry", the lease expiry value exceeds 6793965be93Schristos 0x7FFFFFFF. Prior to this such values would produce negative values 6803965be93Schristos for expiry in the script environment. 6813965be93Schristos [ISC-Bugs #43326] 6823965be93Schristos 6833965be93Schristos- Common timer logic was modified to cap the maximum timeout values at 6843965be93Schristos 0x7FFFFFFF - 1. Values larger than that were causing fatal timer out of 6853965be93Schristos range errors on 64-bit platforms. Thanks to Jiri Popelka at Red Hat for 6863965be93Schristos reporting the issue. 6873965be93Schristos [ISC-Bugs #28038] 6883965be93Schristos 6893965be93Schristos- DHCP6 FQDN option unpacking code now correctly handles values that contain 6903965be93Schristos spaces, special, or non-printable characters. Prior to this the buffer 6913965be93Schristos size needed was underestimated causing a conversion error message to 6923965be93Schristos be logged and DNS updates to be skipped. Thanks to Fernando Soto at 6933965be93Schristos BlueCat Networks for bringing the matter to our attention. 6943965be93Schristos [ISC-Bugs #43592] 6953965be93Schristos 6963965be93Schristos- When running in -6 mode, dhclient can enforce the require option statement 6973965be93Schristos and will discard offered leases that do not contain all the required 6983965be93Schristos options specified in the client configuration. If not enabled the client 6993965be93Schristos will still consider such leases. This must be enabled at compile time 7003965be93Schristos (see ENFORCE_DHCPV6_CLIENT_REQUIRE in includes/site.h). Thanks to 7013965be93Schristos Mritunjaykumar Dubey at Nokia for reporting the issue. 7023965be93Schristos [ISC-Bugs #41473] 7033965be93Schristos 7043965be93Schristos- Altered DHCPv4 lease time calculation to avoid roll over errors on 64-bit 7053965be93Schristos OS systems when using -1 or large values for default-lease-time. Rollover 7063965be93Schristos values will be replaced with 0x7FFFFFFF - 1. This alleviates unintentionally 7073965be93Schristos short expiration times being handed out when infinite lease times (-1) in 7083965be93Schristos conjunction with failover. Our thanks to Alessandro Gherardi for bringing 7093965be93Schristos the issue to our attention. 7103965be93Schristos [ISC-Bugs #41976] 7113965be93Schristos 7123965be93Schristos- Added new compile time option --with-srv-conf-file which specifies a 7133965be93Schristos default location of the server configuration file. 7143965be93Schristos [ISC-Bugs #44765] 7153965be93Schristos 7163965be93Schristos- Added --dad-wait-time parameter to dhclient. It specifies the maximum time, 7173965be93Schristos in seconds, that the client process should wait for the duplicate address 7183965be93Schristos detection to complete before initiating DHCP requests. This value is 7193965be93Schristos propagated to the dhclient script and the script is responsible for waiting 7203965be93Schristos the specified amount of time or until DAD has completed. If the script does 7213965be93Schristos not support it, specifying this parameter has no effect. The default value 7223965be93Schristos is 0 which specifies that the script should not wait for DAD. With this 7233965be93Schristos change the following scripts have been modified to support the new parameter: 7243965be93Schristos freebsd, linux, macos, netbsd, openbsd. 7253965be93Schristos [ISC-Bugs #36169] 7263965be93Schristos 7273965be93Schristos- The server nows checks both the address and length of a prefix delegation 7283965be93Schristos when attempting to match it to a prefix pool. This ensures the server 7293965be93Schristos responds properly when pool configurations change such that once valid, 7303965be93Schristos "in-pool" delegations are now treated as being invalid. During lease 7313965be93Schristos file loading at startup, the server will discard any PD leases that 7323965be93Schristos are deemed "out-of-pool" either by address or mis-matched prefix length. 7333965be93Schristos Clients seeking to renew or rebind such leases will get a response of 7343965be93Schristos No Binding in the case of the former, and the prefix delegation with 7353965be93Schristos lifetimes set to zero in the case of the latter. Thanks to Mark Nejedlo 7363965be93Schristos at TDS Telecom for reporting this issue. 7373965be93Schristos [ISC-Bugs #35378] 7383965be93Schristos 7393965be93Schristos- Modified DDNS support initialization such that DNS related ports will only be 7403965be93Schristos opened by the server (dhcpd) at startup if ddns-update-style is not "none"; 7413965be93Schristos by dhclient only if and when the it first attempts an update; and never by 7423965be93Schristos dhcrelay. Prior to this all three always did the initialization at startup 7433965be93Schristos which causes them to always open on and listen for traffic on two random 7443965be93Schristos ports. Thanks to Rodney Beede for reporting this issue. 7453965be93Schristos [ISC-Bugs #45290] 7463965be93Schristos [ISC-Bugs #33377] 7473965be93Schristos 7483965be93Schristos- Added error logging to two memory allocation failure checks. Thanks to Bill 7493965be93Schristos Parker (wp02855 at gmail dot com) for reporting the issue. 7503965be93Schristos [ISC-Bugs #41185] 7513965be93Schristos 7523965be93Schristos- Corrected a dhclient -6 issue that caused the client to crash with an 7533965be93Schristos "Impossible condition" error after de-preferencing its only IA binding. 7543965be93Schristos The crash occurred when server configuration changes rendered the existing 7553965be93Schristos binding out-of-range and no other leases were available to offer. Thanks 7563965be93Schristos to Pierre Clerissi for bringing this issue to our attention. 7573965be93Schristos [ISC-Bugs #44373] 7583965be93Schristos 7593965be93Schristos- By defining CALL_SCRIPT_ON_ONETRY_FAIL in includes/site.h, dhclient will 7603965be93Schristos now call the script with reason set to FAIL when run with -1 (one try) and 7613965be93Schristos there are no server responses. This applies to IPv4 mode only. Thanks for a 7623965be93Schristos patch by Martin Pitt which got to us via Andrew Pollock. 7633965be93Schristos [ISC-bugs #18183] 7643965be93Schristos 7653965be93Schristos- The server now detects failover peers that are not referenced in at least 7663965be93Schristos one pool when run with the command line option for test mode, -T. Prior to 7673965be93Schristos this the check was performed too far down stream to be detected in test mode. 7683965be93Schristos [ISC-Bugs #29892] 7693965be93Schristos 7703965be93Schristos- Linux script updated. The script is now based on Debian version. It uses 7713965be93Schristos ip tool from iproute2 package and ifconfig is no longer used. This also 7723965be93Schristos addresses an issue of calling arping with inappropriate parameter. 7733965be93Schristos [ISC-bugs #19430] 7743965be93Schristos [ISC-bugs #18111] 7753965be93Schristos 7763965be93Schristos- Changed severity of the log message indicating UDP checksum errors in 7773965be93Schristos the received packets from 'info' to 'debug' to avoid logging excessive 7783965be93Schristos number of false positives when UDP checksum offloading is enabled. 7793965be93Schristos [ISC-bugs #41757] 7803965be93Schristos 7813965be93Schristos- The directory minires has been removed from the source tree. It has 7823965be93Schristos long been obsolete for branches other than v4_1_esv. Additionally, 7833965be93Schristos includes/minires.h was renamed includes/ns_name.h. 7843965be93Schristos [ISC-bugs #45471] 7853965be93Schristos 7863965be93Schristos- Replaced ifconfig parameters "add" and "delete" with "alias" and "-alias" 7873965be93Schristos for IPv6 mode in the client scripts, netbsd and openbsd. This was 7883965be93Schristos preventing IPv6 addresses from being added or removed from interfaces. 7893965be93Schristos Thanks to Tim Dean for reporting this issue. 7903965be93Schristos [ISC-bugs #31573] 7913965be93Schristos 7923965be93Schristos Changes since 4.3.5b1 7933965be93Schristos 7943965be93Schristos- Corrected a bug which could cause the server to sporadically crash while 7953965be93Schristos loading lease files with the lease-id-format is set to "hex". Our thanks 7963965be93Schristos to Jay Ford, University of Iowa for reporting the issue. 7973965be93Schristos [ISC-Bugs #43185] 7983965be93Schristos 7993965be93Schristos- Eliminated a noisy, but otherwise harmless debug log statment that may 8003965be93Schristos appear during server startup when building with --enable-binary-leases 8013965be93Schristos and configuring multiple pools in a shared network. Thanks to Fernando 8023965be93Schristos Soto from BlueCat Networks for reporting the issue and supplying a patch. 8033965be93Schristos [ISC-Bugs #43262] 8043965be93Schristos 8053965be93Schristos Changes since 4.3.4 8063965be93Schristos 8073965be93Schristos- Fixed util/bindvar.sh error handling. 8083965be93Schristos [ISC-Bugs #41973] 8093965be93Schristos 8103965be93Schristos- Correct error message in relay to use remote id length instead 8113965be93Schristos of circuit id length. 8123965be93Schristos [ISC-Bugs #42556] 8133965be93Schristos 8143965be93Schristos- Add logic to test directory Makefiles to avoid copying Attfile(s) 8153965be93Schristos when building within the source tree. This eliminates a noisy but 8163965be93Schristos otherwise harmless error message when running "make check". 8173965be93Schristos [ISC-Bugs #41883] 8183965be93Schristos 8193965be93Schristos- Leases are now scrubbed of certain prior use information when pool 8203965be93Schristos re-balancing reassigns them from one FO peer to the other. This 8213965be93Schristos corrects an issue where leases that were offered but not used 8223965be93Schristos by the client retained the client hostname from the original 8233965be93Schristos client. Thanks to Pavel Polacek, Jan Evangelista Purkyne University 8243965be93Schristos for reporting the issue. 8253965be93Schristos [ISC-Bugs #42008] 8263965be93Schristos 8273965be93Schristos- In the LDAP code and schema add some missing '6' characters to use 8283965be93Schristos the v6 instead of the v4 versions. Thanks to Denis Taranushin for 8293965be93Schristos reporting this issue and supplying its patch. 8303965be93Schristos [ISC-Bugs #42666] 8313965be93Schristos 8323965be93Schristos- Correct how the pick-first-value expression is written to a lease 8333965be93Schristos file. Previously it was written as a concat expression due to 8343965be93Schristos a cut and paste error. 8353965be93Schristos [ISC-Bugs #42253] 8363965be93Schristos 8373965be93Schristos- Modify the DDNS code to clean up the PTR record even if there 8383965be93Schristos are issues while cleaning up the A or AAAA records. 8393965be93Schristos [ISC-Bugs #23954] 8403965be93Schristos 8413965be93Schristos- Added global configuration parameter, abandon-lease-time, which determines 8423965be93Schristos the amount of time a lease remains abandoned. The default is 84600 seconds. 8433965be93Schristos Additionaly, the server now conducts a ping check (if ping checks are 8443965be93Schristos enabled) prior to offering an abandoned lease to client. Our thanks to 8453965be93Schristos David Zych at University of Illinois for reporting the issue and working 8463965be93Schristos with us to produce a viable solution. 8473965be93Schristos [ISC-Bugs #41815] 8483965be93Schristos 8493965be93Schristos- Correct handling of interface names during interface discovery. This 8503965be93Schristos addresses an issue where interface names of 15 characters in length 8513965be93Schristos could lead to crashes or interface recognition errors during startup 8523965be93Schristos of dhcpd, dhclient, and dhcrelay. 8533965be93Schristos [ISC-Bugs #42226] 8543965be93Schristos 8553965be93Schristos- Updates to contrib/dhcp-lease-list.pl to make it more friendly. 8563965be93Schristos The updates are: looking for the lease file in more places and skipping 8573965be93Schristos the "processing complete" output when creating machine readable 8583965be93Schristos output. Thanks to Cameron Paine (cbp at null dot net) for the 8593965be93Schristos patch. 8603965be93Schristos [ISC-Bugs #42113] 8613965be93Schristos 8623965be93Schristos- When reusing a lease for dhcp-cache-threshold return the hostname 8633965be93Schristos to the original lease. Also if the host pointer, UID or hardware address 8643965be93Schristos change don't allow reuse of the lease. 8653965be93Schristos Thanks to Michael Vincent for reporting this and helping us 8663965be93Schristos verify the problem and fix. 8673965be93Schristos [ISC-Bugs #42849] 8683965be93Schristos 8693965be93Schristos- Change dmalloc to use a size_t as the length argument to bring it 8703965be93Schristos in line with the call it will make to malloc(). 8713965be93Schristos [ISC-Bugs #40843] 8723965be93Schristos 8733965be93Schristos- If the failover socket can't be bound, close it. Otherwise if the 8743965be93Schristos user configures an incorrect address in the failover stanza the 8753965be93Schristos server will continue to open new sockets every 90 seconds until 8763965be93Schristos it runs out. 8773965be93Schristos [ISC-Bugs #42452] 8783965be93Schristos 8793965be93Schristos- Add DHCPv4-mode, dhcrelay command line options, "-iu" and "-id", that 8803965be93Schristos allow interfaces to be upstream or downstream respectively. Upstream 8813965be93Schristos interfaces will accept and forward only BOOTP replies, while downstream 8823965be93Schristos interfaces will accept and forward only BOOTP requests. 8833965be93Schristos [ISC-Bugs #41547] 8843965be93Schristos 8853965be93Schristos- Clean up some memory references in the vendor-class construct. 8863965be93Schristos [ISC-Bugs #42984] 8873965be93Schristos 8883965be93Schristos Changes since 4.3.4b1 8893965be93Schristos 8903965be93Schristos- None 8913965be93Schristos 8923965be93Schristos Changes since 4.3.3 8933965be93Schristos 8943965be93Schristos- Corrected a static analyzer warning in common/execute.c 8953965be93Schristos [ISC-Bugs #40374] 8963965be93Schristos 8973965be93Schristos- ISC DHCP now follows the common convention to use the base name a 8983965be93Schristos program is invoked with (aka argv[0], vs. a builtin name) for 8993965be93Schristos logs. This should help differentiate syslog entries for DHCPv4 and 9003965be93Schristos DHCPv6 servers. You can define OLD_LOG_NAME in includes/site.h to 9013965be93Schristos keep the previous behavior. 9023965be93Schristos [ISC-Bugs #38692] 9033965be93Schristos 9043965be93Schristos- The Linux packet filter code now correctly treats only the least significant 9053965be93Schristos 12 bits in an inbound packet's TCI value as the VLAN id (per IEEE 802.1Q). 9063965be93Schristos Prior to this it was using the entire 16 bit value as the VLAN id and 9073965be93Schristos incorrectly discarding packets. Thanks to Jiri Popelka at Red Hat for 9083965be93Schristos reporting this issue and supplying its patch. 9093965be93Schristos [ISC-Bugs #40591] 9103965be93Schristos 9113965be93Schristos- Fixed several static analysis issues such as potential null 9123965be93Schristos references, unchecked strdup returns. Thanks to Bill Parker (wp02855 at 9133965be93Schristos gmail dot com) who identified these issues and supplied patches to 9143965be93Schristos address them. 9153965be93Schristos [ISC-Bugs #40754] 9163965be93Schristos [ISC-Bugs #40823] 9173965be93Schristos 9183965be93Schristos- Corrected compilation errors that prohibited building the server 9193965be93Schristos and its ATF unit tests when failover is disabled. 9203965be93Schristos [ISC-Bugs #40372] 9213965be93Schristos 9223965be93Schristos- Added the lease address to the end of the debug level log message 9233965be93Schristos emitted when an existing lease is renewed within the dhcp-cache-threshold. 9243965be93Schristos Thanks to Nathan Neulinger at Missouri S&T for suggesting the change. 9253965be93Schristos [ISC-Bugs #40598] 9263965be93Schristos 9273965be93Schristos- Added dhcpv6 and delayed-ack to settings listed in the "Features:" 9283965be93Schristos section of the configure script output. Additionally, all of the 9293965be93Schristos features reported on will now always show either a "yes" or "no" 9303965be93Schristos value. Prior to this features left to their default setting would 9313965be93Schristos not show a value. 9323965be93Schristos [ISC-Bugs #40381] 9333965be93Schristos 9343965be93Schristos- Added a parameter, authoring-byte-order, to the lease file. This value 9353965be93Schristos is automatically added to the top of new lease files by the server and 9363965be93Schristos indicates the internal byte order (big endian or little endian) of the 9373965be93Schristos server. This permits lease files generated on a server with one form of 9383965be93Schristos byte order to be used on a server with the opposite form. Our thanks to 9393965be93Schristos Timothe Litt for calling this to our attention and for the suggestions 9403965be93Schristos he provided. 9413965be93Schristos [ISC-Bugs #38396] 9423965be93Schristos 9433965be93Schristos- Fixed a small memory leak in the DHCPv6 version of the client code. 9443965be93Schristos This is unlikely to cause significant issues in actual use. 9453965be93Schristos [ISC-Bugs #40990] 9463965be93Schristos 9473965be93Schristos- Corrected a few minor memory leaks in omapi's dereferencing of 9483965be93Schristos host objects. Thanks to Jiri Popelka at Red Hat for reporting 9493965be93Schristos the issue and supplying the patches. 9503965be93Schristos [ISC-Bugs #33990] 9513965be93Schristos [ISC-Bugs #41325] 9523965be93Schristos 9533965be93Schristos- Cleaned up some of the Make infrastructure to make --with-libbind 9543965be93Schristos work better. Though it still only works with an absolute path. 9553965be93Schristos [ISC-Bugs #39210] 9563965be93Schristos 9573965be93Schristos- Made the embedded bind libraries able to be cross compiled 9583965be93Schristos (please refer to the bind9 documentation to learn how to cross 9593965be93Schristos compile DHCP and its bind library dependency). 9603965be93Schristos [ISC-Bugs #38836] 9613965be93Schristos 9623965be93Schristos- Update the client code to better support getting IA_NAs and IA_PDs 9633965be93Schristos in the same packet, see RFC7550 for some discussion. 9643965be93Schristos [ISC-Bugs #40190] 9653965be93Schristos 9663965be93Schristos! Update the bounds checking when receiving a packet. 9673965be93Schristos Thanks to Sebastian Poehn from Sophos for the bug report and a suggested 9683965be93Schristos patch. 9693965be93Schristos [ISC-Bugs #41267] 9703965be93Schristos CVE: CVE-2015-8605 9713965be93Schristos 9723965be93Schristos- When handling an incorrect command line for dhcpd, dhclient or dhcrelay 9733965be93Schristos print out a specific error message about the first error in addition 9743965be93Schristos to the usage string. This may be disabled by editing includes/site.h. 9753965be93Schristos [ISC-Bugs #40321] 9763965be93Schristos [ISC-Bugs #41454] 9773965be93Schristos 9783965be93Schristos- The configure script will now exit with an error message if it cannot find 9793965be93Schristos a GNU-style make tool (needed when building BIND libraries) or pkg-config 9803965be93Schristos (needed to locate ATF used for building unit tests). Prior to this the 9813965be93Schristos script would exit indicating success causing subsequent attempts to build 9823965be93Schristos the software to fail. 9833965be93Schristos [ISC-Bugs #40371] 9843965be93Schristos 9853965be93Schristos- Properly terminate strings before passing them to regex and fix 9863965be93Schristos a boundary error when creating certain new data strings. 9873965be93Schristos Thanks to Andrey Jr. Melnikov for the bug report. 9883965be93Schristos [ISC-Bugs #41217] 9893965be93Schristos 9903965be93Schristos- Option expressions, such as prepend and append, are now supported when 9913965be93Schristos running dhclient for IPv6. Prior to this such statements in the 9923965be93Schristos client configuration file would be parsed but have no affect. Thanks 9933965be93Schristos to Jiri Popelka at Red Hat for reporting the issue. 9943965be93Schristos [ISC-Bugs #39952] 9953965be93Schristos 9963965be93Schristos- A failover primary server will now accept a binding status update from the 9973965be93Schristos secondary which transitions a lease from ACTIVE to ABANDONED. This accounts 9983965be93Schristos for instances in which a client declines a lease and only the secondary 9993965be93Schristos server receives it. Prior to this the primary server would reject such an 10003965be93Schristos update as an "invalid state transition". 10013965be93Schristos [ISC_BUGS #25189] 10023965be93Schristos 10033965be93Schristos- Properly allocate memory for a bpf filter. 10043965be93Schristos Thanks to Bill Parker (wp02855 at gmail dot com) who identified this issue. 10053965be93Schristos [ISC-Bugs #41485] 10063965be93Schristos 10073965be93Schristos- Updated contrib/dhcp-lease-list.pl to handle garbage in the oui file better 10083965be93Schristos and to print out the hostnames a bit better. 10093965be93Schristos Thanks to Antoine Beaupré from Debian for the suggested patch. 10103965be93Schristos [ISC-Bugs #41288] 10113965be93Schristos 10123965be93Schristos- The DHCPv6 server now handles long valid and preferred lease times better. 10133965be93Schristos Values that would cause the internal end time of the lease to wrap are 10143965be93Schristos modified to work as infinite. 10153965be93Schristos [ISC-Bugs #40773] 10163965be93Schristos 10173965be93Schristos- Updated support for cross compiling by allowing the library archiver 10183965be93Schristos to be set at configure time via the environment variable 'AR'. 10193965be93Schristos [ISC-Bugs #41536] 10203965be93Schristos 10213965be93Schristos- The server will now match DHCPv6 relayed clients to host declarations 10223965be93Schristos which include the "hardware" statement, if the relay connected to the 10233965be93Schristos client supplies the client's hardware address via client-linklayer-address 10243965be93Schristos option as per RFC 6939. 10253965be93Schristos [ISC-Bugs #40334] 10263965be93Schristos 10273965be93Schristos- Allow a filename to be specified instead of /dev/random during 10283965be93Schristos configuration. This is passed to the BIND configuration to allow 10293965be93Schristos for cross compilation. 10303965be93Schristos [ISC-Bugs #33835] 10313965be93Schristos 10323965be93Schristos- Add more option definitions. 10333965be93Schristos [ISC-Bugs #40562] 10343965be93Schristos 10353965be93Schristos- Correct outputting of long lines in the lease file when writing 10363965be93Schristos a lease that includes long strings in an execute statement. 10373965be93Schristos [ISC-Bugs #40994] 10383965be93Schristos 10393965be93Schristos- The server will now correctly treat a lease as reserved when the client 10403965be93Schristos requests an infinite lease time (i.e. OxFFFFFFFF) and "infinite-is-reserved" 10413965be93Schristos is enabled. Prior to this the server would halt. In addition, corrections 10423965be93Schristos were made to the server to allow a lease's flags field to be set via omapi. 10433965be93Schristos Prior to this, the server, depending on the host architecture, would 10443965be93Schristos incorrectly parse the new flags value from the omapi message. 10453965be93Schristos [ISC-Bugs #31179] 10463965be93Schristos 10473965be93Schristos- ISC DHCP can now be configured and built from a directory other than 10483965be93Schristos the top level source directory. Note that "make distcheck" uses this 10493965be93Schristos feature. 10503965be93Schristos [ISC-Bugs #39262] 10513965be93Schristos 10523965be93Schristos- Add support for RFC 3527 to dhcrelay. A new, dhcrelay command line argument, 10533965be93Schristos "-U <interface>" enables the addition of a RFC 3527 compliant link selection 10543965be93Schristos suboption to the agent option added for clients directly connected to the 10553965be93Schristos relay. 10563965be93Schristos [ISC-Bugs #34875] 10573965be93Schristos [ISC-Bugs #41708] 10583965be93Schristos 10593965be93Schristos- Add a new global DHCPv6 option, dhcpv6-set-tee-times, which when enabled 10603965be93Schristos instructs the server to calculate T1 and T2 as recommended in RFC 3315, 10613965be93Schristos Section 22.4. 10623965be93Schristos [ISC-Bugs #25687] 10633965be93Schristos 10643965be93Schristos- Corrected minor Coverity issues. 10653965be93Schristos [ISC-Bugs #35144] 10663965be93Schristos 10673965be93Schristos- Add support for RFC 7341 DHCPv4 over DHCPv6 with a new configuration 10683965be93Schristos option "--enable-dhcpv4o6". Note this feature requires DHCPv6 support 10693965be93Schristos and is not compatible with delayed-ack. Both client and server use 2 10703965be93Schristos processes which communicate over UDP on a pair of sockets. The new 10713965be93Schristos "-4o6 <port>" command line argument enables DHCPv4 over DHCPv6 support 10723965be93Schristos and specifies the consecutive ports to use for inter-process communication. 10733965be93Schristos Please look at doc/DHCPv4-over-DHCPv6 for more details. 10743965be93Schristos [ISC-Bugs #35711] 10753965be93Schristos 10763965be93Schristos- Correct interface name formation when using DLPI under Solaris 11. As of 10773965be93Schristos Solaris 11, ethernet device files are located in "/dev/net". The configure 10783965be93Schristos script has been modified to detect this situation and adjust the directory 10793965be93Schristos used accordingly. Thanks to Jarkko Torppa for reporting this issue and 10803965be93Schristos submitting a patch 10813965be93Schristos [ISC-Bugs #37954] 10823965be93Schristos [ISC-Bugs #40752] 10833965be93Schristos 10843965be93Schristos- Add a dereference call when handling an error condition while 10853965be93Schristos decoding a packet. 10863965be93Schristos [ISC-Bugs #41774] 10873965be93Schristos 10883965be93Schristos- Add a new parameter, lease-id-format, to both dhcpd and dhclient. The 10893965be93Schristos parameter controls the format in which certain values are written to lease 10903965be93Schristos files. Formats supported are octal - quoted string containing octal 10913965be93Schristos escapes, and hex - unquoted, colon separated hex digits. Thanks to 10923965be93Schristos Jay Ford, University of Iowa for bringing the issue to our attention. 10933965be93Schristos [ISC-Bugs #26378] 10943965be93Schristos 10953965be93Schristos! Add an option in site.h to limit the number of failover and control 10963965be93Schristos connections the server will accept. By default this is 200. 10973965be93Schristos [ISC-Bugs #41845] 10983965be93Schristos CVE: CVE-2016-2774 10993965be93Schristos 11003965be93Schristos Changes since 4.3.3b1 11013965be93Schristos 11023965be93Schristos- None 11033965be93Schristos 11043965be93Schristos Changes since 4.3.2 11053965be93Schristos 11063965be93Schristos- The server now does a better check to see if it can allocate the memory 11073965be93Schristos for large blocks of v4 leases and should provide a slightly better error 11083965be93Schristos message. Note well: the server pre-allocates v4 addresses, if you use 11093965be93Schristos a large range, such as a /8, the server will attempt to use a large 11103965be93Schristos amount of memory and may not start if there either isn't enough memory 11113965be93Schristos or the size exceeds what the code supports. 11123965be93Schristos [ISC-Bugs #38637] 11133965be93Schristos 11143965be93Schristos- The server will now reject unicast Request, Renew, Decline, and Release 11153965be93Schristos messages from a client unless the server would have sent that client the 11163965be93Schristos dhcp6.unicast option. This behavior is in compliance with paragraph 1 in 11173965be93Schristos each of the sections 18.2,1, 18.2.3, 18.2.6, and 18.2.7 of RFC 3315. Prior 11183965be93Schristos to this, the server would simply accept the messages. Now, in order for 11193965be93Schristos the server to accept such a message, the server configuration must include 11203965be93Schristos the dhcp6.unicast option either globally or within the shared network to 11213965be93Schristos which the requested lease belongs. In other words, the server will map 11223965be93Schristos the first IA_XX address found within the client message to a shared-network 11233965be93Schristos and look for the presence of the unicast option there and then globally. 11243965be93Schristos Thanks to Jiri Popelka at Red Hat for this issue and his patch which 11253965be93Schristos inspired the fix. 11263965be93Schristos [ISC-Bugs #21235] 11273965be93Schristos 11283965be93Schristos- The ATF (Automated Testing Framework) tools used for optional unit tests 11293965be93Schristos can now be built from its embedded sources in bind, solving the 11303965be93Schristos atf-run / atf-report issue with recent (>= 0.20) versions of ATF. 11313965be93Schristos The new configuration option is "./configure --with-atf=bind". 11323965be93Schristos [ISC-Bugs #38754, #39300] 11333965be93Schristos 11343965be93Schristos- Corrected a compilation error introduced by the fix for ISC-Bugs #22806. 11353965be93Schristos On older linuxes that do not include the tpacket_auxdata structure don't 11363965be93Schristos bother allocating the cmsgbuf as it isn't necessary and we don't have 11373965be93Schristos a proper length for it. 11383965be93Schristos [ISC-Bugs #39209] 11393965be93Schristos 11403965be93Schristos- Remove the dst directory. This was replaced in 4.2.0 with the dst 11413965be93Schristos code from the Bind libraries but we continued to include it for 11423965be93Schristos backwards compatibility. As we have now released 4.3.x it seems 11433965be93Schristos reasonable to remove it. 11443965be93Schristos [ISC-Buts #39019] 11453965be93Schristos 11463965be93Schristos- Write out the DUID server id on startup in all cases, previously if it 11473965be93Schristos was read in from server-duid option in the config or lease files for 11483965be93Schristos DHCPv4 it would not be written to the new lease file. 11493965be93Schristos [ISC-Bugs #37791] 11503965be93Schristos 11513965be93Schristos- When parsing dates for leases convert dates past 2038 to "never". 11523965be93Schristos This avoids problems with integer overflows in the date and time 11533965be93Schristos handling code for people that decide to use very large lease times 11543965be93Schristos or add a lease entry with a date far in the future. 11553965be93Schristos [ISC-Bugs #33056] 11563965be93Schristos 11573965be93Schristos- Leave the siaddr field clear when sending a NACK as per RFC 2131 11583965be93Schristos table 3. 11593965be93Schristos [ISC-Bugs #38769] 11603965be93Schristos 11613965be93Schristos- In the client don't send expired addresses to the script as part of 11623965be93Schristos the binding process. Thanks to Sven Trenkel at Google for reporting 11633965be93Schristos the issue and suggesting the patch. 11643965be93Schristos [ISC-Bugs #38631] 11653965be93Schristos 11663965be93Schristos- While parsing IPv6 addresses treat "add" as part of the address instead 11673965be93Schristos of as a token. 11683965be93Schristos [ISC-Bugs #39529] 11693965be93Schristos 11703965be93Schristos- Add support for accessing the v4 lease queues (active, free etc) in a 11713965be93Schristos binary fashion instead of needing to walk through a linear list to 11723965be93Schristos insert, find or remove an entry from the queues. In addition add a 11733965be93Schristos compile time option "--enable-binary-leases" to enable the new code 11743965be93Schristos or to continue using the old code. The old code is the default. 11753965be93Schristos Thanks to Fernando Soto from BlueCat Networks for the patch. 11763965be93Schristos [ISC-Bugs #39078] 11773965be93Schristos 11783965be93Schristos- Delayed-ack now works properly with Failover. Prior to this, bind updates 11793965be93Schristos post startup were being queued but never delivered. Among other things, this 11803965be93Schristos was causing leases to not transition from expired or released to free. 11813965be93Schristos [ISC-Bugs #31474] 11823965be93Schristos 11833965be93Schristos- Clean up parsing of v6 lease files a bit to avoid infinite loops if the 11843965be93Schristos lease file is corrupt in certain ways. 11853965be93Schristos [ISC-Bugs #39760] 11863965be93Schristos 11873965be93Schristos- Corrected a crash in dhclient that occurs during lease renewal if the 11883965be93Schristos client is performing its own DNS updates. Thanks to Jiri Popelka at Red Hat 11893965be93Schristos for the bug report. 11903965be93Schristos [ISC-Bugs #38639] 11913965be93Schristos 11923965be93Schristos- Corrected an issue in v6 lease file parsing. Prior to this, when encountering 11933965be93Schristos a lease with an address for which no configured pool exists, the server was 11943965be93Schristos declaring the lease file corrupt and incorrectly skipping over the subsequent 11953965be93Schristos entry in the file. The server will now emit a log message indicating that 11963965be93Schristos no pool was found for the address (or prefix) and correctly resume parsing 11973965be93Schristos with the next entry in the lease file. Our thanks to Michal Žejdl for 11983965be93Schristos reporting the issue. 11993965be93Schristos [ISC-Bugs #39314] 12003965be93Schristos 12013965be93Schristos- Be more liberal in finding a subnet group associated with a static 12023965be93Schristos prefix. When we added the class matching code for v6 we also added 12033965be93Schristos a requirement that the static prefix must be within a subnet the 12043965be93Schristos client was in, in order to find the proper statements. We now 12053965be93Schristos look for a subnet based on the prefix, failing that on the static 12063965be93Schristos address for the client and failing that on the shared network 12073965be93Schristos itself. 12083965be93Schristos [ISC-Bugs #38329] 12093965be93Schristos 12103965be93Schristos- Add a new action expression "parse_vendor_options", which can be used 12113965be93Schristos to parse a vendor-encapsualted-option received by the server based on 12123965be93Schristos the encoding specified by the vendor-option-space statement. 12133965be93Schristos [ISC-Bugs #36449] 12143965be93Schristos 12153965be93Schristos- Enhance the PARANOIA patch to include fchown() the lease file to 12163965be93Schristos allow it to be manipulated after the server does a chown(). 12173965be93Schristos Thanks to Jiri Popelka at Red Hat for the patch. 12183965be93Schristos [ISC-Bugs #36978] 12193965be93Schristos 12203965be93Schristos- Relax the requirement that prefix pools must be within the subnet. 12213965be93Schristos This was added in as part of #32453 in order to avoid configuration 12223965be93Schristos mistakes but is being removed as prefixes aren't required to be 12233965be93Schristos within the same subnet and many people configure them in that fashion. 12243965be93Schristos [ISC-Bugs #40077] 12253965be93Schristos 12263965be93Schristos- Fixed a server crash that could occur when the server attempts to remove 12273965be93Schristos the billing class from the last lease billed to a dynamic class after said 12283965be93Schristos class has been deleted. Our thanks to Lasse Pesonen for reporting the 12293965be93Schristos issue. 12303965be93Schristos [ISC-Bugs #39978] 12313965be93Schristos 12323965be93Schristos- LDAP Patches - Numerous small patches submitted by contributors have 12333965be93Schristos been applied to the contributed code which supplies LDAP support. 12343965be93Schristos In addition, two larger submissions have also been included. The 12353965be93Schristos first adds support for IPv6 configuration and the second provides 12363965be93Schristos GSSAPI authentication. We would like to thank the following for their 12373965be93Schristos contributions (alphabetically): 12383965be93Schristos Alex Novak at SUSE 12393965be93Schristos Bill Parker (wp02855 at gmail dot com) 12403965be93Schristos Jiri Popelka at Red Hat 12413965be93Schristos Marius Tomaschewski at SUSE 12423965be93Schristos (william at adelaide.edu.au), The University of Adelaide 12433965be93Schristos [ISC-Bugs #39056] 12443965be93Schristos [ISC-Bugs #22742] 12453965be93Schristos [ISC-Bugs #24449] 12463965be93Schristos [ISC-Bugs #28545] 12473965be93Schristos [ISC-Bugs #29873] 12483965be93Schristos [ISC-Bugs #30183] 12493965be93Schristos [ISC-Bugs #30402] 12503965be93Schristos [ISC-Bugs #32217] 12513965be93Schristos [ISC-Bugs #32240] 12523965be93Schristos [ISC-Bugs #33176] 12533965be93Schristos [ISC-Bugs #33178] 12543965be93Schristos [ISC-Bugs #36409] 12553965be93Schristos [ISC-Bugs #36774] 12563965be93Schristos [ISC-Bugs #37876] 12573965be93Schristos 12583965be93Schristos- Handle an out of memory condition in the client a bit better. 12593965be93Schristos Thanks to Frédéric Perrin from Brocade for finding the issue 12603965be93Schristos and suggesting a patch. 12613965be93Schristos [ISC-Bugs #39279] 12623965be93Schristos 12633965be93Schristos Changes since 4.3.2rc2 12643965be93Schristos- None 12653965be93Schristos 12663965be93Schristos Changes since 4.3.2rc1 12673965be93Schristos 12683965be93Schristos- Corrected a compilation error introduced by the fix for ISC-Bugs #37415. 12693965be93Schristos The error occurs on Linux variants that do not support VLAN tag information 12703965be93Schristos in packet auxiliary data. The configure script now only enables inclusion 12713965be93Schristos of the VLAN tag-based logic if it is supported by the underlying OS. 12723965be93Schristos [ISC-Bugs #38677] 12733965be93Schristos 12743965be93Schristos Changes since 4.3.2b1 12753965be93Schristos 12763965be93Schristos- Specifying the option, --disable-debug, on the configure script command line 12773965be93Schristos now disables debug features. Prior to this, specifying --disable-debug 12783965be93Schristos incorrectly enabled debug features. Thanks to Gustavo Zacarias for reporting 12793965be93Schristos the issue. 12803965be93Schristos [ISC-Bugs #37780] 12813965be93Schristos 12823965be93Schristos- Unit test execution now uses a path augmented during configuration 12833965be93Schristos processing of the --with-atf option to locate ATF runtime tools, atf-run 12843965be93Schristos and atf-report. For most installations of ATF, this should alleviate the 12853965be93Schristos need to manually include them in the PATH, as was formerly required. 12863965be93Schristos If the configure script cannot locate the tools it will emit a warning, 12873965be93Schristos informing the user that the tools must be in the PATH when running unit 12883965be93Schristos tests. 12893965be93Schristos Secondly, please note that "make check" will now exit with a failure status 12903965be93Schristos code (non-zero) if one or more unit tests fail. This means that invoking 12913965be93Schristos "make check" from an upper level directory will cause the make process to 12923965be93Schristos STOP after the first test subdirectory with failed test(s). To force all 12933965be93Schristos tests in all subdirectories to run, regardless of individual test outcome, 12943965be93Schristos use the command "make -k check". 12953965be93Schristos [ISC-Bugs #38619] 12963965be93Schristos 12973965be93Schristos Changes since 4.3.1 12983965be93Schristos 12993965be93Schristos- Corrected parser's right brace matching when a statement contains an error. 13003965be93Schristos [ISC-Bugs #36021] 13013965be93Schristos 13023965be93Schristos- TSIG-authenticated dynamic DNS updates now support the use of these 13033965be93Schristos additional algorithms: hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha384, 13043965be93Schristos and hmac-sha512 13053965be93Schristos [ISC-Bugs #36947] 13063965be93Schristos 13073965be93Schristos- Added check for invalid failover message type. Thanks to Tobias Stoeckmann 13083965be93Schristos working with the OpenBSD project who spotted the issue and provided the 13093965be93Schristos patch. 13103965be93Schristos [ISC-Bugs #36653] 13113965be93Schristos 13123965be93Schristos- Corrected rate limiting checks for bad packet logging. Thanks to Tobias 13133965be93Schristos Stoeckmann working with the OpenBSD project who spotted the issue and 13143965be93Schristos provided the patch. 13153965be93Schristos [ISC-Bugs #36897] 13163965be93Schristos 13173965be93Schristos- Log statements depicting what files will be used by the server now occur 13183965be93Schristos after the configuration file has been processed. 13193965be93Schristos [ISC-Bugs #36671] 13203965be93Schristos 13213965be93Schristos- Addressed Coverity issues reported as of 07-31-2014: 13223965be93Schristos [ISC-Bugs #36712] Corrects Coverity reported "high" impact issues. 13233965be93Schristos [ISC-Bugs #36933] Corrects Coverity reported "medium" impact issues 13243965be93Schristos [ISC-Bugs #37708] Fixes compilation error in dst_api.c seen in older 13253965be93Schristos compilers that was introduced by #36712 13263965be93Schristos 13273965be93Schristos- Server now supports a failover split value of 256. 13283965be93Schristos [ISC-Bugs] #36664] 13293965be93Schristos 13303965be93Schristos- Remove unneeded error #defines. These defines were included in case 13313965be93Schristos external programs required the older versions of the macro. They 13323965be93Schristos have been #ifdeffed for now and will be removed at a future date. 13333965be93Schristos See site.h for the #define to include them again, but you should 13343965be93Schristos switch to using the DHCP_R_* versions instead of the ISC_R_* versions. 13353965be93Schristos Also ISC_R_MULTIPLE has been removed as it is also defined in bind. 13363965be93Schristos [ISC-Bugs #37128] 13373965be93Schristos 13383965be93Schristos- Added checks in range6 and prefix6 statement parsing to ensure addresses 13393965be93Schristos are within the declared subnet. Thanks to Jiri Popelka at Red Hat for the 13403965be93Schristos bug report and patch. 13413965be93Schristos [ISC-Bugs #32453] 13423965be93Schristos [ISC-Bugs #17766] 13433965be93Schristos [ISC-Bugs #18510] 13443965be93Schristos [ISC-Bugs #23698] 13453965be93Schristos [ISC-Bugs #28883] 13463965be93Schristos 13473965be93Schristos- Addressed checksum issues: 13483965be93Schristos Added checksum readiness check to Linux packet filtering which eliminates 13493965be93Schristos invalid packet drops due to checksum errors when checksum offloading is 13503965be93Schristos in use. Based on dhcp-4.2.2-xen-checksum.patch made to the Fedora project. 13513965be93Schristos [ISC-Bugs #22806] 13523965be93Schristos [ISC-Bugs #15902] 13533965be93Schristos [ISC-Bugs #17739] 13543965be93Schristos [ISC-Bugs #18010] 13553965be93Schristos [ISC-Bugs #22556] 13563965be93Schristos [ISC-Bugs #29769] 13573965be93Schristos Inbound packets with UDP checksums of 0xffff now validate correctly rather 13583965be93Schristos than being dropped. 13593965be93Schristos [ISC-Bugs #24216] 13603965be93Schristos [ISC-Bugs #25587] 13613965be93Schristos 13623965be93Schristos- Added the echo-client-id configuration parameter to the server configuration. 13633965be93Schristos The server now supports RFC 6842 compliant behavior by setting a new 13643965be93Schristos configuration parameter, echo-client-id. When enabled, the server will 13653965be93Schristos include the client identifier option (Option code 61) if received, in its 13663965be93Schristos responses. The server identifier returned in NAKs (if enabled) will now 13673965be93Schristos be the globally defined value (if one) if the server cannot attribute the 13683965be93Schristos inbound request to a known subnet. 13693965be93Schristos [ISC-Bugs #35958] 13703965be93Schristos [ISC-Bugs #32545] 13713965be93Schristos 13723965be93Schristos- Added support of the configuration parameter, use-host-decl-names, to 13733965be93Schristos BOOTP request handling. 13743965be93Schristos [ISC-Bugs #36233] 13753965be93Schristos 13763965be93Schristos- Added logic to ignore the signal, SIGPIPE, which ensures write failures 13773965be93Schristos will be delivered as errors rather than as SIGPIPE signals on all OSs. 13783965be93Schristos Thanks to Marius Tomaschewski from SUSE who reported the issue and provided 13793965be93Schristos the patch upon which the fix is based. 13803965be93Schristos [ISC-Bugs #32222] 13813965be93Schristos 13823965be93Schristos- In the failover code, handle the case of communications being interrupted 13833965be93Schristos when the servers are dealing with POTENTIAL-CONFLICT. This patch allows 13843965be93Schristos the primary to accept the secondary moving from POTENTIAL-CONFLICT to 13853965be93Schristos RESOLUTION-INTERRUPTED as well as handling the bind update process better. 13863965be93Schristos In addition the code to resend update or update all requests has been 13873965be93Schristos modified to send requests more often. 13883965be93Schristos [ISC-Bugs #36810] 13893965be93Schristos [ISC-Bugs #20352] 13903965be93Schristos 13913965be93Schristos- By default, the server will now choose the value to use in the forward DNS 13923965be93Schristos name from the following in order of preference: 13933965be93Schristos 13943965be93Schristos 1. FQDN option if provided by the client 13953965be93Schristos 2. Host name option if provided by the client 13963965be93Schristos 3. Configured option host-name if defined 13973965be93Schristos 13983965be93Schristos As before, this may be overridden by defining ddns-hostname to the desired 13993965be93Schristos value (or expression). In addition, the server logic has been extended to 14003965be93Schristos use the value of the host name declaration if use-host-decl-names is enabled 14013965be93Schristos and no other value is available. 14023965be93Schristos [ISC-Bugs #21323] 14033965be93Schristos 14043965be93Schristos- DNS updates were being attempted when dhcp-cache-threshold enabled the use of 14053965be93Schristos the existing lease and the forward DNS name had not changed. This has been 14063965be93Schristos corrected. 14073965be93Schristos [ISC-Bugs #37368] 14083965be93Schristos [ISC-Bugs #38636] 14093965be93Schristos 14103965be93Schristos- Corrected an issue which caused dhclient to incorrectly form the result when 14113965be93Schristos prepending or appending to the IPv4 domain-search option, received from the 14123965be93Schristos server, when either of the values being combined contain compressed 14133965be93Schristos components. 14143965be93Schristos [ISC-Bugs #20558] 14153965be93Schristos 14163965be93Schristos- Added the server-id-check parameter to the server configuration. 14173965be93Schristos This parameter allows run-time control over whether or not a server, 14183965be93Schristos participating in failover, verifies the dhcp-server-identifier option in 14193965be93Schristos DHCP REQUESTs against the server's id before processing the request. 14203965be93Schristos Formerly, enabling this behavior was done at compilation time through 14213965be93Schristos the use of the #define, SERVER_ID_CHECK, which has been removed from site.h 14223965be93Schristos The functionality is now only available through the new runtime parameter. 14233965be93Schristos [ISC-Bugs #37551] 14243965be93Schristos 14253965be93Schristos- During startup, when the server encounters a lease whose binding state is 14263965be93Schristos FTS_BACKUP but whose pool has no configured failover peer, it will reset the 14273965be93Schristos lease's binding state to FTS_FREE. This allows the leases to be reclaimed 14283965be93Schristos by the server after a pool's configuration has changed from failover to 14293965be93Schristos standalone. Prior to this such leases would remain stuck in the backup state 14303965be93Schristos making them unavailable for assignment. Note this conversion will occur 14313965be93Schristos whether or not the server is compiled for failover. 14323965be93Schristos [ISC-Bugs #36960] 14333965be93Schristos 14343965be93Schristos- Fixed a small issue in the treatment of hosts in the inform processing 14353965be93Schristos that could cause the response to an inform to include information from 14363965be93Schristos the wrong scope. The two examples we've heard of are getting subnet 14373965be93Schristos instead of group information associated with a host entry, or getting 14383965be93Schristos global information instead of subnet if the host entry was built via 14393965be93Schristos omapi. Thanks to Julien Soula at University of Lille for finding the 14403965be93Schristos bug and supplying a patch. 14413965be93Schristos [ISC-Bugs #35712] 14423965be93Schristos 14433965be93Schristos- Avoid calling pool_timer() recursively from supersede_lease(). This could 14443965be93Schristos result in leases changing state incorrectly or delaying the running of the 14453965be93Schristos leae expiration code. 14463965be93Schristos [ISC-Bugs #38002] 14473965be93Schristos 14483965be93Schristos- Move the check for a PID file and process to be before we rewrite the 14493965be93Schristos lease file. This avoids the possibility of starting a second instance 14503965be93Schristos of a server which changes the current lease file confusing the first 14513965be93Schristos instance. This check is only included if the admin hasn't disabled PID 14523965be93Schristos files. 14533965be93Schristos [ISC-Bugs #38078] 14543965be93Schristos [ISC-Bugs #38143] 14553965be93Schristos 14563965be93Schristos- In the client code change the way preferred_life and max_life are printed 14573965be93Schristos for environment variables to be unsigned rather than signed. 14583965be93Schristos Thanks to Jiri Popelka at Red Hat for the bug report and patch. 14593965be93Schristos [ISC-Bugs #37084] 14603965be93Schristos 14613965be93Schristos- Modified Linux packet handling such that packets received via VLAN are now 14623965be93Schristos seen only by the VLAN interface. Prior to this, such packets were seen by 14633965be93Schristos both the VLAN interface and its parent (physical) interface, causing the 14643965be93Schristos server to respond to both. Note this remains an issue for non-Linux OSs. 14653965be93Schristos Thanks to Jiri Popelka at Red Hat for the patch. 14663965be93Schristos [ISC-Bugs #37415] 14673965be93Schristos [ISC-Bugs #37133] 14683965be93Schristos [ISC-Bugs #36668] 14693965be93Schristos [ISC-Bugs #36652] 14703965be93Schristos 14713965be93Schristos- Log content has been changed to more directly suggest that admins should 14723965be93Schristos check for multiple IPv6 clients attempting to use the same DUID when only 14733965be93Schristos abandoned addresses are available. Debug level logging will now emit counts 14743965be93Schristos of the total number of, in-use, and abandoned addresses in a shared subnet 14753965be93Schristos when the server finds no addresses available for a given DUID. Lastly, 14763965be93Schristos threshold logging is now automatically disabled for shared subnets whose 14773965be93Schristos total number of possible addresses exceeds (2^64)-1. 14783965be93Schristos [ISC-Bugs #26376] 14793965be93Schristos [ISC-Bugs #38131] 14803965be93Schristos 14813965be93Schristos- Added a global parameter, prefix-length-mode, which may be used to determine 14823965be93Schristos how the server uses a non-zero value for prefix-length supplied by clients 14833965be93Schristos when soliciting DHCPv6 prefixes. The server supports selection modes of: 14843965be93Schristos ignore, prefer, exact, minimum and maximum which are described in detail in 14853965be93Schristos the server man pages. The prior behavior of the server was to only offer a 14863965be93Schristos prefix whose length exactly matched the prefix-length value requested. If 14873965be93Schristos no such prefixes were available, the server returned a status of none 14883965be93Schristos available. Note the default mode, "exact", provides this same behavior. 14893965be93Schristos [ISC-Bugs #36780] 14903965be93Schristos [ISC-Bugs #32228] 14913965be93Schristos 14923965be93Schristos- Corrected inconsistencies in dhcrelay's setting the upper interface hop count 14933965be93Schristos limit such that it now sets it to 32 when the upstream address is a multicast 14943965be93Schristos address per RFC 3315 Section 20. Prior to this if the -u argument preceded 14953965be93Schristos the -l argument on the command line or if the same interface was specified 14963965be93Schristos for both; the logic to set the hop limit count for the upper interface was 14973965be93Schristos skipped. This caused the hop count limit to be set to the default value 14983965be93Schristos (typically 1) in the outbound upstream packets. 14993965be93Schristos [ISC-Bugs #37426] 15003965be93Schristos 15013965be93Schristos Changes since 4.3.1b1 15023965be93Schristos 15033965be93Schristos- Modify the linux and openwrt dhclient scripts to process information 15043965be93Schristos from a stateless request. Thanks to Jiri Popelka at Red Hat for the 15053965be93Schristos bug report and patch. 15063965be93Schristos [ISC-Bugs #36102] 15073965be93Schristos 15083965be93Schristos- Remove more unused RCSID tags. These weren't noticed in 4.3 as 15093965be93Schristos the code isn't used anymore but we remove them here to keep the 15103965be93Schristos code consistent across versions. 15113965be93Schristos [ISC-Bugs #36451] 15123965be93Schristos 15133965be93Schristos Changes since 4.3.0 15143965be93Schristos 15153965be93Schristos- Tidy up several small tickets. 15163965be93Schristos Correct parsing of DUID from config file, previously the LL type 15173965be93Schristos was put in the wrong place in the DUID string. 15183965be93Schristos [ISC-Bugs #20962] 15193965be93Schristos Add code to parse "do-forward-updates" as well as "do-forward-update" 15203965be93Schristos Thanks to Jiri Popelka at Red Hat. 15213965be93Schristos [ISC-Bugs #31328] 15223965be93Schristos Remove log_priority as it isn't currently used. 15233965be93Schristos [ISC-Bugs #33397] 15243965be93Schristos Increase the size of the buffer used for reading interface information. 15253965be93Schristos [ISC-Bugs #34858] 15263965be93Schristos 15273965be93Schristos- Remove an extra set of the msg_controllen variable. 15283965be93Schristos [ISC-Bugs #21035] 15293965be93Schristos 15303965be93Schristos- Add a more understandable error message if a configuration attempts 15313965be93Schristos to add multiple keys for a single zone. Thanks to a patch from Jiri 15323965be93Schristos Popelka at Red Hat. 15333965be93Schristos [ISC-Bugs #31892] 15343965be93Schristos 15353965be93Schristos- Fix some minor issues in the dst code. 15363965be93Schristos [ISC-Bugs #34172] 15373965be93Schristos 15383965be93Schristos- Properly #ifdef functions so that the code can compile without NSUPDATE. 15393965be93Schristos [ISC-Bugs #35058] 15403965be93Schristos 15413965be93Schristos- Update the partner's stos (start time of state, basically when we last 15423965be93Schristos heard from this partner) field when updating the state in failover. 15433965be93Schristos [ISC-Bugs #35549] 15443965be93Schristos 15453965be93Schristos- Modify the overload processing to allow space for the remote agent ID. 15463965be93Schristos [ISC-Bugs #35569] 15473965be93Schristos Handle the ordering of the SUBNET_MASK option even if it is the last 15483965be93Schristos option in the list. 15493965be93Schristos [ISC-Bugs #24580] 15503965be93Schristos 15513965be93Schristos- Remove the code that allows a server to follow RFC3315 instead of 15523965be93Schristos the subsequent errata from August 2010 when determining which IAs 15533965be93Schristos to include if no addresses will be assigned. 15543965be93Schristos [ISC-Bugs #28938] 15553965be93Schristos 15563965be93Schristos- Remove unused RCSID tags. 15573965be93Schristos [ISC-Bugs #35846] 15583965be93Schristos 15593965be93Schristos- Correct the v6 client timing code. When doing the timing backoff 15603965be93Schristos for MRT limit it to MRD. 15613965be93Schristos Thanks to Jiri Popelka at Red Hat for the bug report and fix. 15623965be93Schristos [ISC-Bugs #21238 15633965be93Schristos 15643965be93Schristos- Add a log entry when killing a client and remove the PID files 15653965be93Schristos when a server, relay or client are killed. 15663965be93Schristos [ISC-Bugs #16970] 15673965be93Schristos [ISC-Bugs #17258] 15683965be93Schristos 15693965be93Schristos- Some minor cleanups in the client code. 15703965be93Schristos In addition to checking for dhcpc check for bootpc in the services list. 15713965be93Schristos [ISC-Bugs #18933] 15723965be93Schristos Correct the client code to only try to get a lease once when the 15733965be93Schristos given the "-1" argument. 15743965be93Schristos Thanks to Jiri Popelka at Red Hat for the bug report and fix. 15753965be93Schristos [ISC-Bugs #26735] 15763965be93Schristos When asked for the version don't send the output to syslog. 15773965be93Schristos [ISC-Bugs #29772] 15783965be93Schristos Add the next server information to the environment variables for 15793965be93Schristos use by the client script. In order to avoid changing the client 15803965be93Schristos lease file the next server information isn't written to it. 15813965be93Schristos Thanks to Tomas Hozza at Red Hat for the suggestion and a prototype fix. 15823965be93Schristos [ISC-Bugs #33098] 15833965be93Schristos 15843965be93Schristos- Several updates to the dhcp server code. 15853965be93Schristos When not in quiet mode print out the files being used. 15863965be93Schristos [ISC-Bugs #17551] 15873965be93Schristos As accessing some pid files may require privileges move the dropping 15883965be93Schristos of permission bits due to the paranoia patch to be after the pid code. 15893965be93Schristos Thanks to Jiri Popelka at Red Hat for the bug report and fix. 15903965be93Schristos [ISC-Bugs #25806] 15913965be93Schristos When processing a "--version" request don't output the version information 15923965be93Schristos to syslog. 15933965be93Schristos 15943965be93Schristos- Add the "enable-log-pid" build option to the configure script. When enabled 15953965be93Schristos this causes the client, server and relay programs to include the PID 15963965be93Schristos number in syslog messages. 15973965be93Schristos Thanks to Marius Tomaschewski for the suggestion and proto-patch. 15983965be93Schristos [ISC-Bugs #29713] 15993965be93Schristos 16003965be93Schristos- Add a #define to specify the prefix length used when a client attempts 16013965be93Schristos to configure an address. This can be modified by editing includes/site.h. 16023965be93Schristos By default it is set to 64. While 128 might be a better choice it would 16033965be93Schristos also be a change for currently running systems, so we have left it at 64. 16043965be93Schristos [ISC-Bugs #DHCP-2] 16053965be93Schristos 16063965be93Schristos- Add a run time option to the client "-df" to allow the administrator to 16073965be93Schristos point to a second lease file the client can search for a DUID. This can 16083965be93Schristos be used to allow a v4 and a v6 instance of the client to share a DUID. 16093965be93Schristos The second file will only be searched if there isn't a DUID in the main 16103965be93Schristos lease file and the DUID will be written out to the main lease file. 16113965be93Schristos [ISC-Bugs #34886] 16123965be93Schristos 16133965be93Schristos- Have the client fsync the lease file to avoid lease corruption if the 16143965be93Schristos client hibernates or otherwise shuts down. 16153965be93Schristos [ISC-Bugs #35894] 16163965be93Schristos 16173965be93Schristos- Add a check for L2VLAN in bpf.c to help support VLAN interfaces 16183965be93Schristos Thanks to Steinar Haug for the suggestion. 16193965be93Schristos [ISC-Bugs #36033] 16203965be93Schristos 16213965be93Schristos- Modify the handling of the resolv.conf file to allow the DHCP 16223965be93Schristos process to start up even if the resolv.conf file has problems. 16233965be93Schristos [ISC-Bugs #35989] 16243965be93Schristos 16253965be93Schristos- Add threshold logging functionality. Two new options, 16263965be93Schristos log-threshold-low and log-threshold-high, indicate to the 16273965be93Schristos server if and when it should log an error message as addresses 16283965be93Schristos in a pool are used. 16293965be93Schristos [ISC-Bugs #34487] 16303965be93Schristos 16313965be93Schristos- Add code to properly dereference a pointer in the dhclient code 16323965be93Schristos on an error condition. 16333965be93Schristos [ISC-Bugs #36194] 16343965be93Schristos 16353965be93Schristos- Add code to help clean up soft leases. 16363965be93Schristos [ISC-Bugs #36304] 16373965be93Schristos 16383965be93Schristos- Disable the gentle shutdown functionality until we can determine 16393965be93Schristos the best way to present it to remove or reduce the side effects. 16403965be93Schristos [ISC-Bugs #36066] 16413965be93Schristos 16423965be93Schristos Changes since 4.3.0rc1 16433965be93Schristos 16443965be93Schristos- None 16453965be93Schristos Changes since 4.3.0b1 16463965be93Schristos 16473965be93Schristos- Tidy up receive packet processing. 16483965be93Schristos Thanks to Brad Plank of GTA for reporting the issue and suggesting 16493965be93Schristos a possible patch. 16503965be93Schristos [ISC-Bugs #34447] 16513965be93Schristos 16523965be93Schristos Changes since 4.3.0a1 16533965be93Schristos 16543965be93Schristos- Modify the message displayed when a process hits a fatal error. 16553965be93Schristos The new message is much shorter and simply points to the README 16563965be93Schristos and our website for directions on bug submissions. 16573965be93Schristos [ISC-Bugs #24789] 16583965be93Schristos 16593965be93Schristos Changes since 4.2.0 (new features) 16603965be93Schristos 16613965be93Schristos- If a client renews before 'dhcp-cache-threshold' percent of its lease 16623965be93Schristos has elapsed (default 25%), the server will reuse the allocated lease 16633965be93Schristos (provide a lease within the currently allocated lease-time) rather 16643965be93Schristos than extend or renew the lease. This absolves the server of needing 16653965be93Schristos to perform an fsync() operation on the lease database before reply, 16663965be93Schristos which improves performance. [ISC-Bugs #22228] 16673965be93Schristos Updated this patch to support asynchronous DDNS. If the server is 16683965be93Schristos attempting to do DDNS on a lease it should be updated and written to 16693965be93Schristos disk even if that wouldn't be necessary due to the thresholding. 16703965be93Schristos [ISC-Bugs #26311] 16713965be93Schristos 16723965be93Schristos- The 'no available billing' log line now also logs the name of the last 16733965be93Schristos matching billing class tried before failing to provide a billing. 16743965be93Schristos [ISC-Bugs #21759] 16753965be93Schristos 16763965be93Schristos- A problem with missing get_hw_addr function when --enable-use-sockets 16773965be93Schristos was used is now solved on GNU/Linux, BSD and GNU/Hurd systems. Note 16783965be93Schristos that use-sockets feature was not tested on those systems. Client and 16793965be93Schristos server code no longer use MAX_PATH constant that is not defined on 16803965be93Schristos GNU/Hurd systems. [ISC-Bugs #25979] 16813965be93Schristos 16823965be93Schristos- Add a perl script in the contrib directory, dhcp-lease-list.pl, which 16833965be93Schristos can parse v4 lease files and output the lease information in a more 16843965be93Schristos human friendly manner. This was written by Christian Hammers with 16853965be93Schristos some updates by vom and ISC. This is contributed code and is not 16863965be93Schristos supported by ISC; however it may be useful to some users. 16873965be93Schristos [ISC-Bugs #20680] 16883965be93Schristos 16893965be93Schristos- Add support in v6 for on-commit, on-expire and on-release. 16903965be93Schristos [ISC-Bugs #27912] 16913965be93Schristos 16923965be93Schristos- Add support for using classes with v6. 16933965be93Schristos [ISC-Bugs #26510] 16943965be93Schristos 16953965be93Schristos- Update the DDNS code to current standards and allow for sharing 16963965be93Schristos of DDNS entries between v4 and v6 clients. The new code is used 16973965be93Schristos if the ddns-update-style is set to "standard", the older code is 16983965be93Schristos still available if ddns-update-style is set to "interim". The 16993965be93Schristos oldest DDNS code "ad-hoc" has been removed. Thanks to Thomas Pegeot 17003965be93Schristos who submitted a patch for this issue. This patch is based on 17013965be93Schristos that work with some modifications. 17023965be93Schristos [ISC-Bugs #21139] 17033965be93Schristos 17043965be93Schristos- Add a configuration option to the server to suppress using fsync(). 17053965be93Schristos Enabling this option will mean that fsync() is never called. This 17063965be93Schristos may provide better performance but there is also a risk that a lease 17073965be93Schristos will not be properly written to the disk after it has been issued 17083965be93Schristos to a client and before the server stops. Using this option is 17093965be93Schristos not recommended. 17103965be93Schristos [ISC-Bugs #34810] 17113965be93Schristos 17123965be93Schristos- Add some logging statements to indicate when the server is ready 17133965be93Schristos to serve. One statement is emitted after the server has finished 17143965be93Schristos reading its files and is about to enter the dispatch loop. 17153965be93Schristos This is "Server starting service.". 17163965be93Schristos The second is emitted when a server determines that both it and 17173965be93Schristos its failover peer are in the normal state. 17183965be93Schristos This is "failover peer <name>: Both servers normal." 17193965be93Schristos [ISC-Bugs #33208] 17203965be93Schristos 17213965be93Schristos- Add support for accessing options from v6 relays. The v6relay 17223965be93Schristos statement allows the administrator to choose which relay to 17233965be93Schristos use when searching for an option, see the dhcp-options man page 17243965be93Schristos for a description. The host-identifier option has also been 17253965be93Schristos updated to support the use of relay options, see the dhcpd.conf 17263965be93Schristos man page for a description. 17273965be93Schristos [ISC-Bugs #19598] 17283965be93Schristos 17293965be93Schristos- When doing DDNS if there isn't an appropriate zone statement attempt 17303965be93Schristos to find a reasonable nameserver via a DNS resolver. This restores 17313965be93Schristos some functionality that was lost in the transition to asynchronous 17323965be93Schristos DDNS. Due to the lack of security and increase in fragility of the 17333965be93Schristos system when using this feature we strongly recommend the use of 17343965be93Schristos appropriate zone statements rather than using this functionality. 17353965be93Schristos [ISC-Bugs #30461] 17363965be93Schristos 17373965be93Schristos- Add support for specifying the address from which to send 17383965be93Schristos DDNS updates on the DHCP server. There are two new options 17393965be93Schristos "ddns-local-address4" and "ddns-local-address6" that each take 17403965be93Schristos one instance of their respective address types. 17413965be93Schristos [ISC-Bugs #34779] 17423965be93Schristos 17433965be93Schristos- Add ignore-client-uids option in the server. This option causes 17443965be93Schristos the server to not record a client's uid in its lease. This 17453965be93Schristos violates the specification but may also be useful when a client 17463965be93Schristos can dual boot using different client ids but the same mac address. 17473965be93Schristos Thank you to Brian De Wolf at Cal Poly Pomona for the patch. 17483965be93Schristos [ISC-Bugs #32427] 17493965be93Schristos [ISC-Bugs #35066] 17503965be93Schristos 17513965be93Schristos- Extend the DHCPINFORM processing to honor the subnet selection option 17523965be93Schristos and take host declarations into account. 17533965be93Schristos Thanks to Christof Chen for testing and submitting the patch. 17543965be93Schristos [ISC-Bugs #35015] 17553965be93Schristos 17563965be93Schristos- Extend the hardware expression to look into the lease structure 17573965be93Schristos for a hardware address if there is no packet. This allows the 17583965be93Schristos server to find the hardware address during on-expiry processing. 17593965be93Schristos [ISC-Bugs #24584] 17603965be93Schristos 17613965be93Schristos- Add definitions for some options that have been specified by the IETF. 17623965be93Schristos [ISC-Bugs #29268] 17633965be93Schristos [ISC-Bugs #35198] 17643965be93Schristos 17653965be93Schristos Changes since 4.2.0 (bug fixes) 17663965be93Schristos 17673965be93Schristos- When using 'ignore client-updates;', the FQDN returned to the client 17683965be93Schristos is no longer truncated to one octet. 17693965be93Schristos 17703965be93Schristos- Cleaned up an unused hardware address variable in nak_lease(). 17713965be93Schristos 17723965be93Schristos- Manpage entries for the ia-pd and ia-prefix options were updated to 17733965be93Schristos reflect support for prefix delegation. 17743965be93Schristos 17753965be93Schristos- Cleaned up some compiler warnings 17763965be93Schristos 17773965be93Schristos- An optimization described in the failover protocol draft is now included, 17783965be93Schristos which permits a DHCP server operating in communications-interrupted state 17793965be93Schristos to 'rewind' a lease to the state most recently transmitted to its peer, 17803965be93Schristos greatly increasing a server's endurance in communications-interrupted. 17813965be93Schristos This is supported using a new 'rewind state' record on the dhcpd.leases 17823965be93Schristos entry for each lease. 17833965be93Schristos 17843965be93Schristos- Fix the trace code which was broken by the changes to the DDNS code. 17853965be93Schristos 17863965be93Schristos- Update the fsync code to work with the changes to the DDNS code. It now 17873965be93Schristos uses a timer instead of noticing if there are no more packets to process. 17883965be93Schristos 17893965be93Schristos- When constructing the DNS name structure from a text string append 17903965be93Schristos the root to relative names. This satisfies a requirement in the DNS 17913965be93Schristos library that names be absolute instead of relative and prevents DHCP 17923965be93Schristos from crashing. [ISC-Bugs #21054] 17933965be93Schristos 17943965be93Schristos- "The LDAP Patch" that has been circulating for some time, written by 17953965be93Schristos Brian Masney and S.Kalyanasundraram and maintained for application to 17963965be93Schristos the DHCP-4 sources by David Cantrell has been included. Please be 17973965be93Schristos advised that these sources were contributed, and do not yet meet the 17983965be93Schristos high standards we place on production sources we include by default. 17993965be93Schristos As a result, the LDAP features are only included by using a compile-time 18003965be93Schristos option which defaults off, and if you enable it you do so under your 18013965be93Schristos own recognizance. We will be improving this software over time. 18023965be93Schristos [ISC-Bugs #17741] 18033965be93Schristos 18043965be93Schristos- Prohibit including lease time information in a response to a DHCP INFORM. 18053965be93Schristos [ISC-Bugs #21092] 18063965be93Schristos 18073965be93Schristos! Accept a client id of length 0 while hashing. Previously the server would 18083965be93Schristos exit if it attempted to hash a zero length client id, providing attackers 18093965be93Schristos with a simple denial of service attack. [ISC-Bugs #21253] 18103965be93Schristos CERT: VU#541921 - CVE: CVE-2010-2156 18113965be93Schristos 18123965be93Schristos- A memory leak in ddns processing was closed. [ISC-Bugs #21377] 18133965be93Schristos 18143965be93Schristos- Modify the exception handling for initial context creation. Previously 18153965be93Schristos we would try and clean up before exiting. This could present problems 18163965be93Schristos when the cleanup required part of the context that wasn't available. It 18173965be93Schristos also didn't do much as we exited afterwards anyway. Now we simply log 18183965be93Schristos the error and exit. [ISC-Bugs #21093] 18193965be93Schristos 18203965be93Schristos- A bug was fixed that could cause the DHCPv6 server to advertise/assign a 18213965be93Schristos previously allocated (active) lease to a client that has changed subnets, 18223965be93Schristos despite being on different shared networks. Dynamic prefixes specifically 18233965be93Schristos allocated in shared networks also now are not offered if the client has 18243965be93Schristos moved. [ISC-Bugs #21152] 18253965be93Schristos 18263965be93Schristos- Add some debugging output for use with the DDNS code. [ISC-Bugs #20916] 18273965be93Schristos 18283965be93Schristos- Fix the trace code to handle timing events better and to truncate a file 18293965be93Schristos before using instead of overwriting it. [ISC-Bugs #20969] 18303965be93Schristos 18313965be93Schristos- Modify the determination of the default TTL to use for DDNS updates. 18323965be93Schristos The user may still configure the ttl via ddns-ttl. The default for 18333965be93Schristos both v4 and v6 is now 1/2 the (preferred) lease time with a limit. The 18343965be93Schristos previous defaults (1/2 lease time without a limit for v4 and a default 18353965be93Schristos value for v6) may be used by defining USE_OLD_DDNS_TTL in site.h 18363965be93Schristos [ISC-Bugs #21126] 18373965be93Schristos 18383965be93Schristos- libisc/libdns is now brought up to version 9.7.1rc1. This corrects 18393965be93Schristos three reported flaws in ISC DHCP; 18403965be93Schristos 18413965be93Schristos o DHCP processes (dhcpd, dhclient) fail to start if one of either the 18423965be93Schristos IPv4 or IPv6 address families is not present. [ISC-Bugs #21122] 18433965be93Schristos 18443965be93Schristos o Assertion failure when attempting to cancel a previously running DDNS 18453965be93Schristos update. [ISC-Bugs #21133] 18463965be93Schristos 18473965be93Schristos o Compilation failure of libisc/libdns due to the use of a flexible 18483965be93Schristos array member. [ISC-Bugs #21316] 18493965be93Schristos 18503965be93Schristos- Add declaration for variable in debug code in alloc.c. [ISC-Bugs #21472] 18513965be93Schristos 18523965be93Schristos- Documentation cleanup covering multiple tickets 18533965be93Schristos [ISC-Bugs #20265] [ISC-Bugs #20259] minor cleanup 18543965be93Schristos [ISC-Bugs #20263] add text describing some default values 18553965be93Schristos [ISC-Bugs #20193] single quotes at the start of a line indicate a control 18563965be93Schristos line to nroff, escape them if we actually want a quote. 18573965be93Schristos [ISC-Bugs #18916] sync the pointer to web pages amongst the different docs 18583965be93Schristos 18593965be93Schristos- 'get-host-names true;' now also works even if 'use-host-decl-names true;' 18603965be93Schristos was also configured. The nature of this repair also fixes another 18613965be93Schristos error; the host-name supplied by a client is no longer overridden by a 18623965be93Schristos reverse lookup of the lease address. Thanks to a patch from Wilco Baan 18633965be93Schristos Hofman supplied to us by the Debian package maintenance team. 18643965be93Schristos [ISC-Bugs #21691] {Debian Bug#509445} 18653965be93Schristos 18663965be93Schristos- The .TH tag for the dhcp-options manpage was typo repaired 18673965be93Schristos thanks to a report from jidanni and the Debian package maintenance 18683965be93Schristos team. [ISC-Bugs #21676] {Debian Bug#563613} 18693965be93Schristos 18703965be93Schristos- More documentation changes - primarily to put the options in the dhclient 18713965be93Schristos and dhcpd man pages into the standard form. Thanks in part to a patch 18723965be93Schristos from David Cantrell at Red Hat. 18733965be93Schristos [ISC-Bugs #20264] and parts of [ISC-Bugs #17744] dhclient.8 changes 18743965be93Schristos 18753965be93Schristos- Add code to clear the pointer to an object in an OMAPI handle when the 18763965be93Schristos object is freed due to a dereference. [ISC-Bugs #21306] 18773965be93Schristos 18783965be93Schristos- Fixed a bug that leaks host record references onto lease structures, 18793965be93Schristos causing the server to apply configuration intended for one host to any 18803965be93Schristos other innocent clients that come along later. [ISC-Bugs #22018] 18813965be93Schristos 18823965be93Schristos- Minor code fixes 18833965be93Schristos [ISC-Bugs #19566] When trying to find the zone for a name for ddns allow 18843965be93Schristos the name to be at the apex of the zone. 18853965be93Schristos [ISC-Bugs #19617] Restrict length of interface name read from command line 18863965be93Schristos in dhcpd - based on a patch from David Cantrell at Red Hat. 18873965be93Schristos [ISC-Bugs #20039] Correct some error messages in dhcpd.c 18883965be93Schristos [ISC-Bugs #20070] Better range check on values when creating a DHCID. 18893965be93Schristos [ISC-Bugs #20198] Avoid writing past the end of the field when adding 18903965be93Schristos overly long file or server names to a packet and add a log message 18913965be93Schristos if the configuration supplied overly long names for these fields. 18923965be93Schristos Thanks to Martin Pala. 18933965be93Schristos [ISC-Bugs #21497] Add a little more randomness to rng seed in client 18943965be93Schristos thanks to a patch from Jeremiah Jinno. 18953965be93Schristos 18963965be93Schristos- Correct error handling in DLPI [ISC-Bugs #20378] 18973965be93Schristos 18983965be93Schristos- Remove __sun__ and __hpux__ typedefs in osdep.h as they are now being 18993965be93Schristos checked in configure. [ISC-Bugs #20443] 19003965be93Schristos 19013965be93Schristos- Modify how the cmsg header is allocated the v6 send and received routines 19023965be93Schristos to compile on more compilers. [ISC-Bugs #20524] 19033965be93Schristos 19043965be93Schristos- When parsing a domain name free the memory for the name after we are 19053965be93Schristos done with it. [ISC-Bugs #20824] 19063965be93Schristos 19073965be93Schristos- Add an elapsed time option to the release message and refactor the 19083965be93Schristos code to move most of the common code to a single routine. 19093965be93Schristos [ISC-Bugs #21171]. 19103965be93Schristos 19113965be93Schristos- Two identical log messages for commit_leases() have been disambiguated. 19123965be93Schristos [ISC-Bugs #18915] 19133965be93Schristos 19143965be93Schristos- Parse date strings more properly - the code now handles semi-colons in 19153965be93Schristos date strings correctly. Thanks to a patch from Jiri Popelka at Red Hat. 19163965be93Schristos [ISC-Bugs #21501, #20598] 19173965be93Schristos 19183965be93Schristos- Fixes to lease input and output. 19193965be93Schristos [ISC-Bugs #20418] - Some systems don't support the "%s" argument to 19203965be93Schristos strftime, paste together the same string using mktime instead. 19213965be93Schristos [ISC-Bugs #19596] - When parsing iaid values accept printable 19223965be93Schristos characters. 19233965be93Schristos [ISC-Bugs #21585] - Always print time values in omshell as hex 19243965be93Schristos instead of ascii if the values happen to be printable characters. 19253965be93Schristos 19263965be93Schristos- Minor changes for scripts, configure.ac and Makefiles 19273965be93Schristos [ISC-Bugs #19147] Use domain-search instead of domain-name in manual and 19283965be93Schristos example conf file. Thanks to a patch from David Cantrell 19293965be93Schristos at Red Hat. 19303965be93Schristos [ISC-Bugs #19761] Restore address when doing a rebind in DHCPv6 19313965be93Schristos [ISC-Bugs #19945] Properly close the quote on some arguments. 19323965be93Schristos [ISC-Bugs #20952] Add 64 bit types to configure.ac 19333965be93Schristos [ISC-Bugs #21308] Add "PATH=" to CLIENT_PATH environment variable 19343965be93Schristos 19353965be93Schristos- Update the code to parse dhcpv6 lease files to accept a semi-colon at 19363965be93Schristos the end of the max-life and preferred-life clauses. In order to be 19373965be93Schristos backwards compatible with older lease files not finding a semi-colon 19383965be93Schristos is also accepted. [ISC-Bugs #22303]. 19393965be93Schristos 19403965be93Schristos! Handle a relay forward message with an unspecified address in the 19413965be93Schristos link address field. Previously such a message would cause the 19423965be93Schristos server to crash. Thanks to a report from John Gibbins. [ISC-Bugs #21992] 19433965be93Schristos CERT: VU#102047 CVE: CVE-2010-3611 19443965be93Schristos 19453965be93Schristos- ./configure on longer searches for -lcrypto to explicitly link against. 19463965be93Schristos This fixes a bug where 'dhclient' would have shared library dependencies 19473965be93Schristos on '/usr/lib'. [ISC-Bugs #21967] 19483965be93Schristos 19493965be93Schristos- Handle pipe failures more gracefully. Some OSes pass a SIGPIPE 19503965be93Schristos signal to a process and will kill the process if the signal isn't 19513965be93Schristos caught. This patch adds code to turn off the SIGPIPE signal via 19523965be93Schristos a setsockopt() call. The signal is already being ignored as part 19533965be93Schristos of the ISC library. [ISC-Bugs #22269] 19543965be93Schristos 19553965be93Schristos- Restore printing of values in omshell to the style pre 21585. For 19563965be93Schristos 21585 we changed the print routines to always display time values 19573965be93Schristos as a hex list. This had a side effect of printing all data strings 19583965be93Schristos as a hex list. We shall investigate other ways of displaying time 19593965be93Schristos values more usefully. [ISC-Bugs #22626] 19603965be93Schristos 19613965be93Schristos! Fix the handling of connection requests on the failover port. 19623965be93Schristos Previously a connection request from a source that wasn't 19633965be93Schristos listed as a failover peer would cause the server to become 19643965be93Schristos non-responsive. Thanks to a report from Brad Bendily, brad@bendily.com. 19653965be93Schristos [ISC-Bugs #22679] 19663965be93Schristos CERT: VU#159528 CVE: CVE-2010-3616 19673965be93Schristos 19683965be93Schristos- Don't pass the ISC_R_INPROGRESS status to the omapi signal handlers. 19693965be93Schristos Passing it through to the handlers caused the omshell program to fail 19703965be93Schristos to connect to the server. [ISC-Bugs #21839] 19713965be93Schristos 19723965be93Schristos- Fix the parenthesis in the code to process configuration statements 19733965be93Schristos beginning with "auth". The previous arrangement caused 19743965be93Schristos "auto-partner-down" to be processed incorrectly. [ISC-Bugs #21854] 19753965be93Schristos 19763965be93Schristos- Limit the timeout period allowed in the dispatch code to 2^^32-1 seconds. 19773965be93Schristos Thanks to a report from Jiri Popelka at Red Hat. 19783965be93Schristos [ISC-Bugs #22033], [Red Hat Bug #628258] 19793965be93Schristos 19803965be93Schristos- When processing the format flags for a given option consume the 19813965be93Schristos flag indicating an optional value correctly. A symptom of this 19823965be93Schristos bug was an infinite loop when trying to parse the slp-service-scope 19833965be93Schristos option. Thanks to a patch from Marius Tomaschewski. 19843965be93Schristos [ISC-Bugs #22055] 19853965be93Schristos 19863965be93Schristos- Disable the use of kqueue in the ISC library. This avoids a problem 19873965be93Schristos between the fork and socket code that caused the dhcpd process to 19883965be93Schristos use all available cpu if the program daemonized itself. 19893965be93Schristos [ISC-Bugs #21911] 19903965be93Schristos 19913965be93Schristos! When processing a request in the DHCPv6 server code that specifies 19923965be93Schristos an address that is tagged as abandoned (meaning we received a 19933965be93Schristos decline request for it previously) don't attempt to move it from 19943965be93Schristos the inactive to active pool as doing so can result in the server 19953965be93Schristos crashing on an assert failure. Also retag the lease as active 19963965be93Schristos and reset its timeout value. 19973965be93Schristos [ISC-Bugs #21921] 19983965be93Schristos 19993965be93Schristos- Removed the restriction on using IPv6 addresses in IPv4 mode. This 20003965be93Schristos allows IPv4 options which contain IPv6 addresses to be specified. For 20013965be93Schristos example the 6rd option can be specified and used like this: 20023965be93Schristos [ISC-Bugs #23039] 20033965be93Schristos 20043965be93Schristos option 6rd code 212 = { integer 8, integer 8, 20053965be93Schristos ip6-address, array of ip-address }; 20063965be93Schristos option 6rd 16 10 2001:: 1.2.3.4, 5.6.7.8; 20073965be93Schristos 20083965be93Schristos- Handle some DDNS corner cases better. Maintain the DDNS transaction 20093965be93Schristos information when updating a lease and cancel any existing transactions 20103965be93Schristos when removing the ddns information. 20113965be93Schristos [ISC-Bugs #23103] 20123965be93Schristos 20133965be93Schristos- Some fixes for LDAP 20143965be93Schristos [ISC-Bugs #21783] - Include lber library when building ldap 20153965be93Schristos [ISC-Bugs #22888] - Enable the ldap code when buidling common 20163965be93Schristos The above fixes are from Jiri Popelka at Red Hat. 20173965be93Schristos 20183965be93Schristos- Modify the dlpi code to accept getmsg() returning a positive value. 20193965be93Schristos [ISC-Bugs #22824] 20203965be93Schristos 20213965be93Schristos! In dhclient check the data for some string options for 20223965be93Schristos reasonableness before passing it along to the script that 20233965be93Schristos interfaces with the OS. 20243965be93Schristos [ISC-Bugs #23722] 20253965be93Schristos CVE: CVE-2011-0997 20263965be93Schristos 20273965be93Schristos- DHCPv6 server now responds properly if client asks for a prefix that 20283965be93Schristos is already assigned to a different client. [ISC-Bugs #23948] 20293965be93Schristos 20303965be93Schristos- Add the option "--no-pid" to the client, relay and server code, 20313965be93Schristos to disable writing a pid file. Add the option "-pf pidfile" 20323965be93Schristos to the relay to allow the user to supply the pidfile name at 20333965be93Schristos runtime. Add the "with-relay6-pid-file" option to configure 20343965be93Schristos to allow the user to supply the pidfile name for the relay 20353965be93Schristos in v6 mode at configure time. 20363965be93Schristos [ISC-Bugs #23351] [ISC-Bugs #17541] 20373965be93Schristos 20383965be93Schristos- 'dhclient' no longer waits a random interval after first starting up to 20393965be93Schristos begin in the INIT state. This conforms to RFC 2131, but elects not to 20403965be93Schristos implement a 'SHOULD' direction in section 4.1. The goal of this change 20413965be93Schristos is to start up faster. [ISC-Bugs #19660] 20423965be93Schristos 20433965be93Schristos- Added 'initial-delay' parameter that specifies maximum amount of time 20443965be93Schristos before client goes to the INIT state. The default value is 0. In previous 20453965be93Schristos versions of the code client could wait up to 5 seconds. The old behavior 20463965be93Schristos may be restored by using 'initial-delay 5;' in the client config file. 20473965be93Schristos [ISC-Bugs #19660] 20483965be93Schristos 20493965be93Schristos- ICMP ping-check should now sit closer to precisely the number of seconds 20503965be93Schristos configured (or default 1), due to making use of the new microsecond 20513965be93Schristos scale timer internally to dhcpd. This corrects a bug where the server 20523965be93Schristos may immediately timeout an ICMP ping-check if it was made late in the 20533965be93Schristos current second. [ISC-Bugs #19660] 20543965be93Schristos 20553965be93Schristos- The DHCP client will schedule renewal and rebinding events in 20563965be93Schristos microseconds if the DHCP server provided a lease-time that would result 20573965be93Schristos in sub-1-second timers. This corrects a bug where a 2-second or lower 20583965be93Schristos lease-time would cause the DHCP client to enter an infinite loop by 20593965be93Schristos scheduling renewal at zero seconds. [ISC-Bugs #19660] 20603965be93Schristos 20613965be93Schristos- Client lease records are recorded at most once every 15 seconds. This 20623965be93Schristos keeps the client from filling the lease database disk quickly on very small 20633965be93Schristos lease times. [ISC-Bugs #19660] 20643965be93Schristos 20653965be93Schristos- To defend against RFC 2131 non-compliant DHCP servers which fail to 20663965be93Schristos advertise a lease-time (either mangled, or zero in value) the DHCP 20673965be93Schristos client now adds the server to the reject list ACL and returns to INIT 20683965be93Schristos state to hopefully find an RFC 2131 compliant server (or retry in INIT 20693965be93Schristos forever). [ISC-Bugs #19660] 20703965be93Schristos 20713965be93Schristos- Parameters configured to evaluate from user defined function calls can 20723965be93Schristos now be correctly written to dhcpd.leases (as on 'on events' or dynamic 20733965be93Schristos host records inserted via OMAPI). [ISC-Bugs #22266] 20743965be93Schristos 20753965be93Schristos- If a 'next-server' parameter is configured in a dynamic host record via 20763965be93Schristos OMAPI as a domain name, the syntax written to disk is now correctly parsed 20773965be93Schristos upon restart. [ISC-Bugs #22266] 20783965be93Schristos 20793965be93Schristos- The DHCP server now responds to DHCPLEASEQUERY messages from agents using 20803965be93Schristos IP addresses not covered by a subnet in configuration. Whether or not to 20813965be93Schristos respond to such an agent is still governed by the 'allow leasequery;' 20823965be93Schristos configuration parameter, in the case of an agent not covered by a configured 20833965be93Schristos subnet the root configuration area is examined. Server now also returns 20843965be93Schristos vendor-class-id option, if client sent it. [ISC-Bugs #21094] 20853965be93Schristos 20863965be93Schristos- Documentation fixes 20873965be93Schristos [ISC-Bugs #17959] add text to AIX section describing how to have it send 20883965be93Schristos responses to the all-ones address. 20893965be93Schristos [ISC-Bugs #19615] update the includes in dhcpctl/dhcpctl.3 to be more correct 20903965be93Schristos [ISC-Bugs #20676] update dhcpd.conf.5 to include the RFC numbers for DDNS 20913965be93Schristos 20923965be93Schristos- Relay no longer crashes, when DHCP packet is received over interface without 20933965be93Schristos any IPv4 address assigned. Also extended logging message about discarding 20943965be93Schristos packets with invalid hlen with information about relevant interface name. 20953965be93Schristos [ISC-Bugs #22409] 20963965be93Schristos 20973965be93Schristos- Relay now properly logs that packet was received over interface without 20983965be93Schristos global IPv6 address [ISC-Bugs #24070] 20993965be93Schristos 21003965be93Schristos- Linux Packet Filter interface improvement. sockaddr_pkt structure is used, 21013965be93Schristos rather than sockaddr. Packet ethertype is now forced to ETH_P_IP. 21023965be93Schristos [ISC-Bugs #18975] 21033965be93Schristos 21043965be93Schristos- Minor code cleanups - but note port change for #23196 21053965be93Schristos [ISC-Bugs #23470] - Modify when an ignore return macro is defined to 21063965be93Schristos handle unsed error return warnings for more versions of gcc. 21073965be93Schristos [ISC-Bugs #23196] - Modify the reply handling in the server code to 21083965be93Schristos send to a specified port rather than to the source port for the incoming 21093965be93Schristos message. Sending to the source port was test code that should have 21103965be93Schristos been removed. The previous functionality may be restored by defining 21113965be93Schristos REPLY_TO_SOURCE_PORT in the includes/site.h file. We suggest you don't 21123965be93Schristos enable this except for testing purposes. 21133965be93Schristos [ISC-Bugs #22695] - Close a file descriptor in an error path. 21143965be93Schristos [ISC-Bugs #19368] - Tidy up variable types in validate_port. 21153965be93Schristos 21163965be93Schristos- Code cleanup: remove obsolete PROTO, KandR, INLINE and ANSI_DECL macros 21173965be93Schristos [ISC-Bugs #13151] 21183965be93Schristos 21193965be93Schristos- Compilation problem with gcc4.5 and omshell.c resolved. [ISC-Bugs #23831] 21203965be93Schristos 21213965be93Schristos- Client Script fixes 21223965be93Schristos [ISC-Bugs #23045] Typos in client/scripts/openbsd 21233965be93Schristos [ISC-Bugs #23565] In the client scripts add a zone id (interface id) if 21243965be93Schristos the domain search address is link local. 21253965be93Schristos [ISC-Bugs #1277] In some of the client scripts add code to handle the 21263965be93Schristos case of the default router information being changed without the address 21273965be93Schristos being changed. 21283965be93Schristos 21293965be93Schristos- Documentation cleanup 21303965be93Schristos [ISC-Bugs #23326] Updated References document, several man page updates 21313965be93Schristos 21323965be93Schristos- Server no longer complains about NULL pointer when configured 21333965be93Schristos server-identifier expression fails to evaluate. [ISC-Bugs #24547] 21343965be93Schristos 21353965be93Schristos- Convert ISC_R_INPROGRESS status to ISC_R_SUCCESS when called from other 21363965be93Schristos than the dispatch handler. This fixes an issue where omshell, when 21373965be93Schristos run from the same platform as the server, would appear to fail to 21383965be93Schristos connect. This is a companion to #21839. [ISC-Bugs #23592] 21393965be93Schristos 21403965be93Schristos- Enlarge the buffer size used by the Omshell code and some of the 21413965be93Schristos print routines to allow for greater than 60 characters or, when 21423965be93Schristos printing as hex strings, 20 characters. [ISC-Bugs #22743] 21433965be93Schristos 21443965be93Schristos- In Solaris 11 switch to using sockets instead of DLPI, thanks 21453965be93Schristos to a patch form Oracle. [ISC-Bugs #24634]. 21463965be93Schristos 21473965be93Schristos- Strict checks for content of domain-name DHCPv4 option can now be 21483965be93Schristos configured during compilation time. Even though RFC2132 does not allow 21493965be93Schristos to store more than one domain in domain-name option, such behavior is 21503965be93Schristos now enabled by default, but this may change some time in the future. 21513965be93Schristos See ACCEPT_LIST_IN_DOMAIN_NAME define in includes/site.h. 21523965be93Schristos [ISC-Bugs #24167] 21533965be93Schristos 21543965be93Schristos- DNS Update fix. A misconfigured server could crash during DNS update 21553965be93Schristos processing if the configuration included overlapping pools or 21563965be93Schristos multiple fixed-address entries for a single address. This issue 21573965be93Schristos affected both IPv4 and IPv6. The fix allows a server to detect such 21583965be93Schristos conditions, provides the user with extra information and recommended 21593965be93Schristos steps to fix the problem. If the user enables the appropriate option 21603965be93Schristos in site.h then server will be terminated 21613965be93Schristos [ISC-Bugs #23595] 21623965be93Schristos 21633965be93Schristos! Two packets were found that cause a server to halt. The code 21643965be93Schristos has been updated to properly process or reject the packets as 21653965be93Schristos appropriate. Thanks to David Zych at University of Illinois 21663965be93Schristos for reporting this issue. [ISC-Bugs #24960] 21673965be93Schristos One CVE number for each class of packet. 21683965be93Schristos CVE-2011-2748 21693965be93Schristos CVE-2011-2749 21703965be93Schristos 21713965be93Schristos- Fix the code that checks for an existing DDNS transaction to cancel 21723965be93Schristos when removing DDNS information, so that we will continue with the 21733965be93Schristos processing if we have a lease even if it doesn't have an outstanding 21743965be93Schristos transaction. [ISC-Bugs #24682] 21753965be93Schristos 21763965be93Schristos- Add AM_MAINTAINER_MODE to configure.ac to avoid rebuilding 21773965be93Schristos configuration files. [ISC-Bugs #24107] 21783965be93Schristos 21793965be93Schristos- Add support for passing DDNS information to a DNS server over 21803965be93Schristos an IPv6 address. [ISC-Bugs #22647] 21813965be93Schristos 21823965be93Schristos- Enhanced patch for 23595 to handle IPv4 fixed addresses more 21833965be93Schristos cleanly. [ISC-Bugs #23595] 21843965be93Schristos 21853965be93Schristos! Add a check for a null pointer before calling the regexec function. 21863965be93Schristos Without this check we could, under some circumstances, pass 21873965be93Schristos a null pointer to the regexec function causing it to segfault. 21883965be93Schristos Thanks to a report from BlueCat Networks. 21893965be93Schristos [ISC-Bugs #26704]. 21903965be93Schristos CVE: CVE-2011-4539 21913965be93Schristos 21923965be93Schristos! Modify the DDNS handling code. In a previous patch we added logging 21933965be93Schristos code to the DDNS handling. This code included a bug that caused it 21943965be93Schristos to attempt to dereference a NULL pointer and eventually segfault. 21953965be93Schristos While reviewing the code as we addressed this problem, we determined 21963965be93Schristos that some of the updates to the lease structures would not work as 21973965be93Schristos planned since the structures being updated were in the process of 21983965be93Schristos being freed: these updates were removed. In addition we removed an 21993965be93Schristos incorrect call to the DDNS removal function that could cause a failure 22003965be93Schristos during the removal of DDNS information from the DNS server. 22013965be93Schristos Thanks to Jasper Jongmans for reporting this issue. 22023965be93Schristos [ISC-Bugs #27078] 22033965be93Schristos CVE: CVE-2011-4868 22043965be93Schristos 22053965be93Schristos- Fixed the code that checks if an address the server is planning 22063965be93Schristos to hand out is in a reserved range. This would appear as 22073965be93Schristos the server being out of addresses in pools with particular ranges. 22083965be93Schristos [ISC-Bugs #26498] 22093965be93Schristos 22103965be93Schristos- In the DDNS code handle error conditions more gracefully and add more 22113965be93Schristos logging code. The major change is to handle unexpected cancel events 22123965be93Schristos from the DNS client code. 22133965be93Schristos [ISC-Bugs #26287] 22143965be93Schristos 22153965be93Schristos- Tidy up the receive calls and eliminate the need for found_pkt. 22163965be93Schristos [ISC-Bugs #25066] 22173965be93Schristos 22183965be93Schristos- Add support for Infiniband over sockets to the server and 22193965be93Schristos relay code. We've tested this on Solaris and hope to expand 22203965be93Schristos support for Infiniband in the future. This patch also corrects 22213965be93Schristos some issues we found in the socket code. 22223965be93Schristos [ISC-Bugs #24245] 22233965be93Schristos 22243965be93Schristos- Add a compile time check for the presence of the noreturn attribute 22253965be93Schristos and use it for log_fatal if it's available. This will help code 22263965be93Schristos checking programs to eliminate false positives. 22273965be93Schristos [ISC-Bugs #27539] 22283965be93Schristos 22293965be93Schristos- Fixed many compilation problems ("set, but not used" warnings) for 22303965be93Schristos gcc 4.6 that may affect Ubuntu 11.10 users. [ISC-Bugs #27588] 22313965be93Schristos 22323965be93Schristos- Modify the code that determines if an outstanding DDNS request 22333965be93Schristos should be cancelled. This patch results in cancelling the 22343965be93Schristos outstanding request less often. It fixes the problem caused 22353965be93Schristos by a client doing a release where the TXT and PTR records 22363965be93Schristos weren't removed from the DNS. 22373965be93Schristos [ISC-BUGS #27858] 22383965be93Schristos 22393965be93Schristos- Use offsetof() instead of sizeof() to get the sizes for dhcpv6_relay_packet 22403965be93Schristos and dhcpv6_packet in several more places. Thanks to a report from 22413965be93Schristos Bruno Verstuyft and Vincent Demaertelaere of Excentis. 22423965be93Schristos [ISC-Bugs #27941] 22433965be93Schristos 22443965be93Schristos- Remove outdated note in the description of the bootp keyword about the 22453965be93Schristos option not satisfying the requirement of failover peers for denying 22463965be93Schristos dynamic bootp clients. 22473965be93Schristos [ISC-bugs #28574] 22483965be93Schristos 22493965be93Schristos- Multiple items to clean up IPv6 address processing. 22503965be93Schristos When processing an IA that we've seen check to see if the 22513965be93Schristos addresses are usable (not in use by somebody else) before 22523965be93Schristos handing it out. 22533965be93Schristos When reading in leases from the file discard expired addresses. 22543965be93Schristos When picking an address for a client include the IA ID in 22553965be93Schristos addition to the client ID to generally pick different addresses 22563965be93Schristos for different IAs. 22573965be93Schristos [ISC-Bugs #23138] [ISC-Bugs #27945] [ISC-Bugs #25586] 22583965be93Schristos [ISC-Bugs #27684] 22593965be93Schristos 22603965be93Schristos- Remove unnecessary checks in the lease query code and clean up 22613965be93Schristos several compiler issues (some dereferences of NULL and treating 22623965be93Schristos an int as a boolean). 22633965be93Schristos [ISC-Bugs #26203] 22643965be93Schristos 22653965be93Schristos- Fix the NA and PD allocation code to handle the case where a client 22663965be93Schristos provides a preference and the server doesn't have any addresses or 22673965be93Schristos prefixes available. Previously the server ignored the request with 22683965be93Schristos this patch it replies with a NoAddrsAvail or NoPrefixAvail response. 22693965be93Schristos By default the code performs according to the errata of August 2010 22703965be93Schristos for RFC 3315 section 17.2.2; to enable the previous style see the 22713965be93Schristos section on RFC3315_PRE_ERRATA_2010_08 in includes/site.h. This option 22723965be93Schristos may be removed in the future. 22733965be93Schristos Thanks to Jiri Popelka at Red Hat for the patch. 22743965be93Schristos [ISC-Bugs #22676] 22753965be93Schristos 22763965be93Schristos- Fix up some issues found by static analysis. 22773965be93Schristos A potential memory leak and NULL dereference in omapi. 22783965be93Schristos The use of a boolean test instead of a bitwise test in dst. 22793965be93Schristos [ISC-Bugs #28941] 22803965be93Schristos 22813965be93Schristos- Rotate the lease file when running in v6 mode. 22823965be93Schristos Thanks to Christoph Moench-Tegeder at Astaro for the 22833965be93Schristos report and the first version of the patch. 22843965be93Schristos [ISC-Bugs #24887] 22853965be93Schristos 22863965be93Schristos- Correct code to calculate timing values in client to compare 22873965be93Schristos rebind value to infinity instead of renew value. 22883965be93Schristos Thanks to Chenda Huang from H3C Technologies Co., Limited 22893965be93Schristos for reporting this issue. 22903965be93Schristos [ISC-Bugs #29062] 22913965be93Schristos 22923965be93Schristos- Fix some issues in the code for parsing and printing options. 22933965be93Schristos [ISC-Bugs #22625] - properly print options that have several fields 22943965be93Schristos followed by an array of something for example "fIa" 22953965be93Schristos [ISC-Bugs #27289] - properly parse options in declarations that have 22963965be93Schristos several fields followed by an array of something for example "fIa" 22973965be93Schristos [ISC-Bugs #27296] - properly determine if we parsed a 16 or 32 bit 22983965be93Schristos value in evaluate_numeric_expression (extract-int). 22993965be93Schristos [ISC-Bugs #27314] - properly parse a zero length option from 23003965be93Schristos a lease file. Thanks to Marius Tomaschewski from SUSE for the report 23013965be93Schristos and prototype patch for this ticket as well as ticket 27289. 23023965be93Schristos 23033965be93Schristos! Previously the server code was relaxed to allow packets with zero 23043965be93Schristos length client ids to be processed. Under some situations use of 23053965be93Schristos zero length client ids can cause the server to go into an infinite 23063965be93Schristos loop. As such ids are not valid according to RFC 2132 section 9.14 23073965be93Schristos the server no longer accepts them. Client ids with a length of 1 23083965be93Schristos are also invalid but the server still accepts them in order to 23093965be93Schristos minimize disruption. The restriction will likely be tightened in 23103965be93Schristos the future to disallow ids with a length of 1. 23113965be93Schristos Thanks to Markus Hietava of Codenomicon CROSS project for the 23123965be93Schristos finding this issue and CERT-FI for vulnerability coordination. 23133965be93Schristos [ISC-Bugs #29851] 23143965be93Schristos CVE: CVE-2012-3571 23153965be93Schristos 23163965be93Schristos! When attempting to convert a DUID from a client id option 23173965be93Schristos into a hardware address handle unexpected client ids properly. 23183965be93Schristos Thanks to Markus Hietava of Codenomicon CROSS project for the 23193965be93Schristos finding this issue and CERT-FI for vulnerability coordination. 23203965be93Schristos [ISC-Bugs #29852] 23213965be93Schristos CVE: CVE-2012-3570 23223965be93Schristos 23233965be93Schristos! A pair of memory leaks were found and fixed. Thanks to 23243965be93Schristos Glen Eustace of Massey University, New Zealand for finding 23253965be93Schristos this issue. 23263965be93Schristos [ISC-Bugs #30024] 23273965be93Schristos CVE: CVE-2012-3954 23283965be93Schristos 23293965be93Schristos- Existing legacy unit-tests have been migrated to Automated Test 23303965be93Schristos Framework (ATF). Several new tests have been developed. To enable 23313965be93Schristos unit-tests, please use --with-atf in configure script. A Developer's 23323965be93Schristos Guide has been added. To generate it, please use make devel in 23333965be93Schristos the doc directory. It is currently in early stages of development, 23343965be93Schristos but is expected to grow in the near future. [ISC-Bugs 25901] 23353965be93Schristos 23363965be93Schristos! An issue with the use of lease times was found and fixed. Making 23373965be93Schristos certain changes to the end time of an IPv6 lease could cause the 23383965be93Schristos server to abort. Thanks to Glen Eustace of Massey University, 23393965be93Schristos New Zealand for finding this issue. 23403965be93Schristos [ISC-Bugs #30281] 23413965be93Schristos CVE: CVE-2012-3955 23423965be93Schristos 23433965be93Schristos- Update the memory leakage debug code to work with v6. 23443965be93Schristos [ISC-Bugs #30297] 23453965be93Schristos 23463965be93Schristos- Relax the requirements for deleting an A or AAAA record. 23473965be93Schristos Previously the DDNS removal code required both the A or AAAA 23483965be93Schristos record and the TXT record to exist. This requirement could 23493965be93Schristos cause problems if something interrupted the removal leaving 23503965be93Schristos the TXT record alone. This relaxation was codified in RFC 4703. 23513965be93Schristos [ISC-Bugs #30734] 23523965be93Schristos 23533965be93Schristos- Modify the failover code to handle incorrect peer names 23543965be93Schristos better. Previously the structure holding the name might 23553965be93Schristos have been freed inappropriately in some cases and not 23563965be93Schristos freed in other cases. 23573965be93Schristos [ISC-Bugs #30320] 23583965be93Schristos 23593965be93Schristos- Add a configure option, enable-secs-byteorder, to deal with 23603965be93Schristos clients that do the byte ordering on the secs field incorrectly. 23613965be93Schristos This field should be in network byte order but some clients 23623965be93Schristos get it wrong. When this option is enabled the server will examine 23633965be93Schristos the secs field and if it looks wrong (high byte non zero and low 23643965be93Schristos byte zero) swap the bytes. The default is disabled. This option 23653965be93Schristos is only useful when doing load balancing within failover. 23663965be93Schristos [ISC-Bugs #26108] 23673965be93Schristos 23683965be93Schristos- Fix a set of issues that were discovered via a code inspection 23693965be93Schristos tool. Thanks to Jiri Popelka and Tomas Hozza Red Hat for the logs 23703965be93Schristos and patches. 23713965be93Schristos [ISC-Bugs #23833] 23723965be93Schristos 23733965be93Schristos- Parsing unquoted base64 strings improved. Parser now properly handles 23743965be93Schristos strings that contain reserved names. [ISC-Bugs #23048] 23753965be93Schristos 23763965be93Schristos- Modify the nak_lease function to make some attempts to find a 23773965be93Schristos server-identifier option to use for the NAK. 23783965be93Schristos [ISC-Bugs #25689] 23793965be93Schristos 23803965be93Schristos- The client now passes information about the options it requested 23813965be93Schristos from the server to the script code via environment variables. 23823965be93Schristos These variables are of the form requested_<option_name>=1 with 23833965be93Schristos the option name being the same as used in the new_* and old_* 23843965be93Schristos variables. 23853965be93Schristos [ISC-Bugs #29068] 23863965be93Schristos 23873965be93Schristos- Add support for a simple check that the server id in a request message 23883965be93Schristos to a failover peer matches the server id of the server. This support 23893965be93Schristos is enabled by editing the file includes/site.h and uncommenting the 23903965be93Schristos definition for SERVER_ID_CHECK. The option has several restrictions 23913965be93Schristos and issues - please read the comment in the site.h file before 23923965be93Schristos enabling it. 23933965be93Schristos [ISC-Bugs #31463] 23943965be93Schristos 23953965be93Schristos- Tidy up some compiler issues in the debug code. 23963965be93Schristos [ISC-Bugs #26460] 23973965be93Schristos 23983965be93Schristos- Move the dhcpd.conf example file to dhcpd.conf.example to avoid 23993965be93Schristos overwriting the dhcpd.conf file when installing a new version of 24003965be93Schristos ISC DHCP. The user will now need to manual copy and edit the 24013965be93Schristos dhcpd.conf file as desired. 24023965be93Schristos [ISC-Bugs #19337] 24033965be93Schristos 24043965be93Schristos- Check the status value when trying to read from a connection to 24053965be93Schristos see if it may have been closed. If it appears closed don't try 24063965be93Schristos to read from it again. This avoids a potential busy-wait like 24073965be93Schristos loop when the peer names are mismatched. 24083965be93Schristos [ISC-Bugs #31231] 24093965be93Schristos 24103965be93Schristos- Remove an unused variable to keep compilers happy. 24113965be93Schristos [ISC-Bugs #31983] 24123965be93Schristos 24133965be93Schristos- Modify test makefiles to be more similar to standard makefiles 24143965be93Schristos and comment out a currently unused test. 24153965be93Schristos [ISC-Bugs #32089] 24163965be93Schristos 24173965be93Schristos- Address static analysis warnings. 24183965be93Schristos [ISC-Bugs #33510] [ISC-Bugs #33511] 24193965be93Schristos 24203965be93Schristos- Silence benign static analysis warnings. 24213965be93Schristos [ISC-Bugs #33428] 24223965be93Schristos 24233965be93Schristos- Add check for 64-bit package for atf. 24243965be93Schristos [ISC-Bugs #32206] 24253965be93Schristos 24263965be93Schristos- Use newer auto* tool packages and turn on RFC_3542 support on Mac OS. 24273965be93Schristos [ISC-Bugs #26303] 24283965be93Schristos 24293965be93Schristos- Remove a variable when it isn't being used due to #ifdefs to avoid 24303965be93Schristos a compiler warning on Solaris using GCC. 24313965be93Schristos [ISC-Bugs #33032] 24323965be93Schristos 24333965be93Schristos- Add a check for too much whitespace in a config or lease file. 24343965be93Schristos Thanks to Paolo Pellegrino for finding the issue and a suggestion 24353965be93Schristos for the patch. 24363965be93Schristos [ISC-Bugs #33351] 24373965be93Schristos 24383965be93Schristos- Fix several problems with using OMAPI to manipulate class and subclass 24393965be93Schristos objects. 24403965be93Schristos [ISC-Bugs #27452] 24413965be93Schristos 24423965be93Schristos- Added a sleep call after killing the old client to allow time 24433965be93Schristos for the sockets to be cleaned. This should allow the -r option 24443965be93Schristos to work more consistently. 24453965be93Schristos [ISC-Bugs #18175] 24463965be93Schristos 24473965be93Schristos- Missing files for ISC DHCP Developer's Guide are now included in 24483965be93Schristos the release tarballs. To generate this documentation, please use 24493965be93Schristos make devel command in doc directory. [ISC-Bugs #32767] 24503965be93Schristos 24513965be93Schristos- Update client script for use with openwrt. 24523965be93Schristos [ISC-Bugs #29843] 24533965be93Schristos 24543965be93Schristos- Fix the socket handling for DHCPv6 clients to allow multiple instances 24553965be93Schristos of a client on a single machine to work properly. Previously only 24563965be93Schristos one client would receive the packets. Thanks to Jiri Popelka at Red Hat 24573965be93Schristos for the bug report and a potential patch. 24583965be93Schristos [ISC-Bugs #34784] 24593965be93Schristos 24603965be93Schristos- Added support for gentle shutdown after signal is received. 24613965be93Schristos [ISC-Bugs #32692] [ISC-Bugs 34945] 24623965be93Schristos 24633965be93Schristos- Enhance the DHCPv6 server logging to include the addresses that are assigned 24643965be93Schristos to the clients. 24653965be93Schristos [ISC-Bugs #26377] 24663965be93Schristos 24673965be93Schristos- Fix an operation in the DDNS code to be a bitwise instead of logical or. 24683965be93Schristos [ISC-Bugs #35138] 24693965be93Schristos 24703965be93Schristos 24713965be93Schristos Changes since 4.1.0 (new features) 24723965be93Schristos 24733965be93Schristos- Failover port configuration can now be left to defaults (port 647) as 24743965be93Schristos described in the -12 revision of the Failover draft (and assigned by 24753965be93Schristos IANA). Thanks in part to a patch from David Cantrell at Red Hat. 24763965be93Schristos 24773965be93Schristos- If configured, dhclient may now transmit to an anycast MAC address, 24783965be93Schristos rather than using a broadcast address. Thanks to a patch from David 24793965be93Schristos Cantrell at Red Hat. 24803965be93Schristos 24813965be93Schristos- Added client support for setting interface MTU and metric, thanks to 24823965be93Schristos Roy "UberLord" Marples <roy@marples.name>. 24833965be93Schristos 24843965be93Schristos- Added client -D option to specify DUID type to send. 24853965be93Schristos 24863965be93Schristos- A new failover configuration parameter has been introduced for those 24873965be93Schristos environments where DHCP servers can be reasonably guaranteed to be 24883965be93Schristos "down" when the failover TCP socket is severed, "auto-partner-down". 24893965be93Schristos This parameter is not generally safe, and by default is disabled, so 24903965be93Schristos please carefully review the documentation of this parameter in the 24913965be93Schristos dhcpd.conf(5) manpage before determining to use it yourself. 24923965be93Schristos 24933965be93Schristos- Added a configuration function, 'gethostname()', which calls the system 24943965be93Schristos function of the same name and presents the results as a data expression. 24953965be93Schristos This function can be used to incorporate the system level hostname of 24963965be93Schristos the system the DHCP software is operating on in responses or queries (such 24973965be93Schristos as including a failover partner's hostname in a dhcp message or binding 24983965be93Schristos scope, or having a DHCP client send any system hostname in the host-name or 24993965be93Schristos FQDN options by default). 25003965be93Schristos 25013965be93Schristos- The dhcp-renewal-time and dhcp-rebinding-time options may now be configured 25023965be93Schristos for DHCPv4 operation and used independently of the dhcp-lease-time 25033965be93Schristos calculations. Invalid renew and rebinding times (e.g., greater than the 25043965be93Schristos determined lease time) are omitted. 25053965be93Schristos 25063965be93Schristos- Processing the DHCP to DNS server transactions in an asynchronous fashion, 25073965be93Schristos the DHCP server or client can now continue with its processing while 25083965be93Schristos awaiting replies from the DNS server. 25093965be93Schristos 25103965be93Schristos- The 'hardware [ethernet|etc] ...;' parameter in host records has been 25113965be93Schristos extended to attempt to match DHCPv6 clients by the last octets of a 25123965be93Schristos DUID-LL or DUID-LLT provided by the client. 25133965be93Schristos 25143965be93Schristos Changes since 4.1.0 (bug fixes) 25153965be93Schristos 25163965be93Schristos- Remove infinite loop in token_print_indent_concat(). 25173965be93Schristos 25183965be93Schristos- Validate the argument to the -p option. 25193965be93Schristos 25203965be93Schristos- The notorious 'option <unknown> ... larger than buffer' log line, 25213965be93Schristos which is seen in some malformed DHCP client packets, was modified. 25223965be93Schristos It now logs the universe name, and does not log the length values 25233965be93Schristos (which are bogus corruption read from the packet anyway). It also 25243965be93Schristos carries a hopefully more useful explanation. 25253965be93Schristos 25263965be93Schristos- Suppress spurious warnings from configure about --datarootdir 25273965be93Schristos 25283965be93Schristos- A bug was fixed that caused the server not to answer some valid Solicit 25293965be93Schristos and Request packets, if the dynamic range covering any requested addresses 25303965be93Schristos had been deleted from configuration. 25313965be93Schristos 25323965be93Schristos- Update the code to deal with GCC 4.3. This included two sets of changes. 25333965be93Schristos The first is to the configuration files to include the use of 25343965be93Schristos AC_USE_SYSTEM_EXTENSIONS. The second is to deal with return values that 25353965be93Schristos were being ignored. 25363965be93Schristos 25373965be93Schristos- The db-time-format option was documented in manpages. 25383965be93Schristos 25393965be93Schristos- Using reserved leases no longer results in 'lease with binding state 25403965be93Schristos free not on its queue' error messages, thanks to a patch from Frode 25413965be93Schristos Nordahl. 25423965be93Schristos 25433965be93Schristos- Fix a build error in dhcrelay, using older versions of gcc with 25443965be93Schristos dhcpv6 disabled. 25453965be93Schristos 25463965be93Schristos- Two uninitialized stack structures are now memset to zero, thanks to a 25473965be93Schristos patch from David Cantrell at Red Hat. 25483965be93Schristos 25493965be93Schristos- Fixed a cosmetic bug where pretty-printing valid domain-search options would 25503965be93Schristos result in an erroneous error log message ('garbage in format string'). 25513965be93Schristos 25523965be93Schristos- A bug in DLPI packet transmission (Solaris, HP/UX) that caused the server 25533965be93Schristos to stop receiving packets is fixed. The same fix also means that the MAC 25543965be93Schristos address will no longer appear 'bogus' on DLPI-based systems. 25553965be93Schristos 25563965be93Schristos- A bug in select handling was discovered where the results of one select() 25573965be93Schristos call were discarded, causing the server to process the next select() call 25583965be93Schristos and use more system calls than required. This has been repaired - the 25593965be93Schristos sockets will be handled after the first return from select(), resulting in 25603965be93Schristos fewer system calls. 25613965be93Schristos 25623965be93Schristos- The update-conflict-detection feature would leave an FQDN updated without 25633965be93Schristos a DHCID (still currently implemented as a TXT RR). This would cause later 25643965be93Schristos expiration or release events to fail to remove the domain name. The feature 25653965be93Schristos now also inserts the client's up to date DHCID record, so records may safely 25663965be93Schristos be removed at expiration or release time. Thanks to a patch submitted by 25673965be93Schristos Christof Chen. 25683965be93Schristos 25693965be93Schristos- Memory leak in the load_balance_mine() function is fixed. This would 25703965be93Schristos leak ~20-30 octets per DHCPDISCOVER packet while failover was in use 25713965be93Schristos and in normal state. 25723965be93Schristos 25733965be93Schristos- Various compilation fixes have been included for the memory related 25743965be93Schristos DEBUG #defines in includes/site.h. 25753965be93Schristos 25763965be93Schristos- Fixed Linux client script 'unary operator expected' errors with DHCPv6. 25773965be93Schristos 25783965be93Schristos- Fixed setting hostname in Linux hosts that require hostname argument 25793965be93Schristos to be double-quoted. Also allow server-provided hostname to 25803965be93Schristos override hostnames 'localhost' and '(none)'. 25813965be93Schristos 25823965be93Schristos- Fixed failover reconnection retry code to continue to retry to reconnect 25833965be93Schristos rather than restarting the listener. 25843965be93Schristos 25853965be93Schristos- Compilation on Solaris with USE_SOCKETS defined in includes/site.h has 25863965be93Schristos been repaired. Other USE_ overrides should work better. 25873965be93Schristos 25883965be93Schristos- A check for the local flavor of IFNAMSIZ had a broken 'else' condition, 25893965be93Schristos that probably still resulted in the correct behaviour (but wouldn't use 25903965be93Schristos a larger defined value provided by the host OS). 25913965be93Schristos 25923965be93Schristos- Fixed a bug where an OMAPI socket disconnection message would not result 25933965be93Schristos in scheduling a failover reconnection, if the link had not negotiated a 25943965be93Schristos failover connect yet (e.g.: connection refused, asynch socket connect() 25953965be93Schristos timeouts). 25963965be93Schristos 25973965be93Schristos- A bug was fixed that caused the 'conflict-done' state to fail to be parsed 25983965be93Schristos in failover state records. 25993965be93Schristos 26003965be93Schristos! A stack overflow vulnerability was fixed in dhclient that could allow 26013965be93Schristos remote attackers to execute arbitrary commands as root on the system, 26023965be93Schristos or simply terminate the client, by providing an over-long subnet-mask 26033965be93Schristos option. CERT VU#410676 - CVE-2009-0692 26043965be93Schristos 26053965be93Schristos- Fixed a bug where relay agent options would never be returned when 26063965be93Schristos processing a DHCPINFORM. 26073965be93Schristos 26083965be93Schristos- Versions 3.0.x syntax with multiple name->code option definitions is now 26093965be93Schristos supported. Note that, similarly to 3.0.x, for by-code lookups only the 26103965be93Schristos last option definition is used. 26113965be93Schristos 26123965be93Schristos- Fixed a bug where a time difference of greater than 60 seconds between a 26133965be93Schristos failover pair could cause the primary to crash on contact with the 26143965be93Schristos secondary. Thanks to a patch from Steinar Haug. 26153965be93Schristos 26163965be93Schristos- Don't look for IPv6 interfaces on Linux when running in DHCPv4 mode. 26173965be93Schristos Thanks to patches from Matthew Newton and David Cantrell. 26183965be93Schristos 26193965be93Schristos- Secondary servers in a failover pair will now perform ddns removals if 26203965be93Schristos they had performed ddns updates on a lease that is expiring, or was 26213965be93Schristos released through the primary. As part of the same fix, stale binding scopes 26223965be93Schristos will now be removed if a change in identity of a lease's active client is 26233965be93Schristos detected, rather than simply if a lease is noticed to have expired (which it 26243965be93Schristos may have expired without a failover server noticing in some situations). 26253965be93Schristos 26263965be93Schristos- A patch supplied by David Cantrell at RedHat was applied that detects 26273965be93Schristos invalid calling parameters given to the ns_name_ntop() function. 26283965be93Schristos Specifically, it detects if the caller passed a pointer and size pair 26293965be93Schristos that causes the pointer to integer-wrap past zero. 26303965be93Schristos 26313965be93Schristos! Fixed a fenceposting bug when a client had two host records configured, 26323965be93Schristos one using 'uid' and the other using 'hardware ethernet'. CVE-2009-1892 26333965be93Schristos 26343965be93Schristos- Fixed the check in the dhcp_interface_signal_handler routine to verify 26353965be93Schristos the existence of the linked signal handler before calling it. 26363965be93Schristos 26373965be93Schristos- Both host and subnet6 configuration groups are now included whether a 26383965be93Schristos fixed-address6 (DHCPv6) is in use or not. Host scoped configuration takes 26393965be93Schristos precedence. This fixes two bugs, one where host scoped configuration 26403965be93Schristos would not be included from a non-fixed-address6 host record, and the equal 26413965be93Schristos and opposite bug where subnet6 scoped configuration would not be used when 26423965be93Schristos over-riding values were not present in a matching fixed-address6 host 26433965be93Schristos configuration. 26443965be93Schristos 26453965be93Schristos- ./configure now checks to ensure the intX_t and u_intX_t types are defined, 26463965be93Schristos correcting a compilation failure when using Sun's compiler. 26473965be93Schristos 26483965be93Schristos- Modified the handling of a connection to avoid releasing the omapi io 26493965be93Schristos object for the connection while it is still in use. One symptom from 26503965be93Schristos this error was a segfault when a failover secondary attempted to connect 26513965be93Schristos to the failover primary if their clocks were not synchronized. 26523965be93Schristos 26533965be93Schristos- Clean up to allow compilation with gcc 2.95.4 on FreeBSD. Remove an 26543965be93Schristos extra semi-colon from common/dns.c and moved setting a variable to NULL 26553965be93Schristos in server/dhcpv6.c to allow the compiler to decide that the variable 26563965be93Schristos was always properly set. 26573965be93Schristos 26583965be93Schristos Changes since 4.1.0b1 26593965be93Schristos 26603965be93Schristos- A missing "else" in dhcrelay.c could have caused an interface not to 26613965be93Schristos be recognized. 26623965be93Schristos 26633965be93Schristos Changes since 4.1.0a2 26643965be93Schristos 26653965be93Schristos- A cosmetic bug in DHCPDECLINE processing was fixed which caused all 26663965be93Schristos successful DHCPDECLINEs to be logged as "not found" rather than 26673965be93Schristos "abandoned". 26683965be93Schristos 26693965be93Schristos- Added configuration file examples for DHCPv6. 26703965be93Schristos 26713965be93Schristos- Some failover debugging #defines have been better defined and some 26723965be93Schristos high frequency messages moved to a deeper debugging symbol. 26733965be93Schristos 26743965be93Schristos- The CLTT parameter in failover is now only updated by client activity, 26753965be93Schristos and not by failover binding updates (taking on the peer's CLTT). 26763965be93Schristos 26773965be93Schristos- Failover BNDUPD messages are now discarded if they conflict with an 26783965be93Schristos update that has been transmitted, but not acknowledged. 26793965be93Schristos 26803965be93Schristos- A bug cleaning up unknown-xxx temporary option definitions was fixed. 26813965be93Schristos 26823965be93Schristos- Delayed-ack is now a compile-time option, compiled out by default. 26833965be93Schristos This feature is simply too experimental for right now, and causes 26843965be93Schristos some problems to some failover installations. We will revisit this 26853965be93Schristos in future releases. 26863965be93Schristos 26873965be93Schristos- The !inet_pton() call in res_mkupdrec was adjusted to '<= 0' as 26883965be93Schristos inet_pton returns either 1, 0, or -1. 26893965be93Schristos 26903965be93Schristos- A dhclient-script for MacOS X has been included, which enables 26913965be93Schristos 'dhclient -6' support. 26923965be93Schristos 26933965be93Schristos- DDNS removal routines were updated so that the DHCID is not removed until 26943965be93Schristos the client has been deprived of all A and AAAA records (not only the last 26953965be93Schristos one of either of those). This resolves a bug where dual stack clients 26963965be93Schristos would not be able to regain their names after either expiration event. 26973965be93Schristos 26983965be93Schristos Changes since 4.1.0a1 26993965be93Schristos 27003965be93Schristos- Corrected list of failover state values in dhcpd man page. 27013965be93Schristos 27023965be93Schristos- Fixed a bug that caused some request types to be logged incorrectly. 27033965be93Schristos 27043965be93Schristos- Clients that sent a parameter request list containing the 27053965be93Schristos routers option before the subnet mask option were receiving 27063965be93Schristos only the latter. Fixed. 27073965be93Schristos 27083965be93Schristos- The server wasn't always sending the FQDN option when it should. 27093965be93Schristos 27103965be93Schristos- A partner-down failover server no longer emits 'peer holds all free leases' 27113965be93Schristos if it is able to newly-allocate one of the peer's leases. 27123965be93Schristos 27133965be93Schristos- Fixed a coredump when adding a class via OMAPI. 27143965be93Schristos 27153965be93Schristos- Check whether files are zero length before trying to parse them. 27163965be93Schristos 27173965be93Schristos- Ari Edelkind's PARANOIA patch has been included and may be compiled in 27183965be93Schristos via two ./configure parameters, --enable-paranoia and 27193965be93Schristos --enable-early-chroot. 27203965be93Schristos 27213965be93Schristos- ./configure was extended to cover many optional build features, such 27223965be93Schristos as failover, server tracing, debugging, and the execute() command. 27233965be93Schristos 27243965be93Schristos- There is now a default 1/4 of a second scheduled delay between delayed 27253965be93Schristos fsync()'s, it can be configured by the max-ack-delay configuration 27263965be93Schristos parameter. 27273965be93Schristos 27283965be93Schristos- A bug was fixed where the length of a hostname was miscalculated, so that 27293965be93Schristos hosts were given odd-looking domain names ("foo.bar.ba.example.com"). 27303965be93Schristos 27313965be93Schristos- Shared network selection should be done from the innermost relay 27323965be93Schristos valid link-address field, rather than the outermost. 27333965be93Schristos 27343965be93Schristos- Prefix pools are attached to shared network scopes. 27353965be93Schristos 27363965be93Schristos- Merged IA_XX related structures. 27373965be93Schristos 27383965be93Schristos- Add DHCPv6 files in configure. 27393965be93Schristos 27403965be93Schristos- A memory leak when using omapi has been fixed. 27413965be93Schristos 27423965be93Schristos- DHCPv6 vendor-class options (VSIO) are now only sent when they appear 27433965be93Schristos on the DHCPv6 ORO. This resolves a bug where VSIO options were placed 27443965be93Schristos in IA_NA encapsulated options fields. 27453965be93Schristos 27463965be93Schristos- Integrated client with stateless, temporary address and prefix delegation 27473965be93Schristos support. 27483965be93Schristos 27493965be93Schristos- A double-dereference in dhclient transmission of DHCPDECLINEs was 27503965be93Schristos repaired. 27513965be93Schristos 27523965be93Schristos- Fix handling of format code 'Z'. 27533965be93Schristos 27543965be93Schristos- Support "-1" argument in DHCPv6. 27553965be93Schristos 27563965be93Schristos- Merge DHCPv6-only "dhcrelay6" into general-purpose "dhcrelay" (use 27573965be93Schristos "-6" option to select DHCPv6 mode). 27583965be93Schristos 27593965be93Schristos- Fix handling of -A and -a flags in dhcrelay; it was failing to expand 27603965be93Schristos packet size as needed to add relay agent options. 27613965be93Schristos 27623965be93Schristos- A bug in subnet6 parsing where options contained in subnet6 clauses would 27633965be93Schristos not be applied to clients addressed within that network was repaired. 27643965be93Schristos 27653965be93Schristos- When configuring a "subnet {}" or "subnet6 {}" without an explicit 27663965be93Schristos shared-network enclosing it, the DHCP software would synthesize a 27673965be93Schristos shared-network to contain the subnet. However, all configuration 27683965be93Schristos parameters within the subnet more intuitively belong "to any client 27693965be93Schristos on that interface", or rather the synthesized shared-network. So, 27703965be93Schristos when a shared-network is synthesized, it is used to contain the 27713965be93Schristos configuration present inside the subnet {} clause. This means that 27723965be93Schristos the configuration will be valid for all clients on that network, not 27733965be93Schristos just those addressed out of the stated subnet. If you intended the 27743965be93Schristos opposite, the workaround is to explicitly configure an empty 27753965be93Schristos shared-network. 27763965be93Schristos 27773965be93Schristos- A bug was fixed where Information-Request processing was not sourcing 27783965be93Schristos configured option values. 27793965be93Schristos 27803965be93Schristos- A warning was added since the DHCPv6 processing software does not yet 27813965be93Schristos support class statements. 27823965be93Schristos 27833965be93Schristos- Compilation warnings on GCC 4.3 relating to bootp source address 27843965be93Schristos selection were repaired. 27853965be93Schristos 27863965be93Schristos- The v6 BSD socket method was updated to use a single UDP BSD socket 27873965be93Schristos no matter how many interfaces are involved, differentiating the 27883965be93Schristos interfaces the packets were received on by the interface index supplied 27893965be93Schristos by the OS. 27903965be93Schristos 27913965be93Schristos- The relay agent no longer listens to the All DHCP Servers Multicast 27923965be93Schristos address. 27933965be93Schristos 27943965be93Schristos- A bug was fixed in data_string_sprintfa() where va_start was only called 27953965be93Schristos once for two invocations of vsprintf() variants. 27963965be93Schristos 27973965be93Schristos- ERO (RFC 4994) server support. 27983965be93Schristos 27993965be93Schristos- Basic and partial DHCPv6 leasequery support. 28003965be93Schristos 28013965be93Schristos- Reliable DHCPv6 release (previous behavior, send release and exit, is 28023965be93Schristos still available with dhclient -6 -1 -r). 28033965be93Schristos 28043965be93Schristos Changes since 4.0.0 (new features) 28053965be93Schristos 28063965be93Schristos- Added DHCPv6 rapid commit support. 28073965be93Schristos 28083965be93Schristos- Added explicit parser support for zero-length DHCP options, such as 28093965be93Schristos rapid-commit, via format code 'Z'. 28103965be93Schristos 28113965be93Schristos- It's now possible to update the "ends" field of a lease with OMAPI. 28123965be93Schristos This is useful if you want not only to release a lease, but also make 28133965be93Schristos it available for reuse right away. Hat tip to Christof Chen. 28143965be93Schristos 28153965be93Schristos- Fixed definition of the iaaddr hash functions to use the correct 28163965be93Schristos functions when referencing and dereferencing memory. 28173965be93Schristos 28183965be93Schristos- Some definitions not in phase with the IANA registry were updated. 28193965be93Schristos 28203965be93Schristos- Allocated interface IDs are better controlled ('u' bit set to zero, 28213965be93Schristos reserved IDs avoided). 28223965be93Schristos 28233965be93Schristos- Unicast options are taken into account only for RENEWs. 28243965be93Schristos 28253965be93Schristos- NoAddrsAvail answers to SOLICITs are always ADVERTISEs even when a SOLICIT 28263965be93Schristos carries a rapid-commit option. 28273965be93Schristos 28283965be93Schristos- Return in place of raise an impossible condition when one tries to release 28293965be93Schristos an empty active lease. 28303965be93Schristos 28313965be93Schristos- Timer granularity is now 1/100s in the DHCPv6 client. 28323965be93Schristos 28333965be93Schristos- The dhclient-script was updated to create a host route for the default 28343965be93Schristos gateway if the supplied subnet mask for an IPv4 address was a /32. This 28353965be93Schristos allows the client to work in 'captive' network environments, where the 28363965be93Schristos operator does not want clients to crosstalk directly. 28373965be93Schristos 28383965be93Schristos- MINUS tokens should be parsable again. 28393965be93Schristos 28403965be93Schristos- Multiple (up to "delayed-ack x;" maximum) DHCPv4 packets are now queued and 28413965be93Schristos released in bursts after single fsync() events when the upper limit is 28423965be93Schristos reached or if the receiving sockets go dry. The practical upshot is 28433965be93Schristos that fsync-coupled server performance is now multiplicitively increased. 28443965be93Schristos The default delayed ack limit is 28. Thanks entirely to a patch from 28453965be93Schristos Christof Chen. 28463965be93Schristos 28473965be93Schristos Changes since 4.0.0 (bug fixes) 28483965be93Schristos 28493965be93Schristos- DHCP now builds on AIX. 28503965be93Schristos 28513965be93Schristos- Exit with warning when DHCPv6-specific statements are used in the 28523965be93Schristos config file but -6 is not specified. 28533965be93Schristos 28543965be93Schristos- Fixed "--version" flag in dhcrelay 28553965be93Schristos 28563965be93Schristos- The 'min-secs' configuration parameter's log message has been updated to 28573965be93Schristos be more helpful. 28583965be93Schristos 28593965be93Schristos- The warning logged when an address range doesn't fit in the subnets 28603965be93Schristos they were declared has been updated to be more helpful and identify the 28613965be93Schristos typo in configuration that created the spanning addresses. 28623965be93Schristos 28633965be93Schristos- A bug in failover pool rebalancing that caused POOLREQ message ping-pongs 28643965be93Schristos was repaired. 28653965be93Schristos 28663965be93Schristos- A flaw in failover pool rebalancing that could cause POOLREQ messages to 28673965be93Schristos be sent outside of the min-balance/max-balance scheduled intervals has 28683965be93Schristos been repaired. 28693965be93Schristos 28703965be93Schristos- A cosmetic bug during potential-conflict recovery that caused the peer's 28713965be93Schristos 'conflict-done' state message to be logged as 'unknown-state' has been 28723965be93Schristos repaired. It is now logged correctly. 28733965be93Schristos 28743965be93Schristos- A bug was fixed where the 'giaddr' may be used to find the client's subnet 28753965be93Schristos rather than its own 'ciaddr'. 28763965be93Schristos 28773965be93Schristos- A log message was introduced to clarify the situation where a failover 28783965be93Schristos 'address' parameter (the server's local address) did not resolve to an 28793965be93Schristos IPv4 address. 28803965be93Schristos 28813965be93Schristos- The minimum site code value was set to 224 in 3.1.0 to track RFC3942. This 28823965be93Schristos broke a lot of legacy site local configurations. The new code in place will 28833965be93Schristos track site local space minimum option codes and logs a warning to encourage 28843965be93Schristos updates and exploration of site local code migration problems. Option 28853965be93Schristos codes less than 128 in site local spaces remain inaccessible. 28863965be93Schristos 28873965be93Schristos- A possible relay agent option bug was repaired where random server 28883965be93Schristos initialization state may have been used to signal the relay agent 28893965be93Schristos information options sub-option code for the 'END' of the option space. 28903965be93Schristos 28913965be93Schristos- Fixes to allow code to compile and run on Solaris 9. 28923965be93Schristos 28933965be93Schristos- Fixes to allow code to compile on Mac OS X Leopard (10.5). 28943965be93Schristos 28953965be93Schristos- When server is configured with options that it overrides, a warning is 28963965be93Schristos issued when the configuration file is read, rather than at the time the 28973965be93Schristos option is overridden. This was important, because the warning was given 28983965be93Schristos every time the option was overridden, which could create a lot of 28993965be93Schristos unnecessary logging. 29003965be93Schristos 29013965be93Schristos- Fixed a compilation problems on platforms that define a value for FDDI, 29023965be93Schristos which conflicts with a dhcp configuration syntax token by the same name. 29033965be93Schristos 29043965be93Schristos- When a failover server suspects it has encountered a peer running a 29053965be93Schristos version 3.0.x failover server, a warning that the failover wire protocol 29063965be93Schristos is incompatible is printed. 29073965be93Schristos 29083965be93Schristos- The failover server no longer issues a floating point error if it encounters 29093965be93Schristos a previously undefined option code. 29103965be93Schristos 29113965be93Schristos- Fix startup error messages to report a missing "subnet6 declaration", rather 29123965be93Schristos than a missing "subnet declaration", when running as a DHCPv6 server. 29133965be93Schristos 29143965be93Schristos- DHCPv6 client timestamp in DUID was based on the year 1970 rather 29153965be93Schristos than the year 2000. 29163965be93Schristos 29173965be93Schristos- Warn when attempting to use a hardware parameter in DHCPv6. 29183965be93Schristos 29193965be93Schristos- DHCPv6 released resources are now marked as released by the client. 29203965be93Schristos 29213965be93Schristos- 'Soft' bindings have no more side-effects. 29223965be93Schristos 29233965be93Schristos Changes since 4.0.0b3 29243965be93Schristos 29253965be93Schristos- The reverse dns name for PTR updates on IPv6 addresses has been fixed to 29263965be93Schristos use ip6.arpa. rather than default to in-addr.arpa and require user 29273965be93Schristos configuration. 29283965be93Schristos 29293965be93Schristos- dhc6_lease_destroy() and dhc6_ia_destroy() now set lease and IA pointers 29303965be93Schristos to NULL after freeing, to prevent subsequent accesses to freed memory. 29313965be93Schristos 29323965be93Schristos- The DHCPv6 server would not send the preference option unless the 29333965be93Schristos client requested it, via the ORO. This has been fixed, so the DHCPv6 29343965be93Schristos server will always send the preference value if it is configured. 29353965be93Schristos 29363965be93Schristos- When addresses were passed as hints to the server in an IA, they were 29373965be93Schristos incorrectly handled, sometimes being treated as an error. Now the 29383965be93Schristos server will treat these as hints and ignore them if it cannot supply 29393965be93Schristos a requested address. 29403965be93Schristos 29413965be93Schristos- If the client had multiple addresses, and one expired (was not renewed 29423965be93Schristos by the server), the client would continue to attempt to renew the same 29433965be93Schristos old address over and over. Now, the client will omit any expired 29443965be93Schristos addresses from future Confirm, Renew, or Rebind messages. 29453965be93Schristos 29463965be93Schristos- dhclient -6 will now select renew/rebind timers based upon the longest 29473965be93Schristos address expiration time rather than the shortest expiration time, in 29483965be93Schristos order to avoid cascading renewals in the event a server elects not to 29493965be93Schristos extend one of multiple IAADDR leases. 29503965be93Schristos 29513965be93Schristos- The server now limits clients that request multiple addresses to one 29523965be93Schristos address per IA by default, which can be adjusted through the 29533965be93Schristos "limit-addrs-per-ia" configuration option. 29543965be93Schristos 29553965be93Schristos- The DHCPv6 client now issues fresh transaction IDs on Renew and Rebind 29563965be93Schristos message exchanges, rather than using the most recent ID. 29573965be93Schristos 29583965be93Schristos- The DHCPv6 server now replies to Information-Request messages. 29593965be93Schristos 29603965be93Schristos- A bug was fixed in the dhclient-script for BSDs to correctly carry error 29613965be93Schristos codes through some conditions. 29623965be93Schristos 29633965be93Schristos- The parsing of some options in the dhclient lease file, in particular 29643965be93Schristos the success DHCPv6 status-code, was fixed. 29653965be93Schristos 29663965be93Schristos- A bug was fixed that caused the DHCPv6 ORO option to be corrupted with 29673965be93Schristos seemingly random values. 29683965be93Schristos 29693965be93Schristos- A reference overleak in DHCPv6 shared network processing was repaired. 29703965be93Schristos 29713965be93Schristos- ./configure now autodetects local database locations rather than trying 29723965be93Schristos to put dhcpd.leases and dhclient.leases in /usr/local/var/db, which no 29733965be93Schristos one ever has. 29743965be93Schristos 29753965be93Schristos- Regression fix for bug where server advertised a IPv6 address in 29763965be93Schristos response to a SOLICIT but would not return the address in response 29773965be93Schristos to a REQUEST. 29783965be93Schristos 29793965be93Schristos- A bug was fixed where the DHCPv6 server puts the NoAddrsAvail status 29803965be93Schristos code in the IA_NA was fixed. The status code now appears in the root 29813965be93Schristos level. 29823965be93Schristos 29833965be93Schristos Changes since 4.0.0b2 29843965be93Schristos 29853965be93Schristos- Clarified error message when lease limit exceeded 29863965be93Schristos 29873965be93Schristos- Relative time may now be used as a qualifier for 'allow' and 'deny' access 29883965be93Schristos control lists. These directives may be used to assist in re-addressing 29893965be93Schristos address pools without having to constantly reconfigure the server. Please 29903965be93Schristos see 'man dhcpd.conf' for more information on allow/deny 'after time' syntax. 29913965be93Schristos Thanks to a patch from Christof Chen. 29923965be93Schristos 29933965be93Schristos- The server will now include multiple IA_NA's and multiple IAADDRs within 29943965be93Schristos them, if advertised by the client. It still only seeks to allocate one 29953965be93Schristos new address. 29963965be93Schristos 29973965be93Schristos Changes since 4.0.0b1 29983965be93Schristos 29993965be93Schristos- Use different paths for PID and lease files when running in DHCPv4 30003965be93Schristos or DHCPv6 mode, so that servers for both protocols can be run 30013965be93Schristos simultaneously on a single interface. 30023965be93Schristos 30033965be93Schristos- Fixed a buffer overflow error which could have allowed a denial 30043965be93Schristos of service under unusual server configurations 30053965be93Schristos 30063965be93Schristos- Eliminated a spurious error message from the client 30073965be93Schristos 30083965be93Schristos- A number of bugs with the internal handling of lease state on the 30093965be93Schristos server have been fixed. Some of these could cause server crashes. 30103965be93Schristos 30113965be93Schristos- The peer_wants_leases() changes pulled up from 3.1.0 were corrected, 30123965be93Schristos 'never used' leases will no longer consistently shift between servers 30133965be93Schristos on every pool rebalance run. 30143965be93Schristos 30153965be93Schristos- sendmsg()/recvmsg() control buffers are now declared in such a way to 30163965be93Schristos ensure they are correctly aligned on all (esp. 64-bit) architectures. 30173965be93Schristos 30183965be93Schristos- The client leasing subsystem was streamlined and corrected to account 30193965be93Schristos more closely for changes in client link attachment selection. 30203965be93Schristos 30213965be93Schristos Changes since 4.0.0a3 30223965be93Schristos 30233965be93Schristos- The DHCP server no longer requires a "ddns-update-style" statement, 30243965be93Schristos and now defaults to "none", which means DNS updates are disabled. 30253965be93Schristos 30263965be93Schristos- Log messages when failover peer names mismatch have been improved to 30273965be93Schristos point out the problem. 30283965be93Schristos 30293965be93Schristos- Bug where server advertised a IPv6 address in response to a SOLICIT 30303965be93Schristos but would not return the address in response to a REQUEST. Thanks to 30313965be93Schristos Dennis Kou for finding the bug. 30323965be93Schristos 30333965be93Schristos- Fixed an error causing the server to lock up on lease expiration, 30343965be93Schristos reported independently by Jothilingam Vasu and Dennis Kou. 30353965be93Schristos 30363965be93Schristos- Fixed a ./configure bug where compile tests were failing due to 30373965be93Schristos "-Werror" (unused variable) rather than the actual test failure. Lead 30383965be93Schristos to inconsistent and unworkable auto-configurations. 30393965be93Schristos 30403965be93Schristos- Compilation with DLPI and -Werror has been repaired. 30413965be93Schristos 30423965be93Schristos- Error in decoding IA_NA option if multiple interfaces are present 30433965be93Schristos fixed by Marcus Goller. 30443965be93Schristos 30453965be93Schristos- DHCPv6 server Confirm message processing has been enhanced - it no 30463965be93Schristos longer replies only to clients with host {} records, it now replies 30473965be93Schristos as directed in RFC3315 section 18.2.2 - that is, to all clients 30483965be93Schristos regardless of the existence of bindings. 30493965be93Schristos 30503965be93Schristos- A core dump during expired lease cleanup has been repaired. 30513965be93Schristos 30523965be93Schristos- DDNS updates state information are now stored in 'binding scopes' that 30533965be93Schristos follow the leases through their lifecycles. This enables DDNS teardowns 30543965be93Schristos on leases that are assigned and expired inbetween a server restart (the 30553965be93Schristos state is recovered from dhcpd.leases). Arbitrary user-specified binding 30563965be93Schristos scopes ('set var = "value";') are not yet supported. 30573965be93Schristos 30583965be93Schristos- Additional compilation problems on HP/UX have been repaired. 30593965be93Schristos 30603965be93Schristos Changes since 4.0.0a2 30613965be93Schristos 30623965be93Schristos- Fix for startup where there are no IPv4 addresses on an interface. 30633965be93Schristos Thanks to Marcus Goller for reporting the bug. 30643965be93Schristos 30653965be93Schristos- Fixed file descriptor leak on listen failure. Thanks to Tom Clark. 30663965be93Schristos 30673965be93Schristos- Bug in server configuration parser caused server to get stuck on 30683965be93Schristos startup for certain bad pool declarations. Thanks to Guillaume 30693965be93Schristos Knispel for the bug report and fix. 30703965be93Schristos 30713965be93Schristos- Code cleaned to remove warnings reported by "gcc -Wall". 30723965be93Schristos 30733965be93Schristos- DHCPv6 is now the default. You can disable DHCPv6 support using the 30743965be93Schristos "--disable-dhcpv6" flag when you run the configure script. 30753965be93Schristos 30763965be93Schristos- An internal database inconsistency bug was repaired where the server 30773965be93Schristos would segfault if a client attempted to renew a lease that had been 30783965be93Schristos loaded from persistent storage. 30793965be93Schristos 30803965be93Schristos- 'request' and 'also request' syntaxes have been added to accommodate 30813965be93Schristos the DHCPv6 client configuration. 'send dhcp6.oro' is no longer 30823965be93Schristos necessary. 30833965be93Schristos 30843965be93Schristos- Bug fixed where configuration file parsing did not work with 30853965be93Schristos zero-length options; this made it impossible to set the 30863965be93Schristos rapid-commit option. 30873965be93Schristos 30883965be93Schristos- Bogus messages about host records with IPv4 fixed-addresses being of 30893965be93Schristos non-128-bits in length were removed. 30903965be93Schristos 30913965be93Schristos Changes since 4.0.0a1 30923965be93Schristos 30933965be93Schristos- Bug in octal parsing fixed. Thanks to Bernd Fuhrmann for the report 30943965be93Schristos and fix. 30953965be93Schristos 30963965be93Schristos- Autoconf now supplies proper flags for Solaris DHCPv6 builds. 30973965be93Schristos 30983965be93Schristos- Fix for parsing error on some IPv6 addresses. 30993965be93Schristos 31003965be93Schristos- Invalid CIDR representation for IPv6 subnets or ranges now checked 31013965be93Schristos for when loading configuration. 31023965be93Schristos 31033965be93Schristos- Compilation on HP/UX has been repaired. The changes should generally 31043965be93Schristos apply to any architecture that supplies SIOCGLIFCONF but does not 31053965be93Schristos use 'struct lifconf' structures to pass values. 31063965be93Schristos 31073965be93Schristos- Two new operators, ~= and ~~, have been integrated to implement 31083965be93Schristos boolean matches by regular expression (such as may be used in 31093965be93Schristos class matching statements). Thanks to a patch by Alexandr S. 31103965be93Schristos Agranovsky, which underwent slight modification. 31113965be93Schristos 31123965be93Schristos- Fix for icmp packets on 64-bit systems (bug introduced in 4.0). 31133965be93Schristos 31143965be93Schristos- A bug was fixed in interface discovery wherein an error identifying 31153965be93Schristos a server-configured interface with no IPv4 addresses would SEGV. 31163965be93Schristos 31173965be93Schristos- Fixed a bug in which write_lease() might report a failure incorrectly 31183965be93Schristos 31193965be93Schristos- Added support for DHCPv6 Release messages 31203965be93Schristos 31213965be93Schristos- Added -x option to dhclient, which triggers dhclient processes 31223965be93Schristos to exit gracefully without releasing leases first 31233965be93Schristos 31243965be93Schristos- All binaries (client, server, relay) now change directories 31253965be93Schristos to / before going into daemon mode, so as not to hold $CWD open 31263965be93Schristos 31273965be93Schristos- Fixed a bug parsing DHCPv6 client-id's in host-identifier statements 31283965be93Schristos 31293965be93Schristos- Fixed a bug with the 'ddns-updates' boolean server configuration 31303965be93Schristos parameter, which caused the server to fail. 31313965be93Schristos 31323965be93Schristos Changes since 4.0.0-20070413 31333965be93Schristos 31343965be93Schristos- Old (expired) leases are now cleaned. 31353965be93Schristos 31363965be93Schristos- IPv6 subnets now have support for arbitrary allocation ranges via 31373965be93Schristos a new 'range6' configuration directive. 31383965be93Schristos 31393965be93Schristos- An obviated option code hash lookup to find D6O_CLIENTID was removed. 31403965be93Schristos 31413965be93Schristos- Corrected some situations where variables might be used without being 31423965be93Schristos initialized. 31433965be93Schristos 31443965be93Schristos- Silenced several other compiler warnings. 31453965be93Schristos 31463965be93Schristos- Include the more standard sys/uio.h rather than rely upon other 31473965be93Schristos header files to include it (fixes a BSD 4.2 compile failure). 31483965be93Schristos 31493965be93Schristos- Duplicate dhclient-script updates for DHCPv6 to all provided scripts. 31503965be93Schristos 31513965be93Schristos- DHCPv4 I/O methods that failed to sense hardware address were corrected. 31523965be93Schristos 31533965be93Schristos- DHCPv4 is now the default (as documented) rather than DHCPv6. The default 31543965be93Schristos was set to DHCPv6 to facilitate ease early development, and forgotten. 31553965be93Schristos 31563965be93Schristos- Corrected a segmentation violation in DHCPv4 socket processing. 31573965be93Schristos 31583965be93Schristos- dhclient will now fork() into the background once it binds to an 31593965be93Schristos IPv6 address, or immediately if the -n flag is supplied. 31603965be93Schristos 31613965be93Schristos- -q is now the default behaviour on dhclient, with -d or -v enabling 31623965be93Schristos non-quiet (stderr logging) mode. 31633965be93Schristos 31643965be93Schristos- Fix documentation of the domain-search atom (quoted, with commas). 31653965be93Schristos 31663965be93Schristos- Document DHCPv6 options presently in the default table. 31673965be93Schristos 31683965be93Schristos- Replaced ./configure shellscripting with GNU Autoconf. 31693965be93Schristos 31703965be93Schristos Changes since 3.1.0 (NEW FEATURES) 31713965be93Schristos 31723965be93Schristos- DHCPv6 Client and Server protocol support. Use '-6' to run the daemons 31733965be93Schristos as v6-only. Use '-4' to run the daemons as v4-only (default. There is 31743965be93Schristos no support currently for both. 31753965be93Schristos 31763965be93Schristos- Server support for multiple IA_NA options, containing at most one 31773965be93Schristos IAADDR option. 31783965be93Schristos 31793965be93Schristos- Client support for one IA_NA option, containing any number of IAADDR 31803965be93Schristos options. 31813965be93Schristos 31823965be93Schristos- Server support for the DHCPv6 Information-request message. 31833965be93Schristos 31843965be93Schristos- Inappropriate unicast DHCPv6 messages sent to the server are now 31853965be93Schristos discarded, and this has rearchitected the IO system slightly. 31863965be93Schristos 31873965be93Schristos- The DHCPv6 server DUID defaults to type 1, is persistently stored in 31883965be93Schristos the leases database, and can be over-ridden (either completely, or by 31893965be93Schristos specifying type 1 or type 2). 31903965be93Schristos 31913965be93Schristos- The server only uses Rapid-Commit if it has been configured with the 31923965be93Schristos Rapid-Commit option and the client requests it. 31933965be93Schristos 31943965be93Schristos- DDNS support. We now update AAAA records in the same place we would 31953965be93Schristos update A records, if we have an IPv6 address. We also generate IP6.ARPA 31963965be93Schristos style names for PTR records if we're dealing with an IPv6 address. Both 31973965be93Schristos A and AAAA updates are done using the same 'fqdn.' virtual option space 31983965be93Schristos (although the DHCPv4 FQDN and DHCPv6 FQDN options are formatted 31993965be93Schristos differently, they both use the same code here). 32003965be93Schristos 32013965be93Schristos- The Linux dhclient-script attempts to set and remove assigned addresses, 32023965be93Schristos and to configure /etc/resolv.conf from nameserver and domain name 32033965be93Schristos configurations. It can be extended to configure other parameters. 32043965be93Schristos 32053965be93Schristos- Initial DHCPv6 lease support. 32063965be93Schristos 32073965be93Schristos- The IO system now tracks all local IP addresses, so that the DHCP 32083965be93Schristos applications (particularly the dhcrelay) can discern between what frames 32093965be93Schristos were transmitted to it, and what frames are being carried through it which 32103965be93Schristos it should not intercept. 32113965be93Schristos 32123965be93Schristos Changes since 3.1.0 (Maintenance) 32133965be93Schristos 32143965be93Schristos- A bug was repaired where MAC Address Affinity for virgin leases always 32153965be93Schristos mapped to the primary. Virgin leases now have an interleaved preference 32163965be93Schristos between primary and secondary. 32173965be93Schristos 32183965be93Schristos- A bug was repaired where MAC Address Affinity for clients with no client 32193965be93Schristos identifier was sometimes mishashed to the peer. Load balancing during 32203965be93Schristos runtime and pool rebalancing were opposing. 32213965be93Schristos 32223965be93Schristos- An assertion in lease counting relating to reserved leases was repaired. 32233965be93Schristos 32243965be93Schristos- The subnet-mask option inclusion now conforms with RFC2132 section 3.3; 32253965be93Schristos it will only appear prior to the routers option if it is present on the 32263965be93Schristos Parameter-Request-List. The subnet-mask option will also only be 32273965be93Schristos included by default (if it is not on the PRL) in response to DISCOVER 32283965be93Schristos or REQUEST messages. 32293965be93Schristos 32303965be93Schristos- The FQDN option is only supplied if the client supplied an FQDN option or 32313965be93Schristos if the FQDN option was explicitly requested on the PRL. 32323965be93Schristos 32333965be93Schristos- Dynamic BOOTP leases are now load balanced in failover. 32343965be93Schristos 32353965be93Schristos Changes since 3.1.0rc1 32363965be93Schristos 32373965be93Schristos- The parse warning that 'deny dynamic bootp;' must be configured for 32383965be93Schristos failover protected subnets was removed. 32393965be93Schristos 32403965be93Schristos Changes since 3.1.0b2 32413965be93Schristos 32423965be93Schristos- Failover rebalance events no longer play ping pong with round errors 32433965be93Schristos (moving leases between free and back to backup where there are an 32443965be93Schristos odd number of leases). 32453965be93Schristos 32463965be93Schristos- The 'pool' log line has been split into two messages, one before the 32473965be93Schristos rebalance run, and one after. 32483965be93Schristos 32493965be93Schristos- Any queued BNDACKs are transmitted before transmitting new BNDUPDs. 32503965be93Schristos This enforces the correct sequence of events for the remote server 32513965be93Schristos processing these messages. 32523965be93Schristos 32533965be93Schristos Changes since 3.1.0b1 32543965be93Schristos 32553965be93Schristos- Fixed a bug that caused OMAPI clients to freeze when opening lease 32563965be93Schristos objects. 32573965be93Schristos 32583965be93Schristos- A new server config option "fqdn-reply" specifies whether the server 32593965be93Schristos should send out option 81 (FQDN). Defaults to "on". If set to "off", 32603965be93Schristos the FQDN option is not sent, even if the client requested it. This is 32613965be93Schristos needed because some clients misbehave otherwise. Thanks to Christof Chen 32623965be93Schristos at Allianz. 32633965be93Schristos 32643965be93Schristos- Allow trace output files (-tf option) to be overwritten, rather than 32653965be93Schristos crashing dhcpd if the file already exists 32663965be93Schristos 32673965be93Schristos- A bug was fixed that caused dhcpd to segfault if a pool was declared 32683965be93Schristos outside the scope of a subnet in dhcpd.conf. 32693965be93Schristos 32703965be93Schristos- Some uninitialized values were repaired in dhcpleasequery.c that 32713965be93Schristos caused the server to abort. 32723965be93Schristos 32733965be93Schristos- A new server config option, 'do-reverse-updates', has been added 32743965be93Schristos which causes the server to abstain from performing updates on PTR 32753965be93Schristos records. Thanks to a patch from Christof Chen at Allianz. 32763965be93Schristos 32773965be93Schristos- A bug was repaired in subencapsulation support, where spaces separated 32783965be93Schristos by empty spaces would not get included. 32793965be93Schristos 32803965be93Schristos- A bug in dhclient was repaired which caused it to send parameter request 32813965be93Schristos lists of 55 bytes in length no matter how long the declared PRL was. 32823965be93Schristos 32833965be93Schristos- 'dhcp.c(3953): non-null pointer' has been repaired. This fixes a flaw 32843965be93Schristos wherein the DHCPv4 server may ignore a configured server-identifier. 32853965be93Schristos 32863965be93Schristos- A flaw in failover startup sequences was repaired that sometimes left 32873965be93Schristos the primary DHCP server's pool rebalance schedules unscheduled. 32883965be93Schristos 32893965be93Schristos- Corrected a flaw that broke encapsulated spaces included due to presence 32903965be93Schristos on the parameter request list. 32913965be93Schristos 32923965be93Schristos Changes since 3.1.0a3 32933965be93Schristos 32943965be93Schristos- Some spelling fixes. 32953965be93Schristos 32963965be93Schristos Changes since 3.1.0a2 32973965be93Schristos 32983965be93Schristos- A bug was fixed where attempting to permit leasequeries results in a 32993965be93Schristos fatal internal error, "Unable to find server option 49". 33003965be93Schristos 33013965be93Schristos- A bug was fixed in dhclient rendering the textual output form of the 33023965be93Schristos domain-search option syntax. 33033965be93Schristos 33043965be93Schristos Changes since 3.1.0a1 33053965be93Schristos 33063965be93Schristos- A bug in the FQDN universe that added FQDN codes to the NWIP universe's 33073965be93Schristos hash table was repaired. 33083965be93Schristos 33093965be93Schristos- The servers now try harder to transmit pending binding updates when 33103965be93Schristos entering normal state. 33113965be93Schristos 33123965be93Schristos- UPDREQ/UPDREQALL handling was optimized - it no longer dequeues and 33133965be93Schristos requeues all pending updates. This should reduce the number of spurious 33143965be93Schristos 'xid mismatch' log messages. 33153965be93Schristos 33163965be93Schristos- An option definition referencing leak was fixed, which resulted in early 33173965be93Schristos termination of dhclient upon the renewal event. 33183965be93Schristos 33193965be93Schristos- Some default hash table sizes were tweaked, some upwards, some downwards. 33203965be93Schristos 3.1.0a1's tables resulted in a reduction in default server memory use. 33213965be93Schristos The new selected values provide more of a zero sum (increasing the size 33223965be93Schristos of tables likely to be populated, decreasing the size of tables unlikely). 33233965be93Schristos 33243965be93Schristos- Lease structures appear in three separate hashes: by IP address, by UID, 33253965be93Schristos and by hardware address. One type of table was used for all three, and 33263965be93Schristos improvements to IP address hashing were applied to all three (so UID and 33273965be93Schristos hardware addresses were treated like 4-byte integers). There are now two 33283965be93Schristos types of tables, and the uid/hw hashes use functions more appropriate 33293965be93Schristos to their needs. 33303965be93Schristos 33313965be93Schristos- The max-lease-misbalance percentage no longer causes scheduled rebalance 33323965be93Schristos runs to be skipped: it still governs the schedule, but every scheduled 33333965be93Schristos run will attempt balance. 33343965be93Schristos 33353965be93Schristos- A segfault bug in recursive encapsulation support has been corrected. 33363965be93Schristos 33373965be93Schristos Changes since 3.0 (New Features) 33383965be93Schristos 33393965be93Schristos- A workaround for certain STSN servers that send a mangled domain-name 33403965be93Schristos option was introduced for dhclient. The client will now accept corrupted 33413965be93Schristos server responses, if they contain a valid DHCP_MESSAGE_TYPE (OFFER, ACK, 33423965be93Schristos or NAK). The server will continue to not accept corrupt client packets. 33433965be93Schristos 33443965be93Schristos- Support for 'reserved' (pseudo-static) and BOOTP leases via failover 33453965be93Schristos was introduced. 33463965be93Schristos 33473965be93Schristos- Support for adding, removing, and managing class and subclass statements 33483965be93Schristos via OMAPI. 33493965be93Schristos 33503965be93Schristos- The failover implementation was updated to comply with revision 12 of 33513965be93Schristos the protocol draft. 33523965be93Schristos 33533965be93Schristos- 'make install' now creates the initial zero-length dhcpd.leases file if 33543965be93Schristos one does not already exist on the system. 33553965be93Schristos 33563965be93Schristos- RFC3942 compliance, site-local option spaces start at 224 now, not 128. 33573965be93Schristos 33583965be93Schristos- The Load Balance Algorithm was misimplemented. The current implementation 33593965be93Schristos matches RFC 3074. 33603965be93Schristos 33613965be93Schristos- lcase() and ucase() configuration expressions have been added which adjust 33623965be93Schristos their arguments from upper to lower and lower to upper cases respectively. 33633965be93Schristos Thanks to a patch from Albert Herranz. 33643965be93Schristos 33653965be93Schristos- The dhclient 'reject ...;' statement, which rejects leases given by named 33663965be93Schristos server-identifiers, now permits address ranges to be specified in CIDR 33673965be93Schristos notation. Thanks to a patch from David Boyce. 33683965be93Schristos 33693965be93Schristos- The subnet-mask option is now supplied by default, but at lowest 33703965be93Schristos priority. This helps a small minority of clients that provide parameter 33713965be93Schristos request lists, but do not list the subnet-mask option because they were 33723965be93Schristos designed to interoperate with a server that behaves in this manner. 33733965be93Schristos 33743965be93Schristos- The FQDN option is similarly supplied even if it does not appear on the 33753965be93Schristos parameter request list, but not to the exclusion of options that do 33763965be93Schristos appear at the parameter request list. Up until now it had ultimate 33773965be93Schristos priority over the client's parameter request list. 33783965be93Schristos 33793965be93Schristos- Varying option space code and length bit widths (8/16/32) are now 33803965be93Schristos supported. This is a milestone in achieving RFC 3925 "VIVSO" and 33813965be93Schristos DHCPv6 support. 33823965be93Schristos 33833965be93Schristos- A new common (server or client) option, 'db-time-format local;', has 33843965be93Schristos been added which prints the local time in /var/db/dhcpd.leases rather 33853965be93Schristos than UTC. Thanks to a patch from Ken Lalonde. 33863965be93Schristos 33873965be93Schristos- Some patches to improve DHCP Server startup speed from Andrew Matheson 33883965be93Schristos have been incorporated. 33893965be93Schristos 33903965be93Schristos- Failover pairs now implement 'MAC Affinity' on leases moving from the 33913965be93Schristos active to free states. Leases that belonged to the failover secondary 33923965be93Schristos are moved to BACKUP state rather than FREE upon exiting EXPIRED state. 33933965be93Schristos If lease rebalancing must move leases, it tries first to move leases 33943965be93Schristos that belong to the peer in need. 33953965be93Schristos 33963965be93Schristos- The server no longer sends POOLREQ messages unless the pool is severely 33973965be93Schristos misbalanced in the peer's favor (see 'man dhcpd.conf' for more details). 33983965be93Schristos 33993965be93Schristos- Pool rebalance events no longer happen upon successfully allocating a 34003965be93Schristos lease. Instead, they happen on a schedule. See 'man dhcpd.conf' for the 34013965be93Schristos min-balance and max-balance statements for more information. 34023965be93Schristos 34033965be93Schristos- The DHCP Relay Agent Information Option / Link Selection Sub-Option 34043965be93Schristos is now supported. (See RFC3527 for details). 34053965be93Schristos 34063965be93Schristos- A new DDNS related server option, update-conflict-detection, has been 34073965be93Schristos added. If this option is enabled, dhcpd will perform normal DHCID 34083965be93Schristos conflict resolution (the default). If this option is disabled, it will 34093965be93Schristos instead trust the assigned name implicitly (removing any other bindings 34103965be93Schristos on that name). This option has not been made available in dhclient. 34113965be93Schristos 34123965be93Schristos- In those cases where the DHCP software manufactures an IP header (to 34133965be93Schristos transmit via bpf, lpf, etc), the IP TTL the software selects has been 34143965be93Schristos increased from 16 to 128. This is intended to match Microsoft Windows 34153965be93Schristos DHCP Client behaviour, to increase compatibility. 34163965be93Schristos 34173965be93Schristos- 'ignore client-updates;' now has behaviour that is different from 34183965be93Schristos 'deny client-updates;'. The client's request is not truly ignored, 34193965be93Schristos rather it is encouraged. Should this value be configured, the server 34203965be93Schristos updates DNS as though client-updates were set to 'deny'. That is, it 34213965be93Schristos enters into DNS whatever it is configured to do already, provided it is 34223965be93Schristos configured to. Then it sends a response to the client that lets the 34233965be93Schristos client believe it is performing client updates (which it will), probably 34243965be93Schristos for a different name. In essence, this lets the client do as it will, 34253965be93Schristos ignoring this aspect of their request. 34263965be93Schristos 34273965be93Schristos- Support for compressed 'domain name list' style DHCP option contents, and 34283965be93Schristos in particular the domain search option (#119) was added. 34293965be93Schristos 34303965be93Schristos- The DHCP LEASEQUERY protocol as defined in RFC4388 is now implemented. 34313965be93Schristos LEASEQUERY lets you query the DHCP server for information about a lease, 34323965be93Schristos using either an IP address, MAC address, or client identifier. Thanks 34333965be93Schristos to a patch from Justin Haddad. 34343965be93Schristos 34353965be93Schristos- DHCPD is now RFC2131 section 4.1 compliant (broadcast to all-ones ip and 34363965be93Schristos ethernet mac address) on the SCO platform specifically without any strange 34373965be93Schristos ifconfig hacks. Many thanks go to the Kroger Co. for donating the 34383965be93Schristos hardware and funding the development. 34393965be93Schristos 34403965be93Schristos- A new common configuration executable statement, execute(), has been 34413965be93Schristos added. This permits dhcpd or dhclient to execute a named external 34423965be93Schristos program with command line arguments specified from other configuration 34433965be93Schristos language. Thanks to a patch written by Mattias Ronnblom, gotten to us 34443965be93Schristos via Robin Breathe. 34453965be93Schristos 34463965be93Schristos- A new dhcp server option 'adaptive-lease-time-threshold' has been added 34473965be93Schristos which causes the server to substantially reduce lease-times if there are 34483965be93Schristos few (configured percentage) remaining leases. Thanks to a patch submitted 34493965be93Schristos from Christof Chen. 34503965be93Schristos 34513965be93Schristos- Encapsulated option spaces within encapsulated option spaces is now 34523965be93Schristos formally supported. 34533965be93Schristos 34543965be93Schristos Changes since 3.0.6rc1 34553965be93Schristos 34563965be93Schristos- supersede_lease() now requeues leases in their respective hardware 34573965be93Schristos address hash bucket. This mirrors client identifier behaviour. 34583965be93Schristos 34593965be93Schristos Changes since 3.0.5 34603965be93Schristos 34613965be93Schristos- Assorted fixes for broken network devices: Packet length is now 34623965be93Schristos determined from the IP header length field to finally calculate the 34633965be93Schristos UDP payload length, because some NIC drivers return more data than 34643965be93Schristos they actually received. 34653965be93Schristos 34663965be93Schristos- UDP packets are now stored in aligned data structures. 34673965be93Schristos 34683965be93Schristos- A logic error in omapi interface code was repaired that might result in 34693965be93Schristos incorrectly indicating 'up' state when any flags were set, rather than 34703965be93Schristos specifically the INTERFACE_REQUESTED flag. Thanks to a patch from 34713965be93Schristos Jochen Voss which got to us via Andrew Pollock at Debian. 34723965be93Schristos 34733965be93Schristos- A reference leak on binding scopes set by ddns updates was repaired. 34743965be93Schristos 34753965be93Schristos- A memory leak in the minires_nsendsigned() function call was repaired. 34763965be93Schristos Effectively, this leaked ~176 bytes per DDNS update. 34773965be93Schristos 34783965be93Schristos- In the case where an "L2" DHCP Relay Agent (one that does not set giaddr) 34793965be93Schristos was directly attached to the same broadcast domain as the DHCP server, 34803965be93Schristos the RFC3046 relay agent information option was not being returned to the 34813965be93Schristos relay in the server's replies. This was fixed; the dhcp server no longer 34823965be93Schristos requires the giaddr to reply with relay agent information. Note that 34833965be93Schristos this also improves compatibility with L2 devices that "intercept" DHCP 34843965be93Schristos packets and expect relay agent information even in unicast (renewal) 34853965be93Schristos replies. Thanks to a patch from Pekka Silvonen. 34863965be93Schristos 34873965be93Schristos- A bug was fixed where the BOOTP header 'sname' field had a value, the 34883965be93Schristos copy written to persistent storage was actually the contents of the 34893965be93Schristos 'file' field. 34903965be93Schristos 34913965be93Schristos- A bug was fixed where the nwip virtual option space was referencing 34923965be93Schristos the fqdn option's virtual option space's option cache. 34933965be93Schristos 34943965be93Schristos- Timestamp parsing errors that indicated missing "minutes" fields rather 34953965be93Schristos than the actually missing "seconds" fields have been repaired thanks to 34963965be93Schristos a patch from Kevin Steves. 34973965be93Schristos 34983965be93Schristos- A grammar error in the dhclient.8 manpage was repaired thanks to a patch 34993965be93Schristos from Chris Wagner. 35003965be93Schristos 35013965be93Schristos- Several spelling typos were repaired, and some cross-references to other 35023965be93Schristos relevant documents were included in the manpages, thanks to a patch 35033965be93Schristos by Andrew Pollock which got to us via Tomas Pospisek. 35043965be93Schristos 35053965be93Schristos- Some bugs were fixed in the 'emergency relay agent options hologram' 35063965be93Schristos which is used to retain relay agent option contents from when the 35073965be93Schristos client was in INIT or REBIND states. This should solve problems where 35083965be93Schristos relay agent options were not echoed from the server, even when giaddr 35093965be93Schristos was set. 35103965be93Schristos 35113965be93Schristos- dhclient now closes its descriptor to dhclient.leases prior to executing 35123965be93Schristos dhclient-script. Thanks to a patch from Tomas Pospisek. 35133965be93Schristos 35143965be93Schristos- The server's "by client-id" and "by hardware address" hash table lists 35153965be93Schristos are now sorted according to the preference to re-allocate that lease to 35163965be93Schristos returning clients. This should eliminate pool starvation problems 35173965be93Schristos arising when "INIT" clients were given new leases rather than presently 35183965be93Schristos active ones. 35193965be93Schristos 35203965be93Schristos Changes since 3.0.5rc1 35213965be93Schristos 35223965be93Schristos- A bug was repaired in fixes to the dhclient, which sought to run the 35233965be93Schristos dhclient-script with the 'EXPIRE' state should it receive a NAK in 35243965be93Schristos response to a REQUEST. The client now iterates the PREINIT state 35253965be93Schristos after the EXPIRE state, so that interfaces that might be configured 35263965be93Schristos 'down' can be brought back 'up' and initialized. 35273965be93Schristos 35283965be93Schristos- DHCPINFORM handling for clients that properly set ciaddr and come to the 35293965be93Schristos server via a relay aget has been repaired. 35303965be93Schristos 35313965be93Schristos Changes since 3.0.4 35323965be93Schristos 35333965be93Schristos- A warning that host statements declared within subnet or shared-network 35343965be93Schristos scopes are actually global has been added. 35353965be93Schristos 35363965be93Schristos- The default minimum lease time (if min-lease-time was not specified) 35373965be93Schristos was raised from 0 to 300. 0 is not thought to be sensible, and is 35383965be93Schristos known to be damaging. 35393965be93Schristos 35403965be93Schristos- Added additional fatal error sanity checks surrounding lease binding 35413965be93Schristos state count calculations (free/active counts used for failover pool 35423965be93Schristos balancing). 35433965be93Schristos 35443965be93Schristos- Some time value size fixes in 3.0.4 brought on from FreeBSD /usr/ports were 35453965be93Schristos misapplied to server values rather than client values. The server no longer 35463965be93Schristos advertises 8-byte lease-time options when on 64-bit platforms. 35473965be93Schristos 35483965be93Schristos- A bug where leases not in ACTIVE state would get billed to billed classes 35493965be93Schristos (classes with lease limitations) was fixed. Non-active leases OFFERed 35503965be93Schristos to clients are no longer billed (but billing is checked before offering). 35513965be93Schristos 35523965be93Schristos- The dhcpd.conf.5 manpage was updated in regard to the ddns-domainname 35533965be93Schristos configuration option - the default configuration and results should be 35543965be93Schristos more clear now. 35553965be93Schristos 35563965be93Schristos- If the dhclient were to receive a DHCPNAK while it was in the RENEW 35573965be93Schristos state (and consequently, had an active, 'bound' address and related 35583965be93Schristos configuration options), it would fail to 'tear down' this information 35593965be93Schristos before proceeding into INIT state. dhclient now iterates the dhclient- 35603965be93Schristos script with the 'EXPIRE' action to cause these teardowns prior to entering 35613965be93Schristos INIT state. Thanks to a patch from Chris Zimmerman. 35623965be93Schristos 35633965be93Schristos- The omapi.1 manpage had some formatting errors repaired thanks to a patch 35643965be93Schristos from Yoshihiko Sarumaru. 35653965be93Schristos 35663965be93Schristos- A few lines of code that were failover-specific were moved within 35673965be93Schristos #if defined() clauses so that compilation without failover could be 35683965be93Schristos made possible. 35693965be93Schristos 35703965be93Schristos- The log message emitted when the 'leased-address' value was not available 35713965be93Schristos in dhcpd.conf "executable statements" has been updated to be more helpful. 35723965be93Schristos Manpage information for this value has also been updated. 35733965be93Schristos 35743965be93Schristos- Abandoned or dissociated (err condition) leases now remove any related 35753965be93Schristos dynamic dns bindings. Thanks to a patch from Patrick Schoo. 35763965be93Schristos 35773965be93Schristos- Attempting to write a new lease file to replace a corrupt (due to 35783965be93Schristos encountering non-retryable errors during writing) lease file should 35793965be93Schristos no longer result in an infinite recursion. 35803965be93Schristos 35813965be93Schristos- Host declaration hardware addresses and client identifiers may only be 35823965be93Schristos configured once. dhcpd will now fail to load config files that specify 35833965be93Schristos multiple identifiers (previous versions would silently over-ride the 35843965be93Schristos value with the later configured value). 35853965be93Schristos 35863965be93Schristos- Several option codes that have been allocated since our last release 35873965be93Schristos have been named and documented. 35883965be93Schristos 35893965be93Schristos- Option names of the form "unknown-123" have been removed from the in- 35903965be93Schristos memory hash tables. In order to support options of these names that 35913965be93Schristos may appear in dhclient.leases or similar in previous versions, the 35923965be93Schristos parser will now find the new option code definition, or mock up a 35933965be93Schristos generic option code definition. This should result in a smooth 35943965be93Schristos transition from one name to the other, as the new name is used to 35953965be93Schristos write new output. 35963965be93Schristos 35973965be93Schristos Changes since 3.0.4rc1 35983965be93Schristos 35993965be93Schristos- The dhcp-options.5 manpage was updated to correct indentation errors 36003965be93Schristos thanks to a patch from Jean Delvare. 36013965be93Schristos 36023965be93Schristos Changes since 3.0.4b3 36033965be93Schristos 36043965be93Schristos- Some manual pages were clarified pursuant to discussion on the dhcp-server 36053965be93Schristos mailing list. 36063965be93Schristos 36073965be93Schristos Changes since 3.0.4b2 36083965be93Schristos 36093965be93Schristos- Null-termination sensing for certain clients that unfortunately require 36103965be93Schristos it in DHCPINFORM processing was repaired. 36113965be93Schristos 36123965be93Schristos- The host-name option and a few others were moved from "X" format to "t" 36133965be93Schristos format to be compatible with new NULL handling functions. 36143965be93Schristos 36153965be93Schristos- DHCPINFORM processing is a little more careful about return addressing 36163965be93Schristos its responses, or if responding via a relay. The INFORM related 36173965be93Schristos messages also log the 'effective client ip address' rather than the 36183965be93Schristos client's supplied ciaddr (since some clients produce null ciaddrs). 36193965be93Schristos 36203965be93Schristos- The server was inappropriately sending leases to the RESET state in the 36213965be93Schristos event that multiple active leases were found to match a singly-identified 36223965be93Schristos client. This was changed to RELEASED (by accepting a different, ACTIVE 36233965be93Schristos binding, the client is implicitly releasing its lease). This repairs a 36243965be93Schristos bug wherein secondary servers in failover pairs detecting this condition 36253965be93Schristos move leases to RESET, and primaries refuse to accept that state 36263965be93Schristos transition (properly). 36273965be93Schristos 36283965be93Schristos- The memset-after-dmalloc() changes made in 3.0.4b1 have been backed out. 36293965be93Schristos 36303965be93Schristos Changes since 3.0.4b1 36313965be93Schristos 36323965be93Schristos- Command line parsing in omshell was repaired - it no longer closes 36333965be93Schristos STDIN after reading one line. 36343965be93Schristos 36353965be93Schristos- The resolver library no longer closes the /etc/resolv.conf file 36363965be93Schristos descriptor it opened twice. 36373965be93Schristos 36383965be93Schristos- Changes to trailing NULL removal in 't' option-atoms has been rethought, 36393965be93Schristos it now includes 'd' (domain name) types, and tries hard not to rewind an 36403965be93Schristos option beyond the start of the text field it is un-terminating. 36413965be93Schristos 36423965be93Schristos Changes since 3.0.3 36433965be93Schristos 36443965be93Schristos- A DDNS update handling function was misusing the DNS error codes, rather 36453965be93Schristos than the internal generic result enumeration. The result is a confusing 36463965be93Schristos syslog line, logging the wrong condition. 36473965be93Schristos 36483965be93Schristos- The DHCP Server was not checking pool balance in the case where it brought 36493965be93Schristos a non-ACTIVE lease out of storage for a client that was returning to use 36503965be93Schristos a lease it once had long ago, and had since expired. 36513965be93Schristos 36523965be93Schristos- Failover peers no longer bother to look for free leases to allocate when 36533965be93Schristos they already found the client's ACTIVE lease. DISCOVERs are load balanced 36543965be93Schristos whether freely-allocated or not, unless the server doubts the peer has 36553965be93Schristos leases to allocate. 36563965be93Schristos 36573965be93Schristos- Fixed a bug in dhcrelay agent addition code that suppressed trailing 36583965be93Schristos PAD options - it was suppressing only one trailing PAD option, rather 36593965be93Schristos than the entire block of them. 36603965be93Schristos 36613965be93Schristos! Fixed some unlikely overlapping-region memcpy() bugs in dhcrelay agent 36623965be93Schristos option addition and stripping code. Added a few sanity checks. Although 36633965be93Schristos highly improbable, due to requiring the reception of a DHCP datagram well 36643965be93Schristos in excess of all known to be used physical MTU limitations, it is possible 36653965be93Schristos this may have been used in a stack overflow security vulnerability. Thanks 36663965be93Schristos to a patch from infamous42md. 36673965be93Schristos 36683965be93Schristos! Added some sanity checks to OMAPI connection/authentication code. 36693965be93Schristos Although highly improbable, due to having to deliver in excess of 2^32 36703965be93Schristos bytes of data via the OMAPI channel, not to mention requiring dhcpd to 36713965be93Schristos be able to malloc() a memory region 2^32 bytes in size, it was possible 36723965be93Schristos this might have resulted in a heap overflow security vulnerability. 36733965be93Schristos Thanks to a patch from infamous42md. 36743965be93Schristos 36753965be93Schristos- dmalloc() memset()'s the non-debug (data) portion of the allocated 36763965be93Schristos memory to zero. Code that memset()'s the result returned by dmalloc() to 36773965be93Schristos zero is redundant. These redundancies were removed. 36783965be93Schristos 36793965be93Schristos- Some type declaration corrections to u_int16_t were made in common/tr.c 36803965be93Schristos (Token Ring support) thanks to a patch from Jason Vas Dias at Red Hat. 36813965be93Schristos 36823965be93Schristos- A failover bug that was allowing leases that EXPIRED or were RELEASED 36833965be93Schristos where tsfp and tstp are identical timestamps to languish in these 36843965be93Schristos transitional states has been repaired. As a side effect, lease 36853965be93Schristos databases should be kept more consistent overall, not just for these 36863965be93Schristos transitional states. 36873965be93Schristos 36883965be93Schristos- If the lease db is deleted out from under the daemon, and it moves to rewrite 36893965be93Schristos the db, it will go ahead with the operation and move the new db into place 36903965be93Schristos once it detects the old db does not exist. 36913965be93Schristos 36923965be93Schristos- dhclient now ignores IRDA, SIT, and IEEE1394 network interfaces, as it 36933965be93Schristos is either nonsensical or (in the case of IEEE1394) is not known to support 36943965be93Schristos these interfaces. Thanks to Marius Gedminas and Andrew Pollock of Debian. 36953965be93Schristos 36963965be93Schristos- Some previously undocumented reasons for dhclient-script invoking has 36973965be93Schristos been documented in the dhclient-script.8 manpage. 36983965be93Schristos 36993965be93Schristos- Failover potential expiry calculations (TSTP) have been corrected. Results 37003965be93Schristos should be substantially more consistent, and proper given the constraints. 37013965be93Schristos 37023965be93Schristos- Adjusted lease state validation checks in potential-conflict, to 37033965be93Schristos account for possible clock skew similarly to normal state, and several 37043965be93Schristos previously illegal transitions were made legal (ex: active->released). 37053965be93Schristos 37063965be93Schristos- An impossible sanity check was removed from omapi/buffer.c, thanks to a 37073965be93Schristos patch from 'infamous42md'. 37083965be93Schristos 37093965be93Schristos- An OMAPI host/network byte order problem in lease time values has been 37103965be93Schristos repaired. 37113965be93Schristos 37123965be93Schristos- Several minor bugs, largely relating to treating 8-byte time values as 37133965be93Schristos 4-byte entities, have been repaired after careful review of the FreeBSD 37143965be93Schristos ports collection's patch set. Thanks to the nameless entities who have 37153965be93Schristos contributed to the FreeBSD ports. 37163965be93Schristos 37173965be93Schristos- When writing a trace file, the file is now created with permissions 0600, 37183965be93Schristos to help administrators avoid accidentally publicising sensitive config 37193965be93Schristos data. 37203965be93Schristos 37213965be93Schristos- The calculation of the maximum size of DHCP packets no longer includes 37223965be93Schristos Ethernet framing overhead. The result is that the 'Maximum Message 37233965be93Schristos Size' option advertised by clients, or the default value 576, is no 37243965be93Schristos longer reduced by 14 bytes, and instead directly reflects the IP level 37253965be93Schristos MTU (and the default, minimum allowed IP MTU of 576). 37263965be93Schristos 37273965be93Schristos- The special status of RELEASED/EXPIRED/RESET leases when a server 37283965be93Schristos is operating in partner-down was fixed. It no longer requires a 37293965be93Schristos lease be twice the MCLT beyond STOS to 'reallocate', and the expiry 37303965be93Schristos event to turn these into FREE leases without peer acknowledgement 37313965be93Schristos (after STOS+MCLT) has been repaired. 37323965be93Schristos 37333965be93Schristos- Compilation on older Solaris systems (lacking /usr/include/sys/int_types.h) 37343965be93Schristos has been repaired. 37353965be93Schristos 37363965be93Schristos- "append"ing a string onto the end of a "t" type option (such as the 37373965be93Schristos domain-name field) that had been improperly NULL-terminated by the 37383965be93Schristos DHCP server will no longer result in a truncated string containing 37393965be93Schristos only the option from the server, and not the expected appended value. 37403965be93Schristos Thanks to a patch from Jason Vas Dias at Red Hat. 37413965be93Schristos 37423965be93Schristos- File handlers on configuration state (config files and lease dbs) should 37433965be93Schristos be treated consistently, regardless of whether TRACING is defined or not. 37443965be93Schristos 37453965be93Schristos- The Linux build environment has had some minor improvements - better 37463965be93Schristos sensing of 64-bit pointer sizes (only used for establishing an icmp_id), 37473965be93Schristos and corrections to #if operators regarding LINUX_MAJOR should it ever 37483965be93Schristos move to 3.[01].x. 37493965be93Schristos 37503965be93Schristos- The server now tries harder to survive the condition where it is unable 37513965be93Schristos to open a new lease file to rewrite the lease state database. 37523965be93Schristos 37533965be93Schristos Changes since 3.0.3b3 37543965be93Schristos 37553965be93Schristos- dhclient.conf documentation for interface {} was updated to reflect recent 37563965be93Schristos discussion on the dhcp-hackers mailing list. 37573965be93Schristos 37583965be93Schristos- In response to reports that the software does not compile on GCC 4.0.0, 37593965be93Schristos -Werror was removed from Makefile.conf for all platforms that used it. 37603965be93Schristos We will address the true problem in a future release; this is a temporary 37613965be93Schristos workaround. 37623965be93Schristos 37633965be93Schristos Changes since 3.0.3b2 37643965be93Schristos 37653965be93Schristos- An error in code changes introduced in 3.0.3b2 was corrected, which caused 37663965be93Schristos static BOOTP clients to receive random addresses. 37673965be93Schristos 37683965be93Schristos Changes since 3.0.3b1 37693965be93Schristos 37703965be93Schristos- A bug was fixed in BOOTPREQUEST handling code wherein stale references to 37713965be93Schristos host records would be left behind on leases that were not allocated to the 37723965be93Schristos client currently booting (eg in the case where the host was denied booting). 37733965be93Schristos 37743965be93Schristos- The dhcpd.conf.5 manpage was updated to be more clear in regards to 37753965be93Schristos multiple host declarations (thanks to Vincent McIntyre). 'Interim' style 37763965be93Schristos dynamic updates were also retouched. 37773965be93Schristos 37783965be93Schristos Changes since 3.0.2 37793965be93Schristos 37803965be93Schristos- A bug was fixed where a server might load balance a DHCP REQUEST to its 37813965be93Schristos peer after already choosing not to load balance the preceding DISCOVER. 37823965be93Schristos The peer cannot allocate the originating server's lease. 37833965be93Schristos 37843965be93Schristos- In the case where a secondary server lost its stable storage while the 37853965be93Schristos primary was still in communications-interrupted, and came back online, 37863965be93Schristos the lease databases would not be fully transferred to the secondary. 37873965be93Schristos This was due to the secondary errantly sending an extra UPDREQ message 37883965be93Schristos when the primary made its state transition to PARTNER-DOWN known. 37893965be93Schristos 37903965be93Schristos- The package will now compile cleanly in gcc 3.3 and 3.4. As a side effect, 37913965be93Schristos lease structures will be 9 bytes smaller on all platforms. Thanks to 37923965be93Schristos Jason Vas Dias at Red Hat. 37933965be93Schristos 37943965be93Schristos- Interface discovery code in DISCOVER_UNCONFIGURED mode is now 37953965be93Schristos properly restricted to only detecting broadcast interfaces. Thanks 37963965be93Schristos to a patch from Jason Vas Dias at Red Hat. 37973965be93Schristos 37983965be93Schristos- decode_udp_ip_header was changed so that the IP address was copied out 37993965be93Schristos to a variable, rather than referenced by a pointer. This enforces 4-byte 38003965be93Schristos alignment of the 32-bit IP address value. Thanks to a patch from Dr. 38013965be93Schristos Peter Poeml. 38023965be93Schristos 38033965be93Schristos- An incorrect log message was corrected thanks to a patch from 38043965be93Schristos Dr. Peter Poeml. 38053965be93Schristos 38063965be93Schristos- A bug in DDNS was repaired, where if the server's first DDNS action was 38073965be93Schristos a DDNS removal rather than a DDNS update, the resolver library's 38083965be93Schristos retransmit timer and retry timer was set to the default, implying a 38093965be93Schristos 15 second timeout interval. Which is a little excessive in a synchronous, 38103965be93Schristos single-threaded system. In all cases, ISC DHCP should now hold fast to 38113965be93Schristos a 1-second timeout, trying only once. 38123965be93Schristos 38133965be93Schristos- The siaddr field was being improperly set to the server-identifier when 38143965be93Schristos responding to DHCP messages. RFC2131 clarified the siaddr field as 38153965be93Schristos meaning the 'next server in the bootstrap process', eg a tftp server. 38163965be93Schristos The siaddr field is now left zeroed unless next-server is configured. 38173965be93Schristos 38183965be93Schristos- mockup_lease() could have returned in an error condition (or in the 38193965be93Schristos condition where no fixed-address was found matching the shared 38203965be93Schristos network) with stale references to a host record. This is probably not 38213965be93Schristos a memory leak since host records generally never die anyway. 38223965be93Schristos 38233965be93Schristos- A bug was repaired where failover servers would let stale client identifiers 38243965be93Schristos persist on leases that were reallocated to new clients not sending an id. 38253965be93Schristos 38263965be93Schristos- Binding scopes ("set var = value;") are now removed from leases allocated 38273965be93Schristos by failover peers if the lease had expired. This should help reduce the 38283965be93Schristos number of stale binding scopes on leases. 38293965be93Schristos 38303965be93Schristos- A small memory leak was closed involving client identifiers larger than 38313965be93Schristos 7 bytes, and failover. 38323965be93Schristos 38333965be93Schristos- Configuring a subnet in dhcpd.conf with a subnet mask of 32 bits might 38343965be93Schristos cause an internal function to overflow heap. Thanks to Jason Vas Dias 38353965be93Schristos at Red Hat. 38363965be93Schristos 38373965be93Schristos- Some inconsistencies in treating numbers that the lexer parsed as 'NUMBER' 38383965be93Schristos or 'NUMBER_OR_NAME' was repaired. Hexadecimal parsing is affected, and 38393965be93Schristos should work better. 38403965be93Schristos 38413965be93Schristos- In several cases, parse warnings were being issued before the lexical 38423965be93Schristos token had been advanced to the token whose value was causing an error... 38433965be93Schristos causing parse warnings to claim the problem is on the wrong token. 38443965be93Schristos 38453965be93Schristos- Host declarations matching on client identifier for dynamic leases will 38463965be93Schristos no longer match fixed-address host declarations (this is now identical 38473965be93Schristos to behaviour for host records matching on hardware address). 38483965be93Schristos 38493965be93Schristos Changes since 3.0.2rc3 38503965be93Schristos 38513965be93Schristos- A previously undocumented configuration directive, 'local-address', 38523965be93Schristos was documented in the dhcpd.conf manpage. 38533965be93Schristos 38543965be93Schristos Changes since 3.0.2rc2 38553965be93Schristos 38563965be93Schristos- Two variables introduced in 3.0.2b1 were used without being initialized 38573965be93Schristos in the case where neither the FILE nor SNAME fields were available for 38583965be93Schristos overloading. This was repaired. 38593965be93Schristos 38603965be93Schristos- A heretofore believed to be impossible corner case of the option 38613965be93Schristos overloading implementation turned out to be possible ("Unable to sort 38623965be93Schristos overloaded options after 10 tries."). The implementation was reworked 38633965be93Schristos to consider the case of an option so large it would require more than 38643965be93Schristos three chunks to fit. 38653965be93Schristos 38663965be93Schristos- Many other instances of variables being used without being initialized 38673965be93Schristos were repaired. 38683965be93Schristos 38693965be93Schristos- An uninitialized variable in omapi_io_destroy() led to the discovery 38703965be93Schristos that this function may result in orphaned pointers (and hence, a memory 38713965be93Schristos leak). 38723965be93Schristos 38733965be93Schristos Changes since 3.0.2rc1 38743965be93Schristos 38753965be93Schristos- allocate_lease() was rewritten to repair a bug in which the server would 38763965be93Schristos try to allocate an ABANDONED lease when FREE leases were available. 38773965be93Schristos 38783965be93Schristos Changes since 3.0.2b1 38793965be93Schristos 38803965be93Schristos- Some dhcp-eval.5 manpage formatting was repaired. 38813965be93Schristos 38823965be93Schristos Changes since 3.0.1 38833965be93Schristos 38843965be93Schristos- A bug was fixed in the server's 'option overloading' implementation, 38853965be93Schristos where options loaded into the 'file' and 'sname' packet fields were 38863965be93Schristos not aligned precisely as rfc2131 dictates. 38873965be93Schristos 38883965be93Schristos- The FreeBSD client script was changed to support the case where a domain 38893965be93Schristos name was not provided by the server. 38903965be93Schristos 38913965be93Schristos- A memory leak in 'omshell' per each command line parsed was 38923965be93Schristos repaired, thanks to a patch from Jarkko Torppa. 38933965be93Schristos 38943965be93Schristos- Log functions writing to stderr were adjusted to use the STDERR_FILENO 38953965be93Schristos system definition rather than '2'. This is a no-op for 90% of platforms. 38963965be93Schristos 38973965be93Schristos- One call to trace_write_packet_iov() counted the number of io vectors 38983965be93Schristos incorrectly, causing inconsistent tracefiles. This was fixed. 38993965be93Schristos 39003965be93Schristos- Some expression parse failure memory leaks were closed. 39013965be93Schristos 39023965be93Schristos- A host byte order problem in tracefiles was repaired. 39033965be93Schristos 39043965be93Schristos- Pools configured in DHCPD for failover possessing permission lists that 39053965be93Schristos previously were assumed to not include dynamic bootp clients are now 39063965be93Schristos a little more pessimistic. The result is, dhcpd will nag you about just 39073965be93Schristos about most pools that possess a 'allow' statement with no 'deny' that 39083965be93Schristos would definitely match a dynamic bootp client. 39093965be93Schristos 39103965be93Schristos- The 'ddns-update-style' configuration warning bit now insists that 39113965be93Schristos the configuration be globally scoped. 39123965be93Schristos 39133965be93Schristos- Two memory leaks in dhclient were closed thanks to a patch from Felix 39143965be93Schristos Farkas. 39153965be93Schristos 39163965be93Schristos- Some minor but excellently pedantic documentation errors were fixed 39173965be93Schristos thanks to a patch from Thomas Klausner. 39183965be93Schristos 39193965be93Schristos- Bugs in operator precedence in executable statements have been repaired 39203965be93Schristos once again. More legal syntaxes should be parsed legally. 39213965be93Schristos 39223965be93Schristos- Failing to initialize a tracefile for any reason if a tracefile was 39233965be93Schristos specified is now a fatal error. Thanks to a patch from Albert Herranz. 39243965be93Schristos 39253965be93Schristos- Corrected a bug in which the number of leases transferred as calculated 39263965be93Schristos by the failover primary and sent to peers in POOLRESP responses may be 39273965be93Schristos incorrect. This value is not believed to be used by other failover 39283965be93Schristos implementations, excepting perhaps as logged information. 39293965be93Schristos 39303965be93Schristos- Corrected a bug in which 'dhcp_failover_send_poolresp()' was in fact 39313965be93Schristos sending POOLREQ messages instead of POOLRESP mesasges. This message 39323965be93Schristos was essentially ignored since failover secondaries effectively do not 39333965be93Schristos respond to POOLREQ messages. 39343965be93Schristos 39353965be93Schristos- Type definitions for various bitwidths of integers in the sunos5-5 39363965be93Schristos build of ISC DHCP have been fixed. It should compile and run more 39373965be93Schristos easily when built in 64-bit for this platform. 39383965be93Schristos 39393965be93Schristos- "allow known-clients;" is now a legal syntax, to avoid confusion. 39403965be93Schristos 39413965be93Schristos- If one dhcp server chooses to 'load balance' a request to its failover 39423965be93Schristos peer, it first checks to see if it believes said peer has a free 39433965be93Schristos lease to allocate before ignoring the DISCOVER. 39443965be93Schristos 39453965be93Schristos- log() was logging a work buffer, rather than the value returned by 39463965be93Schristos executing the statements configured by the user. In some cases, 39473965be93Schristos the work buffer and the intended results were the same. In some other 39483965be93Schristos cases, they were not. This was fixed thanks to a patch from Gunnar 39493965be93Schristos Fjone and directconnect.no. 39503965be93Schristos 39513965be93Schristos- Compiler warnings for some string type conversions was fixed, thanks 39523965be93Schristos to Andreas Gustafsson. 39533965be93Schristos 39543965be93Schristos- The netbsd build environments were simplified to one, in which 39553965be93Schristos -Wconversion is not used, thanks to Andreas Gustafsson. 39563965be93Schristos 39573965be93Schristos- How randomness in the backoff-cutoff dhclient configuration variable 39583965be93Schristos is implemented was better documented in the manpage, and the behaviour 39593965be93Schristos of dhclient in REQUEST timeout handling was changed to match that of 39603965be93Schristos DISCOVER timeout handling. 39613965be93Schristos 39623965be93Schristos- Omapi was hardened against clients that pass in null values, thanks 39633965be93Schristos to a patch from Mark Jason Dominus. 39643965be93Schristos 39653965be93Schristos- A bug was fixed in dhclient that kept it from doing client-side 39663965be93Schristos ddns updates. Thanks to a patch from Andreas Gustafsson, which 39673965be93Schristos underwent some modification after review by Jason Vas Dias. 39683965be93Schristos 39693965be93Schristos- Failover implementations disconnected due to the network between 39703965be93Schristos them (rather than one of the two shutting down) will now try to 39713965be93Schristos re-establish the failover connection every 5 seconds, rather than 39723965be93Schristos to simply try once and give up until one of them is restarted. 39733965be93Schristos Thanks to a patch from Ulf Ekberg from Infoblox, and field testing 39743965be93Schristos by Greger V. Teigre which led to an enhancement to it. 39753965be93Schristos 39763965be93Schristos- A problem that kept DHCP Failover secondaries from tearing down 39773965be93Schristos ddns records was repaired. Thanks to a patch from Ulf Ekberg from 39783965be93Schristos Infoblox. 39793965be93Schristos 39803965be93Schristos- 64bit pointer sizes are detected properly on FreeBSD now. 39813965be93Schristos 39823965be93Schristos- A bug was repaired where the DHCP server would leave stale references 39833965be93Schristos to host records on leases it once thought about offering to certain 39843965be93Schristos clients. The result would be to apply host and 'known' scopes to the 39853965be93Schristos wrong clients (possibly denying booting). NOTE: The 'mis-host' patch 39863965be93Schristos that was being circulated as a workaround is not the way this bug was 39873965be93Schristos fixed. If you were a victim of this bug in 3.0.1, you are cautioned 39883965be93Schristos to proceed carefully and see if it fixes your problem. 39893965be93Schristos 39903965be93Schristos- A bug was repaired in the server's DHCPINFORM handling, where it 39913965be93Schristos tried to divine the client's address from the source packet and 39923965be93Schristos would get it wrong. Thanks to Anshuman Singh Rawat. 39933965be93Schristos 39943965be93Schristos- A log message was introduced to help illuminate the case where the 39953965be93Schristos server was unable to find a lease to assign to any BOOTP client. 39963965be93Schristos Thanks to Daniel Baker. 39973965be93Schristos 39983965be93Schristos- A minor dhcpd.conf.5 manpage error was fixed. 39993965be93Schristos 40003965be93Schristos Changes since 3.0.1rc14 40013965be93Schristos 40023965be93Schristos- The global variable 'cur_time' was centralized and is now uniformly of a 40033965be93Schristos type #defined in system-dependent headers. It had previously been defined 40043965be93Schristos in one of many places as a 32-bit value, and this causes mayhem on 64-bit 40053965be93Schristos big endian systems. It probably wasn't too healthy on little endian 40063965be93Schristos systems either. 40073965be93Schristos 40083965be93Schristos- A printf format string error introduced in rc14 was repaired. 40093965be93Schristos 40103965be93Schristos- AIX system-dependent header file was altered to only define NO_SNPRINTF 40113965be93Schristos if the condition used to #ifdef in vsnprintf in AIX' header files 40123965be93Schristos is false. 40133965be93Schristos 40143965be93Schristos- The Alpha/OSF system-dependent header file was altered to define 40153965be93Schristos NO_SNPRINTF on OS revisions older than 4.0G. 40163965be93Schristos 40173965be93Schristos- omapip/test.c had string.h added to its includes. 40183965be93Schristos 40193965be93Schristos Changes since 3.0.1rc13 40203965be93Schristos 40213965be93Schristos! CAN-2004-0460 - CERT VU#317350: Five stack overflow exploits were closed 40223965be93Schristos in logging messages with excessively long hostnames provided by the 40233965be93Schristos clients. It is highly probable that these could have been used by 40243965be93Schristos attackers to gain arbitrary root access on systems using ISC DHCP 3.0.1 40253965be93Schristos release candidates 12 or 13. Special thanks to Gregory Duchemin for 40263965be93Schristos both finding and solving the problem. 40273965be93Schristos 40283965be93Schristos! CAN-2004-0461 - CERT VU#654390: Once the above was closed, an opening 40293965be93Schristos in log_*() functions was evidenced, on some specific platforms where 40303965be93Schristos vsnprintf() was not believed to be available and calls were wrapped to 40313965be93Schristos sprintf() instead. Again, credit goes to Gregory Duchemin for finding 40323965be93Schristos the problem. Calls to snprintf() are now linked to a distribution-local 40333965be93Schristos snprintf implementation, only in those cases where the architecture is 40343965be93Schristos not known to provide one (see includes/cf/[arch].h). If you experience 40353965be93Schristos linking problems with snprintf/vsnprintf or 'isc_print_' functions, this 40363965be93Schristos is where to look. This vulnerability did not exist in any previously 40373965be93Schristos published version of ISC DHCP. 40383965be93Schristos 40393965be93Schristos- Compilation on hpux 11.11 was repaired. 40403965be93Schristos 40413965be93Schristos- 'The cross-compile bug fix' was backed out. 40423965be93Schristos 40433965be93Schristos Changes since 3.0.1rc12 40443965be93Schristos 40453965be93Schristos- Fixed a bug in omapi lease lookup function, to form the hardware 40463965be93Schristos address for the hash lookup correctly, thanks to a patch from 40473965be93Schristos Richard Hirst. 40483965be93Schristos 40493965be93Schristos- Fixed a bug where dhcrelay was sending relayed responses back to the 40503965be93Schristos broadcast address, but with the source's unicast mac address. Should 40513965be93Schristos now conform to rfc2131 section 4.1. 40523965be93Schristos 40533965be93Schristos- Cross-compile bug fix; use $(AR) instead of ar. Thanks to Morten Brorup. 40543965be93Schristos 40553965be93Schristos- Fixed a crash bug in dhclient where dhcpd servers that do not provide 40563965be93Schristos renewal times results in an FPE. As a side effect, dhclient can now 40573965be93Schristos properly handle 0xFFFFFFFF (-1) expiry times supplied by servers. Thanks 40583965be93Schristos to a patch from Burt Silverman. 40593965be93Schristos 40603965be93Schristos- The 'ping timeout' debugs from rc12 were removed to -DDEBUG only, 40613965be93Schristos and reformatted to correct a compilation error on Solaris platforms. 40623965be93Schristos 40633965be93Schristos- A patch was applied which fixes a case where leases read from the 40643965be93Schristos leases database do not properly over-ride previously read leases. 40653965be93Schristos 40663965be93Schristos- dhcpctl.3 manpage was tweaked. 40673965be93Schristos 40683965be93Schristos Changes since 3.0.1rc11 40693965be93Schristos 40703965be93Schristos- A patch from Steve Campbell was applied with minor modifications to 40713965be93Schristos permit reverse dns PTR record updates with values containing spaces. 40723965be93Schristos 40733965be93Schristos- A patch from Florian Lohoff was applied with some modifications to 40743965be93Schristos dhcrelay. It now discards packets whose hop count exceeds 10 by default, 40753965be93Schristos and a command-line option (-c) can be used to set this threshold. 40763965be93Schristos 40773965be93Schristos- A failover bug relating to identifying peers by name length instead of 40783965be93Schristos by name was fixed. 40793965be93Schristos 40803965be93Schristos- Declaring failover configs within shared-network statements should no 40813965be93Schristos longer result in error. 40823965be93Schristos 40833965be93Schristos- The -nw command line option to dhclient now works. 40843965be93Schristos 40853965be93Schristos- Thanks to a patch from Michael Richardson: 40863965be93Schristos - Some problems with long option processing have been fixed. 40873965be93Schristos - Some fixes to minires so that updates of KEY records will work. 40883965be93Schristos 40893965be93Schristos- contrib/ms2isc was updated by Shu-Min Chang of the Intel Corporation. 40903965be93Schristos see contrib/ms2isc/readme.txt for revision notes. 40913965be93Schristos 40923965be93Schristos- Dhclient no longer uses shell commands to kill another instance of 40933965be93Schristos itself, it sends the signal directly. Thanks to a patch from Martin 40943965be93Schristos Blapp. 40953965be93Schristos 40963965be93Schristos- The FreeBSD dhclient-script was changed so that a failure to write to 40973965be93Schristos /etc/resolv.conf does not prematurely end the script. This keeps dhclient 40983965be93Schristos from looping infinitely when this is the case. Thanks to a patch from 40993965be93Schristos Martin Blapp. 41003965be93Schristos 41013965be93Schristos- A patch from Bill Stephens was applied which resolves a problem with lease 41023965be93Schristos expiry times in failover configurations. 41033965be93Schristos 41043965be93Schristos- A memory leak in configuration parsing was closed thanks to a patch from 41053965be93Schristos Steve G. 41063965be93Schristos 41073965be93Schristos- The function which discovers interfaces will now skip non-broadcast or 41083965be93Schristos point-to-point interfaces, thanks to a patch from David Brownlee. 41093965be93Schristos 41103965be93Schristos- Options not yet known by the dhcpd or dhclient have had their names 41113965be93Schristos changed such that they do not contain # symbols, in case they should ever 41123965be93Schristos appear in a lease file. An option that might have been named "#144" is 41133965be93Schristos now "unknown-144". 41143965be93Schristos 41153965be93Schristos- Another patch from Bill Stephens which allows the ping-check timeout to 41163965be93Schristos be configured as 'ping-timeout'. Defaults to 1. 41173965be93Schristos 41183965be93Schristos Changes since 3.0.1rc10 41193965be93Schristos 41203965be93Schristos- Potential buffer overflows in minires repaired. 41213965be93Schristos 41223965be93Schristos- A change to the linux client script to use /bin/bash, since /bin/sh may 41233965be93Schristos not be bash. 41243965be93Schristos 41253965be93Schristos- Some missing va_end cleanups thanks to a patch from Thomas Klausner. 41263965be93Schristos 41273965be93Schristos- A correction of boolean parsing syntax validation - some illegal syntaxes 41283965be93Schristos that worked before are now detected and produce errs, some legal syntaxes 41293965be93Schristos that errored before will now work properly. 41303965be93Schristos 41313965be93Schristos- Some search-and-replace errors that caused some options to change their 41323965be93Schristos names was repaired. 41333965be93Schristos 41343965be93Schristos- Shu-min Chang of the Intel corporation has contributed a perl script and 41353965be93Schristos module that converts the MS NT4 DHCP configuration to a ISC DHCP3 41363965be93Schristos configuration file. 41373965be93Schristos 41383965be93Schristos- Applied the remainder of the dhcpctl memory leak patch provided by Bill 41393965be93Schristos Squier at ReefEdge, Inc. (groo@reefedge.com). 41403965be93Schristos 41413965be93Schristos- Missing non-optional failover peer configurations will now result in a soft 41423965be93Schristos error rather than a null dereference. 41433965be93Schristos 41443965be93Schristos Changes since 3.0.1rc9 41453965be93Schristos 41463965be93Schristos- A format string was corrected to fix compiler warnings. 41473965be93Schristos 41483965be93Schristos- A number of spelling corrections were made in the man pages. 41493965be93Schristos 41503965be93Schristos- The dhclient.conf.5 man page was changed to refer to do-forward-updates 41513965be93Schristos rather than a configuration option that doesn't exist. 41523965be93Schristos 41533965be93Schristos- A FreeBSD-specific bug in the interface removal handling was fixed. 41543965be93Schristos 41553965be93Schristos- A Linux-specific Token Ring detection problem was fixed. 41563965be93Schristos 41573965be93Schristos- Hashes removed from as-yet-unknown agent options, having those options 41583965be93Schristos appear in reality before we know about them will no longer produce 41593965be93Schristos self-corrupting lease databases. 41603965be93Schristos 41613965be93Schristos- dhclient will use the proper port numbers now when using the -g option. 41623965be93Schristos 41633965be93Schristos- A order-of-operations bug with 2 match clauses in 1 class statement is 41643965be93Schristos fixed thanks to a patch from Andrew Matheson. 41653965be93Schristos 41663965be93Schristos- Compilation problems on Solaris were fixed. 41673965be93Schristos 41683965be93Schristos- Compilation problems when built with DEBUG or DEBUG_PACKET were repaired. 41693965be93Schristos 41703965be93Schristos- A fix to the dhcp ack process which makes certain group options will be 41713965be93Schristos included in the first DHCPOFFER message was made thanks to a patch from 41723965be93Schristos Ling Gou. 41733965be93Schristos 41743965be93Schristos- A few memory leaks were repaired thanks to patches from Bill Squier at 41753965be93Schristos ReefEdge, Inc. (groo@reefedge.com). 41763965be93Schristos 41773965be93Schristos- A fix for shared-networks that sometimes give clients options for the 41783965be93Schristos wrong subnets (in particular, 'option routers') was applied, thanks to 41793965be93Schristos Ted Lemon for the patch. 41803965be93Schristos 41813965be93Schristos- Omshell's handling of dotted octets as values was changed such that dots 41823965be93Schristos one after the other produce zero values in the integer string. 41833965be93Schristos 41843965be93Schristos Changes since 3.0.1rc8 41853965be93Schristos 41863965be93Schristos- Fix a format string vulnerability in the server that could lead to a 41873965be93Schristos remote root compromise (discovered by NGSEC Research Team, www.ngsec.com). 41883965be93Schristos 41893965be93Schristos- Add additional support for NetBSD/sparc64. 41903965be93Schristos 41913965be93Schristos- Fix a bug in the command-line parsing of the client. Also, resolve 41923965be93Schristos a memory leak. 41933965be93Schristos 41943965be93Schristos- Add better support for shells other than bash in the Linux client 41953965be93Schristos script. 41963965be93Schristos 41973965be93Schristos- Various build fixes for modern versions of FreeBSD and Linux. 41983965be93Schristos 41993965be93Schristos- Fix a bad bounds check when printing binding state names. 42003965be93Schristos 42013965be93Schristos- Clarify documentation about fixed-address and multiple addresses. 42023965be93Schristos 42033965be93Schristos- Fix a typo in the authoritative error message. 42043965be93Schristos 42053965be93Schristos- Make a log entry when we can't write a billing class. 42063965be93Schristos 42073965be93Schristos- Use conversion targets that are the right size on all architectures. 42083965be93Schristos 42093965be93Schristos- Increment the hop count when relaying. 42103965be93Schristos 42113965be93Schristos- Log a message when lease state is changed through OMAPI. 42123965be93Schristos 42133965be93Schristos- Don't rerun the shared_network when evaluating the pool. 42143965be93Schristos 42153965be93Schristos- Fix a reversed test in the parser. 42163965be93Schristos 42173965be93Schristos- Change the type of rbuf_max. 42183965be93Schristos 42193965be93Schristos- Make FTS_LAST a manifest constant to quiet warnings. 42203965be93Schristos 42213965be93Schristos Changes since 3.0.1rc7 42223965be93Schristos 42233965be93Schristos- Fix two compiler warnings that are generated when compiling on Solaris 42243965be93Schristos with gcc. These stop the build, even though they weren't actually 42253965be93Schristos errors, because we prefer that our builds generate no warnings. 42263965be93Schristos 42273965be93Schristos Changes since 3.0.1rc6 42283965be93Schristos 42293965be93Schristos- Don't allow a lease that's in the EXPIRED, RELEASED or RESET state 42303965be93Schristos to be renewed. 42313965be93Schristos 42323965be93Schristos- Implement lease stealing for cases where the primary has fewer leases 42333965be93Schristos than the secondary, as called for by the standard. 42343965be93Schristos 42353965be93Schristos- Add a fudge factor to the lease expiry acceptance code, (suggested 42363965be93Schristos by Kevin Miller of CMU). 42373965be93Schristos 42383965be93Schristos- Fix a bug in permit_list_match that made it much too willing to say 42393965be93Schristos that two permit lists matched. 42403965be93Schristos 42413965be93Schristos- Unless DEBUG_DNS_UPDATES is defined, print more user-friendly (and 42423965be93Schristos also more compact) messages about DNS updates. 42433965be93Schristos 42443965be93Schristos- Fix a bug in generating wire-format domain names for the FQDN option. 42453965be93Schristos 42463965be93Schristos- Fix a bug where the FQDN option would not be returned if the client 42473965be93Schristos requested it, contrary to the standard. 42483965be93Schristos 42493965be93Schristos- On Darwin, use the FreeBSD DHCP client script. 42503965be93Schristos 42513965be93Schristos- On NetBSD/sparc, don't check for casting warnings. 42523965be93Schristos 42533965be93Schristos- Add a flag in the DHCP client to disable updating the client's A 42543965be93Schristos record when sending an FQDN option indicating that the client is 42553965be93Schristos going to update its A record. 42563965be93Schristos 42573965be93Schristos- In the client, don't attempt a DNS update until one second after 42583965be93Schristos configuring the new IP address, and if the update times out, keep 42593965be93Schristos trying until a response, positive or negative, is received from the 42603965be93Schristos DNS server. 42613965be93Schristos 42623965be93Schristos- Fix an uninitialized memory bug in the DHCP client. 42633965be93Schristos 42643965be93Schristos- Apply some FreeBSD-specific bug fixes suggested by Murray Stokely. 42653965be93Schristos 42663965be93Schristos- Fix a bug in ns_parserr(), where it was returning the wrong sort 42673965be93Schristos of result code in some cases (suggested by Ben Harris of the 42683965be93Schristos NetBSD project). 42693965be93Schristos 42703965be93Schristos- Fix a bug in is_identifier(), where it was checking against EOF 42713965be93Schristos instead of the END_OF_FILE token (also suggested by Ben Harris). 42723965be93Schristos 42733965be93Schristos- Fix a bug where if an option universe contained no options, the 42743965be93Schristos DHCP server could dump core (Walter Steiner). 42753965be93Schristos 42763965be93Schristos- Fix a bug in the handling of encapsulated options. 42773965be93Schristos 42783965be93Schristos- Fix a bug that prevented NWIP suboptions from being processed. 42793965be93Schristos 42803965be93Schristos- Delete the FTS_BOOTP and FTS_RESERVED states and implement them 42813965be93Schristos as modifier flags to the FTS_ACTIVE state, as called for in the 42823965be93Schristos failover protocol standard. 42833965be93Schristos 42843965be93Schristos- Fix bugs in the pool merging code that resulted in references and 42853965be93Schristos dereferences of null pointers. This bug had no impact unless the 42863965be93Schristos POINTER_DEBUG flag was defined. 42873965be93Schristos 42883965be93Schristos- In the server, added a do-forward-updates flag that can be used to 42893965be93Schristos disable forward updates in all cases, so that sites that want the 42903965be93Schristos clients to take sole responsibility for updating their A record can 42913965be93Schristos do so. 42923965be93Schristos 42933965be93Schristos- Make it possible to disable optimization of PTR record updates. 42943965be93Schristos 42953965be93Schristos Changes since 3.0.1rc5 42963965be93Schristos 42973965be93Schristos- Include some new documentation and changes provided by Karl Auer. 42983965be93Schristos 42993965be93Schristos- Add a workaround for some Lexmark printers that send a double-NUL- 43003965be93Schristos terminated host-name option, which would break DNS updates. 43013965be93Schristos 43023965be93Schristos- Fix an off-by-one error in the MAC-address checking code for 43033965be93Schristos DHCPRELEASE that was added in 3.0.1rc5. 43043965be93Schristos 43053965be93Schristos- Fix a bug where client-specific information was not being discarded 43063965be93Schristos from the lease when it expired or was released, resulting in 43073965be93Schristos problems if the lease was reallocated to a different client. 43083965be93Schristos 43093965be93Schristos- If more than one allocation pool is specified that has the same set 43103965be93Schristos of constraints as another allocation pool on the same shared 43113965be93Schristos network, merge the two pools. 43123965be93Schristos 43133965be93Schristos- Don't print an error in fallback_discard, since this just causes 43143965be93Schristos confusion and does not appear to be helping to encourage anyone to 43153965be93Schristos fix this bug. 43163965be93Schristos 43173965be93Schristos Changes since 3.0.1rc4 43183965be93Schristos 43193965be93Schristos- Fix a bug that would cause the DHCP server to spin if asked to parse 43203965be93Schristos a certain kind of incorrect statement. 43213965be93Schristos 43223965be93Schristos- Fix a related bug that would prevent an error from being reported in 43233965be93Schristos the same case. 43243965be93Schristos 43253965be93Schristos- Additional documentation. 43263965be93Schristos 43273965be93Schristos- Make sure that the hardware address matches the lease when 43283965be93Schristos processing a DHCPRELEASE message. 43293965be93Schristos 43303965be93Schristos Changes since 3.0.1rc3 43313965be93Schristos 43323965be93Schristos- A minor bug fix in the arguments to a logging function call. 43333965be93Schristos- Documentation update for dhcpd.conf. 43343965be93Schristos 43353965be93Schristos Changes since 3.0.1rc2 43363965be93Schristos 43373965be93Schristos- Allow the primary to send a POOLREQ message. This isn't what the current 43383965be93Schristos failover draft says to do, so we may have to back it out if I can't get the 43393965be93Schristos authors to relent, but the scheme for balancing that's specified in the 43403965be93Schristos current draft seems needlessly hairy, so I'm floating a trial balloon. 43413965be93Schristos The rc1 code did not implement the method described in the draft either. 43423965be93Schristos 43433965be93Schristos Changes since 3.0.1rc1 43443965be93Schristos 43453965be93Schristos- Treat NXDOMAIN and NXRRSET as success when we are trying to delete a 43463965be93Schristos domain or RRSET. This allows the DHCP server to forget about a name 43473965be93Schristos it added to the DNS once it's been removed, even if the DHCP server 43483965be93Schristos wasn't the one that removed it. 43493965be93Schristos 43503965be93Schristos- Install defaults for failover maximum outstanding updates and maximum 43513965be93Schristos silent time. This prevents problems that might occur if these values 43523965be93Schristos were not configured. 43533965be93Schristos 43543965be93Schristos- Don't do DDNS deletes if ddns-update-style is none. 43553965be93Schristos 43563965be93Schristos- Return relay agent information options in DHCPNAK. This prevents DHCPNAK 43573965be93Schristos messages from being dropped when the relay agent information option contains 43583965be93Schristos routing information. 43593965be93Schristos 43603965be93Schristos- Fix a problem where coming up in recover wouldn't result in an update 43613965be93Schristos request being sent. 43623965be93Schristos 43633965be93Schristos- Add some more chatty messages when we start a recovery update and when it's 43643965be93Schristos done. 43653965be93Schristos 43663965be93Schristos- Fix a possible problem where some state might have been left around 43673965be93Schristos after the peer lost contact and regained contact about how many updates 43683965be93Schristos were pending. 43693965be93Schristos 43703965be93Schristos- Don't nix a lease update because of a lease conflict. This test has 43713965be93Schristos never (as far as I know) prevented a mistake, and it appears to cause 43723965be93Schristos problems with failover. 43733965be93Schristos 43743965be93Schristos- Add support in rc history code for keeping a selective history, rather 43753965be93Schristos than a history of all references and dereferences. This code is only used 43763965be93Schristos when extensive additional debugging is enabled. 43773965be93Schristos 43783965be93Schristos Changes since 3.0 43793965be93Schristos 43803965be93Schristos- Make allocators for hash tables. As a side effect, this fixes a memory 43813965be93Schristos smash in the subclass allocation code. 43823965be93Schristos 43833965be93Schristos- Fix a small bug in omshell where if you try to close an object when 43843965be93Schristos no object is open, it dumps core. 43853965be93Schristos 43863965be93Schristos- Fix an obscure coredump that could occur on shutdown. 43873965be93Schristos 43883965be93Schristos- Fix a bug in the recording of host declaration rubouts in the lease file. 43893965be93Schristos 43903965be93Schristos- Fix two potential spins in the host deletion code. 43913965be93Schristos 43923965be93Schristos- Fix a core dump that would happen if an application tried to update 43933965be93Schristos a host object attribute with a null value. 43943965be93Schristos 43953965be93Schristos Changes since 3.0 Release Candidate 12 43963965be93Schristos 43973965be93Schristos- Fix a memory leak in the evaluation code. 43983965be93Schristos 43993965be93Schristos- Fix an obscure core dump. 44003965be93Schristos 44013965be93Schristos- Print a couple of new warnings when parsing the configuration file 44023965be93Schristos when crucial information is left out. 44033965be93Schristos 44043965be93Schristos- Log "no free leases" as an error. 44053965be93Schristos 44063965be93Schristos- Documentation updates. 44073965be93Schristos 44083965be93Schristos Changes since 3.0 Release Candidate 11 44093965be93Schristos 44103965be93Schristos- Always return a subnet selection option if one is sent. 44113965be93Schristos 44123965be93Schristos- Fix a warning that was being printed because an automatic data 44133965be93Schristos structure wasn't zeroed. 44143965be93Schristos 44153965be93Schristos- Fix some failover state transitions that were being handled 44163965be93Schristos incorrectly. 44173965be93Schristos 44183965be93Schristos- When supersede_lease is called on a lease whose end time has already 44193965be93Schristos expired, but for which a state transition has not yet been done, do 44203965be93Schristos a state transition. This fixes the case where if the secondary 44213965be93Schristos allocated a lease to a client and the lease "expired" while the 44223965be93Schristos secondary was in partner-down, no expiry event would actually 44233965be93Schristos happen, so the lease would remain active until the primary was 44243965be93Schristos restarted. 44253965be93Schristos 44263965be93Schristos Changes since 3.0 Release Candidate 10 44273965be93Schristos 44283965be93Schristos- Fix a bug that was preventing released leases from changing state 44293965be93Schristos in failover-enabled pools. 44303965be93Schristos 44313965be93Schristos- Fix a core dump in the client identifier finder code (for host 44323965be93Schristos declarations). 44333965be93Schristos 44343965be93Schristos- Finish fixing a bug where bogus data would sometimes get logged to 44353965be93Schristos the dhclient.leases file because it was opened as descriptor 2. 44363965be93Schristos 44373965be93Schristos- Fix the Linux dhclient-script according to suggestions made by 44383965be93Schristos several people on the dhcp-client mailing list. 44393965be93Schristos 44403965be93Schristos- Log successful DNS updates at LOG_INFO, not LOG_ERROR. 44413965be93Schristos 44423965be93Schristos- Print an error message and refuse to run if a failover peer is 44433965be93Schristos defined but not referenced by any pools. 44443965be93Schristos 44453965be93Schristos- Correct a confusing error message in failover. 44463965be93Schristos 44473965be93Schristos Changes since 3.0 Release Candidate 9 44483965be93Schristos 44493965be93Schristos- Fix a bug in lease allocation for Dynamic BOOTP clients. 44503965be93Schristos 44513965be93Schristos Changes since 3.0 Release Candidate 8 Patchlevel 2 44523965be93Schristos 44533965be93Schristos- Fix a bug that prevented update-static-leases from working. 44543965be93Schristos 44553965be93Schristos- Document failover-state OMAPI object. 44563965be93Schristos 44573965be93Schristos- Fix a compilation error on SunOS 4. 44583965be93Schristos 44593965be93Schristos Changes since 3.0 Release Candidate 8 Patchlevel 1 44603965be93Schristos 44613965be93Schristos- Fix a parsing bug that broke dns updates (both interim and ad-hoc). 44623965be93Schristos This was introduced in rc8pl1 as an unintended result of the memory 44633965be93Schristos leakage fixes that were in pl1. 44643965be93Schristos 44653965be93Schristos- Fix a long-standing bug where the server would record that an update 44663965be93Schristos had been done for a client with no name, even though no update had 44673965be93Schristos been done, and then when the client's lease expired the deletion of 44683965be93Schristos that nonexistant record would time out because the name was the null 44693965be93Schristos string. 44703965be93Schristos 44713965be93Schristos- Clean up the omshell, dhcpctl and omapi man pages a bit. 44723965be93Schristos 44733965be93Schristos Changes since 3.0 Release Candidate 8 44743965be93Schristos 44753965be93Schristos- Fix a bug that could cause the DHCP server to spin if 44763965be93Schristos one-lease-per-client was enabled. 44773965be93Schristos 44783965be93Schristos- Fix a bug that was causing core dumps on BSD/os in the presence of 44793965be93Schristos malformed packets. 44803965be93Schristos 44813965be93Schristos- In partner-down state, don't restrict lease lengths to MCLT. 44823965be93Schristos 44833965be93Schristos- On the failover secondary, record the MCLT received from the primary 44843965be93Schristos so that if we come up without a connection to the primary we don't 44853965be93Schristos wind up giving out zero-length leases. 44863965be93Schristos 44873965be93Schristos- Fix some compilation problems on BSD/os. 44883965be93Schristos 44893965be93Schristos- Fix a bunch of memory leaks. 44903965be93Schristos 44913965be93Schristos- Fix a couple of bugs in the option printer. 44923965be93Schristos 44933965be93Schristos- Fix an obscure error reporting bug in the dns update code, and also 44943965be93Schristos make the message clearer when a key algorithm isn't supported. 44953965be93Schristos 44963965be93Schristos- Fix a bug in the tracing code that prevented trace runs that used 44973965be93Schristos tcp connections from being played back. 44983965be93Schristos 44993965be93Schristos- Add some additional debugging capability for catching memory leaks 45003965be93Schristos on exit. 45013965be93Schristos 45023965be93Schristos- Make the client release the lease correctly on shutdown. 45033965be93Schristos 45043965be93Schristos- Add some configurability to the build system. 45053965be93Schristos 45063965be93Schristos- Install omshell manual page in man1, not man8. 45073965be93Schristos 45083965be93Schristos- Craig Gwydir sent in a patch that fixes a long-standing bug in the 45093965be93Schristos DHCP client that could cause core dumps, but that for some reason 45103965be93Schristos hadn't been noticed until now. 45113965be93Schristos 45123965be93Schristos Changes since 3.0 Release Candidate 7 45133965be93Schristos 45143965be93Schristos- Fix a bug in failover where we weren't sending updates after a 45153965be93Schristos transition from communications-interrupted to normal. 45163965be93Schristos 45173965be93Schristos- Handle expired/released/reset -> free transition according to the 45183965be93Schristos protocol specification (this works - the other way not only wasn't 45193965be93Schristos conformant, but also didn't work). 45203965be93Schristos 45213965be93Schristos- Add a control object in both client and server that allows either 45223965be93Schristos daemon to be shut down cleanly. 45233965be93Schristos 45243965be93Schristos- When writing a lease, if we run out of disk space, shut down the 45253965be93Schristos output file and insist on writing a new one before proceeding. 45263965be93Schristos 45273965be93Schristos- In the server, if the OMAPI listener port is occupied, keep trying 45283965be93Schristos to get it, rather than simply giving up and exiting. 45293965be93Schristos 45303965be93Schristos- Support fetching variables from leases and also updating and adding 45313965be93Schristos variables to leases via OMAPI. 45323965be93Schristos 45333965be93Schristos- If two failover peers have wildly different clocks, refuse to start 45343965be93Schristos doing failover. 45353965be93Schristos 45363965be93Schristos- Fix a bug in the DNS update code that could cause core dumps when 45373965be93Schristos running on alpha processors. 45383965be93Schristos 45393965be93Schristos- Fixed a bug in ddns updates for static lease entries, thanks to a 45403965be93Schristos patch from Andrey M Linkevitch. 45413965be93Schristos 45423965be93Schristos- Add support for Darwin/MacOS X 45433965be93Schristos 45443965be93Schristos- Install omshell (including new documentation). 45453965be93Schristos 45463965be93Schristos- Support DNS updates in the client (this is a very obscure feature 45473965be93Schristos that most DHCP client users probably will not be able to use). 45483965be93Schristos 45493965be93Schristos- Somewhat cleaner status logging in the client. 45503965be93Schristos 45513965be93Schristos- Make OMAPI key naming syntax compatible with the way keys are 45523965be93Schristos actually named (key names are domain names). 45533965be93Schristos 45543965be93Schristos- Fix a bug in the lease file writer. 45553965be93Schristos 45563965be93Schristos- Install DHCP ISC headers in a different place than BIND 9 ISC 45573965be93Schristos headers, to avoid causing trouble in BIND 9 builds. 45583965be93Schristos 45593965be93Schristos- Don't send updates for attributes on an object when the attributes 45603965be93Schristos haven't changed. Support deleting attributes on remote objects. 45613965be93Schristos 45623965be93Schristos- Fix a number of bugs in omshell, and add the unset and refresh 45633965be93Schristos statements. 45643965be93Schristos 45653965be93Schristos- Handle disconnects in OMAPI a little bit more intelligently (so that 45663965be93Schristos the caller gets ECONNRESET instead of EINVAL). 45673965be93Schristos 45683965be93Schristos- Fix a bunch of bugs in the handling of clients that have existing 45693965be93Schristos leases when the try to renew their leases while failover is 45703965be93Schristos operating. 45713965be93Schristos 45723965be93Schristos Changes since 3.0 Release Candidate 6 45733965be93Schristos 45743965be93Schristos- Fix a core dump that could happen when processing a DHCPREQUEST from 45753965be93Schristos a client that had a host declaration that contained both a 45763965be93Schristos fixed-address declaration and a dhcp-client-identifier option 45773965be93Schristos declaration, if the client identifier was longer than nine bytes. 45783965be93Schristos 45793965be93Schristos- Fix a memory leak that could happen in certain obscure cases when 45803965be93Schristos using omapi to manipulate leases. 45813965be93Schristos 45823965be93Schristos- Fix some bugs and omissions in omshell. 45833965be93Schristos 45843965be93Schristos Changes since 3.0 Release Candidate 5 45853965be93Schristos 45863965be93Schristos- Fix a bug in omapi_object_dereference that prevented objects in 45873965be93Schristos chains from having their reference counts decreased on dereference. 45883965be93Schristos 45893965be93Schristos- Fix a bug in omapi_object_dereference that would prevent object 45903965be93Schristos chains from being freed upon removal of the last reference external 45913965be93Schristos to the chain. 45923965be93Schristos 45933965be93Schristos- Fix a number of other memory leaks in the OMAPI protocol subsystem. 45943965be93Schristos 45953965be93Schristos- Add code in the OMAPI protocol handler to trace memory leakage. 45963965be93Schristos 45973965be93Schristos- Clean up the memory allocation/reference history printer. 45983965be93Schristos 45993965be93Schristos- Support input of dotted quads and colon-separated hex lists as 46003965be93Schristos attribute values in omshell. 46013965be93Schristos 46023965be93Schristos- Fix a typo in the Linux interface discovery code. 46033965be93Schristos 46043965be93Schristos- Conditionalize a piece of trace code that wasn't conditional. 46053965be93Schristos 46063965be93Schristos Changes since 3.0 Release Candidate 4 46073965be93Schristos 46083965be93Schristos- Fix a bug that would prevent leases from being abandoned properly on 46093965be93Schristos DHCPDECLINE. 46103965be93Schristos 46113965be93Schristos- Fix failover peer OMAPI support. 46123965be93Schristos 46133965be93Schristos- In failover, correctly handle expiration of leases. Previously, 46143965be93Schristos leases would never be reclaimed because they couldn't make the 46153965be93Schristos transition from EXPIRED to FREE. 46163965be93Schristos 46173965be93Schristos- Fix some broken failover state transitions. 46183965be93Schristos 46193965be93Schristos- Documentation fixes. 46203965be93Schristos 46213965be93Schristos- Take out an unnecessary check in DHCP relay agent information option 46223965be93Schristos stashing code that was preventing REBINDING clients from rebinding. 46233965be93Schristos 46243965be93Schristos- Prevent failover peers from allocating leases in DHCPREQUEST 46253965be93Schristos processing if the lease belongs to the other server. 46263965be93Schristos 46273965be93Schristos- Record server version in lease file introductory comment. 46283965be93Schristos 46293965be93Schristos- Correctly report connection errors in OMAPI and failover. 46303965be93Schristos 46313965be93Schristos- Make authentication signature algorithm name comparisons in OMAPI 46323965be93Schristos case-insensitive. 46333965be93Schristos 46343965be93Schristos- Fix compile problem on SunOS 4.x 46353965be93Schristos 46363965be93Schristos- If a signature algorithm is not terminated with '.', terminate it so 46373965be93Schristos that comparisons between fully-qualified names will work 46383965be93Schristos consistently. 46393965be93Schristos 46403965be93Schristos- Different SIOCGIFCONF probe code, may "fix" problem on some Linux 46413965be93Schristos systems with the probe not working correctly. 46423965be93Schristos 46433965be93Schristos- Don't allow user to type omapi key on command line of omshell. 46443965be93Schristos 46453965be93Schristos Changes since 3.0 Release Candidate 3 46463965be93Schristos 46473965be93Schristos- Do lease billing on startup in a way that I *think* will finally do 46483965be93Schristos the billing correctly - the previous method could overbill as a 46493965be93Schristos result of duplicate leases. 46503965be93Schristos 46513965be93Schristos- Document OMAPI server objects. 46523965be93Schristos 46533965be93Schristos Changes since 3.0 Release Candidate 2 Patchlevel 1 46543965be93Schristos 46553965be93Schristos- Fix some problems in the DDNS update code. Thanks to Albert 46563965be93Schristos Herranz for figuring out the main problem. 46573965be93Schristos 46583965be93Schristos- Fix some reference counting errors on host entries that were causing 46593965be93Schristos core dumps. 46603965be93Schristos 46613965be93Schristos- Fix a byte-swap bug in the token ring code, thanks to Jochen 46623965be93Schristos Friedrich. 46633965be93Schristos 46643965be93Schristos- Fix a bug in lease billing, thanks to Jonas Bulow. 46653965be93Schristos 46663965be93Schristos Changes since 3.0 Release Candidate 2 46673965be93Schristos 46683965be93Schristos- Change the conditions under which a DHCPRELEASE is actually 46693965be93Schristos committed to be consistent with lease binding states rather than 46703965be93Schristos using the lease end time. This may fix some problems with the 46713965be93Schristos billing class code. 46723965be93Schristos 46733965be93Schristos- Fix a bug where lease updates would fail on Digital Unix (and maybe 46743965be93Schristos others) because malloc was called with a size of zero. 46753965be93Schristos 46763965be93Schristos- Fix a core dump that happens when the DHCP server can't create its 46773965be93Schristos trace file. 46783965be93Schristos 46793965be93Schristos Changes since 3.0 Release Candidate 1 Patchlevel 1 46803965be93Schristos 46813965be93Schristos- Fix the dhcp_failover_put_message to not attempt to allocate a 46823965be93Schristos zero-length buffer. Some versions of malloc() fail if you try to 46833965be93Schristos allocate a zero-length buffer, and this was causing problems on, 46843965be93Schristos e.g., Digital Unix. 46853965be93Schristos 46863965be93Schristos- Fix a case where the failover code was printing an error message 46873965be93Schristos when no error had occurred. 46883965be93Schristos 46893965be93Schristos- Fix a problem where when a server went down and back up again, the 46903965be93Schristos peer would not see a state transition and so would stay in the 46913965be93Schristos non-communicating state. 46923965be93Schristos 46933965be93Schristos- Be smart about going into recover_wait. 46943965be93Schristos 46953965be93Schristos- Fix a problem in the failover implementation where peers would fail 46963965be93Schristos to come into sync if interrupted in the RECOVER state. This could 46973965be93Schristos have been the cause of some problems people have reported recently. 46983965be93Schristos 46993965be93Schristos- Fix a problem with billing classes where they would not be unbilled 47003965be93Schristos when the client lease expired. 47013965be93Schristos 47023965be93Schristos- If select fails, figure out which descriptor is bad, and cut it out 47033965be93Schristos of the I/O loop. This prevents a potentially nasty spin. I 47043965be93Schristos haven't heard any report it in a while, but it came up consistently 47053965be93Schristos in testing. 47063965be93Schristos 47073965be93Schristos- Fix a bug in the relay agent where if you specified interfaces on 47083965be93Schristos the command line, it would fail. 47093965be93Schristos 47103965be93Schristos- Fix a couple of small bugs in the omapi connection object (no known 47113965be93Schristos user impact). 47123965be93Schristos 47133965be93Schristos- Add the missing 3.0 Beta 1 lease conversion script. 47143965be93Schristos 47153965be93Schristos- Read dhcp client script hooks if they exist, rather than only if 47163965be93Schristos they're executable. 47173965be93Schristos 47183965be93Schristos Changes since 3.0 Release Candidate 1 47193965be93Schristos 47203965be93Schristos- Fix a memory smash that happens when fixed-address leases are used. 47213965be93Schristos ANY SITE AT WHICH FIXED-ADDRESS STATEMENTS ARE BEING USED SHOULD 47223965be93Schristos UPGRADE IMMEDIATELY. This has been a long-standing bug - thanks to 47233965be93Schristos Alvise Nobile for discovering it and helping me to find it! 47243965be93Schristos 47253965be93Schristos- Fix a small bug in binary-to-ascii, thanks to H. Peter Anvin of 47263965be93Schristos Transmeta. 47273965be93Schristos 47283965be93Schristos- There is a known problem with the DHCP server doing failover on 47293965be93Schristos Compaq Alpha systems. This patchlevel is not a release candidate 47303965be93Schristos because of this bug. The bug should be straightforward to fix, so 47313965be93Schristos a new release candidate is expected shortly. 47323965be93Schristos 47333965be93Schristos- There is a known problem in the DDNS update code that is probably a 47343965be93Schristos bug, and is not, as far as we know, fixed in this patchlevel. 47353965be93Schristos 47363965be93Schristos Changes since 3.0 Beta 2 Patchlevel 24 47373965be93Schristos 47383965be93Schristos- Went over problematic failover state transitions and made them all 47393965be93Schristos work, so that failover should now much less fragile. 47403965be93Schristos 47413965be93Schristos- Add some dhcpctl and omapi documentation 47423965be93Schristos 47433965be93Schristos- Fix compile errors when compiling with unusual predefines. 47443965be93Schristos 47453965be93Schristos- Make Token Ring work on Linux 2.4 47463965be93Schristos 47473965be93Schristos- Fix the Digital Unix BPF_WORDALIGN bug. 47483965be93Schristos 47493965be93Schristos- Fix some dhcp client documentation errors. 47503965be93Schristos 47513965be93Schristos- Update some parts of the README file. 47523965be93Schristos 47533965be93Schristos- Support GCC on SCO. 47543965be93Schristos 47553965be93Schristos Changes since 3.0 Beta 2 Patchlevel 23 47563965be93Schristos 47573965be93Schristos- Fix a bug in the DNS update code where a status code was not being 47583965be93Schristos checked. This may have been causing core dumps. 47593965be93Schristos 47603965be93Schristos- When parsing the lease file, if a lease declaration includes a 47613965be93Schristos billing class statement, and the lease already has a billing class, 47623965be93Schristos unbill the old class. 47633965be93Schristos 47643965be93Schristos- When processing failover transactions, where acks will be deferred, 47653965be93Schristos process the state transition immediately. 47663965be93Schristos 47673965be93Schristos- Don't try to use the new SIOCGIFCONF buffer size detection code on 47683965be93Schristos Linux 2.0, which doesn't provide this functionality. 47693965be93Schristos 47703965be93Schristos- Apply a patch suggested by Tuan Uong for a problem in dlpi.c. 47713965be93Schristos 47723965be93Schristos- Fix a problem in using the which command in the configure script. 47733965be93Schristos 47743965be93Schristos- Fix a parse error in the client when setting up an omapi listener. 47753965be93Schristos 47763965be93Schristos- Document the -n and -g flags to the client. 47773965be93Schristos 47783965be93Schristos- Make sure there is always a stdin and stdout on startup. This 47793965be93Schristos prevents shell scripts from accidentally writing error messages into 47803965be93Schristos configuration files that happen to be opened as stderr. 47813965be93Schristos 47823965be93Schristos- If an interface is removed, the client will now notice that it is 47833965be93Schristos gone rather than spinning. This has only been tested on NetBSD. 47843965be93Schristos 47853965be93Schristos- The client will attempt to get an address even if it can't create a 47863965be93Schristos lease file. 47873965be93Schristos 47883965be93Schristos- Don't overwrite tracefiles. 47893965be93Schristos 47903965be93Schristos- Fix some memory allocation bugs in failover. 47913965be93Schristos 47923965be93Schristos Changes since 3.0 Beta 2 Patchlevel 22 47933965be93Schristos 47943965be93Schristos- Apply some patches suggested by Cyrille Lefevre, who is maintaining 47953965be93Schristos the FreeBSD ISC DHCP Distribution port. 47963965be93Schristos 47973965be93Schristos- Fix a core dump in DHCPRELEASE. 47983965be93Schristos 47993965be93Schristos Changes since 3.0 Beta 2 Patchlevel 21 48003965be93Schristos 48013965be93Schristos- This time for sure: fix the spin described in the changes for pl20. 48023965be93Schristos 48033965be93Schristos Changes since 3.0 Beta 2 Patchlevel 20 48043965be93Schristos 48053965be93Schristos- Fix a problem with Linux detecting large numbers of interfaces (Ben) 48063965be93Schristos 48073965be93Schristos- Fix a memory smash in the quotify code, which was introduced in 48083965be93Schristos pl19. 48093965be93Schristos 48103965be93Schristos- Actually fix the spin described in the changes for pl20. The 48113965be93Schristos previous fix only partially fixed the problem - enough to get it 48123965be93Schristos past the regression test. 48133965be93Schristos 48143965be93Schristos Changes since 3.0 Beta 2 Patchlevel 19 48153965be93Schristos 48163965be93Schristos- Fix a bug that could cause the server to abort if compiled with 48173965be93Schristos POINTER_DEBUG enabled. 48183965be93Schristos 48193965be93Schristos- Fix a bug that could cause the server to spin when responding to a 48203965be93Schristos DHCPREQUEST. 48213965be93Schristos 48223965be93Schristos- Apply Joost Mulders' suggested patches for DLPI on x86. 48233965be93Schristos 48243965be93Schristos- Support NUL characters in quoted strings. 48253965be93Schristos 48263965be93Schristos- Install unformatted man pages on SunOS. 48273965be93Schristos 48283965be93Schristos Changes since 3.0 Beta 2 Patchlevel 18 48293965be93Schristos 48303965be93Schristos- Allow the server to be placed in partner-down state using OMAPI. 48313965be93Schristos (Damien Neil) 48323965be93Schristos 48333965be93Schristos- Implement omshell, which can be used to do arbitrary things to the 48343965be93Schristos server (in theory). (Damien Neil) 48353965be93Schristos 48363965be93Schristos- Fix a case where if a client had two different leases the server could 48373965be93Schristos actually dereference the second one when it hadn't been referenced, 48383965be93Schristos leading to memory corruption and a core dump. (James Brister) 48393965be93Schristos 48403965be93Schristos- Fix a case where a client could request the address of another client's 48413965be93Schristos lease, but find_lease wouldn't detect that the other client had it, and 48423965be93Schristos would attempt to allocate it to the client, resulting in a lease conflict 48433965be93Schristos message. 48443965be93Schristos 48453965be93Schristos- Fix a case where a client with more than one client identifier could be 48463965be93Schristos given a lease where the hardware address was correct but the client 48473965be93Schristos identifier was not, resulting in a lease conflict message. 48483965be93Schristos 48493965be93Schristos- Fix a problem where the server could write out a colon-separated 48503965be93Schristos hex list as a value for a variable, which would then not parse. 48513965be93Schristos The fix is to always write strings as quoted strings, with any 48523965be93Schristos non-printable characters quoted as octal escape sequences. So 48533965be93Schristos a file written the old way still won't work, but new files written 48543965be93Schristos this way will work. 48553965be93Schristos 48563965be93Schristos- Fix documentation for sending non-standard options. 48573965be93Schristos 48583965be93Schristos- Use unparsable names for unknown options. WARNING: this will 48593965be93Schristos break any configuration files that use the option-nnn convention. 48603965be93Schristos If you want to continue to use this convention for some options, 48613965be93Schristos please be sure to write a definition, like this: 48623965be93Schristos 48633965be93Schristos option option-nnn code nnn = string; 48643965be93Schristos 48653965be93Schristos You can use a descriptive name instead of option-nnn if you like. 48663965be93Schristos 48673965be93Schristos- Fix a problem where we would see a DHCPDISCOVER/DHCPOFFER/ 48683965be93Schristos DHCPREQUEST/DHCPACK/DHCPREQUEST/DHCPNAK sequence. This was the 48693965be93Schristos result of a deceptively silly bug in supersede_lease. 48703965be93Schristos 48713965be93Schristos- Fix client script exit status check, according to a fix supplied by 48723965be93Schristos Hermann Lauer. 48733965be93Schristos 48743965be93Schristos- Fix an endianness bug in the tracefile support, regarding ICMP 48753965be93Schristos messages. 48763965be93Schristos 48773965be93Schristos- Fix a bug in the client where the medium would not work correctly if 48783965be93Schristos it contained quoted strings. 48793965be93Schristos 48803965be93Schristos ** there was no pl17 ** 48813965be93Schristos 48823965be93Schristos Changes since 3.0 Beta 2 Patchlevel 16 48833965be93Schristos 48843965be93Schristos- Add support for transaction tracing. This allows the state of the 48853965be93Schristos DHCP server on startup, and all the subsequent transactions, to be 48863965be93Schristos recorded in a file which can then be played back to reproduce the 48873965be93Schristos behaviour of the DHCP server. This can be used to quickly 48883965be93Schristos reproduce bugs that cause core dumps or corruption, and also for 48893965be93Schristos tracking down memory leaks. 48903965be93Schristos 48913965be93Schristos- Incorporate some bug fixes provided by Joost Mulders for the DLPI 48923965be93Schristos package which should clear up problems people have been seeing on 48933965be93Schristos Solaris. 48943965be93Schristos 48953965be93Schristos- Fix bugs in the handling of options stored as linked lists (agent 48963965be93Schristos options, fqdn options and nwip options) that could cause memory 48973965be93Schristos corruption and core dumps. 48983965be93Schristos 48993965be93Schristos- Fix a bug in DHCPREQUEST handling that resulted in DHCPNAK messages 49003965be93Schristos not being send in some cases when they were needed. 49013965be93Schristos 49023965be93Schristos- Make the lease structure somewhat more compact. 49033965be93Schristos 49043965be93Schristos- Make initial failover startup *much* faster. This was researched 49053965be93Schristos and implemented by Damien Neil. 49063965be93Schristos 49073965be93Schristos- Add a --version flag to all executables, which prints the program 49083965be93Schristos name and version to standard output. 49093965be93Schristos 49103965be93Schristos- Don't rewrite the lease file every thousand leases. 49113965be93Schristos 49123965be93Schristos- A bug in nit.c for older SunOS machines was fixed by a patch sent in 49133965be93Schristos by Takeshi Hagiwara. 49143965be93Schristos 49153965be93Schristos- Fix a memory corruption bug in the DHCP client. 49163965be93Schristos 49173965be93Schristos- Lots of documentation updates. 49183965be93Schristos 49193965be93Schristos- Add a feature allowing environment variables to be passed to the 49203965be93Schristos DHCP client script on the DHCP client command line. 49213965be93Schristos 49223965be93Schristos- Fix client medium support, which had been broken for some time. 49233965be93Schristos 49243965be93Schristos- Fix a bug in the DHCP client initial startup backoff interval, which 49253965be93Schristos would cause two DHCPDISCOVERS to be sent back-to-back on startup. 49263965be93Schristos 49273965be93Schristos Changes since 3.0 Beta 2 Patchlevel 15 49283965be93Schristos 49293965be93Schristos- Some documentation tweaks. 49303965be93Schristos 49313965be93Schristos- Maybe fix a problem in the DLPI code. 49323965be93Schristos 49333965be93Schristos- Fix some error code space inconsistencies in ddns update code. 49343965be93Schristos 49353965be93Schristos- Support relay agents that intercept unicast DHCP messages to stuff 49363965be93Schristos agent options into them. 49373965be93Schristos 49383965be93Schristos- Fix a small memory leak in the relay agent option support code. 49393965be93Schristos 49403965be93Schristos- Fix a core dump that would occur if a packet was sent with no 49413965be93Schristos options. 49423965be93Schristos 49433965be93Schristos Changes since 3.0 Beta 2 Patchlevel 14 49443965be93Schristos 49453965be93Schristos- Finish fixing a long-standing bug in the agent options code. This 49463965be93Schristos was causing core dumps and failing to operate correctly - in 49473965be93Schristos particular, agent option stashing wasn't working. Agent option 49483965be93Schristos stashing should now be working, meaning that agent options can be 49493965be93Schristos used in class statements to control address allocation. 49503965be93Schristos 49513965be93Schristos- Fix up documentation. 49523965be93Schristos 49533965be93Schristos- Fix a couple of small memory leaks that would have added up 49543965be93Schristos significantly in a high-demand situation. 49553965be93Schristos 49563965be93Schristos- Add a log-facility configuration parameter. 49573965be93Schristos 49583965be93Schristos- Fix a compile error on some older operating systems. 49593965be93Schristos 49603965be93Schristos- Add the ability in the client to execute certain statements before 49613965be93Schristos transmitting packets to the server. Handy for debugging; not much 49623965be93Schristos practical use otherwise. 49633965be93Schristos 49643965be93Schristos- Don't send faked-out giaddr when renewing or bound - again, useful 49653965be93Schristos for debugging. 49663965be93Schristos 49673965be93Schristos Changes since 3.0 Beta 2 Patchlevel 13 49683965be93Schristos 49693965be93Schristos- Fixed a problem where the fqdn decoder would sometimes try to store 49703965be93Schristos an option with an (unsigned) negative length, resulting in a core 49713965be93Schristos dump on some systems. 49723965be93Schristos 49733965be93Schristos- Work around the Win98 DHCP client, which NUL-terminates the FQDN 49743965be93Schristos option. 49753965be93Schristos 49763965be93Schristos- Work around Win98 and Win2k clients that will claim they want to do 49773965be93Schristos the update even when they don't have any way to do it. 49783965be93Schristos 49793965be93Schristos- Fix some log messages that can be printed when failover is operating 49803965be93Schristos that were not printing enough information. 49813965be93Schristos 49823965be93Schristos- It was possible for a DHCPDISCOVER to get an allocation even when 49833965be93Schristos the state machine said the server shouldn't be responding. 49843965be93Schristos 49853965be93Schristos- Don't load balance DHCPREQUESTs from clients in RENEWING and 49863965be93Schristos REBINDING, since in RENEWING, if we heard it, it's for us, and in 49873965be93Schristos REBINDING, the client wouldn't have got to REBINDING if its primary 49883965be93Schristos were answering. 49893965be93Schristos 49903965be93Schristos- When we get a bogus state lease binding state transition, don't do 49913965be93Schristos the transition. 49923965be93Schristos 49933965be93Schristos 49943965be93Schristos Changes since 3.0 Beta 2 Patchlevel 12 49953965be93Schristos 49963965be93Schristos- Fixed a couple of silly compile errors. 49973965be93Schristos 49983965be93Schristos Changes since 3.0 Beta 2 Patchlevel 11 49993965be93Schristos 50003965be93Schristos- Albert Herranz tracked down and fixed a subtle bug in the base64 50013965be93Schristos decoder that would prevent any key with an 'x' in its base64 50023965be93Schristos representation from working correctly. 50033965be93Schristos 50043965be93Schristos- Thanks to Chris Cheney and Michael Sanders, we have a fix for the 50053965be93Schristos hang that they both spotted in the DHCP server - when 50063965be93Schristos one-lease-per-client was set, the code to release the "other" lease 50073965be93Schristos could spin. 50083965be93Schristos 50093965be93Schristos- Fix a problem with alignment of the input buffer in bpf in cases 50103965be93Schristos where two packets arrive in the same bpf read. 50113965be93Schristos 50123965be93Schristos- Fix a problem where the relay agent would crash if you specified an 50133965be93Schristos interface name on the command line. 50143965be93Schristos 50153965be93Schristos- Add the ability to conditionalize client behaviour based on the 50163965be93Schristos client state. 50173965be93Schristos 50183965be93Schristos- Add support for the FQDN option, and added support for a new way of 50193965be93Schristos doing ddns updates (ddns update style interim) that allows more than 50203965be93Schristos one DHCP server to update the DNS for the same network(s). This 50213965be93Schristos was implemented by Damien Neil with some additional functionality 50223965be93Schristos added by Ted Lemon. 50233965be93Schristos 50243965be93Schristos- Damien added a "log" statement, so that the configuration file can 50253965be93Schristos be made to log debugging information and other information. 50263965be93Schristos 50273965be93Schristos- Fixed a bug that caused option buffers not to be terminated with an 50283965be93Schristos end option. 50293965be93Schristos 50303965be93Schristos- Fixed a long-standing bug in the support for option spaces where the 50313965be93Schristos options are stored as an ordered list rather than in a hash table, 50323965be93Schristos which could theoretically result in memory pool corruption. 50333965be93Schristos 50343965be93Schristos- Prevent hardware declarations with no actual hardware address from 50353965be93Schristos being written as something unparsable, and behave correctly in the 50363965be93Schristos face of a null hardware address on input. 50373965be93Schristos 50383965be93Schristos- Allow key names to be FQDNs, and qualify the algorithm name if it is 50393965be93Schristos specified unqualified. 50403965be93Schristos 50413965be93Schristos- Modify the DDNS update code so that it never prints the "resolver 50423965be93Schristos failed" message, but instead says *why* the resolver failed. 50433965be93Schristos 50443965be93Schristos- Officially support the subnet selection option, which now has an 50453965be93Schristos RFC. 50463965be93Schristos 50473965be93Schristos- Fix a build bug on MacOS X. 50483965be93Schristos 50493965be93Schristos- Allow administrator to disable ping checking. 50503965be93Schristos 50513965be93Schristos- Clean up dhcpd.conf documentation and add more information about how 50523965be93Schristos it works. 50533965be93Schristos 50543965be93Schristos Changes since 3.0 Beta 2 Patchlevel 10 50553965be93Schristos 50563965be93Schristos- Fix a bug introduced during debugging (!) and accidentally committed 50573965be93Schristos to CVS. 50583965be93Schristos 50593965be93Schristos Changes since 3.0 Beta 2 Patchlevel 9 50603965be93Schristos 50613965be93Schristos- Fix DHCP client handling of vendor encapsulated options. 50623965be93Schristos 50633965be93Schristos- Fix a bug in the handling of relay agent information options introduced 50643965be93Schristos in patchlevel 9. 50653965be93Schristos 50663965be93Schristos- Stash agent options on client leases by default, and use the stashed 50673965be93Schristos options at renewal time. 50683965be93Schristos 50693965be93Schristos- Add the ability to test the client's binding state in the client 50703965be93Schristos configuration language. 50713965be93Schristos 50723965be93Schristos- Fix a core dump in the DNS update code. 50733965be93Schristos 50743965be93Schristos- Fix some expression evaluation bugs that were causing updates to be 50753965be93Schristos done when no client hostname was received. 50763965be93Schristos 50773965be93Schristos- Fix expression evaluation debugging printfs. 50783965be93Schristos 50793965be93Schristos- Teach pretty_print_option to print options in option spaces other than 50803965be93Schristos the DHCP option space. 50813965be93Schristos 50823965be93Schristos- Add a warning message if the RHS of a not is not boolean. 50833965be93Schristos 50843965be93Schristos- Never select for more than a day, because some implementations of 50853965be93Schristos select will just fail if the timeout is too long (!). 50863965be93Schristos 50873965be93Schristos- Fix a case where a DHCPDISCOVER from an unknown network would be 50883965be93Schristos silently dropped. 50893965be93Schristos 50903965be93Schristos- Fix a bug where if a client requested an IP address for which a different 50913965be93Schristos client had the lease, the DHCP server would reallocate it anyway. 50923965be93Schristos 50933965be93Schristos- Fix the DNS update code so that if the client changes its name, the DNS 50943965be93Schristos will be correctly updated. 50953965be93Schristos 50963965be93Schristos Changes since 3.0 Beta 2 Patchlevel 8 50973965be93Schristos 50983965be93Schristos- Oops, there was another subtle math error in the header-length 50993965be93Schristos bounds-checking. 51003965be93Schristos 51013965be93Schristos Changes since 3.0 Beta 2 Patchlevel 7 51023965be93Schristos 51033965be93Schristos- Oops, forgot to byte-swap udp header length before bounds-checking it. 51043965be93Schristos 51053965be93Schristos Changes since 3.0 Beta 2 Patchlevel 6 51063965be93Schristos 51073965be93Schristos- Fix a possible DoS attack where a client could cause the checksummer 51083965be93Schristos to dump core. This was a read, not a write, so it shouldn't be 51093965be93Schristos possible to exploit it any further than that. 51103965be93Schristos 51113965be93Schristos- Implement client- and server-side support for using the Client FQDN 51123965be93Schristos option. 51133965be93Schristos 51143965be93Schristos- Support for other option spaces in the client has been added. This 51153965be93Schristos means that it is now possible to define a vendor option space on the 51163965be93Schristos client, request options in that space from the server (which must 51173965be93Schristos define the same option space), and then use those options in the 51183965be93Schristos client. This also allows NWIP and Client FQDN options to be used 51193965be93Schristos meaningfully. 51203965be93Schristos 51213965be93Schristos- Add object initializer support. This means that objects can now be 51223965be93Schristos initialized to something other than all-zeros when allocated, which 51233965be93Schristos makes, e.g., the interface object support code a little more robust. 51243965be93Schristos 51253965be93Schristos- Fix an off-by-one bug in the host stuffer. This was causing host 51263965be93Schristos deletes not the work, and may also have been causing OMAPI 51273965be93Schristos connections to get dropped. Thanks to James Brister for tracking 51283965be93Schristos this one down! 51293965be93Schristos 51303965be93Schristos- Fixed a core dump in the interface discovery code that is triggered 51313965be93Schristos when there is no subnet declaration for an interface, but the server 51323965be93Schristos decides to continue running. Thanks to Shane Kerr for tracking 51333965be93Schristos down and fixing this problem. 51343965be93Schristos 51353965be93Schristos Changes since 3.0 Beta 2 Patchlevel 5 51363965be93Schristos 51373965be93Schristos- Fix a bug in the recent enhancement to the interface discovery code 51383965be93Schristos to support arbitrary-length interface lists. 51393965be93Schristos 51403965be93Schristos- Support NUL-terminated DHCP options when initializing client-script 51413965be93Schristos environment. 51423965be93Schristos 51433965be93Schristos- Fix suffix operator. 51443965be93Schristos 51453965be93Schristos- Fix NetWare/IP option parsing. 51463965be93Schristos 51473965be93Schristos- Better error/status checking in dhcpctl initialization and omapi 51483965be93Schristos connection code. 51493965be93Schristos 51503965be93Schristos- Fix a potential memory smash in dhcpctl code. 51513965be93Schristos 51523965be93Schristos- Fix SunOS4 and (maybe) Ultrix builds. 51533965be93Schristos 51543965be93Schristos- Fix a bug where a certain sort of incoming packet could cause a core 51553965be93Schristos dump on Solaris (and probably elsewhere). 51563965be93Schristos 51573965be93Schristos- Add some more safety checks in error logging code. 51583965be93Schristos 51593965be93Schristos- Add support for ISC_R_INCOMPLETE in OMAPI protocol connection code. 51603965be93Schristos 51613965be93Schristos- Fix relay agent so that if an interface is specified on the command 51623965be93Schristos line, the relay agent does not dump core. 51633965be93Schristos 51643965be93Schristos- Fix class matching so that match if can be combined with match or 51653965be93Schristos spawn with. 51663965be93Schristos 51673965be93Schristos- Do not allow spurious leases in the lease database to introduce 51683965be93Schristos potentially bogus leases into the in-memory database. 51693965be93Schristos 51703965be93Schristos- Fix a byte-order problem in the client hardware address type code 51713965be93Schristos for OMAPI. 51723965be93Schristos 51733965be93Schristos- Be slightly less picky about what sort of hardware addresses OMAPI 51743965be93Schristos can install in host declarations. 51753965be93Schristos 51763965be93Schristos Changes since 3.0 Beta 2 Patchlevel 4 51773965be93Schristos 51783965be93Schristos- Incorporated Peter Marschall's proposed change to array/record 51793965be93Schristos parsing, which allows things like the slp-agent option to be encoded 51803965be93Schristos correctly. Thanks very much to Peter for taking the initiative to 51813965be93Schristos do this, and for doing such a careful job of it (e.g., updating the 51823965be93Schristos comments)! 51833965be93Schristos 51843965be93Schristos- Added an encoding for the slp-agent option. :') 51853965be93Schristos 51863965be93Schristos- Fixed SunOS 4 build. Thanks to Robert Elz for responding to my 51873965be93Schristos request for help on this with patches! 51883965be93Schristos 51893965be93Schristos- Incorporated a change that should fix a problem reported by Philippe 51903965be93Schristos Jumelle where when the network connection between two servers is 51913965be93Schristos lost, they never reconnect. 51923965be93Schristos 51933965be93Schristos- Fix client script files other than that for NetBSD to actually use 51943965be93Schristos make_resolv_conf as documented in the manual page. 51953965be93Schristos 51963965be93Schristos- Fix a bug in the packet handling code that could result in a core 51973965be93Schristos dump. 51983965be93Schristos 51993965be93Schristos- Fix a bug in the bootp code where responses on the local net would 52003965be93Schristos be sent to the wrong MAC address. Thanks to Jerry Schave for 52013965be93Schristos catching this one. 52023965be93Schristos 52033965be93Schristos Changes since 3.0 Beta 2 Patchlevel 3 52043965be93Schristos 52053965be93Schristos- In the DHCP client, execute client statements prior to using the values 52063965be93Schristos of options, so that the client configuration can overridden, e.g., the 52073965be93Schristos lease renewal time. 52083965be93Schristos 52093965be93Schristos- Fix a reference counting error that would result in very reproducible 52103965be93Schristos failures in updates, as well as occasional core dumps, if a zone was 52113965be93Schristos declared without a key. 52123965be93Schristos 52133965be93Schristos- Fix some Linux 2.0 compilation problems. 52143965be93Schristos 52153965be93Schristos- Fix a bug in scope evaluation during execution of "on" statements that 52163965be93Schristos caused values not to be recorded on leases. 52173965be93Schristos 52183965be93Schristos- If the dhcp-max-message-size option is specified in scope, and the 52193965be93Schristos client didn't send this option, use the one specified in scope to 52203965be93Schristos determine the maximum size of the response. 52213965be93Schristos 52223965be93Schristos Changes since 3.0 Beta 2 Patchlevel 2 52233965be93Schristos 52243965be93Schristos- Fix a case where spawning subclasses were being allocated 52253965be93Schristos incorrectly, resulting in a core dump. 52263965be93Schristos 52273965be93Schristos- Fix a case where the DHCP server might inappropriately NAK a 52283965be93Schristos RENEWING client. 52293965be93Schristos 52303965be93Schristos- Fix a place dhcprequest() where static leases could leak. 52313965be93Schristos 52323965be93Schristos- Include memory.h in omapip_p.h so that we don't get warnings about 52333965be93Schristos using memcmp(). 52343965be93Schristos 52353965be93Schristos Changes since 3.0 Beta 2 Patchlevel 1 52363965be93Schristos 52373965be93Schristos- Notice when SIOCFIGCONF returns more data than fit in the buffer - 52383965be93Schristos allocate a larger buffer, and retry. Thanks to Greg Fausak for 52393965be93Schristos pointing this out. 52403965be93Schristos 52413965be93Schristos- In the server, if no interfaces were configured, report an error and 52423965be93Schristos exit. 52433965be93Schristos 52443965be93Schristos- Don't ever record a state of 'startup'. 52453965be93Schristos 52463965be93Schristos- Don't try to evaluate the local failover binding address if none was 52473965be93Schristos specified. Thanks to Joseph Breu for finding this. 5248