2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 22:05:23 +00:00
Commit Graph

3694 Commits

Author SHA1 Message Date
Mark Andrews
5c09391c07 remove redundant test, unsigned is always >= 0 2011-05-13 01:57:38 +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
5ce8d6e749 autoconf regeneration 2011-04-15 21:59:34 +00:00
Shawn Routhier
0c717c54d1 automake regeneration 2011-04-15 21:59:27 +00:00
Shawn Routhier
76518e404a autoheader regeneration 2011-04-15 21:59:16 +00:00
Shawn Routhier
6baa26a86d aclocal regeneration 2011-04-15 21:59:07 +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
Mark Andrews
7a1474f4f3 temporally disable with-gssapi 2011-04-06 00:41:10 +00:00
Mark Andrews
1405aa2ddc move declartations to start of block 2011-04-04 23:09:43 +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
b7b43092cf Add tag for 4.2.1 => 9.8.0 2011-02-25 20:08:55 +00:00
Shawn Routhier
e950a7be32 Add paragraph explaining some Solaris compiler issues.
[ISC-Bugs #21791]
2011-02-24 00:03:42 +00:00
Shawn Routhier
27ad8b925d Correct typo occurrance => occurrence 2011-02-23 23:50:55 +00:00
Shawn Routhier
195713c085 Add bind tag for 4.2.1rc1 2011-02-18 19:50:45 +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
8f95db4168 autoconf regeneration 2011-02-18 18:48:44 +00:00
Shawn Routhier
056309fef2 automake regeneration 2011-02-18 18:48:39 +00:00
Shawn Routhier
4229108cc4 autoheader regeneration 2011-02-18 18:48:15 +00:00
Shawn Routhier
34bfcecdbe aclocal regeneration 2011-02-18 18:48:04 +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
Mark Andrews
4176a7009d cast to int for * in $.*s 2011-02-16 03:22:56 +00:00
Shawn Routhier
4fc3ad3285 Fix typo disclean => distclean 2011-02-11 22:48:20 +00:00
Shawn Routhier
f4bf07c6a5 Add tag for 4.2.1b1 to HEAD 2011-01-28 22:37:40 +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
9043399dc3 Clean up for 22033 - remove printing the seconds value
to avoid problems with printing it in an OS agnostic manner.
2010-12-29 21:40:33 +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
Mark Andrews
72c446672f fix pointer 2010-12-09 01:19:10 +00:00