JINMEI Tatuya
86daa64a01
added "from wire" constructors
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrrparams@443 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-12 02:57:59 +00:00
JINMEI Tatuya
7e4ba48187
added opertor<< and tests
...
added test cases for TYPE00053, etc.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrrparams@442 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-11 23:56:01 +00:00
JINMEI Tatuya
50e35e753e
templatized common logic for RRType and RRClass to avoid code duplicate
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrrparams@441 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-11 23:12:00 +00:00
JINMEI Tatuya
971ef11b3f
minor cleanup
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrrparams@440 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-09 03:01:37 +00:00
JINMEI Tatuya
e3c045cb82
implemented RRType and RRClass classes.
...
workable, but not yet completed: need documentation, more test cases and
cleanup.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrrparams@439 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-09 02:58:46 +00:00
Shane Kerr
b5d9864f28
Moved child process cleanup out of signal handler.
...
Fix for broken msgq startup.
Update TODO.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@438 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-08 12:55:21 +00:00
Jelte Jansen
8b3bc064c7
move reuseaddr directive before bind()
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@437 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-08 12:43:58 +00:00
Jelte Jansen
f37a4968f4
fix for msgq; ctrl-c-ing bind10 would sometimes leave the socket connection hanging. Fixed to catch SIGTERM and KeyboardInterrupts to cleanly shut down the msgq (is there a way to do this without a global variable?)
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@436 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-08 11:45:19 +00:00
JINMEI Tatuya
32d666903a
merge from trunk
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrrparams@435 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-07 01:23:21 +00:00
JINMEI Tatuya
1dc34b5231
fixed a minor typo in a comment line. I believe this is sufficiently trivial
...
so I don't bother to ask for an explicit review.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@434 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-07 01:21:34 +00:00
JINMEI Tatuya
835e13a76f
merging the name class change in the trunk into the new working branch
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrrparams@430 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-04 20:48:26 +00:00
JINMEI Tatuya
e157fb565c
merged the name class to the main trunk
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@429 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-04 20:44:11 +00:00
JINMEI Tatuya
f464585739
merged the name class to the main trunk
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@428 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-04 20:41:57 +00:00
JINMEI Tatuya
16e0f58b08
Added a small note about outputbuffer.getdata() in the detailed class
...
description.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@427 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-04 20:31:05 +00:00
Jelte Jansen
470b5bb729
fixed a few bugs found with the tests;
...
- added a wire-type ITEM_REAL (for DoubleElements) (we could technically
use ITEM_INT with the current code, but certainly not ITEM_UTF8).
if we keep this one, we need to add it to the other versions too (python&ruby)
- Bad boolean values in the string format returned a Null ElementPtr instead of raising an exception.
- Fixed decoding of True values off the wire
- Removed a few checks that aren't needed
- Fixed a null-termination problem when encoding big packets (i.e. > 256 and
> 65535 bytes)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@426 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-04 12:59:22 +00:00
Jelte Jansen
b84f1d4f21
nearly complete code coverage (toXML is not covered, and the bad_alloc catches, should those be removed?)
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@425 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-04 12:54:59 +00:00
Jeremy C. Reed
07144bf236
Fix --with-lcov to actually accept the specified location.
...
And fix setting of CPPFLAGS and LIBS. Don't use make-style
variable syntax in shell scripts as it became shell command substition.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@424 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-31 18:13:15 +00:00
Jeremy C. Reed
241dab1fa1
Add more paths to exclude for the LCOV coverage report.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@423 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-31 18:11:19 +00:00
JINMEI Tatuya
304195da3c
described why we consider the trailing dot as part of "ancestor".
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@422 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-31 00:57:52 +00:00
JINMEI Tatuya
67bcfeeb15
make isc::dns::Exception inherit from std::exception
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@421 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-31 00:35:41 +00:00
JINMEI Tatuya
a3c696d385
s/getLabels()/getLabelCount()/ as the former may be confusing while the
...
latter has clearer on what it does.
the corresponding private member variable was also renamed to be consistent.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@420 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-30 23:09:48 +00:00
JINMEI Tatuya
6a8af646b3
described the design choice (at the moment) about why we don't have an
...
abstract base buffer class.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@419 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-30 20:19:41 +00:00
JINMEI Tatuya
0ad6a01b78
use more conservative AC_PREREQ (2.59)
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@418 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-30 19:54:55 +00:00
Jelte Jansen
307918fc7a
added doxygen docs for most of data.h
...
copied jinmei's Doxyfile from branches/jinmei-dnsmessageapi
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@417 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-30 13:59:38 +00:00
Jelte Jansen
6cd9f05e65
catch session error and exit (fix for trac ticket 11)
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@416 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-30 09:45:42 +00:00
JINMEI Tatuya
2659704ed5
avoid using a magic number
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@415 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-30 07:26:40 +00:00
JINMEI Tatuya
191f7600be
removed unnecessary 'using namespace'
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@414 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-29 20:11:14 +00:00
JINMEI Tatuya
9702844acd
a separate branch to implement straightforward classes for RR fields
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrrparams@413 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-29 20:01:48 +00:00
Jelte Jansen
579aae2cc8
made a start with automating coverage tests;
...
configure --with-lcov will try /usr/bin and /usr/local/bin for the lcov and genhtml binaries
(use --with-lcov=PATH to specify a full path to the lcov binary, genhtml is assumed to be in the same one)
this enables a new makefile target; coverage
make coverage removes old coverage results, performs the tests (by depending on make check), and generates a new report in coverage/
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@412 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-29 16:07:20 +00:00
Jelte Jansen
bfec93a540
better gtest check in configure.ac; if a path is given, use that, if not, try /usr and /usr/local.
...
Now gives a configure-time error if gtest is not found (by checking gtest/gtest.h in the path(s))
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@411 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-29 14:03:40 +00:00
JINMEI Tatuya
070eadbef4
typo
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@410 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-28 20:53:26 +00:00
JINMEI Tatuya
411da103e1
added more tests for broader coverage
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@409 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-28 20:53:14 +00:00
Jelte Jansen
138c18e70a
refactor: function_name to functionName in data.h (functions on isc::data::Elements)
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@408 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-24 11:30:19 +00:00
Jelte Jansen
27185721c3
refactor: namespace changes
...
ISC -> isc
ISC::Data -> isc::data
ISC::CC -> isc::cc
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@407 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-24 11:15:23 +00:00
Jelte Jansen
f772eb96a9
merged branch jelte_datadef back
...
Configuration syntax has changed; see README
Also the parkinglot.db format has changed and 'old' configuration will be
thrown away.
Merge back done to facilitate refactoring of names to conform to style guidelines (doing that in a separate branch could create too many conflicts)
next up: tests and documentation
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@405 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-24 10:00:34 +00:00
JINMEI Tatuya
db32ae7faa
added a test case for a chain of compression pointers
...
(existing tests didn't cover this case - identified by lcov)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@404 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-23 22:39:02 +00:00
Jelte Jansen
7716c00715
added a few includes to make it work on my system, please check
...
also added a default path for --with-gtest (which should probably be extended to try from a list of default paths)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@403 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-23 19:32:47 +00:00
Jelte Jansen
65aed9de8a
remove generated files
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@402 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-23 13:49:02 +00:00
Shane Kerr
543dbfd90d
Things to do for the boss process.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@401 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-23 11:51:08 +00:00
JINMEI Tatuya
57dc7e08c9
added explicit variable initialization to make some compilers happy
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@400 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-22 19:39:35 +00:00
Jelte Jansen
17514e12dc
add positional parameters in bigtool; merge back from jelte-datadef rev 342 and 386
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@399 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-22 14:09:21 +00:00
Jelte Jansen
60e8544e60
fixed some en/decoding bugs in the cpp part of the new cc wire format
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@398 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-22 13:54:57 +00:00
Jelte Jansen
ec10fee3bd
don't send config if it is None
...
removed catch-all in ccsession (i want to get the original exception)
check result size after get_config in parkinglot
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@397 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-22 09:38:48 +00:00
JINMEI Tatuya
cd74bea651
addressed compilation problem with some compilers about class static constants
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@396 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-21 20:34:45 +00:00
Jelte Jansen
91d64d64b9
make A, AAAA and NS sets configurable in parkinglot
...
(SOA still fixed though)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@395 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-21 15:34:08 +00:00
Jelte Jansen
e0f80ec2f7
common module-side API for commands and configuration
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@394 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-21 12:45:14 +00:00
JINMEI Tatuya
04de5d1317
added more description about the implementation
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@393 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-19 04:50:27 +00:00
JINMEI Tatuya
0215760bcf
throw IncompleteName (instead of BadLabelType) when the "from text" constructor
...
finds the name incomplete. This also covers the case an empty string is given.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@392 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-19 03:24:09 +00:00
JINMEI Tatuya
fbf185b495
documented the message renderer class
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@391 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-19 03:16:26 +00:00
JINMEI Tatuya
272e807f8f
avoid using hardcoded magic numbers
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@390 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-19 03:15:21 +00:00