- Nov 16, 2010
-
-
git://git.nic.cz/cutednsJan Kadlec authored
-
Jan Kadlec authored
-
Lubos Slovak authored
Was comparing RDATA domain names as domain names, should compare as binary data.
-
Lubos Slovak authored
Added functions: - dnslib_rdata_wire_size() - dnslib_rdata_to_wire() The converting seems to be quite inefficient, should consider improving performance for the cost of more memory used (not to distinguish so many RDATA item types).
-
Lubos Slovak authored
Fixed missing comma. MAXRDATALEN -> MAX_RDATA_ITEMS + added two other constants: - MAX_RDATA_ITEM_SIZE - MAX_RDATA_WIRE_SIZE
-
Lubos Slovak authored
RDATA items changed to be more space efficient. Distinguishes several content types and stores the rest as binary array with its length stored in th first byte. Changed RDATA constructor to not allocate space for items. Functions for comparing RDATAs: dnslib_rdata_compare() - just a first draft though. dnslib_rdata_compare_binary() - compares two binary RDATA items (needs testing) refs #119
-
Jan Kadlec authored
Added test for NULL pointers. Todo: possible add more tests with faulty data, questions is, whether such situations can even happen. Refs: #115
-
Jan Kadlec authored
-
- Nov 15, 2010
-
-
Jan Kadlec authored
-
Jan Kadlec authored
-
- Nov 14, 2010
-
-
Jan Kadlec authored
-
- Nov 12, 2010
-
-
Jan Kadlec authored
Initial implementation of RR type descriptors. It's more or less a simplified copy from NSD, will need changes and maybe more API functions.
-
Jan Kadlec authored
-
Jan Kadlec authored
-
- Nov 11, 2010
-
-
Jan Kadlec authored
-
Lubos Slovak authored
-
Lubos Slovak authored
Only test for creating RRSet is implemented. Did not try to run it nor to compile it. Just an outline yet. refs #109
-
Lubos Slovak authored
Were not checking for NULL pointers. refs #88
-
Jan Kadlec authored
-
Lubos Slovak authored
Just basic functions declared: - creating node - destroying node - adding RRSet - getting RRSet - getting parent of a node refs #88
-
Jan Kadlec authored
-
Jan Kadlec authored
-
Jan Kadlec authored
-
Jan Kadlec authored
-
Jan Kadlec authored
API completed, compilable. Will have to change manipulation with rdata as does not use its API as it should.
-
Jan Kadlec authored
-
- Nov 10, 2010
-
-
Lubos Slovak authored
RDATAs will be stored in a ordered cyclic list. Information about RRSet's signatures reflects this. Added some basic API functions for manipulating the structure and comments to describe their intended behaviour. TODO: Need to define some function for comparing RDATAs. refs #88
-
Lubos Slovak authored
Destructor functions now take ** to set the given pointer to NULL. RDATA structure now contains pointer to next RDATA, so they may create a linked list. (Will be used in RRSet). Added file comments and \addtogroup statements. Modified tests accordingly. refs #88
-
Lubos Slovak authored
refs #88, #31
-
- Nov 09, 2010
-
-
Lubos Slovak authored
A lot of syntax fixes (sorry, was not compileable before). refs #88
-
Lubos Slovak authored
Tests implemented so far: - create empty - create non-empty - set_item() for setting RDATA items one-by-one TODO: = set_items() refs #88, #31
-
Lubos Slovak authored
Tests were not freeing memory. Replaced forgotten printf by debug routine in dname.c. refs #88, #31
-
Lubos Slovak authored
- creating RDATA structure (empty, possibly with reserving space) - setting and getting particular items - setting all items (only if empty) - deallocating refs #5, #88
-
Lubos Slovak authored
Tests of all API functions implemented, except for dnslib_dname_free() - no way to test that yet (consider using storage allocation hooks: http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_3.html#SEC30 ) refs #5, #31
-
Lubos Slovak authored
dname and node were referencing each other. Used forward-declaration of node in dname. Added API getter functions (with implementation): - dnslib_dname_name() - dnslib_dname_size() - dnslib_dname_node() Fixed dname implementation: - str_to_wire() was replacing chars by label lengths - new_from_str() bad assert - new_from_wire() was not allocating space for the name - to_str() was de facto copying the wire format Added some debug output to dname refs #5, #88
-
Lubos Slovak authored
refs #5, #88
-
Lubos Slovak authored
Fixed creating dname struct from wire format (was not copying). refs #5, #88
-
Lubos Slovak authored
- creating dname (empty, from string, from wire format) - deleting dname - converting dname to string Minor change in node - added linked list pointer to next node. refs #5, #88
-
Lubos Slovak authored
refs #5, #88
-
- Nov 04, 2010
-
-
Lubos Slovak authored
refs #5
-