- Nov 22, 2010
-
-
Lubos Slovak authored
Wrong freeing of dname in test_dname_compare(). RDATA test count. Comparing RDATA in test_rrset_rdata(). All tests count.
-
Lubos Slovak authored
-
Lubos Slovak authored
Was not initializing the position pointers.
-
Jan Kadlec authored
-
Jan Kadlec authored
-
Jan Kadlec authored
-
Jan Kadlec authored
Changes to both rrset and node APIs as well as test for those APIs. Node API and tests should be complete. Refs #108, #109, #110, #116
-
Lubos Slovak authored
Added test for rdata_get_item(). Test for set_items() now checks all return values. refs #117
-
Lubos Slovak authored
Checking for bad input parameters in dnslib_rdata_set_items(). Comments adjusted. refs #119
-
Jan Kadlec authored
-
Jan Kadlec authored
Somewhat complete rrset test implementation. Needs some polishing and possibly more sophisticated way of testing rrsigs.
-
Jan Kadlec authored
-
Jan Kadlec authored
-
- Nov 18, 2010
-
-
Lubos Slovak authored
- wire_size() was not counting the stored length octet in case of TEXT or BINARY. - typo in to_wire() refs #119
-
Lubos Slovak authored
Modified also the helper functions fill_data() and check_data() - they are now storing all what is saved to the RDATA, so it can be used later for comparison. refs #117
-
Lubos Slovak authored
refs #119
-
Lubos Slovak authored
refs #117
-
Lubos Slovak authored
Tests now reflect the new RDATA API and use RR type descriptors to fill the structures with some data. Added includes to dname tests. refs #117
-
Lubos Slovak authored
refs #119
-
Lubos Slovak authored
-
Lubos Slovak authored
Fixed enum dnslib_rr_type - must explicitly set numbers for types which do not follow the previous ones in numbering. Fixed naming of mxrdtln enum items to contain prefix DNSLIB_.
-
Lubos Slovak authored
The previous approach made converting RDATA to wire format too complex. Now RDATA items distinguish only between domain name and other data. The format is given by a descriptor. TODO: Consider saving the length of the data to the byte array always, so getting it would not require that huge switch. refs #119
-
Jan Kadlec authored
-
- Nov 16, 2010
-
-
Lubos Slovak authored
refs #119
-
Lubos Slovak authored
-
Lubos Slovak authored
Added dnslib_dname_compare(). Added constant for max domain name labels. TODO: consider saving label offsets in the domain name structure, may make the comparation quicker. refs #118
-
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
-