- Nov 22, 2010
-
-
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
-
- 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
-