]>
git.ipfire.org Git - thirdparty/kea.git/log
Paul Selkirk [Fri, 26 Apr 2013 19:31:46 +0000 (15:31 -0400)]
[2521] remove erroneous whitespace in RRCollator test data
Paul Selkirk [Fri, 26 Apr 2013 19:29:08 +0000 (15:29 -0400)]
[2521] more DHCID unit tests
Marcin Siodelski [Fri, 26 Apr 2013 17:52:27 +0000 (19:52 +0200)]
[2902] Fixed remote address setting in the unit tests.
Marcin Siodelski [Fri, 26 Apr 2013 17:13:15 +0000 (19:13 +0200)]
[2902] Added missing headers.
JINMEI Tatuya [Fri, 26 Apr 2013 16:28:14 +0000 (09:28 -0700)]
[master] changelog for #2712
JINMEI Tatuya [Fri, 26 Apr 2013 16:11:52 +0000 (09:11 -0700)]
[master] Merge branch 'trac2712'
Marcin Siodelski [Fri, 26 Apr 2013 14:48:59 +0000 (16:48 +0200)]
[2902] Do not allow to set new packet filter when there are sockets open.
Marcin Siodelski [Fri, 26 Apr 2013 12:36:56 +0000 (14:36 +0200)]
[2902] Implemented selective closure of sockets (e.g. only v4 sockets).
Michal 'vorner' Vaner [Fri, 26 Apr 2013 08:13:48 +0000 (10:13 +0200)]
Merge #2738
Clarify high-level design of IPC
Michal 'vorner' Vaner [Fri, 26 Apr 2013 08:13:21 +0000 (10:13 +0200)]
[2738] Minor wording fixes.
JINMEI Tatuya [Fri, 26 Apr 2013 07:49:20 +0000 (00:49 -0700)]
[2903] more documentation updates
JINMEI Tatuya [Fri, 26 Apr 2013 07:19:14 +0000 (00:19 -0700)]
[2903] more cleanups for SyncUDPServer: avoid constructing objs for each cback.
JINMEI Tatuya [Fri, 26 Apr 2013 06:33:19 +0000 (23:33 -0700)]
[master] changelog for #2887
JINMEI Tatuya [Fri, 26 Apr 2013 06:22:52 +0000 (23:22 -0700)]
[master] Merge branch 'trac2887'
Naoki Kambe [Fri, 26 Apr 2013 06:07:18 +0000 (15:07 +0900)]
[2252] Merge branch 'master' of git://git.bind10.isc.org/bind10 into trac2252
Conflicts:
tests/lettuce/features/xfrin_notify_handling.feature
Paul Selkirk [Fri, 26 Apr 2013 05:18:52 +0000 (01:18 -0400)]
[2521] RFC4034 only allows unsigned int in the RRSIG Original TTL field
Paul Selkirk [Fri, 26 Apr 2013 04:15:32 +0000 (00:15 -0400)]
[2521] more RRSIG unit tests
JINMEI Tatuya [Fri, 26 Apr 2013 04:09:43 +0000 (21:09 -0700)]
[2903] further simplify SyncUDPServer: now remove checkin and answer callbacks.
Its constructor and member variables are also simplified accordingly.
Naoki Kambe [Fri, 26 Apr 2013 02:28:57 +0000 (11:28 +0900)]
[2252] adjust lettuce tests; xfrin_notify_handling.feature
The defect #2879 has been fixed (merged into the master branch). So
cares for that would be no more needed if this branch is merged. The
counters are adjusted to correct and the notes are removed.
Naoki Kambe [Fri, 26 Apr 2013 02:08:51 +0000 (11:08 +0900)]
[2252] replace ending tags
Paul Selkirk [Fri, 26 Apr 2013 01:44:49 +0000 (21:44 -0400)]
[2521] Handle space-separated base-64 digest in DHCID, per Jinmei's review.
Also added more DHCID base-64 unittest cases.
Paul Selkirk [Fri, 26 Apr 2013 01:40:57 +0000 (21:40 -0400)]
[2521] Rearrange RRSIG parser error handling, per Jinmei's review.
Also handle space-separated base-64 in RRSIG signature field.
Also add more RRSIG unittest cases.
Paul Selkirk [Fri, 26 Apr 2013 00:38:13 +0000 (20:38 -0400)]
[2521] doc cleanup for OPT, per Jinmei's review
JINMEI Tatuya [Fri, 26 Apr 2013 00:02:00 +0000 (17:02 -0700)]
[2903] more simplify SyncUDPServer: don't use checkin_callback.
JINMEI Tatuya [Thu, 25 Apr 2013 23:48:01 +0000 (16:48 -0700)]
[2903] more (unrelated) cleanups for SyncUDPServer, removing dead code.
also, it now rejects NULL lookup callback explicitly as it doesn't make
sense for this class. It will also help make the receive handler code
simpler.
JINMEI Tatuya [Thu, 25 Apr 2013 23:16:27 +0000 (16:16 -0700)]
[2903] an unrelated small optimization: use const_buffers_1 for send.
asio::buffer is internally converted to this form, so this is (in theory)
more efficient.
JINMEI Tatuya [Thu, 25 Apr 2013 23:09:44 +0000 (16:09 -0700)]
[2903] same change as the previous commit for SyncUDPServer.
also made some other small cleanups.
JINMEI Tatuya [Thu, 25 Apr 2013 22:56:00 +0000 (15:56 -0700)]
[2903] make sure UDPServer don't die due to a failure of close().
also don't stop receiving due to errors from async_receive_from().
some other minor cleanups are made too.
JINMEI Tatuya [Thu, 25 Apr 2013 21:01:46 +0000 (14:01 -0700)]
[2712] updated docstring for ignore_failure so it'll be less confusing.
JINMEI Tatuya [Thu, 25 Apr 2013 20:56:49 +0000 (13:56 -0700)]
[2712] corrected a typo in a comment line.
JINMEI Tatuya [Thu, 25 Apr 2013 20:54:40 +0000 (13:54 -0700)]
[2712] removed a meaningless test case.
it's a leftover of an intermediate attempt of testing the case; on a closer
look, testing send_command turned out to be better and sufficient.
JINMEI Tatuya [Thu, 25 Apr 2013 20:38:32 +0000 (13:38 -0700)]
[master] changelog for #2879
JINMEI Tatuya [Thu, 25 Apr 2013 20:33:15 +0000 (13:33 -0700)]
[master] Merge branch 'trac2879'
JINMEI Tatuya [Thu, 25 Apr 2013 20:32:35 +0000 (13:32 -0700)]
[2879] tweak docstring wording as suggested in review
JINMEI Tatuya [Thu, 25 Apr 2013 20:25:39 +0000 (13:25 -0700)]
[2252] suggested clarification on xfrsuccess in case of "uptodate"
JINMEI Tatuya [Thu, 25 Apr 2013 19:28:57 +0000 (12:28 -0700)]
[2252] style nit: unify short lines
Marcin Siodelski [Thu, 25 Apr 2013 18:42:53 +0000 (20:42 +0200)]
[2902] Do not use the broadcast address as source in server's response.
Marcin Siodelski [Thu, 25 Apr 2013 17:32:28 +0000 (19:32 +0200)]
[2902] DHCPv4 server will try to use 'direct response' feature if possible.
Michal 'vorner' Vaner [Thu, 25 Apr 2013 13:07:35 +0000 (15:07 +0200)]
[2738] Describe behavior of clients
Michal 'vorner' Vaner [Thu, 25 Apr 2013 12:06:47 +0000 (14:06 +0200)]
[2738] Some wording & clarifications
Michal 'vorner' Vaner [Thu, 25 Apr 2013 11:37:02 +0000 (13:37 +0200)]
[2738] Clarify blocking & fast operations
Michal 'vorner' Vaner [Thu, 25 Apr 2013 11:32:39 +0000 (13:32 +0200)]
[2738] Remove ipc-high-2
It was mostly an example and is now merged to the base version. No
longer needed.
Marcin Siodelski [Thu, 25 Apr 2013 10:29:59 +0000 (12:29 +0200)]
[2902] Build LPF sockets on Linux only.
Marcin Siodelski [Thu, 25 Apr 2013 09:30:43 +0000 (11:30 +0200)]
[2902] Unit tests for linux packet filtering.
JINMEI Tatuya [Thu, 25 Apr 2013 06:42:32 +0000 (23:42 -0700)]
[master] a trivial wording fix to changelog
Naoki Kambe [Wed, 24 Apr 2013 13:21:44 +0000 (22:21 +0900)]
[2252] simplify complicated nested try-except statements
get rid of the inner try-except statement, and increment a xfrsuccess and stop
a timer, or increment a xfrfail counter in the "finally" statement
Naoki Kambe [Thu, 25 Apr 2013 02:27:54 +0000 (11:27 +0900)]
[2252] update documentation for the test cases
JINMEI Tatuya [Thu, 25 Apr 2013 01:38:15 +0000 (18:38 -0700)]
[2903] unrelated style fix: fixed too-long line
JINMEI Tatuya [Thu, 25 Apr 2013 01:30:17 +0000 (18:30 -0700)]
[2903] catch some errors from asio methods/functions explicitly
otherwise it would result in an uncatchable exception and force the
program to terminate. some exceptions are still considered super rare
and fatal, and they are still propagated (mainly from the io_service
and deadline timer). errors on close() are just ignored (there
wouldn't be much we can do to recover in this case anyway).
Further, changed the handling of errors on the result of async_accept():
instead of stop accepting on some errors, log them and keep accepting
new connections. on a closer look at the code I believe that's more
appropriate; silent stop would be rather confusing (if the error were
really fatal we should rather invoke an exception and trigger termination),
and cases like EMFILE definitely shouldn't cause this situation.
errors that can caused by stop() should still result in stopping accept(),
and the new code behaves that way.
JINMEI Tatuya [Wed, 24 Apr 2013 17:15:33 +0000 (10:15 -0700)]
[master] Merge branch 'trac2834'
Michal 'vorner' Vaner [Wed, 24 Apr 2013 15:37:22 +0000 (17:37 +0200)]
[2871] Fix copyright dates
Michal 'vorner' Vaner [Mon, 8 Apr 2013 12:17:09 +0000 (14:17 +0200)]
[2871] Tweak the times and iteration counts
So even the naive approach terminates some day.
Michal 'vorner' Vaner [Mon, 8 Apr 2013 12:15:45 +0000 (14:15 +0200)]
[2871] Don't preserve pointers to stack
It seems the boost::function created from functor takes just the
reference. This led to taking address of temporary and failing later on.
Allocate new object manually and delete it after it was used.
Michal 'vorner' Vaner [Mon, 8 Apr 2013 12:14:46 +0000 (14:14 +0200)]
[2871] Use IOService::post
Instead of abusing the timer with 0 timeout, which is rejected.
Michal 'vorner' Vaner [Mon, 8 Apr 2013 11:37:55 +0000 (13:37 +0200)]
[2871] IOService::post()
To execute a callback later, from the event loop. This is to be used in
the fake resolution, instead of timer with 0 timeout (which doesn't
work, we are strict with asserting invalid parameters).
Michal 'vorner' Vaner [Mon, 8 Apr 2013 11:09:59 +0000 (13:09 +0200)]
[2871] Example naive resolver benchmark
The simplest example of a resolver using the fake resolution. Processes
one query at a time.
Michal 'vorner' Vaner [Mon, 8 Apr 2013 10:33:59 +0000 (12:33 +0200)]
[2871] The fake interface implemented
Michal 'vorner' Vaner [Fri, 5 Apr 2013 11:41:19 +0000 (13:41 +0200)]
[2871] Put forgotten files to git
Michal 'vorner' Vaner [Fri, 5 Apr 2013 11:05:20 +0000 (13:05 +0200)]
[2871] Implementation of the FakeQuery
The FakeQuery class is implemented. The FakeInterface is, however, still
missing, so it doesn't work (not even link).
Michal 'vorner' Vaner [Fri, 5 Apr 2013 09:23:03 +0000 (11:23 +0200)]
[2871] Interface of the fake query
Provide interface of the FakeQuery. That one will represent the work to
be done during a benchmark for single query.
Also provide interface for FakeInterface, which will generate the
queries and handle the event loop.
Michal 'vorner' Vaner [Thu, 4 Apr 2013 09:06:26 +0000 (11:06 +0200)]
[2871] Empty benchmark binary
Create all the necessary makefiles and other stuff, to have a place to
put the benchmarks to later.
Marcin Siodelski [Wed, 24 Apr 2013 09:51:07 +0000 (11:51 +0200)]
[2902] Added unit test checking reception of the packet over INET DGRAM.
Marcin Siodelski [Wed, 24 Apr 2013 09:32:24 +0000 (11:32 +0200)]
[2902] Test sending packet over INET DGRAM socket.
JINMEI Tatuya [Wed, 24 Apr 2013 06:42:17 +0000 (23:42 -0700)]
[2712] added lettuce test to confirm 'Cmdctl shutdown' now works correctly.
also confirmed it would fail without the change of this branch. the execution
of bindctl would fail, so bind10_control.py needed to be updated so it can
ignore failure of bindctl if specified so.
JINMEI Tatuya [Wed, 24 Apr 2013 06:40:07 +0000 (23:40 -0700)]
[2712] don't directly call command_handler() from http handler thread.
this would cause a deadlock for the shutdown command. while redundant,
always sending it to msgq should work and be safer.
JINMEI Tatuya [Wed, 24 Apr 2013 03:57:58 +0000 (20:57 -0700)]
[2712] check the running thread of cmdctl's command_handler().
only one thread can call it; checking this would reveal the defect situation
more explicitly. tests are slightly adjusted to pass.
JINMEI Tatuya [Tue, 23 Apr 2013 22:35:25 +0000 (15:35 -0700)]
[2879] adjusted lettuce tests that are affected by the fix of the branch.
note: this is not a regression. the original expected value has never made
sense, so this is actually a "correction". in fact, we should have noticed
the bug of this ticket when we noticed notifyoutv6 was counted 5 times even
it should be a successful notify response.
JINMEI Tatuya [Tue, 23 Apr 2013 22:31:57 +0000 (15:31 -0700)]
[2879] more documentation
JINMEI Tatuya [Tue, 23 Apr 2013 22:26:04 +0000 (15:26 -0700)]
[2879] (unrelated) cleanup: use common address,port format for logging
JINMEI Tatuya [Tue, 23 Apr 2013 22:25:11 +0000 (15:25 -0700)]
[2879] more documentation
JINMEI Tatuya [Tue, 23 Apr 2013 22:22:00 +0000 (15:22 -0700)]
[2879] fixed the main defect with revised tests.
JINMEI Tatuya [Tue, 23 Apr 2013 21:06:02 +0000 (14:06 -0700)]
[2879] added more test cases for notify_handler (timeout case)
with some cleanups:
- removed unnecessary setup
- use 192.0.2.1 instead of 1.1.1.1; former should be a bit better
- removed meaninglessly repeated test cases
- use faked time.time() to test timeout value more reliably
JINMEI Tatuya [Tue, 23 Apr 2013 19:20:00 +0000 (12:20 -0700)]
[2521] constify
JINMEI Tatuya [Tue, 23 Apr 2013 18:52:23 +0000 (11:52 -0700)]
[2521] style cleanups: folded a long line; constify variables
Marcin Siodelski [Tue, 23 Apr 2013 17:50:28 +0000 (19:50 +0200)]
[2902] More comprehensive comments in the packet receiving function.
Marcin Siodelski [Tue, 23 Apr 2013 17:42:00 +0000 (19:42 +0200)]
[2902] Parse incoming packet's headers on reception.
JINMEI Tatuya [Tue, 23 Apr 2013 17:27:29 +0000 (10:27 -0700)]
[2834] untabified
Marcin Siodelski [Tue, 23 Apr 2013 16:54:24 +0000 (18:54 +0200)]
[2902] Implemented a function decoding IP and UDP header.
Marcin Siodelski [Tue, 23 Apr 2013 15:50:08 +0000 (17:50 +0200)]
[2902] Implemented function which decodes Ethernet frame header.
Marcin Siodelski [Tue, 23 Apr 2013 12:37:21 +0000 (14:37 +0200)]
[2902] Implemented utility functions encoding UDP packets.
JINMEI Tatuya [Mon, 22 Apr 2013 22:00:28 +0000 (15:00 -0700)]
[2879] simplification: removed EVENT_NONE as it's simply unused
Marcin Siodelski [Tue, 16 Apr 2013 22:24:01 +0000 (15:24 -0700)]
[2902] Moved protocol utility functions to a separate file.
Marcin Siodelski [Tue, 16 Apr 2013 22:23:31 +0000 (15:23 -0700)]
[2902] Basic implementation to send packet over raw socket.
JINMEI Tatuya [Sat, 13 Apr 2013 06:50:19 +0000 (23:50 -0700)]
[2831] added a test (compile time in fact) for def of INITIAL_SIZE.
JINMEI Tatuya [Sat, 13 Apr 2013 06:32:02 +0000 (23:32 -0700)]
[2831] make sure resetting a segment before opening one
JINMEI Tatuya [Sat, 13 Apr 2013 06:31:29 +0000 (23:31 -0700)]
[2831] more doc about reader-writer conflicts
JINMEI Tatuya [Sat, 13 Apr 2013 06:05:24 +0000 (23:05 -0700)]
[2831] use boost file lock to detect any violation of read-write conflicts
this is done best-effort basis. update doc accordingly.
Paul Selkirk [Sat, 13 Apr 2013 03:40:15 +0000 (23:40 -0400)]
Merge branch 'trac2832'
Paul Selkirk [Sat, 13 Apr 2013 03:37:52 +0000 (23:37 -0400)]
[2832] roll back all of
946b1df except typo fix
JINMEI Tatuya [Fri, 12 Apr 2013 23:52:33 +0000 (16:52 -0700)]
[2831] clarified the check after repeated shrinkToFit.
JINMEI Tatuya [Fri, 12 Apr 2013 23:38:23 +0000 (16:38 -0700)]
[2831] corrected assert condition for overflow check
JINMEI Tatuya [Fri, 12 Apr 2013 23:31:24 +0000 (16:31 -0700)]
[2831] corrected a typo
JINMEI Tatuya [Fri, 12 Apr 2013 23:31:01 +0000 (16:31 -0700)]
[2831] more clarified when mapped setNamedAddress returns true.
JINMEI Tatuya [Fri, 12 Apr 2013 23:22:07 +0000 (16:22 -0700)]
[2831] in multiProcess test make sure two processes open segments in parallel.
JINMEI Tatuya [Fri, 12 Apr 2013 23:13:22 +0000 (16:13 -0700)]
[2831] reverted the change for deleting checkNamedData().
the order of deletion was intentional; BOOST_FOREACH for map wouldn't work
that way.
JINMEI Tatuya [Fri, 12 Apr 2013 23:09:21 +0000 (16:09 -0700)]
[2831] removed test for segment size after shrink.
I don't think the underlying boost shrink_to_fit() ensures this.
Thomas Markwalder [Fri, 12 Apr 2013 18:42:39 +0000 (14:42 -0400)]
[master] Added entry 604.
Thomas Markwalder [Fri, 12 Apr 2013 18:40:12 +0000 (14:40 -0400)]
[2785] Merge branch 'trac2785'. Corrects packet time statistics in
perfdhcp.
Mukund Sivaraman [Fri, 12 Apr 2013 14:44:21 +0000 (20:14 +0530)]
[2831] Also clear the named address before shrinkToFit()
Mukund Sivaraman [Fri, 12 Apr 2013 14:32:21 +0000 (20:02 +0530)]
[2831] Write the status to the waiting parent anyway
We should write it even if the test failed.