JINMEI Tatuya
e4036de3cb
[2442] unified from std::string and with lexer ctro for text-like rdata.
...
some tests needed to be adjusted:
- ' ' * 256 (in python) now doesn't work as intended; they are considered
space
- in auth tests, make sure txt RDATA containing a space is explicitly double
quoted
- in Rdata_TXT_LIKE_Test::createFromText, removed the last test case because
it's actually a valid representation as commented. now the implementation
correctly accepts it.
2012-12-03 23:21:06 -08:00
JINMEI Tatuya
3b154a6923
[master] removed duplicate listing of the same header file
2012-12-03 23:16:14 -08:00
JINMEI Tatuya
11bbe308df
[master] added master_XXX header files include_HEADERS for libdns++
...
these are (indirectly) necessary for building external programs.
2012-12-03 23:10:52 -08:00
Mukund Sivaraman
aad4df7a66
[master] Sort .gitignore
2012-12-04 11:52:38 +05:30
Mukund Sivaraman
95a87b15ab
[master] Update .gitignore files
2012-12-04 11:52:19 +05:30
JINMEI Tatuya
7b148d962b
[2442] tested various cases for the lexer verson of txt-like ctor
2012-12-03 21:51:39 -08:00
JINMEI Tatuya
c0d55602e3
[2442] supported lexer version of constructor for TXTLike RR types
...
it's incomplete, but pass some tests
2012-12-03 21:07:00 -08:00
JINMEI Tatuya
9f8aabb795
[2442] updated some TXT-like test data without using intermediate space.
...
when we migrate the complete lexer version, this will cause confusion:
the lexer will consider the space as a separater.
2012-12-03 21:06:19 -08:00
JINMEI Tatuya
5819758217
[2442] (unrelated) cleanup: use propoer namespace and avoid 'using namespace'
2012-12-03 21:05:55 -08:00
JINMEI Tatuya
6edf83daa6
[2442] handled various corner cases
2012-12-03 21:05:55 -08:00
JINMEI Tatuya
31dd54a026
[2442] added minimum definition for strToCharString and tests
2012-12-03 21:05:55 -08:00
JINMEI Tatuya
2c9904e154
[2497] some suggested editorial cleanups: long line, identation, better e.g.
2012-12-03 21:05:54 -08:00
Mukund Sivaraman
8da8a38bcf
[2497] Apply generic rules to class IN too
2012-12-03 21:05:54 -08:00
Mukund Sivaraman
5911431e8f
[2497] Add a direct HINFO testcase for the string parser
2012-12-03 21:05:54 -08:00
Mukund Sivaraman
5f03da43d3
[2497] Fix HINFO parsing in the string parser
...
The lexer variant also uses the string parser eventually (for now).
2012-12-03 21:05:53 -08:00
Mukund Sivaraman
3ee8c9cdab
[2497] Return whether the string is quoted in characterstr::getNextCharacterString()
2012-12-03 21:05:53 -08:00
Mukund Sivaraman
c0f25aade8
[2497] Remove a couple of txt tests
2012-12-03 21:05:53 -08:00
JINMEI Tatuya
3666f50858
[2497] Move repeated code to a function
2012-12-03 21:05:52 -08:00
Mukund Sivaraman
2abaf1a033
[2497] Make new_rdata_factory_users[] a list of tuples
...
Also:
* document new_rdata_factory_users[] with an example
* Rename new_rdatafactory_users[] to new_rdata_factory_users[]
2012-12-03 21:05:42 -08:00
Mukund Sivaraman
d5f52afdc5
Merge branch 'master' into trac2497
2012-12-04 10:16:23 +05:30
JINMEI Tatuya
203b4a0593
[2497] some suggested editorial cleanups: long line, identation, better e.g.
2012-12-03 18:29:37 -08:00
Mukund Sivaraman
20ff1f4962
[2497] Apply generic rules to class IN too
2012-12-04 04:52:54 +05:30
Mukund Sivaraman
ec24cb1c27
[2497] Add a direct HINFO testcase for the string parser
2012-12-04 04:44:34 +05:30
Mukund Sivaraman
1a2787f32f
[2497] Fix HINFO parsing in the string parser
...
The lexer variant also uses the string parser eventually (for now).
2012-12-04 04:40:42 +05:30
Mukund Sivaraman
7237139f1b
[2497] Return whether the string is quoted in characterstr::getNextCharacterString()
2012-12-04 04:13:57 +05:30
JINMEI Tatuya
2f554072bc
[2506] add another test for getting numbers
2012-12-03 13:41:33 -08:00
JINMEI Tatuya
191d96a587
[2506] add some comments of how eolCheck() works, and unify skipping 2nd \n.
2012-12-03 13:38:01 -08:00
Stephen Morris
b6c480a594
[2404] Extending test cases as the result of review
2012-12-03 21:23:48 +00:00
Stephen Morris
495d4e2f69
[2404] More changes as a result of review
...
Including:
* Updates to comments etc.
* Addition of Lease4::operator==() (and associated unit tests)
2012-12-03 15:35:36 +00:00
Mukund Sivaraman
403af3331c
[master] Regenerate gen-rdatacode.py when gen-rdatacode.py.in is updated
2012-12-03 17:08:01 +05:30
Mukund Sivaraman
3e5f225205
[2497] Remove a couple of txt tests
2012-12-03 11:13:59 +05:30
JINMEI Tatuya
947a2d7aec
[2497] Move repeated code to a function
2012-12-03 11:09:00 +05:30
Mukund Sivaraman
292db149be
[2497] Make new_rdata_factory_users[] a list of tuples
...
Also:
* document new_rdata_factory_users[] with an example
* Rename new_rdatafactory_users[] to new_rdata_factory_users[]
2012-12-03 10:54:09 +05:30
Mukund Sivaraman
5bb4db417e
Merge branch 'master' into trac2450
2012-12-03 08:41:30 +05:30
JINMEI Tatuya
5d239b6aed
[2382] more update on comment
2012-12-01 08:32:06 -08:00
JINMEI Tatuya
9440d65d7e
[2382] comment wording fix
2012-12-01 08:28:37 -08:00
JINMEI Tatuya
dfd0dd105b
[2382] documentation updates
2012-11-30 20:17:23 -08:00
JINMEI Tatuya
e441d6b05a
[2382] warn if RDATA immediately followed by EOF
2012-11-30 19:41:14 -08:00
JINMEI Tatuya
0ad163bb37
[2382] handle other generic isc::Exception
2012-11-30 19:41:13 -08:00
JINMEI Tatuya
f7f3060b97
[2382] supported extra token case and callback calls on error.
2012-11-30 19:41:13 -08:00
JINMEI Tatuya
b9f1eefe7e
[2382] Consume to end of line / file in createRdata().
2012-11-30 19:41:13 -08:00
JINMEI Tatuya
03dc2386b1
[2382] ungetToken EOL/EOF in the backend factories.
2012-11-30 19:41:12 -08:00
JINMEI Tatuya
3ae13a89a2
[2382] added from-lexer ctor for AAAA RDATA.
...
not directly related to this task, but I found we need one real (non wrapper)
example to test some of the feature of generic createRdata().
also updated RDATA template including with-lexer constructor.
2012-11-30 19:40:59 -08:00
JINMEI Tatuya
f73f27474f
[2382] unrelated fix to lexer: support empty qstring and nul termination.
...
an empty qstring previously caused an exception, which is a clear bug
and should be fixed. nul-terminating string regions is an extension,
but I found it useful when implementing RDATA parsers.
2012-11-30 18:50:13 -08:00
JINMEI Tatuya
ca8fc9f414
[2382] resolved remaining merge conflict on MasterLexer::Token.
2012-11-30 18:50:12 -08:00
JINMEI Tatuya
b48ecd894a
[2497] constify
2012-11-30 18:50:12 -08:00
Mukund Sivaraman
638a2d7fbb
[2497] Return NULL upon exception in rdata::createRdata()
2012-11-30 18:50:12 -08:00
Mukund Sivaraman
cb52403a8a
[2497] Add tests for NSEC3PARAM-like rrtypes
2012-11-30 18:50:11 -08:00
Mukund Sivaraman
a9a6007e02
[2497] Add tests for NSEC3PARAM, DS-like and TXT-like rrtypes
2012-11-30 18:50:11 -08:00
Mukund Sivaraman
3e964a48bd
[2497] Add tests for NSEC3, NSEC and TSIG rrtypes
2012-11-30 18:50:11 -08:00