2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-28 04:47:40 +00:00

312 Commits

Author SHA1 Message Date
Wlodek Wencel
49a7fb582d copy rights update 2022-01-25 16:24:16 +01:00
Tomek Mrugalski
429a56d73c [#189] ISC address updated 2022-01-20 12:04:28 +01:00
Thomas Markwalder
0cd94b5ef4 [#64,!35] Restored work
Restored cummulative work.
2019-11-22 13:39:45 -05:00
Thomas Markwalder
fce94f06e3 [#13,!7] Corrected a backwards check in billing class logic
RELNOTES - added a release note.

server/dhcp.c
    ack_lease () - corrected the logic used to capture the billing
    class name for logging
2019-06-07 11:47:50 -04:00
Thomas Markwalder
5918b49344 [#10,!6] Addressed review comments
server/dhcp.c
    moved log message up

server/dhcpd.conf.5
    fixed missing paragraph marker
2019-06-07 08:16:15 -04:00
Thomas Markwalder
e6eccd10a8 [#10,!6] Added ping-timeout-ms parameter
You can now use ping-timeout-ms to specify the ping
timeout value in milliseconds.

includes/dhcpd.h
    new defines: SV_PING_TIMEOUT_MS and DEFAULT_PING_TIMEOUT_MS

server/dhcp.c
    do_ping_check() - modified to calculate ping time from
    ping-timeout-ms when its > 0, otherwise use ping-timeout
    Added timeout value to debug log message

server/dhcpd.conf.5
    Added discussion of ping-timeout-ms

server/stables.c
    Added entry for ping-timeout-ms
2019-05-01 15:55:11 -04:00
Thomas Markwalder
a5b21e16ff [master] Added configuration parameter, ping-cltt-secs (v4 operation only)
Merges in rt36283.
2018-09-26 11:10:16 -04:00
Thomas Markwalder
6826003be8 [master] Correct delayed-ack 0 prohibiting active lease updates to lease file
Merges in 47141.
2018-02-09 09:19:54 -05:00
Francis Dupont
27058b3e3b Fixed CID 1426986, 1426985, 1426984 and 1426983 2017-12-30 14:15:12 +01:00
Francis Dupont
563f0b8aef Merged rt44535 (relay port) 2017-12-23 01:18:23 +01:00
Thomas Markwalder
700e3fca88 [master] Moved delayed-ack fully to runtime
Merges in 42446fd.
2017-12-19 06:25:12 -05:00
Thomas Markwalder
4406f9b05d [master] delayed-ack is now compiled in by default
Merges in rt42444.
2017-12-13 13:55:57 -05:00
Thomas Markwalder
7512d88b9f [master] Replaced licensing text with MPL licensing text throughout 2017-07-12 09:23:23 -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
0aa74669d9 [master] Execute pool statements separately in dhcpinform()
Merged 43291a.
2017-04-12 11:44:59 -04:00
Thomas Markwalder
e0735300c0 [master] DHCPINFORM response now includes options down to the pool scope
Merges in rt43219.
2016-11-01 14:05:24 -04:00
Thomas Markwalder
3210786b6e [master] Server now permits one UID to hold leases in multiple subnets
Merges in rt41358.
2016-10-04 14:25:25 -04:00
Thomas Markwalder
6b797e44e9 [master] find_lease() now ACKs reclaimed abandoned addresses
Merges in rt41815a.
2016-07-28 06:51:30 -04:00
Shawn Routhier
3abc5708a1 [master] Correct the dhcp-cache-threshold codes treatment of hostname
If a lease is reused as part of dhcp-cache-threshold processing
the hostname (if it exists) needs to be copied from the temporary
lease back to the permanent lease.

Also add additional checks to see if the lease can be reused.
The host pointer, client ID and hardware address shouldn't have
changed.
2016-07-26 11:41:47 -07:00
Thomas Markwalder
a5252220fb [master] Add abandon-lease-time parameter
Merges in rt41815.
2016-07-07 14:11:26 -04:00
Francis Dupont
785c1a519e Merged rt35711c (DHCPv4-over-DHCPv6 support) 2016-02-23 10:40:10 +01:00
Thomas Markwalder
606f272018 [master] Fixed infinite-is-reserved and lease:flags setting via omapi
Merges in rt31179.
2016-02-05 09:03:51 -05:00
Thomas Markwalder
20931f53c7 [master] Added lease address to reuse lease log message
Merged in rt40598.
2015-09-25 10:04:50 -04:00
Thomas Markwalder
5cc6f201cb [master] Fixed build issues with --disable-failover
Merged in rt40372.
2015-09-25 08:39:52 -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
Francis Dupont
3496e9bc0e spelling 2015-07-09 15:12:23 +02: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
Shawn Routhier
70689a73b4 [master] Leave siaddr clear when sending a NAK 2015-04-16 12:04:14 -07:00
Thomas Markwalder
59990751ba [master] Corrected reuse_lease debug log content
Merges in rt38686
2015-02-16 13:25:25 -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
Shawn Routhier
dd9738aaaf [master] Fix up code to process host declartions in informs
Change the stopping point for processing statements in the
host portion of the inform processing from a host option to
a subnet one.

rt35712
2014-12-10 12:16:56 -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
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
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
a07d99bbef [master] Corrects medium impact issues reported by Coverity.
Merges in rt36933
2014-08-28 08:12:30 -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
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
4d079f0ec0 [master] Better support for INFORM requests.
Add support to use the subnet selection option
and the host declaration statements when processing
an inform request
2013-12-13 12:52:17 -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
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
Shawn Routhier
8cd88e202b -n [master]
[rt26311]
    Fix the issue with DDNS by checking to see if we have added a pointer
    to the ddns_cb and skipping the cache threshold check if we did.  Also
    expand and correct the cache threshold check into the delayed ack code.
2013-08-27 11:09:12 -07:00
Shawn Routhier
f8380d3ff2 [master]
+- Add support for a simple check that the server id in a request message
+  to a failover peer matches the server id of the server.  This support
+  is enabled by editing the file includes/site.h and uncommenting the
+  definition for SERVER_ID_CHECK.  The option has several restrictions
+  and issues - please read the comment in the site.h file before
+  enabling it.
+  [ISC-Bugs #31463]
2012-11-16 15:02:13 -08:00
Shawn Routhier
d56788df77 [master]
Modify the nak_lease function to make some attempts to find a
server-identifier option to use for the NAK.
2012-11-02 16:37:03 -07:00
Shawn Routhier
6980ae03c3 The 'no available billing' log line now also logs the name of the last
matching billing class tried before failing to provide a billing.
ISC-Bugs #21759]
2012-06-06 23:55:01 +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
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
c850c0eec5 Restore common/discover.c, common/options.c and server/dhcp.c
as I mistakenly committed them to head instead of the ticket
branch.
2011-07-02 00:05:35 +00:00
Shawn Routhier
4e41a8d7e0 correct spelling of options 2011-07-01 23:16:37 +00:00