2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

27 Commits

Author SHA1 Message Date
Stephen Morris
d87597de14 [2546] Define ClientIdPtr type
This is akin to the DuidPtr and is a shared point to a Client ID.
2012-12-10 10:35:28 +00:00
Stephen Morris
084a166845 [2546] Remove LeaseMgr::getLease4(address, subnetid)
As the address is th eprimary key of the table, there can only ever
be at most one lease in the database with a given address.  Additional
selection by subnet ID is not needed.
2012-12-10 10:13:53 +00:00
Stephen Morris
5c9dba4001 [master] Remove indirection in defining size of arrays
cppcheck was complaining about what was effectively:
const int A = 6; const int B = A; std::string array[b];

Changing this to
const int B = 6; std::string array[b];

... works
2012-12-07 20:25:25 +00:00
Stephen Morris
ce7db48d3f [2404] Merge branch 'master' into trac2404 2012-12-07 12:28:21 +00:00
Stephen Morris
1c59115d79 [2404] Alter memfile "getName()" to return "memory"
This reflects the fact that at the moment, the data is stored in
memory and not in a backing file.
2012-12-07 12:25:40 +00:00
Stephen Morris
fca3132940 [2404] Minor changes as a result of review 2012-12-07 11:18:47 +00:00
Stephen Morris
1d4751ed52 [2513] Move libdhcpsrv.dox to the dhcpsrv directory 2012-12-04 17:27:27 +00:00
Stephen Morris
8f6903dc06 [2404] Updated comments etc. 2012-12-04 11:32:08 +00:00
Stephen Morris
b6c480a594 [2404] Extending test cases as the result of review 2012-12-03 21:23:48 +00:00
Stephen Morris
495d4e2f69 [2404] More changes as a result of review
Including:
* Updates to comments etc.
* Addition of Lease4::operator==() (and associated unit tests)
2012-12-03 15:35:36 +00:00
Stephen Morris
ef364ccb84 [2404] First set of changes as a result of review
* Corrections of miscellaneous typos in comments
* Update database version to 1.0
* Handling of truncation while fetching data from the database
2012-11-30 15:49:42 +00:00
Mukund Sivaraman
f8f96f9e0a [master] Update .gitignore files 2012-11-27 18:49:23 +05:30
Stephen Morris
46cfa07792 [2404] Further refactoring and a bit of simplification.
Also, included dhcpsrv in the list of directories searched by Doxygen.
2012-11-26 19:17:27 +00:00
Stephen Morris
5b1850bbc2 [2404] Tidying up and refactoring the code 2012-11-23 18:23:21 +00:00
Stephen Morris
3b2c2c14fb [2404] Add ability to update an IPv4 lease 2012-11-23 14:08:00 +00:00
Stephen Morris
a08894f451 [2404] Add method to get lease4 by client ID and subnet ID 2012-11-23 13:48:42 +00:00
Stephen Morris
7e6602a873 [2404] Add get lease4 by client ID 2012-11-23 12:47:40 +00:00
Stephen Morris
3eab2458f1 [2404] Add method to get lease4 by hardware address & subnet ID 2012-11-23 12:23:17 +00:00
Stephen Morris
59c65b476b [2404] Now able to get IPv4 leases by hardware address 2012-11-23 12:05:55 +00:00
Stephen Morris
af71689ee4 [2404] Add getLease4(const IOAddress&, SubnetId)
Add ability to select IPv4 leases by address and Subnet ID.
2012-11-21 19:38:26 +00:00
Stephen Morris
6107151348 [2404] Basic Lease4 functionality working 2012-11-21 12:44:18 +00:00
Stephen Morris
f15be5f7bf [2404] lease_time renamed valid_lifetime in lease4 table
Make the names of the columns consistent between the lease4 and
lease6 tables.
2012-11-20 12:49:38 +00:00
Stephen Morris
01ee67bc74 [2404] Add another Lease4 constructor
This constructore is for use by the MySQL code.  By passing buffer
addresses and lengths, the need for the creation of intermediate
std::vectors is avoided.
2012-11-20 12:47:22 +00:00
Stephen Morris
b7bce1d66b [2404] Change multiple discrete variables to arrays
... in preparation for adding IPv4 tests
2012-11-19 19:37:07 +00:00
Stephen Morris
fab53a075c [1486] Rename IOAddress::from_bytes() to IOAddress::fromBytes()
... to conform to coding standards.
2012-11-19 14:25:31 +00:00
Stephen Morris
3ba0299ad2 [2475] Put #include directives in correct order
Also fix some issues from the review.
2012-11-16 14:15:45 +00:00
Stephen Morris
d2551c3b2b [2475] Split dhcp files into dhcp and dhcpsrv directories 2012-11-16 11:19:19 +00:00