]>
git.ipfire.org Git - thirdparty/kea.git/log
JINMEI Tatuya [Fri, 2 Nov 2012 21:06:52 +0000 (14:06 -0700)]
[2371] renamed open/close() {push,pop}Source() as suggested in review.
JINMEI Tatuya [Fri, 2 Nov 2012 20:41:39 +0000 (13:41 -0700)]
[2371] define END_OF_STREAM within InputSource to avoid duplicate def.
unfortunately this requires another usual workaround in the test, so
it was also made.
JINMEI Tatuya [Fri, 2 Nov 2012 20:35:22 +0000 (13:35 -0700)]
[2371] use the real InputSource class instead of the temporary fake version.
note: right now build fails due to the duplicate definition of
InputSource::END_OF_STREAM. It will be fixed in the next commit.
JINMEI Tatuya [Fri, 2 Nov 2012 20:26:24 +0000 (13:26 -0700)]
[2371] Merge branch 'trac2369' into trac2371
Marcin Siodelski [Fri, 2 Nov 2012 19:10:10 +0000 (20:10 +0100)]
[2417] Create basic set of stdandard DHCPv6 option definition instances.
Tomek Mrugalski [Fri, 2 Nov 2012 18:55:55 +0000 (19:55 +0100)]
[2414] All outstanding changes after review.
JINMEI Tatuya [Fri, 2 Nov 2012 18:07:55 +0000 (11:07 -0700)]
[2356] try -Wl,-R first to make it safer for build-time failure
Michal 'vorner' Vaner [Fri, 2 Nov 2012 18:06:17 +0000 (19:06 +0100)]
Merge #2383
Add a new constructor to name, one that takes an optional origin and completes
relative names with it.
Also clarify the '@' handling as a side effect.
JINMEI Tatuya [Fri, 2 Nov 2012 17:58:15 +0000 (13:58 -0400)]
[2356] fixed typo: use ISC_RPATH_FLAG instead of hardcoded "-R"
Tomek Mrugalski [Fri, 2 Nov 2012 17:24:23 +0000 (18:24 +0100)]
[2414] 2 new tests implemented (ManySolicits, ManyRequests), comments added
Tomek Mrugalski [Fri, 2 Nov 2012 17:23:58 +0000 (18:23 +0100)]
[2414] Changes after review.
Tomek Mrugalski [Fri, 2 Nov 2012 10:35:55 +0000 (11:35 +0100)]
[2414] Memory leaks in AllocEngine tests fixed.
Mukund Sivaraman [Fri, 2 Nov 2012 04:29:16 +0000 (09:59 +0530)]
[2369] Move exceptions to the top of class
Mukund Sivaraman [Fri, 2 Nov 2012 04:27:22 +0000 (09:57 +0530)]
[2369] Throw OpenError when opening the input file fails
Mukund Sivaraman [Fri, 2 Nov 2012 04:15:27 +0000 (09:45 +0530)]
[2369] Add a file test as well
JINMEI Tatuya [Thu, 1 Nov 2012 23:13:53 +0000 (16:13 -0700)]
[2371] fixed a trivial description error in doc
JINMEI Tatuya [Thu, 1 Nov 2012 23:12:41 +0000 (16:12 -0700)]
[2371] doc wording update as suggested in review
Jelte Jansen [Thu, 1 Nov 2012 21:21:29 +0000 (22:21 +0100)]
[master] update Changelog for merge of #2213
Tomek Mrugalski [Thu, 1 Nov 2012 17:34:17 +0000 (18:34 +0100)]
[2414] {first,last}AddrInPrefix not handles invalid prefix lengths
Tomek Mrugalski [Thu, 1 Nov 2012 16:44:21 +0000 (17:44 +0100)]
[2414] DHCP6_SUBNET_SELECTED log message fixed
Tomek Mrugalski [Thu, 1 Nov 2012 16:43:56 +0000 (17:43 +0100)]
[2414] Compilation fix for Solaris
Tomek Mrugalski [Thu, 1 Nov 2012 15:37:48 +0000 (16:37 +0100)]
[2414] Fix in checkLease method
Tomek Mrugalski [Thu, 1 Nov 2012 15:16:53 +0000 (16:16 +0100)]
[2414] Allocation process is now logged properly.
Michal 'vorner' Vaner [Thu, 1 Nov 2012 13:36:56 +0000 (14:36 +0100)]
[2383] Clarify @ in names
If it is alone, it means the origin (or root, if the absolute-name
constructor is used). If it is not alone, it is taken verbatim, without
any special meaning.
Add some tests to verify this.
Remove unused enum value. It was a relict from non-exact port of bind9
code.
Tomek Mrugalski [Thu, 1 Nov 2012 10:54:17 +0000 (11:54 +0100)]
[2414] Tests for selectSubnet() implemented.
Jelte Jansen [Thu, 1 Nov 2012 10:50:19 +0000 (11:50 +0100)]
[master] Merge branch 'trac2213'
Conflicts:
src/bin/auth/command.cc
Mukund Sivaraman [Thu, 1 Nov 2012 08:26:17 +0000 (13:56 +0530)]
[master] Fix leaks in AllocEngine tests reported by Valgrind
Naoki Kambe [Thu, 1 Nov 2012 07:53:11 +0000 (16:53 +0900)]
[2298_1] use sorted() instead of using sort() redundantly
Mukund Sivaraman [Thu, 1 Nov 2012 07:14:11 +0000 (12:44 +0530)]
[2371] Make minor comment updates
Mukund Sivaraman [Thu, 1 Nov 2012 05:10:00 +0000 (10:40 +0530)]
[2369] Explain how compact() affects ungetAll()
Mukund Sivaraman [Thu, 1 Nov 2012 05:05:17 +0000 (10:35 +0530)]
[2369] Distinguish between EOF and failures in getChar()
Mukund Sivaraman [Thu, 1 Nov 2012 04:50:10 +0000 (10:20 +0530)]
[2369] Use a const variable's value for END_OF_STREAM state
Mukund Sivaraman [Thu, 1 Nov 2012 04:21:49 +0000 (09:51 +0530)]
[2369] Initialize buffer_pos_ with 0
This is equivalent code to the former. The former was written such to
drive the point that buffer_pos_ is by default pointing at the end of
the buffer_ vector. At construction, the buffer_ vector is empty, so
both work.
Mukund Sivaraman [Thu, 1 Nov 2012 04:18:55 +0000 (09:48 +0530)]
[2369] Constify name_
Mukund Sivaraman [Thu, 1 Nov 2012 04:16:40 +0000 (09:46 +0530)]
[2369] Rename exception to UngetBeforeBeginning
Mukund Sivaraman [Thu, 1 Nov 2012 04:09:35 +0000 (09:39 +0530)]
[2369] Rename files to master_lexer_inputsource.{cc,h}
Mukund Sivaraman [Tue, 30 Oct 2012 19:41:02 +0000 (01:11 +0530)]
[2416] Wait for AUTH_LOAD_ZONE in lettuce test
For the SOA=1239 case, lettuce (instead of waiting for a new
AUTH_LOAD_ZONE message) waits for the last output AUTH_LOAD_ZONE
message because the last SOA=1238 case generated a AUTH_LOAD_ZONE that
was not skipped past in RunningProcess._wait_for_output_str(). So it
immediately matches the last AUTH_LOAD_ZONE and continues right away
which causes it to query Auth prematurely.
JINMEI Tatuya [Thu, 1 Nov 2012 02:27:22 +0000 (19:27 -0700)]
[2298_1] style: folded long lines
Tomek Mrugalski [Thu, 1 Nov 2012 01:10:25 +0000 (02:10 +0100)]
[2414] Test for REQUEST and LeaseMgr storage implemented.
Tomek Mrugalski [Thu, 1 Nov 2012 00:53:59 +0000 (01:53 +0100)]
[2414] New tests for Dhcpv6Srv implemented, old ones refactored.
Tomek Mrugalski [Wed, 31 Oct 2012 23:55:21 +0000 (00:55 +0100)]
[2414] Dhcp6SrvTest.SolicitBasic updated to test real address allocation
JINMEI Tatuya [Wed, 31 Oct 2012 22:57:26 +0000 (15:57 -0700)]
[2356] share the rpath m4 function with examples in the top level configure.ac
JINMEI Tatuya [Wed, 31 Oct 2012 22:46:02 +0000 (15:46 -0700)]
[2356] more note about rpath, in README.
JINMEI Tatuya [Wed, 31 Oct 2012 22:38:21 +0000 (15:38 -0700)]
[2356] added some note about rpath
JINMEI Tatuya [Wed, 31 Oct 2012 22:31:29 +0000 (15:31 -0700)]
[2356] introduce the helper m4 macro to identify -R variant linker options
extracted from the top-level configure.ac.
JINMEI Tatuya [Wed, 31 Oct 2012 21:56:34 +0000 (14:56 -0700)]
[2356] set the saved LIBS correctly
JINMEI Tatuya [Wed, 31 Oct 2012 21:51:22 +0000 (14:51 -0700)]
[2356] corrected ressoring LDFLAGS.
we should have used _SAVED; also we need to make a copy of LDFLAGS (in
LDFLAGS_SAVED) before extending it. it now does both of these correctly.
JINMEI Tatuya [Wed, 31 Oct 2012 21:40:33 +0000 (14:40 -0700)]
[2356] wording fix in an error message
JINMEI Tatuya [Wed, 31 Oct 2012 21:37:48 +0000 (14:37 -0700)]
[2356] add BOOST_CPPFLAGS for checking BIND 10 common .h and lib
util/buffer.h needs a boosst header file, so we make sure it's in the path
JINMEI Tatuya [Wed, 31 Oct 2012 21:28:04 +0000 (14:28 -0700)]
[2356] renamed CPPFLAGS_SAVES to _SAVED for consistency.
this is editorial; no behavior change.
Marcin Siodelski [Wed, 31 Oct 2012 20:31:52 +0000 (21:31 +0100)]
[master] Changelog entry for #2318.
Marcin Siodelski [Wed, 31 Oct 2012 20:16:21 +0000 (21:16 +0100)]
[2417] Creating definitions for critical standard DHCPv6 options.
Tomek Mrugalski [Wed, 31 Oct 2012 17:33:53 +0000 (18:33 +0100)]
[2414] Compilation fix on Mac OS
Tomek Mrugalski [Wed, 31 Oct 2012 17:33:39 +0000 (18:33 +0100)]
[2414] Test for Dhcpv6Srv.createStatusCode() implemented
JINMEI Tatuya [Wed, 31 Oct 2012 15:08:48 +0000 (08:08 -0700)]
[2213] cleanup: removed a now-obsolete comment.
Jeremy C. Reed [Wed, 31 Oct 2012 12:55:00 +0000 (07:55 -0500)]
[master] remove unused code, reported by Clang Static Analyzer
from Clang Static Analyzer:
Dead Increment
Value stored to 'argv' is never read
(This was just a step that is commonly used per getopt docs.)
Okayed via jabber.
Jelte Jansen [Wed, 31 Oct 2012 09:59:00 +0000 (10:59 +0100)]
[2213] more review comments
bit of code cleanup around ifs, removed now obsolete log message
Marcin Siodelski [Wed, 31 Oct 2012 08:56:28 +0000 (09:56 +0100)]
[master] Merge branch 'trac2318'
Marcin Siodelski [Wed, 31 Oct 2012 08:37:36 +0000 (09:37 +0100)]
[2318] Minor: options accessor in Subnet made const.
Mukund Sivaraman [Wed, 31 Oct 2012 07:34:03 +0000 (13:04 +0530)]
[2369] Use createSreamName() from #2371 instead of using sprintf()
Mukund Sivaraman [Wed, 31 Oct 2012 07:12:02 +0000 (12:42 +0530)]
[2369] Fix vector::erase() call in InputSource
The single-argument variant of vector::erase() deletes just one element
of the vector, not an entire range. Tests have been fixed to check
that the range from start to the current buffer position is dropped
correctly.
Mukund Sivaraman [Wed, 31 Oct 2012 05:23:31 +0000 (10:53 +0530)]
[2369] Add InputSource::compact() method
JINMEI Tatuya [Wed, 31 Oct 2012 04:24:39 +0000 (21:24 -0700)]
[2157-2] style: indentation fix
JINMEI Tatuya [Wed, 31 Oct 2012 03:50:49 +0000 (20:50 -0700)]
[2157-2] style: () for return
Marcin Siodelski [Tue, 30 Oct 2012 19:44:32 +0000 (20:44 +0100)]
[2318] Test for very low negative value removed.
Test was wrong because fromJSON function filters out low numbers anyway
and caused exception when preparing the data for the unit test.
Tomek Mrugalski [Tue, 30 Oct 2012 18:16:55 +0000 (19:16 +0100)]
[2414] Allocation Engine is now used in dhcp6_srv.
Tomek Mrugalski [Tue, 30 Oct 2012 17:59:50 +0000 (18:59 +0100)]
[2414] IfaceMgr now binds link-local addresses only.
Tomek Mrugalski [Tue, 30 Oct 2012 17:56:19 +0000 (18:56 +0100)]
[2414] dhcp6_srv tests now use defines from dhcp/duid.h
Marcin Siodelski [Tue, 30 Oct 2012 17:42:16 +0000 (18:42 +0100)]
[2318] Removed function that searches for options using option code.
The index object used to get the range of searched options was local
to the function and when returned from it search results were destroyed
along with index (Mac, Solaris only). The alternative solution to
copy results to another container was not picked due to performance
considerations.
Tomek Mrugalski [Tue, 30 Oct 2012 17:31:41 +0000 (18:31 +0100)]
[2414] CfgMgr now returns a subnet if a client is local.
Tomek Mrugalski [Tue, 30 Oct 2012 17:22:50 +0000 (18:22 +0100)]
[2414] DUID toText() implemented.
Tomek Mrugalski [Tue, 30 Oct 2012 17:19:50 +0000 (18:19 +0100)]
[2414] get(), toText() descriptions updated.
Tomek Mrugalski [Tue, 30 Oct 2012 17:08:16 +0000 (18:08 +0100)]
[2414] T1, T2 fix in Optio6_IA
Tomek Mrugalski [Tue, 30 Oct 2012 17:07:53 +0000 (18:07 +0100)]
[2414] toText() and get() implemented in Subnet
JINMEI Tatuya [Tue, 30 Oct 2012 17:01:02 +0000 (10:01 -0700)]
[2213] style cleanup: combine short lines
Tomek Mrugalski [Tue, 30 Oct 2012 16:02:11 +0000 (17:02 +0100)]
[2414] getLease6(duid, iaid, subnet_id) implemented in memfile backend
Tomek Mrugalski [Tue, 30 Oct 2012 15:53:10 +0000 (16:53 +0100)]
[2414] Duid types moved to dhcp/duid.h
Jelte Jansen [Tue, 30 Oct 2012 14:32:00 +0000 (15:32 +0100)]
[master] fix HOME error in bindctl_test
discussed on jabber
Jelte Jansen [Tue, 30 Oct 2012 13:19:23 +0000 (14:19 +0100)]
[master] remove conflicting and unused 'using' directive
This should fix the issue reported by the solaris-gcc builder
Michal 'vorner' Vaner [Tue, 30 Oct 2012 12:41:55 +0000 (13:41 +0100)]
[2383] Append the origin if relative
Add the origin to the parsed name if the parsed name is relative. Also,
add the checks for the combined length and fix a test for them.
Mukund Sivaraman [Tue, 30 Oct 2012 12:18:08 +0000 (17:48 +0530)]
[master] Check IPv6 mask length
Marcin Siodelski [Tue, 30 Oct 2012 11:35:19 +0000 (12:35 +0100)]
[2318] Minor changes in comments, suggested in the code review.
Michal 'vorner' Vaner [Tue, 30 Oct 2012 11:28:13 +0000 (12:28 +0100)]
[2383] Check origin is provided when needed
When the name passed in the string is relative, we need to have the
origin to complete the name with.
Jelte Jansen [Tue, 30 Oct 2012 11:27:10 +0000 (12:27 +0100)]
[2213] address review comments
- add comments about hardcoded class default
- removed AuthSrv::loadZone() again
- more data integrity checks in datasrc clients mgr loadZone handler
Michal 'vorner' Vaner [Tue, 30 Oct 2012 11:23:10 +0000 (12:23 +0100)]
[2383] Check the constructor gets some data
It is invalid input if no data is passed.
Michal 'vorner' Vaner [Tue, 30 Oct 2012 10:39:22 +0000 (11:39 +0100)]
[2383] Basic parsing in the new Name constructor
We only call the same parsing as from within the old constructor. No
appending of origin is done. Also, no checking some data came, so the
tests not only fail, but also segfault.
Michal 'vorner' Vaner [Tue, 30 Oct 2012 10:13:15 +0000 (11:13 +0100)]
[2383] Extract name parser to separate function
This way it can be reused by the about to be new constructor.
Marcin Siodelski [Tue, 30 Oct 2012 09:21:08 +0000 (10:21 +0100)]
[2318] Changes suggested in the code review.
Naoki Kambe [Mon, 29 Oct 2012 11:41:20 +0000 (20:41 +0900)]
[2298] add a test for sorting
Naoki Kambe [Mon, 29 Oct 2012 11:54:19 +0000 (20:54 +0900)]
[2298] in case of dict change the way to sort by key name
Naoki Kambe [Tue, 30 Oct 2012 09:14:49 +0000 (18:14 +0900)]
[2298] add comments in test_item_name_list()
Naoki Kambe [Tue, 30 Oct 2012 09:00:44 +0000 (18:00 +0900)]
[2298] update the docstring of item_name_list()
Yoshitaka Aharen [Tue, 30 Oct 2012 07:38:10 +0000 (16:38 +0900)]
Merge branch 'master' into trac2155_2
Conflicts:
doc/Doxyfile
src/bin/auth/Makefile.am
src/bin/auth/benchmarks/Makefile.am
src/bin/auth/statistics.h
src/bin/auth/tests/Makefile.am
src/bin/auth/tests/auth_srv_unittest.cc
Mukund Sivaraman [Tue, 30 Oct 2012 07:23:46 +0000 (12:53 +0530)]
[2369] Add API documentation for InputSource
Mukund Sivaraman [Tue, 30 Oct 2012 07:09:38 +0000 (12:39 +0530)]
[2369] Make InputSource manage opening files internally
JINMEI Tatuya [Tue, 30 Oct 2012 03:23:23 +0000 (20:23 -0700)]
[2371] define and initialize Token for the lexer.
not actually needed in this branch, but it will clarify the idea of
how it will be used in later tasks.
JINMEI Tatuya [Tue, 30 Oct 2012 03:20:39 +0000 (20:20 -0700)]
[2371] documentation updates
JINMEI Tatuya [Tue, 30 Oct 2012 02:37:30 +0000 (19:37 -0700)]
[2371] catch NULL filename
JINMEI Tatuya [Tue, 30 Oct 2012 02:25:55 +0000 (19:25 -0700)]
[2371] tested the nested open operation. no need to change impl.
JINMEI Tatuya [Tue, 30 Oct 2012 00:33:39 +0000 (17:33 -0700)]
[2371] supported close() method