summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/d2_client_cfg.cc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* [4259] Addressed review commentsThomas Markwalder2016-04-061-11/+13
| | | | | | | | | | | | | Moved string/enum conversion functions inside D2ClientConfig Changed underscores to hypens in replace-client-name values and changed all literal values to lower case. Fixed minor wording issues in admin guide and new log messages. Added commentary and extra error logging to unit tests Added test case for invalid value of replace-client-name
* [4259] Converted replace-client-name from boolean to enumerationThomas Markwalder2016-04-041-16/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [4236] Replaced license text in all files containing it.Marcin Siodelski2015-12-161-11/+3
|
* [master] remove '#include <config.h' from include files (#3782)Francis Dupont2015-04-181-0/+2
|
* make dhcp-ddns qualifying-suffix mandatory in enabled configsFrancis Dupont2015-02-141-3/+2
|
* [master] Merge branch 'trac3409'Marcin Siodelski2014-04-291-2/+2
|\ | | | | | | | | | | Conflicts: src/lib/dhcpsrv/d2_client_cfg.cc src/lib/dhcpsrv/dhcp_parsers.cc
| * [3409] Fix line number logging in DHCPv4 as a result of manual testing.Marcin Siodelski2014-04-251-2/+2
| |
* | [3328] Addressed review commentsThomas Markwalder2014-04-241-24/+24
| | | | | | | | | | | | | | | | Fixed typos and replaced used of DHCPv<n> with b10-dhcp<n> in D2 relevant sections of the admin guide. Added sender_ip and max_queue_size value to dhcp4 and dhcp6 unit tests. Added used of DFT constants in D2ClientCfg default constructor.
* | [3328] Added additional validation in D2ClientCfgThomas Markwalder2014-04-171-4/+18
| | | | | | | | | | | | | | Added checks in D2ClientCfg to make user server and sender ip values are the same family, and that the server ip/port is not exactly the same as the sender ip/port.
* | [3328] Added new configurable values to dhcpsrv::D2ClientConfigThomas Markwalder2014-04-171-0/+19
|/ | | | | | | | | | | Adding new members to D2ClientConfig - sender_ip - sender_port - max_queue_size Modified D2ClientConfigParser to parse the new values Modified D2ClientMgr to make use of the new values Updated the appropriate unittests
* [3358] Addressed review comments.Thomas Markwalder2014-03-131-0/+1
| | | | Added the constant D2ClientConfig::DFT_ALWAYS_INCLUDE_FQDN
* [3358] D2ConfigParser supplies its own default valuesThomas Markwalder2014-03-121-0/+10
| | | | | | | | | Added a method to ValueType<> template, getOptionalParam. Defined constants for dhcp-ddns default values in D2ClientConfig. D2ClientConfigParser uses these in conjuction with calls to ValueType<>getOptionalParam() to ensure all the parameters needed have values. Modifed unit tests accordingly.
* [3329] Added setter for enable-updates to dhcp::D2ClientConfigThomas Markwalder2014-02-131-0/+5
| | | | | Added enableUpdates() method to D2ClientConfig to allow DDNS updates to be enabled or disabled independent of reconfiguration.
* [3329] Moved dhcp::D2ClientMgr into its own header and source.Thomas Markwalder2014-02-101-0/+141
d2_client.h and .cc was split into four files: D2ClientConfig class is now in d2_client_cfg.h/cc D2ClientMgr class is now in d2_client_mgr.h/cc