2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-28 12:57:42 +00:00

103 Commits

Author SHA1 Message Date
Thomas Markwalder
0cd94b5ef4 [#64,!35] Restored work
Restored cummulative work.
2019-11-22 13:39:45 -05:00
Thomas Markwalder
8194daabfd [master] Added includes of new BIND9 compatibility headers, updated util/bind.sh
Merges in rt48072.
2018-09-14 13:41:41 -04:00
Francis Dupont
563f0b8aef Merged rt44535 (relay port) 2017-12-23 01:18:23 +01:00
Thomas Markwalder
0d6d300fec [master] Fixed compiler warning under 32-bit systems 2017-12-21 15:26:23 -05:00
Thomas Markwalder
f1208e796d [master] dhcpd (-6) now supports update-static-leases
Merges in rt34097.
2017-12-19 13:29:32 -05:00
Thomas Markwalder
bafa7b74c4 [master] Added --release-on-roam server parameter
Merges in 46849.
2017-12-18 14:00:46 -05:00
Thomas Markwalder
e8b058cfa5 [master] Fixes minor coverity issues
Merges in rt46836
2017-12-18 13:50:03 -05:00
Thomas Markwalder
9b348d7d48 [master] Fixed static v6 leases not getting written to packet
Merges in rt45292a.
2017-12-11 16:32:03 -05:00
Thomas Markwalder
bbdac71d26 [master] server (-6) now supports dhcp-cache-threshold
Merges in rt45292.
2017-12-07 10:48:06 -05:00
Thomas Markwalder
59336f8007 [master] Server(v6) releases pre-existing leases when client roams to new network
Merges in rt44576.
2017-12-07 07:02:06 -05:00
Thomas Markwalder
d1489a35a9 [master] Honor prefix length hint for returning clients
Merges in rt45780.
2017-09-06 10:25:17 -04:00
Thomas Markwalder
7512d88b9f [master] Replaced licensing text with MPL licensing text throughout 2017-07-12 09:23:23 -04:00
Thomas Markwalder
ab777749db [master] Server now handles prefix/pool prefix length mismatches
Merged in 35378.
2017-06-12 10:34:36 -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
785c1a519e Merged rt35711c (DHCPv4-over-DHCPv6 support) 2016-02-23 10:40:10 +01:00
Thomas Markwalder
45086eef45 [master] Fixed several minor Coverity issues
Merges in rt35144.
2016-02-18 11:21:42 -05: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
36c4a03705 [master] Enhance support for long and infinite leases in v6 server 2016-01-25 21:16:00 -08:00
Shawn Routhier
34711bb79b [master] Be more liberal when trying to find a group for a host prefix
When trying to find the group to use as a scope boundary for
a prefix from a host declaration relax the requirement that the
prefix be within a subnet.  We now look for the subnet based on
the prefix, if that fails we look for a subnet based on the host
address if it exists and if that fails we use the one from the
shared network we found for the client.
2015-06-26 13:15:59 -07:00
Thomas Markwalder
158ffa9064 [master] Fixed unused variable error introduced by 21235
server/dhcpv6.c - removed unused variable
2015-04-10 14:04:29 -04:00
Thomas Markwalder
b31fe1d552 [master] Server rejects unicast messages unless unicast option is defined
Merges in rt21235.
2015-04-10 11:06:51 -04:00
Thomas Markwalder
f48dfdf174 [master] Fixed minor compilation complaint in server/dhcpv6 2015-01-08 14:09:59 -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
Thomas Markwalder
a07d99bbef [master] Corrects medium impact issues reported by Coverity.
Merges in rt36933
2014-08-28 08:12:30 -04:00
Shawn Routhier
ad80055f72 [master] Add code to help clean up soft leases 2014-06-20 12:44:38 -07: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
388cba45bb [master] Remove the pre-errata code for handling no addresses available 2014-04-29 09:59:21 -07:00
Shawn Routhier
619304cd87 [master] Support using v6 relay options in server decicions. 2013-11-25 21:00:41 -08:00
Shawn Routhier
d9b5c150b7 [master]
Add log messages for when the addresses we assign.
2013-10-31 14:09:24 -07:00
Shawn Routhier
58cb5d861d [master]
Squashed commit of the following:

commit 9b0ea01f2afd1fb7ec1409166183a92731314ca7
Author: Shawn Routhier <sar@isc.org>
Date:   Tue Oct 22 12:02:41 2013 -0700

    -n [rt34924]
    Modify the on_commit code to use a reasonable scope as the reply->lease
    value may not be set, we should use the tmp->scope as we go through
    the iasubopts.
2013-10-30 13:34:22 -07:00
Mark Andrews
f1ef85cf1e address: dhcpv6.c: In function 'reply_process_ia_ta': dhcpv6.c:2784: warning: 'p' might be used uninitialized in this function 2013-08-28 12:25:33 +10: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
Mark Andrews
dc9d7b08aa - Silence benign static analysis warnings.
[ISC-Bugs #33428]
2013-05-15 10:49:54 +10:00
Shawn Routhier
0f750c4fb1 [master]
[rt23833]
Clean up a number of items identified by the Coverity
static analysis tool.  Runs courtesy of Red Hat.
2012-10-16 15:05:24 -07:00
Shawn Routhier
0b2ec8c99c [rt30281]
Modify the renew_lease6() code to properly handle a lease time
that is reduced rather than extended.
Fix the ATF tests for mdb6 and add a new test to check the
above condition.
2012-08-17 12:05:49 -07:00
Shawn Routhier
355db4b687 [rt30024]
Move the line that zeros the packet_oro variable to
be earlier so it is properly cleared if we exit early.
2012-07-12 22:55:19 -07:00
Shawn Routhier
3bedb11744 [rt30024] This is a commit message
Fix a pair of memory leaks.
2012-07-11 14:50:35 -07:00
Shawn Routhier
e563ec2e58 When attempting to convert a DUID from a client id option
into a hardware address handle unexpected client ids properly.
Thanks to Markus Hietava of Codenomicon CROSS project for the
finding this issue and CERT-FI for vulnerability coordination.
[ISC-Bugs #29852]
CVE: CVE-2012-3570
2012-06-27 21:33:25 +00:00
Shawn Routhier
cbbd2714d6 - Rotate the lease file when running in v6 mode.
[ISC-Bugs #24887]
2012-05-15 21:07:17 +00:00
Shawn Routhier
d19fa5a1b5 Fix the NA and PD allocation code to handle the case where a client
provides a preference and the server doesn't have any addresses or
prefixes available.  Previoulsy the server ignored the request with
this patch it replies with a NoAddrsAvail or NoPrefixAvai respone.
By default the code performs according to the errata of August 2010
for RFC 3315 section 17.2.2, to enable the previous style see the
seciton on RFC3315_PRE_ERRATA_2010_08 in includes/site.h.  This option
may be removed in the future.
Thanks to Jiri Popelka at Red Hat for the patch.
[ISC-Bugs #22676]
2012-04-10 22:13:46 +00:00
Shawn Routhier
bc7f8b8e39 Multiple items to clean up IPv6 address processing.
When processing an IA that we've seen check to see if the
addresses are usable (not in use by somebody else) before
handing it out.
When reading in leases from the file discard expired addresses.
When picking an address for a client include the IA ID in
addition to the client ID to generally pick different addresses
for different IAs.
[ISC-Bugs #23138] [ISC-Bugs #27945] [ISC-Bugs #25586]
[ISC-Bugs #27684]
2012-04-10 00:54:35 +00:00
Shawn Routhier
b342f2e77c Use offsetof() instead of sizeof() to get the sizes for dhcpv6_relay_packet
and dhcpv6_packet in several more places.  Thanks to a report from
Bruno Verstuyft and Vincent Demaertelaere of Excentis.
[ISC-Bugs #27941]
2012-03-20 00:31:34 +00:00
Tomek Mrugalski
dd9237c309 Fixed many compilation problems ("set, but not used" warnings) for
gcc 4.6 that may affect Ubuntu 11.10 users. [ISC-Bugs #27588]
2012-03-09 11:18:14 +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
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
4dc5a6b1fa Handle a relay forward message with an unspecified address in the
link address field.  Previously such a message would cause the
server to crash.  [ISC-Bugs #21992]
2010-10-22 19:50:24 +00:00