]>
git.ipfire.org Git - thirdparty/kea.git/log
Shawn Routhier [Thu, 5 Feb 2015 05:39:53 +0000 (21:39 -0800)]
[trac3665] Updates per review comments
One of the large items was to rearrange the
lfc_controller test code to:
- not use .c_str()
- check the non-existance of the temporary files after processing
- remove any files after each subtest
- Use a_1 instead of A_1 for variable names
There were also some other coding standards issues as well
as additional comments and such.
Shawn Routhier [Wed, 4 Feb 2015 06:51:29 +0000 (22:51 -0800)]
[trac3665] More tests and cleanup
Add more tests to verity the cleanup of leases files
Cleanup the code for comments, typos, spaces and the like.
Shawn Routhier [Tue, 3 Feb 2015 06:22:38 +0000 (22:22 -0800)]
[trac3665] Dump leases from storage to file and use this in LFC
Add the write method to lease_file_loader to dump the leaes files
from a storage container into a file.
Update the LFC code to use the lease_file_loader functions to
load the leases from the appropriate files and then to write
them to the output file and finally to move the file around.
Shawn Routhier [Fri, 30 Jan 2015 07:46:27 +0000 (23:46 -0800)]
[trac3665] Add code to do the cleanup moves for the lease files
After we have completed writing the lease file and moved it to finish
we need to delete the previous and copy files if they exist and move
the finish file to previous.
Shawn Routhier [Thu, 29 Jan 2015 03:59:56 +0000 (19:59 -0800)]
ChangeLog update for #trac3687
Shawn Routhier [Thu, 29 Jan 2015 03:56:47 +0000 (19:56 -0800)]
Merge branch 'trac3687' Add PIDFile class
Conflicts:
ChangeLog
Add PIDFile class to write, delete and check PID files.
Use the PIDFile class in the LFC process to ensure that
only one LFC is running at a time.
Shawn Routhier [Thu, 29 Jan 2015 03:37:39 +0000 (19:37 -0800)]
[trac3867] Update PIDFile test code per review comments
Update the PIDFile test code to create the file for the
not writable test.
Add entry in ChangeLog
Marcin Siodelski [Wed, 28 Jan 2015 19:54:06 +0000 (20:54 +0100)]
[3687] Pass c-string to the constructor of fstream.
Passing the std::string doesn't work on Linux. For some reason it works
on BSD.
Marcin Siodelski [Wed, 28 Jan 2015 19:45:30 +0000 (20:45 +0100)]
[3687] Trivial fix: typo in the pid_file.cc
Marcin Siodelski [Wed, 28 Jan 2015 19:23:21 +0000 (20:23 +0100)]
[3687] Two minor changes as a result of code review.
PIDFile::write closes the stream before throwing an exception. Also,
remove the TESTNAME2 file before and after the test.
Shawn Routhier [Wed, 28 Jan 2015 06:14:59 +0000 (22:14 -0800)]
[trac3687] Update per first set of review comments
Marcin Siodelski [Tue, 27 Jan 2015 21:13:49 +0000 (22:13 +0100)]
[3687] Trivial fixes: typos and indentation.
Tomek Mrugalski [Tue, 27 Jan 2015 14:38:39 +0000 (15:38 +0100)]
[master] ChangeLog, AUTHORS updated after 3552 merge.
Tomek Mrugalski [Tue, 27 Jan 2015 14:32:17 +0000 (15:32 +0100)]
[3552] Copyright years updated.
Tomek Mrugalski [Tue, 27 Jan 2015 14:30:44 +0000 (15:30 +0100)]
[3552] User's Guide updated.
Tomek Mrugalski [Tue, 27 Jan 2015 14:30:29 +0000 (15:30 +0100)]
[3552] Patch by Adam Kalmus (with minor clean-ups)
Tomek Mrugalski [Tue, 27 Jan 2015 13:14:30 +0000 (14:14 +0100)]
[master] Paths to MySQL/PGSQL scripts corrected.
Tomek Mrugalski [Tue, 27 Jan 2015 12:47:59 +0000 (13:47 +0100)]
[master] ChangeLog updated.
Tomek Mrugalski [Tue, 27 Jan 2015 12:46:56 +0000 (13:46 +0100)]
[master] Merge branch 'trac3644' (doc update for kea-admin)
Tomek Mrugalski [Tue, 27 Jan 2015 12:45:24 +0000 (13:45 +0100)]
[3644] Minor typo corrected.
Shawn Routhier [Tue, 27 Jan 2015 04:34:10 +0000 (20:34 -0800)]
[trac3687] Add PIDFile class to manage PID files
Add the PIDFile class to manage PID files (check, write, delete)
Update the LFC code to use the PIDFile class to run only a single
instance at a time.
Shawn Routhier [Tue, 27 Jan 2015 03:25:05 +0000 (19:25 -0800)]
Merge branch 'master' into trac3687
This will pull the LFC code into the PID branch allowing
addition of the PID calls into LFC
Shawn Routhier [Tue, 27 Jan 2015 00:12:09 +0000 (16:12 -0800)]
[trac3687] Add unittests
Some cleanup and add unittests
Stephen Morris [Mon, 26 Jan 2015 13:45:22 +0000 (13:45 +0000)]
[3644] Review and edit of kea-admin part of the guide
The edit also included a reorganisation of the sections.
Tomek Mrugalski [Mon, 26 Jan 2015 10:08:39 +0000 (11:08 +0100)]
[master] compilation fix after #3664 merge.
Shawn Routhier [Sat, 24 Jan 2015 03:41:02 +0000 (19:41 -0800)]
Merge branch 'trac3664' Add base LFC process code
This merge adds the basic code for handling lease file cleanup (LFC).
It provides the basic framework for the process as well as code to
do argument parsing.
Shawn Routhier [Sat, 24 Jan 2015 03:38:00 +0000 (19:38 -0800)]
[trac3664] Updates per second review comments
Add comments to the test code
Modify the getopt code to explicitly handle unknown arguments and
missing option arguments.
Marcin Siodelski [Fri, 23 Jan 2015 11:34:34 +0000 (12:34 +0100)]
[3664] Trivial fix: added space in the exception thrown from main.cc.
Marcin Siodelski [Fri, 23 Jan 2015 10:54:57 +0000 (11:54 +0100)]
[3664] Corrected a typo in the lfc main function.
Marcin Siodelski [Fri, 23 Jan 2015 10:53:32 +0000 (11:53 +0100)]
[3664] Trivial fixes to documentation of LFCController class.
Shawn Routhier [Fri, 23 Jan 2015 05:54:22 +0000 (21:54 -0800)]
[trac3664] Update per review comments
Marcin Siodelski [Thu, 22 Jan 2015 15:31:04 +0000 (16:31 +0100)]
[3664] Minor changes as a result of the review.
- Fixed identation in configure.ac
- Added kea-lfc to Doxygen
- Corrected some little typos in the kea-lfc man page
- Removed unnecessary headers and libraries
- lfc.h updated - one comment, one method made const
- added anonymous namespace for lfc_controller_unittests.cc
Francis Dupont [Thu, 22 Jan 2015 11:03:03 +0000 (12:03 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 11:00:01 +0000 (12:00 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:58:08 +0000 (11:58 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:55:16 +0000 (11:55 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:53:30 +0000 (11:53 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:51:30 +0000 (11:51 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:42:56 +0000 (11:42 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:41:36 +0000 (11:41 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:40:21 +0000 (11:40 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:38:47 +0000 (11:38 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:37:07 +0000 (11:37 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:31:42 +0000 (11:31 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:30:35 +0000 (11:30 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:28:13 +0000 (11:28 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:25:36 +0000 (11:25 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 10:00:55 +0000 (11:00 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 09:54:25 +0000 (10:54 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 09:49:15 +0000 (10:49 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 09:45:06 +0000 (10:45 +0100)]
spelling
Francis Dupont [Thu, 22 Jan 2015 09:42:17 +0000 (10:42 +0100)]
[master] Added ChangeLog entry for #3656
Francis Dupont [Thu, 22 Jan 2015 09:40:51 +0000 (10:40 +0100)]
[master] handle unknown client in the INIT-REBOOT state. #3656
Shawn Routhier [Thu, 22 Jan 2015 07:37:11 +0000 (23:37 -0800)]
[trac3687] First round of pid file handling
Create a utility class to handle pid files.
This allows somebody to check, write and delete pid files
for use in mediating processes.
The Check routine will attempt to read a pid file and
then check if the pid is in use. The write routine will
delete the current pid file and write a new pid to the file.
The delete routine simply deletes the old pid file.
Shawn Routhier [Thu, 22 Jan 2015 03:33:32 +0000 (19:33 -0800)]
[trac3664] Cleanup
Cleanup spaces and such to meet coding specs
Remove testing artifacts
Update man page documenation
Francis Dupont [Wed, 21 Jan 2015 19:45:26 +0000 (20:45 +0100)]
[master] removed use of exit() in D2 for version command line argument processing (#3616)
Shawn Routhier [Wed, 21 Jan 2015 06:37:10 +0000 (22:37 -0800)]
[trac3664] Code updates and add unittests for parsing
Add the structure for doing unittests and add some tests
to exercise parseArgs().
Rename the class to lfcController to be more in line with
the coding spec.
Marcin Siodelski [Tue, 20 Jan 2015 17:09:14 +0000 (18:09 +0100)]
[master] Trivial fix for the compilation error on RHEL.
This fix was reviewed and approved on Jabber.
Marcin Siodelski [Tue, 20 Jan 2015 14:08:15 +0000 (15:08 +0100)]
[master] Added ChangeLog entry for #3668.
Marcin Siodelski [Tue, 20 Jan 2015 13:48:34 +0000 (14:48 +0100)]
[master] Merge branch 'trac3668'
Conflicts:
src/lib/dhcpsrv/memfile_lease_mgr.cc
src/lib/dhcpsrv/memfile_lease_mgr.h
Marcin Siodelski [Tue, 20 Jan 2015 13:42:59 +0000 (14:42 +0100)]
[3668] Updated copyright date in the memfile_lease_mgr_unittest.cc
Marcin Siodelski [Tue, 20 Jan 2015 11:03:54 +0000 (12:03 +0100)]
[3668] Further changes after second review.
- Pass io_service to D2Process as a const reference
- Fix issues in memfile unittest
Marcin Siodelski [Tue, 20 Jan 2015 09:20:53 +0000 (10:20 +0100)]
[3668] Fixed the quoteValue method in the DbAccessParser test.
Shawn Routhier [Tue, 20 Jan 2015 08:28:49 +0000 (00:28 -0800)]
[trac3664] Add the command line processing
Continue adding the boiler plate files and
add the function to parse the command line arguments.
Marcin Siodelski [Mon, 19 Jan 2015 19:06:57 +0000 (20:06 +0100)]
[master] Added ChangeLog entry for #3547.
Also, corrected the whitespaces in the preceding entry.
Marcin Siodelski [Mon, 19 Jan 2015 18:44:03 +0000 (19:44 +0100)]
[master] Merge branch 'trac3547'
Marcin Siodelski [Mon, 19 Jan 2015 18:42:07 +0000 (19:42 +0100)]
[3547] Added instruction numbers in the BPF program as comments.
This change is a result of the review.
Tomek Mrugalski [Mon, 19 Jan 2015 14:45:53 +0000 (15:45 +0100)]
[3547] Indentation fixed.
Tomek Mrugalski [Mon, 19 Jan 2015 13:35:46 +0000 (14:35 +0100)]
[master] ChangeLog updated after #3553 merge.
Marcin Siodelski [Mon, 19 Jan 2015 13:31:50 +0000 (14:31 +0100)]
[3668] Addressed review comments.
Marcin Siodelski [Fri, 16 Jan 2015 16:35:56 +0000 (17:35 +0100)]
[master] Added ChangeLog entry for 3636.
Also fixed whitespaces in some recent entries.
Marcin Siodelski [Fri, 16 Jan 2015 16:14:20 +0000 (17:14 +0100)]
[master] Merge branch 'trac3636'
Marcin Siodelski [Fri, 16 Jan 2015 15:48:13 +0000 (16:48 +0100)]
[3636] Trivial fixes to comply with the coding standards/guidelines.
Marcin Siodelski [Fri, 16 Jan 2015 15:38:51 +0000 (16:38 +0100)]
[3636] Fixes for the failing unit tests.
Tomek Mrugalski [Fri, 16 Jan 2015 14:29:22 +0000 (15:29 +0100)]
[master] Merge branch 'trac3553' (MAC address from docsis options)
Marcin Siodelski [Fri, 16 Jan 2015 12:26:42 +0000 (13:26 +0100)]
[3636] DHCPv4 server does not append the dot at the end of the hostname.
This patch has been proposed by Alexis Fidalgo. It was earlier reported
that Kea always appends a dot at the end of the hostname which may cause
some clients to fail on processing this option.
Shawn Routhier [Fri, 16 Jan 2015 05:32:11 +0000 (21:32 -0800)]
[trac3664] Scaffolding for the lfc program
Add the lfc directory and update the auto tool files to
process it.
Marcin Siodelski [Thu, 15 Jan 2015 12:20:03 +0000 (13:20 +0100)]
[3547] Trivial fixes in the PktFilterLPFTest.
Marcin Siodelski [Thu, 15 Jan 2015 11:07:32 +0000 (12:07 +0100)]
[3547] Added test to check raw socket drops packets w/ wrong destination.
Marcin Siodelski [Wed, 14 Jan 2015 19:26:45 +0000 (20:26 +0100)]
[master] Added ChangeLog entry for #3671.
Marcin Siodelski [Wed, 14 Jan 2015 18:42:58 +0000 (19:42 +0100)]
[3547] Updated copyright dates.
Marcin Siodelski [Wed, 14 Jan 2015 17:46:38 +0000 (18:46 +0100)]
[master] Merge branch 'trac3671'
Marcin Siodelski [Wed, 14 Jan 2015 15:27:50 +0000 (16:27 +0100)]
[3547] Trivial fix in the pkt_filter_lpf.
Marcin Siodelski [Wed, 14 Jan 2015 15:09:06 +0000 (16:09 +0100)]
[3671] Addressed second round of review comments.
Simplified the method which loads leases from the CSV file.
Tomek Mrugalski [Wed, 14 Jan 2015 14:41:36 +0000 (15:41 +0100)]
[3644] kea-admin is now documented in the User's Guide.
Marcin Siodelski [Wed, 14 Jan 2015 14:24:11 +0000 (15:24 +0100)]
[3547] Updated BPF program to filter out the packets using dest IP address.
Tomek Mrugalski [Wed, 14 Jan 2015 11:22:07 +0000 (12:22 +0100)]
[3553] Changes after review:
- copyright year updated
- comment clarified
- added @todo in Pkt::setHWAddrMember()
- getMACfromDocsis*() don't use intermediate members, will accept
options with length 1
Marcin Siodelski [Wed, 14 Jan 2015 10:57:54 +0000 (11:57 +0100)]
[3671] Addressed review comments.
Marcin Siodelski [Tue, 13 Jan 2015 14:48:43 +0000 (15:48 +0100)]
[3668] Minor correction in the comments in the DHCPv4 and DHCPv6 servers.
Marcin Siodelski [Tue, 13 Jan 2015 14:21:59 +0000 (15:21 +0100)]
[3668] Install LFC timer for the DHCPv4 and DHCPv6 server.
Marcin Siodelski [Tue, 13 Jan 2015 12:48:03 +0000 (13:48 +0100)]
[3668] Minor fix in the DbAcceesParser test.
Marcin Siodelski [Tue, 13 Jan 2015 12:33:42 +0000 (13:33 +0100)]
[3668] Added support for lfc-interval parameter in the DbAccessParser.
Marcin Siodelski [Tue, 13 Jan 2015 11:09:14 +0000 (12:09 +0100)]
[3668] Added a test for disabled LFC timer.
Marcin Siodelski [Tue, 13 Jan 2015 11:09:00 +0000 (12:09 +0100)]
[3668] Better documentation for timers in LeaseMgrs.
Marcin Siodelski [Mon, 12 Jan 2015 20:32:51 +0000 (21:32 +0100)]
[3668] Install LFC callback to trigger LFC periodically.
Marcin Siodelski [Mon, 12 Jan 2015 17:06:41 +0000 (18:06 +0100)]
[3668] Moved the definition of IOServicePtr to asiolink/io_service.h
Marcin Siodelski [Mon, 12 Jan 2015 11:38:47 +0000 (12:38 +0100)]
[3671] Added unit test for loading v6 leases from multiple files.
Also, prevented opening the optional lease files if they don't exist.
Marcin Siodelski [Fri, 9 Jan 2015 20:25:18 +0000 (21:25 +0100)]
[3671] Memfile loads leases from multiple lease files.
Marcin Siodelski [Fri, 9 Jan 2015 18:48:32 +0000 (19:48 +0100)]
[3671] Created a function to read leases from multiple files.
Marcin Siodelski [Fri, 9 Jan 2015 17:34:34 +0000 (18:34 +0100)]
[3671] Isolated the container for leases into the separate file.
Also added an utility class to bulk load leases from the file.