2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 05:17:57 +00:00

604 Commits

Author SHA1 Message Date
Shawn Routhier
846af1cd69 Added cve number 2011-11-23 17:25:30 +00:00
Shawn Routhier
317d1182fa Add acknowledgement 2011-11-23 00:24:47 +00:00
Shawn Routhier
b95f1ee070 Add a check for a null pointer before calling the regexec function.
Without out this check we could, under some circumstances, pass
a null pointer to the regexec function causing it to segfault.
[ISC-Bugs #26704].
2011-11-22 23:56:50 +00:00
Shawn Routhier
09afca0d73 Correct typos it's => its 2011-10-14 19:43:10 +00:00
Shawn Routhier
3221151b74 Enhanced patch for 23595 to handle IPv4 fixed addresses more
cleanly.
2011-10-04 19:36:15 +00:00
Shawn Routhier
d424157d63 Add support for passing DDNS information to a DNS server over
an IPv6 address.  [ISC-Bugs #22647]
2011-09-21 20:36:55 +00:00
Shawn Routhier
25f664a63d Add AM_MAINTAINER_MODE to configure.ac to avoid rebuilding
configuration files.  [ISC-Bugs #24107]
2011-09-13 23:01:53 +00:00
Shawn Routhier
d208bb0431 Fix the code that checks for an existing DDNS transaction to cancel
when removing DDNS information, so that we will continue with the
processing if we have a lease even if it doesn't have an outstanding
transaction.  [ISC-Bugs #24682]
2011-08-22 20:39:19 +00:00
Shawn Routhier
8bd96ccb21 Two packets were found that cause a server to halt. The code
has been updated to properly process or reject the packets as
appropriate.  Thanks to David Zych at University of Illinois
for reporting this issue.  [ISC-Bugs #24960]
One CVE number for each class of packet.
CVE-2011-2748
CVE-2011-2749
2011-07-19 22:13:26 +00:00
Shawn Routhier
beaed73f00 DNS Update fix. A misconfigured server could crash during DNS update
processing if the configuration included overlapping pools or
multiple fixed-address entries for a single address.  This issue
affected both IPv4 and IPv6. The fix allows a server to detect such
conditions, provides the user with extra information and recommended
steps to fix the problem.  If the user enables the appropriate option
in site.h then server will be terminated
2011-07-08 22:49:11 +00:00
Tomek Mrugalski
d15aa96419 - Strict checks for content of domain-name DHCPv4 option can now be
configured during compilation time. Even though RFC2132 does not allow
  to store more than one domain in domain-name option, such behavior is
  now enabled by default, but this may change some time in the future.
  See ACCEPT_LIST_IN_DOMAIN_NAME define in includes/site.h.
  [ISC-Bugs #24167]
2011-07-01 12:07:09 +00:00
Shawn Routhier
7cfeb9160d In Solaris 11 switch to using sockets instead of DLPI, thanks
to a patch form Oracle.  [ISC-Bugs #24634].
2011-06-27 16:00:32 +00:00
Shawn Routhier
786f2e79cc Enlarge the buffer size used by the Omshell code and some of the
print routines to allow for greater than 60 characters or, when
printing as hex strings, 20 characters.  [ISC-Bugs #22743]
2011-06-01 23:25:37 +00:00
Shawn Routhier
199f0b8abb Convert ISC_R_INPROGRESS status to ISC_R_SUCCESS when called from other
than the dispatch handler.  This fixes an issue where omshell, when
run from the same platform as the server, would appear to fail to
connect.  This is a companion to #21839.  [ISC-Bugs #23592]
2011-05-24 00:36:58 +00:00
Tomek Mrugalski
1b601efa2c Server no longer complains about NULL pointer when configured
server-identifier expression fails to evaluate. [ISC-Bugs #24547]
2011-05-23 10:34:10 +00:00
Tomek Mrugalski
802fdea172 - Documentation cleanup
[ISC-Bugs #23326] Updated References document, several man page updates
2011-05-20 13:48:33 +00:00
Shawn Routhier
4f55e11bd4 Client Script fixes
[ISC-Bugs #23045] Typos in client/scripts/openbsd
[ISC-Bugs #23565] In the client scripts add a zone id (interface id) if
the domain search address is link local.
[ISC-Bugs #1277] In some of the client scripts add code to handle the
case of the default router information being changed without the address
being changed.
2011-05-18 19:55:44 +00:00
Tomek Mrugalski
929a236497 - If a client renews before 'dhcp-cache-threshold' percent of its lease
has elapsed (default 25%), the server will reuse the allocated lease
  (provide a lease within the currently allocated lease-time) rather
  than extend or renew the lease.  This absolves the server of needing
  to perform an fsync() operation on the lease database before reply,
  which improves performance. [ISC-Bugs #22228]
2011-05-12 13:26:55 +00:00
Tomek Mrugalski
c616de4f1e Compilation problem with gcc4.5 and omshell.c resolved. [ISC-Bugs #23831] 2011-05-12 11:16:41 +00:00
Tomek Mrugalski
a34feb7d81 - Code cleanup: remove obsolete PROTO, KandR, INLINE and ANSI_DECL macros
[ISC-Bugs #13151]
2011-05-11 14:01:25 +00:00
Shawn Routhier
fb30f3fc8b Minor code cleanups - but note port change for #23196
[ISC-Bugs #23470] - Modify when an ignore return macro is defined to
handle unsed error return warnings for more versions of gcc.
[ISC-Bugs #23196] - Modify the reply handling in the server code to
send to a specified port rather than to the source port for the incoming
message.  Sending to the source port was test code that should have
been removed.  The previous functionality may be restored by defining
REPLY_TO_SOURCE_PORT in the includes/site.h file.  We suggest you don't
enable this except for testing purposes.
[ISC-Bugs #22695] - Close a file descriptor in an error path.
[ISC-Bugs #19368] - Tidy up variable types in validate_port.
2011-05-11 00:38:56 +00:00
Tomek Mrugalski
9369bdc121 Linux Packet Filter interface improvement. sockaddr_pkt structure is used,
rather than sockaddr. Packet ethertype is now forced to ETH_P_IP.
[ISC-Bugs #18975]
2011-05-10 14:27:56 +00:00
Tomek Mrugalski
c6455252e8 Relay now properly logs that packet was received over interface without
global IPv6 address [ISC-Bugs #24070]
2011-05-10 12:54:36 +00:00
Tomek Mrugalski
1185c76639 Relay no longer crashes, when DHCP packet is received over interface without
any IPv4 address assigned. Also extended logging message about discarding
packets with invalid hlen with information about relevant interface name.
[ISC-Bugs #22409]
2011-05-10 11:24:44 +00:00
Shawn Routhier
fc06ee4f46 Documentation fixes
[ISC-Bugs #17959] add text to AIX section describing how to have it send
responses to the all-ones address.
[ISC-Bugs #19615] update the includes in dhcpctl/dhcpctl.3 to be more correct
[ISC-Bugs #20676] update dhcpd.conf.5 to include the RFC numbers for DDNS
2011-04-25 23:43:16 +00:00
Tomek Mrugalski
656b1ecebe The DHCP server now responds to DHCPLEASEQUERY messages from agents using
IP addresses not covered by a subnet in configuration. Server also returns
vendor-class-id option, if client sent it. [ISC-Bugs #21094]
2011-04-22 13:21:35 +00:00
Tomek Mrugalski
023fbaa03e - Parameters configured to evaluate from user defined function calls can
now be correctly written to dhcpd.leases
- If a 'next-server' parameter is configured in a dynamic host record via
  OMAPI as a domain name, the syntax written to disk is now correctly parsed
  upon restart.  [ISC-Bugs #22266]
2011-04-21 17:53:48 +00:00
Tomek Mrugalski
73c83820fe Added missing ticket numbers to RELNOTES entries. [ISC-Bugs #19660] 2011-04-21 14:41:35 +00:00
Tomek Mrugalski
5d082abd92 Several time related improvements:
- set initial delay to 0 to speed up client start
- added 'initial-delay' parameter to possibly revert to old behavior
- better handling of very short (1 or 2s) leases
- client lease records are recorded at most once every 15 seconds
- ICMP ping-check is now timed more precisely
- Servers that don't offer lease-time are now black-listed
[ISC-Bugs #19660]
2011-04-21 13:24:24 +00:00
Shawn Routhier
4a5bfeacbe Add the option "--no-pid" to the client, relay and server code,
to disable writing a pid file.  Add the option "-pf pidfile"
to the relay to allow the user to supply the pidfile name at
runtime.  Add the "with-relay6-pid-file" option to configure
to allow the user to supply the pidfile name for the relay
in v6 mode at configure time.
[ISC-Bugs #23351] [ISC-Bugs #17541]
2011-04-15 21:58:12 +00:00
Tomek Mrugalski
c7aa4dd4a4 DHCPv6 server now responds properly if client asks for a prefix that
is already assigned to a different client. [ISC-Bugs #23948]
2011-04-13 09:53:26 +00:00
Shawn Routhier
bea1769742 In dhclient check the data for some string options for
reasonableness before passing it along to the script that
interfaces with the OS. [ISC-Bugs #23722]
2011-03-24 21:11:01 +00:00
Shawn Routhier
17a8f0e2b4 Modify the dlpi code to accept getmsg() returning a positive value.
[ISC-Bugs #22824]
2011-02-18 19:12:50 +00:00
Shawn Routhier
8a0d9ca439 Some fixes for LDAP
[ISC-Bugs #21783] - Include lber library when building ldap
[ISC-Bugs #22888] - Enable the ldap code when buidling common
2011-02-18 18:41:25 +00:00
Shawn Routhier
919f14071d Handle some DDNS corner cases better. Maintain the DDNS transaction
information when updating a lease and cancel any existing transactions
when removing the ddns information.
[ISC-Bugs #23103]
2011-02-18 18:18:20 +00:00
Shawn Routhier
ef86959bc0 Tidy up release note for 23039, including adding the ticket number 2011-02-18 17:42:49 +00:00
Mark Andrews
3ecaf2f244 grammer 2011-02-18 01:57:29 +00:00
Mark Andrews
7900af4bef - Removed the restriction on using IPv6 address in IPv4 mode. This allow
IPv4 options which contain IPv6 address to be specified.  For example
  the 6rd option can be specified and use like this:

        option 6rd code 212 = { integer 8, integer 8,
                                ip6-address, array of ip-address };
        option 6rd 16 10 2001:: 1.2.3.4, 5.6.7.8;
2011-02-18 01:41:30 +00:00
Shawn Routhier
45918d36d0 Fix typo in 21921 note 2011-01-21 00:15:29 +00:00
Shawn Routhier
e8f330a1e4 Correctly spell crashing 2011-01-20 20:53:50 +00:00
Shawn Routhier
c8b189f174 When processing a request in the DHCPv6 server code that specifies
an address that is tagged as abondened (meaning we received a
decline request for it previously) don't attempt to move it from
the inactive to active pool as doing so can result in the server
crshing on an assert failure.  Also retag the lease as active
and reset it's timeout value.
[ISC-Bugs #21921]
2011-01-20 19:13:41 +00:00
Shawn Routhier
e7e1739744 Disable the use of kqueue in the ISC library. This avoids a problem
between the fork and socket code that caused the dhcpd process to
use all available cpu if the program daemonized itself.
[ISC-Bugs #21911]
2010-12-30 22:35:48 +00:00
Shawn Routhier
e1a402115d When processing the format flags for a given option consume the
flag indicating an optional value correctly.  A symptom of this
bug was an infinite loop when trying to parse the slp-service-scope
option.  Thanks to a patch from Marius Tomaschewski.
[ISC-Bugs #22055]
2010-12-29 22:56:01 +00:00
Shawn Routhier
0c9d3a8108 Limit the timeout period allowed in the dispatch code to 2^^32-1 seconds.
Thanks to a report from Jiri Popelka at Red Hat.
[ISC-Bugs #22033], [Red Hat Bug #628258]
2010-12-14 23:06:50 +00:00
Shawn Routhier
dbaa902c66 Add Brad's name to the entry for 22679 2010-12-14 22:54:12 +00:00
Shawn Routhier
23d39ae2d8 Don't pass the ISC_R_INPROGRESS status to the omapi signal handlers.
Passing it through to the handlers caused the omshell program to fail
to connect to the server.  [ISC-Bugs #21839]

Fix the paranthesis in the code to process configuration statements
beginning with "auth".  The previous arrangement caused
"auto-partner-down" to be processed incorrectly.  [ISC-Bugs #21854]
2010-12-14 21:59:44 +00:00
Shawn Routhier
9d97e6445e Fix the handling of connection requests on the failover port.
Previously a connection request from a source that wasn't
listed as a failover peer would cause the server to become
non-responsive.  [ISC-Bugs #22679]
CERT: VU#159528 CVE: CVE-2010-3616
2010-12-13 20:31:08 +00:00
Shawn Routhier
42cbff6349 In the entry for ticket 22626 correct the ticket that
we are fixing to 21585.
2010-12-03 20:45:14 +00:00
Shawn Routhier
391965129d Restore printing of values in omshell to the style pre 21518. For
21518 we changed the print routines to always display time values
as a hex list.  This had a side effect of printing all data strings
as a hex list.  We shall investigate other ways of displaying time
values more usefully.  [ISC-Bugs #22626]
2010-12-03 20:27:51 +00:00
Shawn Routhier
3004babab1 Ignore sigpipe if possible. 22269 2010-11-18 19:47:36 +00:00