2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00
Commit Graph

23498 Commits

Author SHA1 Message Date
Tomek Mrugalski
8a2c95cda1 [3209] user_chk hook lib documented. 2016-09-20 19:09:03 +02:00
Thomas Markwalder
06507e6264 [master] Added ChangeLog entry 1174 for #5007. 2016-09-20 06:32:38 -04:00
Thomas Markwalder
05ea3a5eb7 [master] kea-dhcp6 now only does DDNS on renewals if FQDN changes
Merges in branch 'trac5007'
2016-09-20 06:13:40 -04:00
Thomas Markwalder
6d14c6bdd7 [5007] Addressed more review comments
src/bin/dhcp6/dhcp6_srv.cc
    Dhcpv6Srv::createNameChangeRequests() - modified logic DNS-updated needed
    logic to include changes to the FQDN flags.

src/bin/dhcp6/tests/fqdn_unittest.cc
    TEST_F(FqdnDhcpv6SrvTest, processRequestRenewFqdnFlags) - new test to
    verify the permutations of DNS direction flags on NCR generation
2016-09-19 09:08:54 -04:00
Thomas Markwalder
1a986cf434 [5007] Addressed review comments
This is solution #2:

src/lib/dhcpsrv/alloc_engine.h
src/lib/dhcpsrv/alloc_engine.cc
    AllocEngine::extendLease6() - replaced logic to set the context flags with
    simply adding the original lease to the changed_leases_ list.

    AllocEngine::updateLeaseData() - removed logic to set the context flags.

src/bin/dhcp6/dhcp6_srv.cc
    Dhcpv6Srv::createNameChangeRequests() - replaced the context flag check
    with logic which looks for candidate IA addresses in the ctx.changed_leases_
    list.  If found and the FDQN doman name has not changed, we move on to the
    next candidate.

src/bin/dhcp6/tests/fqdn_unittest.cc
    TEST_F(FqdnDhcpv6SrvTest, createNameChangeRequestsNoAddr) - removed
    testing of context flag permutations
2016-09-16 14:27:46 -04:00
Marcin Siodelski
bb34f5f3fe [master] Added ChangeLog and updated AUTHORS for github #30. trac5006_base 2016-09-16 18:06:58 +02:00
Marcin Siodelski
e40a54a8e2 [master] Merge branch 'github30' 2016-09-16 17:29:21 +02:00
Marcin Siodelski
c15ca8dbc4 [master] Merge branch 'trac3161' 2016-09-16 16:25:20 +02:00
Thomas Markwalder
46f4c9fdd8 [5007] Suppress DDNS updates on DHCPv6 lease renewals unless the FQDN changes
src/lib/dhcpsrv/alloc_engine.h
src/lib/dhcpsrv/alloc_engine.cc
    - AllocEngine::extendLease6()
    - AllocEngine::updateLeaseData() - logic was added to clear the context
    DNS update flags when the renewal does not alter the lease's FQDN.

src/bin/dhcp6/dhcp6_srv.h
src/bin/dhcp6/dhcp6_srv.cc
    - Dhcpv6Srv::createNameChangeRequests() - added context as second parameter,
    and modified function to return without creating NCR(s) if both update flags
    in the context are false.

src/bin/dhcp6/tests/fqdn_unittest.cc
    - TEST_F(FqdnDhcpv6SrvTest, createNameChangeRequests) - modified to verify
    combinations of context update flags

    - TEST_F(FqdnDhcpv6SrvTest, DISABLED_processTwoRequests) - renamed
    to TEST_F(FqdnDhcpv6SrvTest, processTwoRequestsDiffFqdn) and enabled.
    It had been disabled pending 3677 which has been completed.

    - TEST_F(FqdnDhcpv6SrvTest, processTwoRequestsSameFqdn)  - new test
    which verifies that client "renewing" a lease by sending a second
    request with the different FQDN generates the correct NCRs

    - TEST_F(FqdnDhcpv6SrvTest, DISABLED_processRequestRenew) - renamed
    to TEST_F(FqdnDhcpv6SrvTest, processRequestRenewDiffFqdn) and enabled.
    It had been disabled pending 3677 which has been completed.

    - TEST_F(FqdnDhcpv6SrvTest, processRequestRenewSameFqdn) - new test
    which verifies that client renewing a lease by sending a renew
    with the same FQDN does NOT generate any NCRs
2016-09-15 16:10:53 -04:00
Marcin Siodelski
74d4720d29 [github30] Updated MySQL upgrade scripts to use single quote. 2016-09-15 20:23:59 +02:00
Marcin Siodelski
09d057ce1b [github30] Merge branch 'xxwolfsrainxx-patch-1' into github30
This change has been ported from the repository:
- https://github.com/xxwolfsrainxx/kea.git
- branch: patch-1
2016-09-15 15:52:17 +02:00
Marcin Siodelski
79d4f00ae8 [master] Added ChangeLog for pull request #29.
Added two nicknames in the AUTHORS file to which we refer in the
ChangeLog.
2016-09-15 15:19:07 +02:00
Marcin Siodelski
ad68c39428 [master] Merge branch 'trac4328_1' 2016-09-15 14:54:52 +02:00
Marcin Siodelski
c36223da82 [4328] Added parens around returned value of make_pair. 2016-09-15 14:49:36 +02:00
Marcin Siodelski
89b07683c1 [4328] Updated AUTHORS file. 2016-09-15 14:47:16 +02:00
Marcin Siodelski
dd6576a5e7 [4328] Merge branch 'andir-pull-request-29' into trac4328
Ported this change from https://github.com/andir/kea.git,
branch fix-make_pair.
2016-09-15 13:45:03 +02:00
Marcin Siodelski
331a226a2b [master] Added ChangeLog entry for #4502. 2016-09-15 13:01:53 +02:00
Marcin Siodelski
af84783759 [master] Merge branch 'trac4502' 2016-09-15 13:00:19 +02:00
Marcin Siodelski
c28514d1f7 [4502] Fixed a couple of nits in the Kea User's Guide per review comments. 2016-09-15 12:33:02 +02:00
Marcin Siodelski
537eb3fc69 [master] Added ChangeLog entry for #3684. 2016-09-14 18:03:38 +02:00
Marcin Siodelski
71d21eac51 [master] Merge branch 'trac3684' 2016-09-14 18:02:39 +02:00
Marcin Siodelski
10536e380b [master] Added ChangeLog entry for #3950. 2016-09-14 17:39:49 +02:00
Marcin Siodelski
c5f4920fd1 [master] Merge branch 'trac3950' 2016-09-14 17:38:51 +02:00
Marcin Siodelski
0af4628432 [master] Added ChangeLog entry for #4258. 2016-09-14 17:19:18 +02:00
Marcin Siodelski
f081000b89 [master] Merge branch 'trac4258' 2016-09-14 17:18:14 +02:00
Marcin Siodelski
32a07ef3f8 [master] Added ChangeLog entry for #4765. 2016-09-14 16:56:10 +02:00
Marcin Siodelski
242fbc47b3 [master] Merge branch 'trac4765' 2016-09-14 16:54:45 +02:00
Marcin Siodelski
563f7d875f [4502] Minor fix in the User's Guide. 2016-09-14 16:51:31 +02:00
Marcin Siodelski
89a2408cdf [4502] Updated User's Guide.
Updated:
- Supported OSes
- Packages required at runtime to run Kea,
- Packages required to build Kea
2016-09-14 16:43:17 +02:00
Tomek Mrugalski
1bd33abbdb [4765] Removed remaining double quotes in dhcp6-srv.xml 2016-09-14 15:15:08 +02:00
Marcin Siodelski
619eb9f6da [3950] Expained behavior of the server when "kea_verbose" is used. 2016-09-14 11:58:47 +02:00
Marcin Siodelski
594c4e6eb4 [4765] Addressed review comments. 2016-09-14 10:15:55 +02:00
Marcin Siodelski
079c34ba58 [4258] Updated Kea User's Guide: using Github repository. 2016-09-13 18:04:23 +02:00
Marcin Siodelski
0470cfd957 [3161] Use smart pointer to supress clang static analyzer error.
The static analyzer indicated that the dereferenced object could
be NULL but in fact it is not. However, it is still safer to use
smart pointer, rather than raw pointer, so I updated the test.
2016-09-13 16:31:42 +02:00
Marcin Siodelski
0e67d8e08e [3161] Removed unread variable.
Found by the clang-static analyzer.
2016-09-13 16:28:04 +02:00
Marcin Siodelski
8d56847ae1 [3161] Avoid memory leak in the D2CfgMgr construction test. 2016-09-13 16:20:31 +02:00
Marcin Siodelski
05df64b34c [3161] Pass values by reference as indicated by cpp-check. 2016-09-13 15:51:10 +02:00
Marcin Siodelski
a024d79008 [3161] Pass values by reference where it makes sense.
Reported by cpp-check.
2016-09-13 15:33:38 +02:00
Marcin Siodelski
67838f538a [3161] Removed unused variable as reported by cpp-check. 2016-09-13 15:22:37 +02:00
Marcin Siodelski
6b9c796346 [3161] Removed known condition being true.
Reported by cpp-check.
2016-09-13 15:15:24 +02:00
Marcin Siodelski
23e9b30e0a [3161] Removed redundant condition as reported by cpp-check. 2016-09-13 15:13:02 +02:00
Marcin Siodelski
97ae6373fb [3161] Explicitly initialize uninitialized variables.
Reported by cpp-check.
2016-09-13 15:07:57 +02:00
Marcin Siodelski
9aa2ab27d1 [3161] Avoid memory leak in the log message compiler. 2016-09-13 14:44:35 +02:00
Marcin Siodelski
7264cf4d48 [master] Created ChangeLog entry for #4261. 2016-09-13 13:41:28 +02:00
Marcin Siodelski
028dd49f4f [master] Merge branch 'trac4261' 2016-09-13 13:40:31 +02:00
Marcin Siodelski
de34f91d83 [master] Created ChangeLog entry for #5005. 2016-09-13 13:23:50 +02:00
Marcin Siodelski
96ab8ecaa3 [master] Merge branch 'trac5005' 2016-09-13 13:22:24 +02:00
Marcin Siodelski
aec2fd0040 [4261] Fixed an error message in database access parser. 2016-09-13 13:16:11 +02:00
Marcin Siodelski
796963d9eb [5005] Addressed review comments - generally fixing commentary. 2016-09-13 11:40:43 +02:00
Marcin Siodelski
1fe02beb42 [3684] Updated configuration examples per second round of review. 2016-09-13 10:39:44 +02:00