2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 22:15:23 +00:00
Commit Graph

22895 Commits

Author SHA1 Message Date
Marcin Siodelski
0b5aab318e [4301] Implemented utility functions to convert from hex strings.
The supported hex strings may have different formats:
- colon separated values,
- with '0x'prefix
- no prefix, no colons
2016-04-06 14:50:05 +02:00
Shawn Routhier
42b50c9a5f [trac4265] update unittests to go along with token name change 2016-04-05 21:42:55 -07:00
Shawn Routhier
e9fbae1a46 [trac4265] Regenerate parser.cc and parser.h after updates 2016-04-06 04:24:52 +00:00
Shawn Routhier
b2a5d809ac [trac4265] updates per review comments 2016-04-05 20:55:42 -07:00
Thomas Markwalder
604b8e78a2 [4265] Removed whitespaces 2016-04-05 15:31:40 -04:00
Stephen Morris
62b89c1a55 [4293] Correction of a typo in the dhcpsrv message file 2016-04-05 19:03:42 +01:00
Marcin Siodelski
3c6c673464 [4301] HostReservationParser::isIdentifierParameter belongs to parent class. 2016-04-05 16:23:30 +02:00
Marcin Siodelski
fb4c4a30e0 [4301] Host configuration parser now supports circuit-id parameter. 2016-04-05 15:57:11 +02:00
Marcin Siodelski
5adcd2c020 [master] Correcting previous change.
Replace <cstdint> with <stdint.h> because the former is C++11 only.
2016-04-05 15:54:49 +02:00
Marcin Siodelski
8ec157c6fc [master] Added missing inclusion of <cstdint> in strutil.h.
Okayed on jabber.
2016-04-05 15:38:53 +02:00
Thomas Markwalder
8c61caa147 [master] Added ChangeLog entry 1100 for #4243. 2016-04-05 09:28:27 -04:00
Thomas Markwalder
082f846f37 [master] Mitigate GCC 5.x optmizer issue in asiolink
Merged in trac4243.
2016-04-05 08:50:20 -04:00
Marcin Siodelski
abee3e733d [master] Merge branch 'trac4300' 2016-04-05 14:31:05 +02:00
Marcin Siodelski
7741ab8ce8 [4300] Addressed review comments. 2016-04-05 13:30:37 +02:00
Thomas Markwalder
b71852dc1f [4243] Distcheck failure correction
Distcheck sporadically fails to clean up test_leases.csv.2
    can be left behind by dhcp4 and dhcp6 testing.

src/bin/dhcp4/tests/Makefile.am
src/bin/dhcp6/tests/Makefile.am
    - Added test_leases.csv.* to CLEANFILES
2016-04-04 15:34:19 -04:00
Thomas Markwalder
869c33a5f1 [4243] Addressed review comments
src/lib/asiolink/Makefile.am
    added asio_wrapper.h to list of sources

src/lib/asiolink/asio_wrapper.h
    updated commentary to include GNU/Boost bugs and
    added prominent warning comment
2016-04-04 15:32:57 -04:00
Shawn Routhier
7e468146f1 [trac4265] Add test code, tidy up main code 2016-04-04 10:30:10 -07:00
Thomas Markwalder
fe77538dc4 [4259] Updated admin guide and spec files
Revamped discussion of FQDN name generation and use of the
    replace-client-name parameter in the v4 and v6 guides.
2016-04-04 07:24:16 -04:00
Thomas Markwalder
b3f483e537 [4259] kea-dhcp6 now supports replace-client-name modes
src/bin/dhcp6/dhcp6_messages.mes
        - Added new log message, DHCP6_DDNS_SUPPLY_FQDN

    src/bin/dhcp6/dhcp6_srv.cc
        - Dhcpv6Srv::processClientFqdn() - modified to support the name
        replacement modes

    src/bin/dhcp6/tests/fqdn_unittest.cc
        - FqdnDhcpv6SrvTest::testReplaceClientNameMode() new method which tests
        a server's handling of a single client packet for a given
        replace-client-name mode.

        - TEST_F(FqdnDhcpv6SrvTest, replaceClientNameModeTest) - new test which
        exercises the permutations of client packets and replace-client-name
        modes.
2016-04-04 07:21:43 -04:00
Thomas Markwalder
bc8768e936 [4259] kea-dhcp4 now supports replace-client-name modes
src/bin/dhcp4/dhcp4_messages.mes
        - Added new log message DHCP4_SUPPLY_HOSTNAME

    src/bin/dhcp4/dhcp4_srv.cc
        - Dhcpv4Srv::processClientName() - pushed lack of host option in the
        client request down into processHostoption()

        - Dhcpv4Srv::processHostnameOption() - modified to support the new name
        replacement modes

    src/bin/dhcp4/tests/fqdn_unittest.cc
        - NameDhcpv4SrvTest:: testReplaceClientNameMode() - new method which
        tests a server's handling of a single client packet for a given
        replace-client-name mode.

        - TEST_F(NameDhcpv4SrvTest, replaceClientNameModeTest) - new test which
        exercises the permutations of client packets and replace-client-name
        modes.
2016-04-04 07:19:55 -04:00
Thomas Markwalder
d80e28d309 [4259] Converted replace-client-name from boolean to enumeration
The D2 client configuration parameter, replace-client-name, was
    changed from a boolean, to an enumerated list of modes:

        "NEVER" - do not alter or supply the client name
        "ALWAYS" - always replace the client name, or supply it if
         not sent by the client
        "WHEN_PRESENT" - replace the client name sent by the client,
         do not supply one otherwise
        "WHEN_NOT_PRESENT" - supply the client name only if one was
        not sent by the client

    src/lib/dhcpsrv/d2_client_cfg.cc
    src/lib/dhcpsrv/d2_client_cfg.h
        Added the D2ClientConfig::ReplaceClientNameMode enumeration.

    src/lib/dhcpsrv/parsers/dhcp_parsers.cc
        - Alter replace-client-name parsing to parse the mode labels.
        - Maps boolean literals true and false to RCM_WHEN_PRESENT and
        RCM_NEVER respectively

    src/bin/dhcp4/dhcp6_srv.cc
    src/bin/dhcp4/dhcp4_srv.cc
    src/lib/dhcpsrv/d2_client_mgr.h
        - Adapted to use the enumeration

    src/bin/dhcp4/tests/config_parser_unittest.cc
    src/bin/dhcp4/tests/fqdn_unittest.cc
    src/bin/dhcp6/tests/config_parser_unittest.cc
    src/bin/dhcp6/tests/fqdn_unittest.cc
    src/lib/dhcpsrv/tests/cfgmgr_unittest.cc
    src/lib/dhcpsrv/tests/d2_client_unittest.cc
    src/lib/dhcpsrv/tests/d2_udp_unittest.cc
    src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
        - Alter existing tests to use the enumeration. Note false was replaced
        with RCM_NEVER and true with RCM_WHEN_PRESENT
2016-04-04 07:18:24 -04:00
Thomas Markwalder
849439da6c [4259] Add unit tests to ensure StringParser can parse booleans
Added checks to ensure that StringParser can handle being given
    a boolean literal (i.e. unquoted true or false)
2016-04-04 07:16:09 -04:00
Marcin Siodelski
2b12535e20 [4300] Added "circuit-id" as supported identifier into Host class. 2016-04-04 10:57:33 +02:00
Marcin Siodelski
f1289b6cc0 [4300] Added utility function to convert string in quotes to vector. 2016-04-04 10:57:33 +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
12320a7284 [master] Added ChangeLog entry for #4302. 2016-04-04 10:49:45 +02:00
Marcin Siodelski
3979656c91 [master] Merge branch 'trac4302_rebase' 2016-04-04 09:50:56 +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
b1ecd2e7ad [4302] Additional indexes added to search for hosts in MySQL. 2016-04-01 09:49:06 +02:00
Stephen Morris
bb60a92508 [4293] Get rid of DHCPSRV_MEMFILE_LFC_UNREGISTER_TIMER_FAILED error message during shutdown
The message may have multiple causes, a shutdown being one of
them.  As the condition leading to the message is benign, the
message has been made a debug message.
2016-03-31 21:29:59 +01:00
Shawn Routhier
ce3d4e3c25 [trac4265] First round of allowing access to v6 relay options via the classification code 2016-03-31 18:48:08 +00: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
497a254512 [4302] Use new functions to retrieve reservations by any identifier. 2016-03-29 16:26:18 +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
8c7184577a [master] Added ChangeLog entry for #4212. 2016-03-24 11:46:57 +01:00
Francis Dupont
4b256f80be [master] Updated git hash 2016-03-23 16:47:29 +01:00
Francis Dupont
ba24bd770d [master] Finished merge of trac4267 (final run_one()) 2016-03-23 16:46:35 +01:00
Francis Dupont
2047a44ad5 [master] Merged trac4267 (final run_one()) 2016-03-23 16:42:21 +01:00
Francis Dupont
d6acda356a [4267] Addressed comments 2016-03-23 16:39:44 +01:00
Thomas Markwalder
d8693502eb [master] Added ChangeLog entry 1096 for Trac 4316 2016-03-23 10:54:20 -04:00
Thomas Markwalder
9beca27e3d [master] Primary lease events now log at INFO level
Merges in branch 'trac4316'
2016-03-23 10:34:11 -04:00
Francis Dupont
d92767e4f6 [4268a] Rebased TokenPkt4 code 2016-03-23 15:21:42 +01:00
Francis Dupont
3b5f6d6322 [4268a] Updated and regenerated rebased parser files 2016-03-23 15:00:20 +01:00
Francis Dupont
c5d6c1a644 [4268a] Updated rebased doc 2016-03-23 14:50:23 +01:00
Marcin Siodelski
7948104393 [master] Merge branch 'trac4212' trac4268a_base 2016-03-23 13:51:55 +01:00
Thomas Markwalder
d425c142a7 [4316] Changed primary lease event logging from DEBUG to INFO
src/bin/dhcp4/dhcp4_messages.mes
    - Replaced the word "debug" with "informational" where appropriate

src/bin/dhcp4/dhcp4_srv.cc
    - Changed several lease4_logger messages from DEBUG to INFO
    DHCP4_INIT_REBOOT
    DHCP4_LEASE_ADVERT
    DHCP4_LEASE_ALLOC
    DHCP4_RELEASE
    DHCP4_DECLINE_LEASE

src/bin/dhcp6/dhcp6_messages.mes
    - Replaced the word "debug" with "informational" where appropriate

    - Added two new messages:
    DHCP6_LEASE_RENEW
    DHCP6_PD_LEASE_RENEW

src/bin/dhcp6/dhcp6_srv.cc
    - Changed several lease6_logger messages from DEBUG to INFO
    DHCP6_LEASE_ADVERT
    DHCP6_LEASE_ALLOC
    DHCP6_PD_LEASE_ADVERT
    DHCP6_PD_LEASE_ALLOC
    DHCP6_RELEASE_NA
    DHCP6_RELEASE_PD
    DHCP6_DECLINE_LEASE

    - Dhcpv6Srv::extendIA_NA() - added new log for DHCP6_LEASE_RENEW
    - Dhcpv6Srv::extendIA_PD() - added new log for DHCP6_PD_LEASE_RENEW
2016-03-23 08:28:29 -04:00
Marcin Siodelski
34d21432a4 [4212] Addressed review comments. 2016-03-23 12:29:15 +01:00
Francis Dupont
c54beb5f6e [master] Updated git hash 2016-03-22 17:49:45 +01:00