]>
git.ipfire.org Git - thirdparty/kea.git/log
Marcin Siodelski [Mon, 10 Feb 2014 17:49:54 +0000 (18:49 +0100)]
[master] Initialized the hops value of the DHCPv4 packet.
This prevents errors reported by valgrind about uninitialized value of
hops being used in unit tests which skip parsing the packet. Okayed
on jabber.
Tomek Mrugalski [Mon, 10 Feb 2014 17:33:10 +0000 (18:33 +0100)]
[3274] white_list_ is now of ClientClasses type.
Thomas Markwalder [Mon, 10 Feb 2014 16:56:44 +0000 (11:56 -0500)]
[master] Merge branch 'trac3299'
b10-dhcp-ddns uses lease length as TTL in DNS update RRsets.
Thomas Markwalder [Mon, 10 Feb 2014 16:54:45 +0000 (11:54 -0500)]
[3299] Updated a missed Copyright notice.
Thomas Markwalder [Mon, 10 Feb 2014 16:45:58 +0000 (11:45 -0500)]
[3221] Improved WatchSocket error handling in dhcp_ddns::NameChangeUDPSender
Shored up the error handling in the sender when the WatchSocket fails to mark
or clear. Addes unit tests accordingly.
Tomek Mrugalski [Mon, 10 Feb 2014 15:07:02 +0000 (16:07 +0100)]
[3274] Changes after second round of reviews:
- getRelayInfo() implemented, relay_ is now protected
- setRelay => setRelayInfo
- Option::Universe is passed as const reference
- Further clarified white_list_ field in Subnet.h
Marcin Siodelski [Mon, 10 Feb 2014 14:54:58 +0000 (15:54 +0100)]
[3316] Implemented unit test to cover packet with short Vendor Class.
Marcin Siodelski [Mon, 10 Feb 2014 11:46:50 +0000 (12:46 +0100)]
[3274] Fixed two typos.
Marcin Siodelski [Mon, 10 Feb 2014 10:42:09 +0000 (11:42 +0100)]
[master] Added ChangeLog entry for #3242.
Marcin Siodelski [Mon, 10 Feb 2014 10:32:27 +0000 (11:32 +0100)]
[master] Merge branch 'trac3242'
Conflicts:
src/bin/dhcp4/tests/fqdn_unittest.cc
Thomas Markwalder [Sat, 8 Feb 2014 19:04:56 +0000 (14:04 -0500)]
[3221] Fixed doxygen errors, removed commented include
Fixed a couple doxgyen errors and removed the commented
out include of ioctl.h in d2_upd_unittest.cc
Thomas Markwalder [Sat, 8 Feb 2014 18:26:01 +0000 (13:26 -0500)]
[3221] Addressed review comments.
Made behavior of dhcp_ddns::WatchSocket a bit more robust in handling
programmatic abuse.
Cleaned up addresses used in ncr_upd_unittest.cc, added specific test
for client side address if 0.0.0.0/port 0.
Updated copyrights as appropriate and other cosmetics.
Marcin Siodelski [Fri, 7 Feb 2014 18:01:36 +0000 (19:01 +0100)]
[master] Added ChangeLog entry for #3309.
Marcin Siodelski [Fri, 7 Feb 2014 17:41:05 +0000 (18:41 +0100)]
[master] Merge branch 'trac3309'
Tomek Mrugalski [Fri, 7 Feb 2014 16:26:03 +0000 (17:26 +0100)]
[3274] Changes after review:
- RelayInfoParser now takes Option::Universe as last parameter;
- Extra tests for checking invalid parameters in RelayInfoParser
- Comments in subnet.h improved
- Sanity checks in RelayInfoParser implemented, doc improved
Marcin Siodelski [Fri, 7 Feb 2014 15:52:30 +0000 (16:52 +0100)]
[3242] Log when received message is not supported.
Marcin Siodelski [Fri, 7 Feb 2014 14:13:44 +0000 (15:13 +0100)]
[3242] Removed typo from bind10-guide.
Marcin Siodelski [Fri, 7 Feb 2014 14:12:55 +0000 (15:12 +0100)]
[3242] Corrected typo in the DHCPv4 message.
Also added a pointer to valid message types on IANA website, in the log
message description.
Mukund Sivaraman [Fri, 7 Feb 2014 13:24:48 +0000 (18:54 +0530)]
[2185] Add tests for RdataPimplHolder
Mukund Sivaraman [Fri, 7 Feb 2014 13:00:50 +0000 (18:30 +0530)]
[2185] Add and use a RdataPimplHolder instead of auto_ptr
Mukund Sivaraman [Fri, 7 Feb 2014 05:42:14 +0000 (11:12 +0530)]
Merge branch 'trac3023'
Mukund Sivaraman [Fri, 7 Feb 2014 05:30:42 +0000 (11:00 +0530)]
Merge branch 'trac413'
Tomek Mrugalski [Thu, 6 Feb 2014 19:40:02 +0000 (20:40 +0100)]
[3274] Changes after review:
- Copyright years updated
- Minor corrections in BINDX Guide
- dhcp4.spec relay structure description updated.
- new unit-test for DHCPv4 client classification added
- new unit-test for DHCPv6 client classification added
- fixed Doxygen errors
- comments for CfgMgr::getSubnet{4,6} updated
Tomek Mrugalski [Thu, 6 Feb 2014 19:08:09 +0000 (20:08 +0100)]
[3274] Added new file for classify unittests.
Thomas Markwalder [Thu, 6 Feb 2014 18:34:46 +0000 (13:34 -0500)]
[3299] Set TTL in DDNS RRsets to lease length in NameChangeRequest
Changed build request methods in d2::NameAddTransaction to set the RRset TTL
value to the value of NameChangeRequest::lease_length.
Marcin Siodelski [Thu, 6 Feb 2014 17:45:34 +0000 (18:45 +0100)]
[3242] Added new section to bind10 guide about DHCPv4 subnet selection
Marcin Siodelski [Thu, 6 Feb 2014 17:10:07 +0000 (18:10 +0100)]
[3242] Addressed review comments.
Thomas Markwalder [Thu, 6 Feb 2014 12:39:59 +0000 (07:39 -0500)]
[3221] Fixed minor compilation errors in dhcp_ddns::WatchSocket
Compilation under Fedora turned a couple of missing includes,
errno.h and stdint.h.
Mukund Sivaraman [Thu, 6 Feb 2014 12:21:17 +0000 (17:51 +0530)]
[2512] Update check to an assertion
All the constructors currently check that the tag field is not empty.
Mukund Sivaraman [Thu, 6 Feb 2014 12:17:18 +0000 (17:47 +0530)]
[2512] Fix indent level
Mukund Sivaraman [Thu, 6 Feb 2014 12:16:24 +0000 (17:46 +0530)]
[2512] Add a comment about redundant test
Mukund Sivaraman [Thu, 6 Feb 2014 12:14:22 +0000 (17:44 +0530)]
[2512] Add equality test in .compare unittest
Mukund Sivaraman [Thu, 6 Feb 2014 11:15:28 +0000 (16:45 +0530)]
[413] Add a unittest for numeric owner names in master files
Mukund Sivaraman [Thu, 6 Feb 2014 09:52:33 +0000 (15:22 +0530)]
[3023] Add a lettuce test adding a CH static zone (as described in the guide)
Marcin Siodelski [Thu, 6 Feb 2014 10:09:54 +0000 (11:09 +0100)]
[3309] Updated bind10-guide with the text about overriding standard options
Mukund Sivaraman [Thu, 6 Feb 2014 09:16:09 +0000 (14:46 +0530)]
Merge branch 'trac2299'
Mukund Sivaraman [Thu, 6 Feb 2014 09:03:24 +0000 (14:33 +0530)]
[2168] Remove more cases of UnitTestUtil::matchWireData (merged from master)
Mukund Sivaraman [Thu, 6 Feb 2014 09:01:17 +0000 (14:31 +0530)]
Merge branch 'master' into trac2168
Conflicts:
src/lib/dns/tests/rrset_unittest.cc
Mukund Sivaraman [Thu, 6 Feb 2014 08:31:18 +0000 (14:01 +0530)]
Merge branch 'trac956'
Thomas Markwalder [Wed, 5 Feb 2014 21:18:04 +0000 (16:18 -0500)]
[3221] Added dhcp-ddns IO support to dhcp::D2ClientMgr
Added creation and management of NameChangeSender to dhcpsrv::D2ClientMgr.
Added new file of unit tests, d2_udp_unittest.cc, to exercise D2ClientMgr
with a UDP sender.
Stephen Morris [Wed, 5 Feb 2014 16:49:14 +0000 (16:49 +0000)]
[master] Merge branch 'trac3305'
Tomek Mrugalski [Wed, 5 Feb 2014 10:53:04 +0000 (11:53 +0100)]
[master] ChangeLog updated after #1485 merge.
Tomek Mrugalski [Wed, 5 Feb 2014 10:48:42 +0000 (11:48 +0100)]
Merge branch 'trac1485'
Tomek Mrugalski [Wed, 5 Feb 2014 10:48:25 +0000 (11:48 +0100)]
[1485] Minor changes after review:
- IOAddress test renamed
- flipped isV6() with !isV4() in perfdhcp/test_control.cc
Mukund Sivaraman [Wed, 5 Feb 2014 07:19:17 +0000 (12:49 +0530)]
[956] Make Message::toWire() TSIG agnostic
Mukund Sivaraman [Wed, 5 Feb 2014 06:51:58 +0000 (12:21 +0530)]
Merge branch 'trac3312'
Mukund Sivaraman [Wed, 5 Feb 2014 06:40:15 +0000 (12:10 +0530)]
Merge branch 'trac2539'
Mukund Sivaraman [Wed, 5 Feb 2014 06:39:47 +0000 (12:09 +0530)]
[master] Add ChangeLog entry for #2226
Mukund Sivaraman [Wed, 5 Feb 2014 06:26:08 +0000 (11:56 +0530)]
Merge branch 'trac2226'
Mukund Sivaraman [Tue, 4 Feb 2014 21:48:17 +0000 (03:18 +0530)]
[2536] Remove "using namespace" from headers (last remnant)
The daemons have been exorcised. This codebase is now clean.
Mukund Sivaraman [Tue, 4 Feb 2014 21:06:38 +0000 (02:36 +0530)]
[2536] Remove "using namespace" from headers (DHCP code)
Mukund Sivaraman [Tue, 4 Feb 2014 20:07:12 +0000 (01:37 +0530)]
[2536] Remove "using namespace" from headers (DNS code)
Marcin Siodelski [Tue, 4 Feb 2014 18:24:55 +0000 (19:24 +0100)]
[3242] Do not install test library.
Tomek Mrugalski [Tue, 4 Feb 2014 18:14:28 +0000 (19:14 +0100)]
[3274] Missing changes in dhcp{4,6}.spec added.
Tomek Mrugalski [Tue, 4 Feb 2014 17:33:54 +0000 (18:33 +0100)]
[master] Compilation fix after 3315 merge.
Marcin Siodelski [Tue, 4 Feb 2014 16:33:52 +0000 (17:33 +0100)]
[3309] Allow creation of definition for std options without def in libdhcp.
Marcin Siodelski [Tue, 4 Feb 2014 16:33:05 +0000 (17:33 +0100)]
[3309] Created tests to check that defs for std options can be created.
As long as libdhcp++ doesn't provide definitions for all options, it
should be possible to create definitions for some standard options using
a configuration mechanism. The new tests check that.
Tomek Mrugalski [Tue, 4 Feb 2014 14:17:17 +0000 (15:17 +0100)]
Merge branch 'trac3315'
Tomek Mrugalski [Tue, 4 Feb 2014 14:16:52 +0000 (15:16 +0100)]
[3315] Changes after second review:
- SocketCallbackContainer is now SocketCallbackInfoContainer
- test callback is now quiet
Mukund Sivaraman [Tue, 4 Feb 2014 13:55:05 +0000 (19:25 +0530)]
[2430] Print debugging aid when check fails
Mukund Sivaraman [Tue, 4 Feb 2014 13:37:43 +0000 (19:07 +0530)]
[2430] Do case-specific tests using TXT RR type
(The implementation being tested did not need any changes.)
Tomek Mrugalski [Tue, 4 Feb 2014 13:31:38 +0000 (14:31 +0100)]
[3274] Proposed ChangeLog entry updated.
Mukund Sivaraman [Tue, 4 Feb 2014 13:22:59 +0000 (18:52 +0530)]
[2430] Rollback case change
These were not the correct tests to be modified. The correct tests to be
modified do not use any hex alphabets currently, and the alphabets are
also generated in the LHS names which are case-insensitive during
comparison.
This will be properly fixed in the next commits on the branch.
Tomek Mrugalski [Tue, 4 Feb 2014 13:03:30 +0000 (14:03 +0100)]
[3274] DHCPv6 sections about client classification in User's Guide added
Stephen Morris [Tue, 4 Feb 2014 12:56:46 +0000 (12:56 +0000)]
[3305] Don't install DHCP hooks example library
Tomek Mrugalski [Tue, 4 Feb 2014 12:54:01 +0000 (13:54 +0100)]
[3274] DHCPv4 section of User's Guide written
Stephen Morris [Tue, 4 Feb 2014 12:07:10 +0000 (12:07 +0000)]
[3305] Do not install libraries used for DHCP tests
Marcin Siodelski [Tue, 4 Feb 2014 11:37:12 +0000 (12:37 +0100)]
[3242] Removed the commented code from the CfgMgr.
Tomek Mrugalski [Tue, 4 Feb 2014 11:17:54 +0000 (12:17 +0100)]
[3274] Client-class can now be specified in DHCPv{4,6} subnets config
Marcin Siodelski [Tue, 4 Feb 2014 10:14:11 +0000 (11:14 +0100)]
[3242] Added unit test to check that direct packet is dropped on iface.
Mukund Sivaraman [Tue, 4 Feb 2014 05:33:59 +0000 (11:03 +0530)]
[2518] Add C++ unittests for DNS exception hierarchy
Mukund Sivaraman [Tue, 4 Feb 2014 05:10:12 +0000 (10:40 +0530)]
[2518] Update common DNS exceptions into a hierarchy
Mukund Sivaraman [Tue, 4 Feb 2014 04:57:07 +0000 (10:27 +0530)]
[2518] Fix description
Mukund Sivaraman [Tue, 4 Feb 2014 04:56:52 +0000 (10:26 +0530)]
[2518] Organize isc::Exception-s in a hierarchy
Mukund Sivaraman [Tue, 4 Feb 2014 04:44:31 +0000 (10:14 +0530)]
[2518] Add Python bindings for NameParserException hierarchy
Mukund Sivaraman [Tue, 4 Feb 2014 04:19:12 +0000 (09:49 +0530)]
[1894] Minor coding style fix
Mukund Sivaraman [Tue, 4 Feb 2014 04:19:00 +0000 (09:49 +0530)]
[1894] Avoid doing costly name splits (database backend)
Tomek Mrugalski [Mon, 3 Feb 2014 20:42:55 +0000 (21:42 +0100)]
[3274] Client classification for v6 implemented in CfgMgr
Tomek Mrugalski [Mon, 3 Feb 2014 20:15:23 +0000 (21:15 +0100)]
[3274] Client classification logic for IPv4 implemented.
Marcin Siodelski [Mon, 3 Feb 2014 19:41:04 +0000 (20:41 +0100)]
[3242] Use library with IfaceMgrTestConfig to test DHCPv4 server.
Tomek Mrugalski [Mon, 3 Feb 2014 19:33:33 +0000 (20:33 +0100)]
[3274] Subnets are now able to store client class information.
Thomas Markwalder [Mon, 3 Feb 2014 19:10:38 +0000 (14:10 -0500)]
[3221] Added use of dhcp_ddns::WatchSocket and additonal queue methods
Integrated use of WatchSocket to NameChangeSender and NameChangeUDPSender.
Added addtional methods for accessing sender's send queue.
Created include and source for common dhcp_ddns lib test components.
Tomek Mrugalski [Mon, 3 Feb 2014 18:53:14 +0000 (19:53 +0100)]
[3274] ClientClass added, Classes renamed to ClientClasses
Tomek Mrugalski [Mon, 3 Feb 2014 18:03:27 +0000 (19:03 +0100)]
[3274] Added Classes parameter to getSubnet{4,6} methods.
Tomek Mrugalski [Mon, 3 Feb 2014 17:50:24 +0000 (18:50 +0100)]
[3274] Added dhcp/classify.h
Marcin Siodelski [Mon, 3 Feb 2014 17:40:36 +0000 (18:40 +0100)]
[3242] Select subnet for renewing client using supplied ciaddr.
Tomek Mrugalski [Mon, 3 Feb 2014 16:47:56 +0000 (17:47 +0100)]
[3274] Support for relay information in parser for DHCPv6 added
Thomas Markwalder [Mon, 3 Feb 2014 16:34:45 +0000 (11:34 -0500)]
[3221] Add new class dhcp_ddns::WatchSocket
Added a new to libdhcp_ddns, WatchSocket. This class provides an open
file descriptor whose read-readiness can be set or cleared and checked
via select() or poll() variants.
Tomek Mrugalski [Mon, 3 Feb 2014 15:26:07 +0000 (16:26 +0100)]
[3315] Small cppcheck issue fixed
Tomek Mrugalski [Mon, 3 Feb 2014 15:25:43 +0000 (16:25 +0100)]
[3315] IPv6 tests for external sockets implemented.
Mukund Sivaraman [Mon, 3 Feb 2014 15:16:28 +0000 (20:46 +0530)]
[2430] Fix uppercase nibble test
(Was broken due to a bad copy and paste.)
Tomek Mrugalski [Mon, 3 Feb 2014 15:09:14 +0000 (16:09 +0100)]
[3315] Changes after review:
- SessionCallback renamed to SocketCallback
- Removed references in comments to session
- removed unused names string in receive{4,6}
- extended unit-test to check that unregistered callback is not
triggered
- Implemented similar tests for receive6()
- Fixed a bug that was revealed by those new unit-tests :)
Mukund Sivaraman [Mon, 3 Feb 2014 12:16:22 +0000 (17:46 +0530)]
Merge branch 'trac1366'
Marcin Siodelski [Mon, 3 Feb 2014 11:47:42 +0000 (12:47 +0100)]
[3242] Added a unit test to check one subnet selection for two ifaces.
Mukund Sivaraman [Mon, 3 Feb 2014 10:11:45 +0000 (15:41 +0530)]
Merge branch 'trac1796'
Mukund Sivaraman [Mon, 3 Feb 2014 09:09:58 +0000 (14:39 +0530)]
Merge branch 'trac1397'
Conflicts:
src/lib/dns/tests/rrset_unittest.cc
The merge conflict resolution was reviewed by Shane on Jabber.
Mukund Sivaraman [Mon, 3 Feb 2014 08:10:13 +0000 (13:40 +0530)]
[2430] Support nibble mode with $GENERATE
Mukund Sivaraman [Mon, 3 Feb 2014 08:04:46 +0000 (13:34 +0530)]
[2430] Rearrange code to be easier to follow
Mukund Sivaraman [Mon, 3 Feb 2014 07:38:51 +0000 (13:08 +0530)]
[2430] Support $GENERATE format modifiers
Supports everything except nibble mode. Nibble mode will come soon.
Mukund Sivaraman [Mon, 3 Feb 2014 05:29:23 +0000 (10:59 +0530)]
[2430] Use $GENERATE in NS records too