]>
git.ipfire.org Git - thirdparty/kea.git/log
Thomas Markwalder [Thu, 2 Jul 2015 20:49:53 +0000 (16:49 -0400)]
[3769] DHPCv4 now uses PID file, made pid test common
src/lib/testutils/dhcp_test_lib.sh.in
- server_pid_file_test() - common test for any server
to verify PID file management
src/bin/d2/tests/d2_process_tests.sh.in
remmoved duplicate_server_start_test
now calls server_pid_file_test
Added PID file creation to DHCP4
src/bin/dhcp4/dhcp4_messages.mes
- added log DHCP4_ALREADY_RUNNING
src/bin/dhcp4/main.cc
- added logic to create the PID and catch
exception specific to PID conflict
src/bin/dhcp4/tests/Makefile.am
- exports KEA_PIDFILE_DIR
src/bin/dhcp4/tests/dhcp4_process_tests.sh.in
- added call to server_pid_file_test
src/bin/dhcp4/tests/dhcp4_unittests.cc
- main(int argc, char* argv[])
sets env var KEA_PIDFILE_DIR
Thomas Markwalder [Thu, 2 Jul 2015 18:42:58 +0000 (14:42 -0400)]
[3769] Added env var,KEA_PIDFILE_DIR; D2 now uses a PIDFile
src/lib/dhcpsrv/daemon.c/h
Daemon::Daemon() - Constructor will now override the default PID
directory with the value of env variable KEA_PIDFILE_DIR. This
provides a simple means to alter the value for tests.
Added am_file_author_ flag so Daemon instances will only delete
a file they have written.
src/lib/testutils/dhcp_test_lib.sh.in
- verify_server_pid() - new function which verifies that a server has a PID file
and that it contains the server's PID, and that the process is alive.
src/bin/keactrl/tests/Makefile.am
- added export of KEA_PIDFILE_DIR to override default PID directory during tests
Added PID file creation to D2
src/bin/d2/d_controller.cc
- DControllerBase::launch() - Added block to createPIDFile()
-DControllerBase::parseArgs() Replaced call to Daemon::init()
with call to Daemon::setConfigFile()
src/bin/d2/tests/Makefile.am
- added export of KEA_PIDFILE_DIR to override default PID directory during tests
src/bin/d2/tests/d2_process_tests.sh.in
- dupcliate_server_start_test() - new test which verifies that D2 cannot be
started twice (with the same configuration file)
src/bin/d2/tests/d2_unittests.cc
- main(int argc, char* argv[]) sets environment variable KEA_PIDFILE_DIR
to override default PID diretory during tests
src/lib/util/pid_file.cc/h
src/lib/util/tests/pid_file_unittest.cc
Changed PIDFile::check() to return either the PID contained in the PID file
if the process is alive, or 0, rather than bool. This permits callers
to see/log the PID.
Thomas Markwalder [Wed, 1 Jul 2015 20:20:40 +0000 (16:20 -0400)]
[3769] Added support for creating PIDFiles to dhcpsrv::Daemon
src/lib/dhcpsrv/daemon.h/cc
New methods:
static void setConfigFile(const std::string& config_file);
std::string getProcName() const;
setProcName(const std::string& proc_name);
std::string getPIDFileDir() const;
void setPIDFileDir(const std::string& pid_file_dir);
std::string getPIDFileName() const;
void setPIDFileName(const std::string& pid_file_name);
void createPIDFile(int pid = 0);
std::string makePIDFileName() const;
New members:
std::string proc_name_;
std::string pid_file_dir_;
isc::util::PIDFilePtr pid_file_;
src/lib/dhcpsrv/tests/daemon_unittest.cc
New tests:
TEST_F(DaemonTest, getSetConfigFile)
TEST_F(DaemonTest, getSetProcName)
TEST_F(DaemonTest, getSetPIDFileDir)
TEST_F(DaemonTest, setPIDFileName)
TEST_F(DaemonTest, makePIDFileName)
TEST_F(DaemonTest, createPIDFile)
TEST_F(DaemonTest, createPIDFileOverwrite)
TEST_F(DaemonTest, PIDFileCleanup)
src/lib/util/pid_file.h
Added typedef boost::shared_ptr<PIDFile> PIDFilePtr;
Marcin Siodelski [Tue, 30 Jun 2015 12:22:19 +0000 (14:22 +0200)]
[master] Added ChangeLog for #3887.
Marcin Siodelski [Tue, 30 Jun 2015 12:21:08 +0000 (14:21 +0200)]
[master] Merge branch 'trac3887'
Marcin Siodelski [Tue, 30 Jun 2015 09:06:15 +0000 (11:06 +0200)]
[master] Added ChangeLog entry for #3740.
Marcin Siodelski [Tue, 30 Jun 2015 08:56:20 +0000 (10:56 +0200)]
[master] Merge branch 'trac3740'
Marcin Siodelski [Tue, 30 Jun 2015 08:54:08 +0000 (10:54 +0200)]
[3740] Changes to the DHCPv4 message description per review comments.
Marcin Siodelski [Tue, 30 Jun 2015 08:43:18 +0000 (10:43 +0200)]
[master] Added ChangeLog entry for #3846.
Marcin Siodelski [Tue, 30 Jun 2015 08:26:12 +0000 (10:26 +0200)]
[master] Merge branch 'trac3846'
Shawn Routhier [Tue, 30 Jun 2015 05:50:19 +0000 (22:50 -0700)]
[3470] Tidy up some typos
Thomas Markwalder [Mon, 29 Jun 2015 18:08:46 +0000 (14:08 -0400)]
[master] Fixed distcheck issues with src/bin/admin tests
There were several minor issues related to src/bin/admin tests
that were visible only when distcheck was perfomed with mysql
and/or postgresql enabled.
Marcin Siodelski [Mon, 29 Jun 2015 09:52:16 +0000 (11:52 +0200)]
[3846] Trivial change in the kea-guide.
Marcin Siodelski [Mon, 29 Jun 2015 09:49:46 +0000 (11:49 +0200)]
[3846] Removed the invalid note from the kea-guide.
Marcin Siodelski [Mon, 29 Jun 2015 09:46:14 +0000 (11:46 +0200)]
[3846] Revised DHCPv6 option definitions in the kea-guide.
Marcin Siodelski [Mon, 29 Jun 2015 09:45:52 +0000 (11:45 +0200)]
[3846] Revised DHCPv4 option definitions in the kea guide.
Francis Dupont [Sat, 27 Jun 2015 11:08:39 +0000 (13:08 +0200)]
[master] Finished merge of trac3839 (removed unused exception variables)
Francis Dupont [Sat, 27 Jun 2015 11:02:39 +0000 (13:02 +0200)]
[3839] copyright
Francis Dupont [Sat, 27 Jun 2015 11:02:07 +0000 (13:02 +0200)]
[3839] reindented
Francis Dupont [Sat, 27 Jun 2015 07:12:29 +0000 (09:12 +0200)]
[master] Removed spurious lease_(0) introduced by accident in #3919 marge
Marcin Siodelski [Fri, 26 Jun 2015 17:08:50 +0000 (19:08 +0200)]
[master] Added ChangeLog entry for #3913.
Marcin Siodelski [Fri, 26 Jun 2015 16:41:40 +0000 (18:41 +0200)]
[master] Merge branch 'trac3913'
Marcin Siodelski [Fri, 26 Jun 2015 16:33:29 +0000 (18:33 +0200)]
[3913] Addressed review comments.
Moved the function from the anon namespace to the AllocEngine class.
Marcin Siodelski [Fri, 26 Jun 2015 10:29:25 +0000 (12:29 +0200)]
[3913] Allocation engine extends the lifetime of the lease for Request.
Francis Dupont [Fri, 26 Jun 2015 07:16:39 +0000 (09:16 +0200)]
[master] Updated git hash
Francis Dupont [Fri, 26 Jun 2015 07:15:55 +0000 (09:15 +0200)]
[master] Finished merge of trac3919 (cppcheck small fixes)
Francis Dupont [Fri, 26 Jun 2015 07:06:10 +0000 (09:06 +0200)]
[3919] grammar
Francis Dupont [Fri, 26 Jun 2015 07:00:44 +0000 (09:00 +0200)]
[3919] copyrights
Francis Dupont [Thu, 25 Jun 2015 12:08:54 +0000 (14:08 +0200)]
[master] Merged trac3858a (locat paths in libdhcpsrv_unittests)
Francis Dupont [Thu, 25 Jun 2015 10:54:18 +0000 (12:54 +0200)]
[master] Merged trac3922 (Stopwatch not copyable)
Francis Dupont [Wed, 24 Jun 2015 17:45:57 +0000 (19:45 +0200)]
[3922] Made Stopwatch not copyable
Tomek Mrugalski [Wed, 24 Jun 2015 16:42:39 +0000 (18:42 +0200)]
[master] ChangeLog updated after 3918 merge.
Tomek Mrugalski [Wed, 24 Jun 2015 16:41:24 +0000 (18:41 +0200)]
[master] Merge branch 'trac3918' (KEA_SOCKET_TEST_DIR variable)
Conflicts:
src/lib/util/tests/socketsession_unittest.cc
Francis Dupont [Wed, 24 Jun 2015 13:47:12 +0000 (15:47 +0200)]
[3919] Reverted last change and added a comment
Francis Dupont [Wed, 24 Jun 2015 13:33:53 +0000 (15:33 +0200)]
[3919] reworked last unit test which cannot be parsed by buggy cppchecl
Francis Dupont [Wed, 24 Jun 2015 13:02:52 +0000 (15:02 +0200)]
[3919] Removed unused old_leases
Francis Dupont [Wed, 24 Jun 2015 12:59:31 +0000 (14:59 +0200)]
[3919] Fixed typo
Francis Dupont [Wed, 24 Jun 2015 12:58:04 +0000 (14:58 +0200)]
[3919] Fixed cppcheck suppressions
Francis Dupont [Wed, 24 Jun 2015 12:56:19 +0000 (14:56 +0200)]
[3919] Fixed cppcheck suppressions
Tomek Mrugalski [Wed, 24 Jun 2015 12:42:57 +0000 (14:42 +0200)]
[3918] Changes after review:
- filename length is printed if path is too long
- unit-test added for too long path
Tomek Mrugalski [Wed, 24 Jun 2015 12:42:16 +0000 (14:42 +0200)]
[3918] Documentation updated.
Francis Dupont [Wed, 24 Jun 2015 11:54:31 +0000 (13:54 +0200)]
[3919] Assign typecode_ to avoid cppcheck warning
Francis Dupont [Wed, 24 Jun 2015 11:52:43 +0000 (13:52 +0200)]
[3919] Assign classcode_ to avoid cppcheck warning
Francis Dupont [Wed, 24 Jun 2015 11:47:12 +0000 (13:47 +0200)]
[3919] Added some missing initializations
Francis Dupont [Wed, 24 Jun 2015 11:43:26 +0000 (13:43 +0200)]
[3919] updated cppcheck suppression name
Tomek Mrugalski [Wed, 24 Jun 2015 11:42:47 +0000 (13:42 +0200)]
[3918] Unix socket tests now use KEA_SOCKET_TEST_DIR env var (if available)
Francis Dupont [Wed, 24 Jun 2015 11:41:20 +0000 (13:41 +0200)]
[3919] Added some missing initializations
Francis Dupont [Wed, 24 Jun 2015 11:28:35 +0000 (13:28 +0200)]
[3919] Fixed typo: compare with itself
Francis Dupont [Wed, 24 Jun 2015 11:25:27 +0000 (13:25 +0200)]
[3919] Added sname_ and file_ initialization
Francis Dupont [Wed, 24 Jun 2015 11:21:33 +0000 (13:21 +0200)]
[3919] use last_offset late to avoid cppcheck new warnings
Francis Dupont [Wed, 24 Jun 2015 11:19:44 +0000 (13:19 +0200)]
[3919] removed unused addrs
Francis Dupont [Wed, 24 Jun 2015 11:18:07 +0000 (13:18 +0200)]
[3919] Removed spurious declarations
Francis Dupont [Wed, 24 Jun 2015 11:16:48 +0000 (13:16 +0200)]
[3919] Suppress cppcheck warning for item_default
Francis Dupont [Wed, 24 Jun 2015 11:14:23 +0000 (13:14 +0200)]
[3919] Suppress cppcheck warning for expect & co
Francis Dupont [Wed, 24 Jun 2015 11:12:49 +0000 (13:12 +0200)]
[3919] initialize data_to_send_{,len_}
Francis Dupont [Wed, 24 Jun 2015 11:09:19 +0000 (13:09 +0200)]
[3919] Suppress cppcheck warning for v4Opts
Francis Dupont [Wed, 24 Jun 2015 11:04:45 +0000 (13:04 +0200)]
[3919] Changed size > 0 by !empty
Francis Dupont [Wed, 24 Jun 2015 11:03:25 +0000 (13:03 +0200)]
[3919] Removed spurious v2 assignment
Francis Dupont [Wed, 24 Jun 2015 11:02:06 +0000 (13:02 +0200)]
[3919] Passed objects by reference
Francis Dupont [Wed, 24 Jun 2015 10:59:45 +0000 (12:59 +0200)]
[3919] Moved socket_path_ to initialization list
Francis Dupont [Wed, 24 Jun 2015 10:53:26 +0000 (12:53 +0200)]
[3919] moved local variables in their block
Francis Dupont [Wed, 24 Jun 2015 10:39:36 +0000 (12:39 +0200)]
[3919] Initialize ext_
Francis Dupont [Wed, 24 Jun 2015 09:41:25 +0000 (11:41 +0200)]
[master] Updated git hash
Francis Dupont [Wed, 24 Jun 2015 09:40:41 +0000 (11:40 +0200)]
[master] Added ChangeLog entry for trac3841 (use remove() vs unlink())
Francis Dupont [Wed, 24 Jun 2015 08:09:50 +0000 (10:09 +0200)]
[master] Some other/new s/unlink/remove/
Francis Dupont [Wed, 24 Jun 2015 08:06:52 +0000 (10:06 +0200)]
[master] Finished merge of trac3841 (use remove() vs unlink()) at the exception of the ChangeLog entry
Francis Dupont [Wed, 24 Jun 2015 07:44:58 +0000 (09:44 +0200)]
[master] Merged trac3824 (small bugs in dns++ from VS)
Francis Dupont [Wed, 24 Jun 2015 07:39:18 +0000 (09:39 +0200)]
[master] Merged trac3828 (IN macros guard)
Francis Dupont [Tue, 23 Jun 2015 19:50:25 +0000 (21:50 +0200)]
[3858a] Added some missing getLeaseFilePath() which made MemfileLeaseMgrTest tests to failed when ran from other directories
Francis Dupont [Tue, 23 Jun 2015 19:14:58 +0000 (21:14 +0200)]
[3858a] Rebased to address similar new bugs
Francis Dupont [Tue, 23 Jun 2015 19:11:02 +0000 (21:11 +0200)]
[3828] Updated and added a comment
Tomek Mrugalski [Tue, 23 Jun 2015 18:18:37 +0000 (20:18 +0200)]
[3918] Documentation updated.
Tomek Mrugalski [Tue, 23 Jun 2015 18:03:55 +0000 (20:03 +0200)]
[3918] UNIX socket path length is now checked.
Francis Dupont [Tue, 23 Jun 2015 17:53:34 +0000 (19:53 +0200)]
[master] Merged trac3899 (error message fixes)
Francis Dupont [Tue, 23 Jun 2015 17:52:12 +0000 (19:52 +0200)]
[3899] Reindented
Francis Dupont [Tue, 23 Jun 2015 17:50:54 +0000 (19:50 +0200)]
[3899] Updated copyrights
Francis Dupont [Tue, 23 Jun 2015 17:50:03 +0000 (19:50 +0200)]
[3899] Merged strings
Francis Dupont [Tue, 23 Jun 2015 17:44:09 +0000 (19:44 +0200)]
[master] Merged trac3870 (OPTIONAL macro guard)
Francis Dupont [Tue, 23 Jun 2015 17:42:31 +0000 (19:42 +0200)]
[3870] Added the OPTIONAL macro guard for d2
Francis Dupont [Tue, 23 Jun 2015 17:42:03 +0000 (19:42 +0200)]
[3870] Added a comment to explain the guard
Francis Dupont [Tue, 23 Jun 2015 17:32:11 +0000 (19:32 +0200)]
[master] Merged trac3863 (ntervalTimerTest.startIntervalTimer too strict)
Marcin Siodelski [Tue, 23 Jun 2015 15:21:29 +0000 (17:21 +0200)]
[3740] Small update to the User Guide (DHCPINFORM)
Marcin Siodelski [Tue, 23 Jun 2015 15:03:48 +0000 (17:03 +0200)]
[3740] Added section about issues with unicast responses to DHCPINFORM.
Updated User's Guide and the description of the log message pertaining
to the DHCP message send.
Marcin Siodelski [Tue, 23 Jun 2015 05:50:41 +0000 (07:50 +0200)]
[3887] DHCPv4 option 5 (name-servers) is a list of IPv4 addresses.
Previously, the option format comprised a single IPv4 address.
Wlodek Wencel [Mon, 22 Jun 2015 15:53:03 +0000 (17:53 +0200)]
[kea-0.9.2-beta] ChangeLog and configure.ac updated
Wlodek Wencel [Mon, 22 Jun 2015 15:52:49 +0000 (17:52 +0200)]
[kea-0.9.2-beta] .mes files reorder
Tomek Mrugalski [Mon, 22 Jun 2015 14:48:15 +0000 (16:48 +0200)]
[master] ChangeLog updated.
Tomek Mrugalski [Mon, 22 Jun 2015 14:46:48 +0000 (16:46 +0200)]
[3917] Updated version number 0.9.2 => 0.9.2-beta
Tomek Mrugalski [Mon, 22 Jun 2015 14:45:03 +0000 (16:45 +0200)]
[3917] v4 -> v6
Tomek Mrugalski [Mon, 22 Jun 2015 14:17:54 +0000 (16:17 +0200)]
[3917] Missing Management API section added in DHCPv6 chapter.
Francis Dupont [Sun, 21 Jun 2015 22:56:46 +0000 (00:56 +0200)]
[master] Updated git hash
Francis Dupont [Sun, 21 Jun 2015 22:55:56 +0000 (00:55 +0200)]
[master] Finished merge of trac3882a (-V database details)
Francis Dupont [Sun, 21 Jun 2015 22:53:26 +0000 (00:53 +0200)]
[master] Merged trac3882a (-V database details)
Francis Dupont [Sat, 20 Jun 2015 13:45:47 +0000 (15:45 +0200)]
[3882a] Extended -V and added -W
Francis Dupont [Sat, 20 Jun 2015 13:13:23 +0000 (15:13 +0200)]
[3882a] Added a comma before library
Shawn Routhier [Fri, 19 Jun 2015 18:54:30 +0000 (11:54 -0700)]
[master] Update change log entry for 3799
Shawn Routhier [Fri, 19 Jun 2015 18:52:32 +0000 (11:52 -0700)]
Merge branch 'trac3799' Add support for per subnet statistics in v6
Conflicts:
ChangeLog
doc/guide/dhcp6-srv.xml
src/bin/dhcp6/tests/dhcp6_test_utils.cc
Shawn Routhier [Fri, 19 Jun 2015 18:08:22 +0000 (11:08 -0700)]
[3799] Updates per review comments
Change the -NAs and -PDs strings to -nas and -pds to be in line with
the rest of the statistic names
Remove @todo from CfgSubnet6::updateStatistics and CfgSubnet6::removeStatistics
Tomek Mrugalski [Fri, 19 Jun 2015 17:41:18 +0000 (19:41 +0200)]
[master] Merge branch 'trac3795' (DHCPv6 statistics)
Conflicts:
doc/guide/dhcp4-srv.xml
Tomek Mrugalski [Fri, 19 Jun 2015 17:16:54 +0000 (19:16 +0200)]
[3795] Changes after review:
- comments in pkt6-receive-drop fixed