2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-22 18:07:25 +00:00

399 Commits

Author SHA1 Message Date
Tomek Mrugalski
f6b8f48d16 [#189] Whitespace fixes in opened files 2022-01-20 12:04:28 +01:00
Tomek Mrugalski
429a56d73c [#189] ISC address updated 2022-01-20 12:04:28 +01:00
Francis Dupont
3354013a47 Checkpoint: code done, need tests 2020-10-13 10:15:00 +02:00
Francis Dupont
933b80fa64 Checkpoint: added start/finish v6only 2020-10-12 22:18:33 +02:00
Thomas Markwalder
0cd94b5ef4 [#64,!35] Restored work
Restored cummulative work.
2019-11-22 13:39:45 -05:00
Thomas Markwalder
e119ecf6b7 [#15,!10] Addressed review comments
common/discover.c
    discover_interfaces() - replaced strncpy with memcpy

common/parse.c
    parse_warn() - added final message buffer rather than reuse mbuf,
    pass size into do_percentm call

includes/dhcpd.h
    struct interface_info  - restored size of name

includes/omapip/omapip_p.*
    do_percentm() - added output buffer size parameter

omapip/errwarn.c
    pass size of output buffer into calls to do_percentm
2019-06-12 09:57:33 -04:00
Thomas Markwalder
753d458b1f [#15,!10] Minor changes to eliminate warnings under GCC 9
added release note

common/parse.c
    parse_warn() - upped format buffer size to squelch warning

includes/dhcpd.h
    struct interface_info - bumped name size by 1 to squelch warning

relay/dhcrelay.c
    request_v4_interface() - replace strncpy with memcpy to
    squelch warning (len is already checked above it)

server/confpars.c
    parse_failover_peer() - pass token value into log_fatal
    calls rather than null pointer
2019-06-12 09:57:32 -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
Francis Dupont
479b929321 Solved conflict 2018-11-29 15:51:59 +01: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
Thomas Markwalder
075a2f45da [master] Pre-release tag prep for 4.4.0: version #, copyright etc... 2018-01-26 14:01:57 -05:00
Thomas Markwalder
db4e4aa2e4 [master] Fixed relative file name crash
Merges in rt46957
2018-01-12 10:41:37 -05:00
Francis Dupont
563f0b8aef Merged rt44535 (relay port) 2017-12-23 01:18:23 +01:00
Francis Dupont
a2a0f98c21 Added local-address6 2017-12-19 21:02:51 +01: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
4406f9b05d [master] delayed-ack is now compiled in by default
Merges in rt42444.
2017-12-13 13:55:57 -05:00
Thomas Markwalder
c2e5ee2882 [master] Adds persist-eui-64-leases config parameter and support
Merges in rt45046.
2017-12-11 07:45:10 -05:00
Thomas Markwalder
905c58b9ca [master] Adds DDNS Dual Stack Mixed Mode
Merges in rt42620.
2017-12-08 11:56:10 -05:00
Thomas Markwalder
b4e157d82c [master] Replaced --enable-secs-btyeorder with run-time parameter
Merges in rt45364
2017-12-07 06:46:13 -05:00
Thomas Markwalder
0f69ff73f0 [master] Client (-6) DECLINEs and resolicits when client script DAD check fails
Merges in rt21237
2017-12-07 06:22:06 -05:00
Thomas Markwalder
d60573340f [master] dhcpd -T now writes leases to temp file
Merges in rt22267.
2017-12-06 15:25:56 -05:00
Thomas Markwalder
abacf8ad0d [master] Use 0 instead of -1 to indicate empty heap index
Merges in rt46719.
2017-12-01 09:13:26 -05:00
Thomas Markwalder
3059324199 [45364] Replaced --enable-secs-byteorder with runtime check-secs-byte-order
configure.ac
   removed --enable-secs-byteorder support

includes/dhcpd.h
    added SV_CHECK_SECS_BYTE_ORDER

includes/failover.h
    added extern int check_secs_byte_order

server/dhcpd.c
    postconf_initialization() - added logic to
    set check_secs_byte_order

server/failover.c
    load_balance_mine() - replaced conditional comp
    directives with runtime test of check_secs_byte_order

Added release note and updated man page.
2017-11-29 07:51:50 -05:00
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