2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-22 01:49:35 +00:00

374 Commits

Author SHA1 Message Date
Thomas Markwalder
7512d88b9f [master] Replaced licensing text with MPL licensing text throughout 2017-07-12 09:23:23 -04:00
Thomas Markwalder
30afd7dbfa [master] Removed obsolete source directory minires.
Merges in rt45471.
2017-06-29 08:50:56 -04:00
Thomas Markwalder
6ec59010ef [master] Check failover pools per peer in test mode
Merges in rt29892
2017-06-27 10:10:26 -04:00
Thomas Markwalder
68507137e1 [master] Altered v4 lease time handling better handle infinite and large times
Merged in rt41976
2017-05-10 13:11:03 -04:00
Thomas Markwalder
417b7b4a6d [master] Server now supports EUI-64 based address allocation scheme
Merged rt43927.
2017-04-26 14:09:31 -04:00
Francis Dupont
bf6f8fcee9 Almost done (still aestetic fixes and of course doc, doc, doc) 2016-10-06 20:45:50 +02:00
Francis Dupont
29b23207c0 Daemonize sooner (code from bind9/named) (rebased) 2016-10-01 01:35:37 +02:00
Thomas Markwalder
a5252220fb [master] Add abandon-lease-time parameter
Merges in rt41815.
2016-07-07 14:11:26 -04:00
Thomas Markwalder
cc1bd34e09 [master] Added lease-id-format to server and client
Merges in rt26378
2016-03-04 14:16:29 -05:00
Francis Dupont
785c1a519e Merged rt35711c (DHCPv4-over-DHCPv6 support) 2016-02-23 10:40:10 +01:00
Thomas Markwalder
dce576b860 [master] Add global DHCPv6 option, dhcpv6-set-tee-times to calculate T1/T2
Merges in rt25687
2016-02-16 13:07:02 -05:00
Thomas Markwalder
62a9eb918c [master] Add support for relayed client-linklayer-address option (RFC 6939)
Merges in rt40334.
2016-01-28 16:30:01 -05:00
Shawn Routhier
4ced250f58 [master] Terminate strings before calling regexec
Make sure strings are terminated before callng regexec.
    If they are we can simply copy the pointers, if they
    aren't we need to copy the string into a new block
    of memory.

    Fix a boundary error in data_string_new()
2016-01-15 19:49:23 -08:00
Shawn Routhier
75ab52e12b [master] Remove some incorrect #ifdefs
As part of 33990 we removed some #ifdefs for DEBUG_MEMORY
but we didn't get all of them.  Remove the extra ones.
2016-01-07 11:35:44 -08:00
Shawn Routhier
c88dfebddd [master] Update client code to RFC7550
Update the v6 client code to handle getting
IA_NAs and IA_PDs in the same request better.

Squashed commit of the following:

commit ad1bf23100eba541c26c6c26fc2c5c9dc57dd674
Author: Shawn Routhier <sar@isc.org>
Date:   Mon Nov 16 23:08:13 2015 -0800

    [rt40190] Use dhc6_check_status for addresses and prefixes

commit 4cb1d499342e68c5c93b7e8dac71c9adbd737846
Author: Shawn Routhier <sar@isc.org>
Date:   Mon Nov 16 22:02:05 2015 -0800

    [rt40190] Correct the tests for a status code in the client

    Some of the tests for the NoAddrs or NoPrefix codes in the
    were incorrect, checking for a return of not success instead
    of success.

commit 41ad9ea4438c0f64b95ec7afeac38afd2f3b36cb
Author: Shawn Routhier <sar@isc.org>
Date:   Fri Nov 13 21:04:55 2015 -0800

    [rt40190] Update site.h to have the correct default

commit cb720dac6670e1a6cc19b22550506ded4093abef
Author: Shawn Routhier <sar@isc.org>
Date:   Fri Nov 13 21:03:38 2015 -0800

    [rt40190] update per second set of review comments

    Mostly this is a set of updates to the documentation.
    The only code change is to add a backwards compatibility
    option in includes/site.h for people who want the old weightings
    for the client lease scoring.

commit 269a5324b950062380b4e3988f56593dc21d05d9
Author: Thomas Markwalder <tmark@isc.org>
Date:   Thu Nov 12 09:00:36 2015 -0500

    [40190] Fixed another typo

commit 7da158497cd9236c30dfdce2b115818d1954839f
Author: Thomas Markwalder <tmark@isc.org>
Date:   Thu Nov 12 07:29:33 2015 -0500

    [40190] Minor cosmetics in dhc6.c

commit a010737de36e5ad2f46bb11f471ac66ccbc856aa
Author: Shawn Routhier <sar@isc.org>
Date:   Sat Nov 7 00:05:20 2015 -0800

    [rt40190] Update the use of the minimum score

    Update the use of the minimum score to use #defines instead
    of 150.  This corrects it for the current values and allows
    us to change the values if we include a backwards compatibility
    option.

commit b078575da08c06a75a49110273bf42e24d03c08a
Author: Shawn Routhier <sar@isc.org>
Date:   Fri Nov 6 21:55:05 2015 -0800

    [rt40190] Updates per review comments

    Update several comments to be more informative

    The code changes are mostly to fold all the two
    bare_ia routines together.

commit 248c498d45db5533f992fb6eb30ee6c3c399ee81
Author: Shawn Routhier <sar@isc.org>
Date:   Tue Oct 20 02:06:45 2015 -0700

    [rt40190] Fix up some typos

commit ba074eff2e82af0cfd25428e7f38bccd5fef7241
Author: Shawn Routhier <sar@isc.org>
Date:   Tue Oct 20 01:28:34 2015 -0700

    [rt40190] Patch for client side of 7550

    Finish up the code to handle multiple PDs and NAs
    in a single request, this includes updating the
    command line to add the -R option to require the
    requested IAs rather than accept the best advertised
    offer.

commit 5bb4368b8410e3c7bcdc28fdf4ae5572df04d03b
Author: Shawn Routhier <sar@isc.org>
Date:   Thu Oct 15 09:50:14 2015 -0700

    [rt40190] checkpoint my work

    The basic code is working there are still some issues with how
    corner cases get handled that I need to resolve

commit 4c0dba90fcd71c85fca3612aa5083fa11645f8f6
Author: Shawn Routhier <sar@isc.org>
Date:   Sun Oct 11 19:23:53 2015 -0700

    [rt40190] Some changes for rfc7550, to be updated

    This is being checked in so I can look at other tickets
    but I plan to re-arrange the code a fair amount.
2015-12-01 21:58:36 -08:00
Thomas Markwalder
ce29e69574 [master] Fixed memory leask in omapi dereferencing
Merges in rt33990.
2015-11-05 07:07:42 -05:00
Thomas Markwalder
347d4962d0 [master] Added authoring-btye-order parameter to lease file handling
Merged in rt38396.
2015-10-13 06:34:15 -04:00
Thomas Markwalder
743d69375c [master] LDAP: Pathces, IPv6 support, GSSAPI support
Merges in 39056.
2015-07-29 13:32:16 -04:00
Thomas Markwalder
6a39bcf0be [master] Fixed server crash after billing class is deleted
Merges in rt39978.
2015-07-29 08:32:50 -04:00
Shawn Routhier
7a6c9368c9 [master] Add fchown to the paranoia patch
Add code to fchown the lease file to the paranoia patch to avoid
having issues with a file that the server can't manipulate.
2015-07-15 14:14:39 -07:00
Shawn Routhier
45c332f037 [master] Add code to parse a vendor option as directed by the user.
Add code to parse a vendor option.  It is structured as an action
in the config language.  When the statement is executed it attempts
to find a vendor option in the packet and a vendor option space
specified by the admin for use with that packet.  It then calls
the proper parse routine to do the parsing.
2015-07-13 12:06:50 -07:00
Thomas Markwalder
e422b8c78f [master] Delayed-ack now works correctly with failover
Merges in 31474.
2015-06-15 15:19:42 -04:00
Shawn Routhier
3933e2aa51 [master] Add support for manipulating lease queues via a binary search.
Add support for manipluating the queues holding leaes for time
based events (free, backup, active, expired, abandoned and reserved)
via a binary search instead of walking through the linked list.
2015-05-27 13:17:46 -07:00
Thomas Markwalder
c2b5b5e8d4 [master] Fixed inconsistencies in setting hop count limit in dhcrelay
Merges in rt37426.
2015-01-19 13:25:18 -05:00
Thomas Markwalder
7e35d5b1a2 [master] Replaced use of ULLONG_MAX with ISC_UINT64_MAX.
ULLONG_MAX is not defined on hppa2.0w-hp-hpux.11.11, replaced
    it with ISC_UINT64_MAX in recently added macro, POND_TRACK_MAX
2015-01-15 06:59:52 -05:00
Thomas Markwalder
1a006ff6ed [master] Added DHCPv6 prefix-length-mode configuration parameter
Merges in rt36780.
2015-01-08 10:30:12 -05:00
Thomas Markwalder
fb98e02e12 [master] Log v6 shared network lease counts, when none available for a DUID
Merges in rt26376
2015-01-08 09:44:51 -05:00
Shawn Routhier
491bf4a27f [master] Don't call pool_timer recusively
Add a flag to avoid supersede_lease calling pool_timer
recursively when pool_timer can't handle that.
rt38002
2014-12-10 19:08:05 -08:00
Thomas Markwalder
7116a34fc9 [master] Replaced SERVER_ID_CHECK compile switch with runtime config parameter
Merges in rt37551.
2014-12-08 14:56:40 -05:00
Thomas Markwalder
04daf4fe4b [master] Fixed concatenation of "Dc" formatted options such as domain-search
Merges in rt20558.
2014-11-25 15:22:52 -05:00
Thomas Markwalder
f3a44c1037 [master] Enabling dhcp-cache-threshold no longer causes unnecessary DNS updates
Merges in rt37368.
2014-11-24 07:36:13 -05:00
Thomas Markwalder
d9b2a590e8 [master] Host declaration name can now be used in DNS forward name
Merges in rt21323.
2014-11-19 10:56:17 -05:00
Shawn Routhier
21d3034757 [master] Patch the failover code to avoid deadlocks
Patch for 36810 & 20352
This coves several related problems
1) When the primary is in conflict done it allows the secondary to
transition around resolution interrupted and potentical conflict previously
the primary would die on an illegal state.

2) It allows the servers to restart a bind update request.  Previously if
one of the servers sent an udpate request and there died (or had the communications
interrupted) in some states the first server wouldn't retransmit a new
update request and the other server wouldn't send any bind updates. This
was noticed in potential conflict.

3) Updated the state transitions to move the leases on the ack queue
back to the update queue in case of conflict-done as we might need to
retransmit them all.

4) Updated a transition from startup to potentical conflict instead
of resolution interrupted when the servers reconnect during the startup
phase in order to avoid a diffferent dead lock.
2014-11-10 19:04:13 -08:00
Thomas Markwalder
0a7e1a8ab0 [master] Add use-host-decl-names support to BOOTP
Merges in rt36233.
2014-10-27 14:51:20 -04:00
Thomas Markwalder
e046c82621 [master] Added echo-client-id server parameter
Merges in rt35958 which includes fix for rt32545
    Also updated dhcp/.gitignore
2014-10-17 07:56:01 -04:00
Thomas Markwalder
7ff6ae5aa8 [master] Checkum handling fixes
Merges in rt22806
2014-09-18 15:25:02 -04:00
Shawn Routhier
250f7134bb [master] Add support for pool thresholds
Add support to set high and low thresholds for pools for
v4 and v6.  A message will be emitted when the usage of
the pool first exceeds the high threshold.  More messages
will be skipped until the usage has gone below the low
threshold and then back above the high threshold.
2014-06-05 14:55:01 -07:00
Shawn Routhier
79818c9344 [master] Add -df option to client code to help share DUIDs
Add the "-df <duid file>" option to the client code in order
to make it easier to share DUIDs between a v4 instance and
a v6 instance.  This option instructs the client to search
the duid file for a DUID if it didn't find one in the main
lease file.

In addition add the infrastructure for running ATF tests
for the client and write some ATF tests for this patch.
2014-05-16 15:24:48 -07:00
Shawn Routhier
00e9af8ee0 [master] Add configure option to incude PID in syslog entries 2014-05-07 12:19:33 -07:00
Shawn Routhier
02b0bdc3cf [master] Some small client changes
18933 - add an extra server by name call
26735 - when requested via a command line option
        have client exit afer 1 failure per the docs
33098 - expose next-server option to dhclient script
2014-05-07 08:20:12 -07:00
Shawn Routhier
edad9be5cd [master] Remove vix.com and nominum.com
Remove old information from copyrights and
    man pages.
2014-01-26 10:52:15 -08:00
Shawn Routhier
38ee81bd80 [master] Patch to ignore UIDS
This patch adds an option to allow the administrator to tell the
server to ignore UIDS when choosing a lease.
2013-12-13 12:40:45 -08:00
Shawn Routhier
61ef216b8d [master] Add support for user selection of the from address for DDNS transactions 2013-12-11 08:08:42 -08:00
Shawn Routhier
e54ff84f08 -n master Patch for 30461 and update the auto generated files
Update the auto genrated files to add the required bind9
libraries

Fix up dhcpctl/Makefile.am to include the isccfg lib

Patch for 30461 to allow the DHCP server to find
the name server to update via the DNS
Conflicts:
2013-12-10 04:03:12 +00:00
Shawn Routhier
619304cd87 [master] Support using v6 relay options in server decicions. 2013-11-25 21:00:41 -08:00
Shawn Routhier
cde11a4cdb [master] Add option to suppress the use of fsync when writing lease files
The option is dont-use-async <flag> and it defaults to disabled.
2013-11-08 12:00:02 -08:00
Shawn Routhier
4b8251a0c0 -n [master]
Fix the socket handling for DHCPv6 clients to allow multiple instances
of a clinet on a single machine to work properly.
[ISC-Bugs #34784]
2013-10-21 14:59:41 -07:00
Shawn Routhier
d7d9c0c7c3 -n [master]
Add code to support the standards version of DDNS
2013-10-14 15:53:24 -07:00
Shawn Routhier
01fa619fab -n [master]
26510
 Add support for classes in the IPv6 code
2013-08-27 14:20:09 -07:00
Shawn Routhier
a7341359cc -n [master]
[rt27912]
    Add code to suppor on {commit expiry release} statements for DHCPv6.
    There are several pieces to this change
    1) Add space in the iasubopt structure to hold the statement pointers
    2) Update the execute code to fill in the structures as necessary
    3) Execute the statements when appropriate
    Many of the changes in the non-v6 code are to pass the v6 structures
    around to the execute code.
2013-08-27 13:40:47 -07:00