| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| | |
Conflicts:
src/lib/dhcpsrv/d2_client_cfg.cc
src/lib/dhcpsrv/dhcp_parsers.cc
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Added the constant D2ClientConfig::DFT_ALWAYS_INCLUDE_FQDN
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Added enableUpdates() method to D2ClientConfig to allow DDNS updates to be
enabled or disabled independent of reconfiguration.
|
|
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
|