Marcin Siodelski
718643a83a
[4281] Extended MySQL host data source with DHCPv4 and DHCPv6 options.
...
Missing things:
- proper commentary
- formatted values for options
- rollback host insertion when failing to add reservation or option
2016-05-12 18:31:07 +02:00
Stephen Morris
1d3dac9de3
[4485] Change type of variables to overcome compiler objections
...
One compiler was objecting to placing the address of a size_t variable
into a variable declared as "unsigned long*". Changing the
declaration from "size_t" to "unsigned long" fixes the problem.
2016-05-10 15:03:02 +01:00
Marcin Siodelski
7741ab8ce8
[4300] Addressed review comments.
2016-04-05 13:30:37 +02:00
Marcin Siodelski
e4a879e3e2
[4300] Host class holds identifier rather than HW address or DUID.
2016-04-04 10:57:33 +02:00
Marcin Siodelski
634cf7a2d4
[4302] Address further review comments.
...
- cppcheck issues
- Unique index for prefix and prefix length.
2016-04-01 17:44:32 +02:00
Marcin Siodelski
9900e40c3a
[4302] MySQL database upgraded to version 4.2.
...
- Added new table host_identifier_type
- Added foreign key on hosts table referencing
host_identifier_type
- Indexes on hosts table are now unique
2016-03-31 20:29:20 +02:00
Marcin Siodelski
356f261e36
[4302] Addressed review comments.
...
- Rename GET_HOST_HWADDR_DUID to GET_HOST_DHCPID
- Fixes and clarifications in doxygen documentation
2016-03-31 13:45:44 +02:00
Marcin Siodelski
f551e0e480
[4302] Refactored host data source classes.
...
The updated API exposes functions which retrieve hosts
by any identifier and identifier type, rather than DUID
or HW address.
2016-03-24 14:56:36 +01:00
Marcin Siodelski
14cc8ad664
[master] Eliminate doxygen warnings after #4212 and #3696 .
...
Committing on my discretion and with no objections on jabber.
2016-03-24 12:34:43 +01:00
Marcin Siodelski
7948104393
[master] Merge branch 'trac4212'
2016-03-23 13:51:55 +01:00
Marcin Siodelski
34d21432a4
[4212] Addressed review comments.
2016-03-23 12:29:15 +01:00
Francis Dupont
9f47b6511d
[4326] untabified
2016-03-22 17:31:30 +01:00
Tomek Mrugalski
82becf56b0
[4212] Compilation fix
2016-03-09 15:50:21 +01:00
Marcin Siodelski
7284e68744
[4212] Restructured MySQL Exchange classes in host data source.
2016-03-08 12:14:44 +01:00
Marcin Siodelski
eca64697cb
[4212] Using single query to retrieve hosts and IPv6 reservations.
2016-03-02 12:18:04 +01:00
Marcin Siodelski
c89e1b38fe
[4212] Renamed two variables to adhere to our coding guidelines.
...
Also, use new constant for checking fetch failure in MySQL.
2016-03-02 00:05:11 +01:00
Marcin Siodelski
24b7fb0e6f
[4212] Addressed review comments.
...
- Introduced constants for MySQL fetch results
- Simplified loops in generic SQL unit tests
- Removed some typos
- Removed unused variables
2016-03-01 16:54:18 +01:00
Tomek Mrugalski
51610a48a3
[4212] Applied two patches by Adam:
...
- addressed most review comments
- added new unit-tests
- remove reservation for temporary addresses TA
- updated AUTHORS file
2016-02-08 20:12:36 +01:00
Tomek Mrugalski
4e9fb31a3d
[4212] Patch as provided by Adam Kalmus
...
- Tomek verified that it applied cleanly, compiled and
unit-tests passed.
2016-01-27 15:58:07 +01:00
Jiri Popelka
8548d1b589
Use unsigned long for dhcp_identifier_length
...
fixes:
mysql_host_data_source.cc:236:33: error: invalid conversion from 'size_t* {aka unsigned int*}' to 'long unsigned int*' [-fpermissive]
bind_[1].length = &dhcp_identifier_length_;
^
mysql_host_data_source.cc:243:33: error: invalid conversion from 'size_t* {aka unsigned int*}' to 'long unsigned int*' [-fpermissive]
bind_[1].length = &dhcp_identifier_length_;
^
mysql_host_data_source.cc:344:25: error: invalid conversion from 'size_t* {aka unsigned int*}' to 'long unsigned int*' [-fpermissive]
bind_[1].length = &dhcp_identifier_length_;
2015-12-23 19:34:09 +01:00
Marcin Siodelski
fe9dd86d20
[4236] Replaced license text in all files containing it.
2015-12-16 13:37:29 +01:00
Thomas Markwalder
2c413e04e0
[4216] Eliminated reuse of log message IDs in hosts database related logging
...
src/lib/dhcpsrv/dhcpsrv_messages.mes
Added hosts database specific messages
src/lib/dhcpsrv/host_data_source_factory.cc
src/lib/dhcpsrv/mysql_host_data_source.cc
Updated log statements with hosts database messages
2015-12-09 14:51:36 -05:00
Tomek Mrugalski
01f0cb4928
[4212] Skeleton for IPv6 reservations support added.
2015-12-04 21:33:52 +01:00
Tomek Mrugalski
e05819fbce
[4217] HostMgr now uses exactly one identifier in get4() query
...
- Includes fix in AllocEngine6Test ctor, provided by Thomas
2015-12-03 17:47:41 +01:00
Tomek Mrugalski
65efc0da7f
[3682_rebase] Merge branch 'trac3682' into trac3682_rebase
...
# Conflicts:
# src/lib/dhcpsrv/mysql_lease_mgr.cc
# src/lib/dhcpsrv/mysql_lease_mgr.h
2015-11-30 21:26:25 +01:00