- Aug 20, 2010
-
-
Marek Vavrusa authored
-
Marek Vavrusa authored
-
Marek Vavrusa authored
Workers are switched on round-robin basis, eliminates data transfer overhead, as backing store is implicitly shared.
-
Marek Vavrusa authored
-
Marek Vavrusa authored
-
Marek Vavrusa authored
-
Marek Vavrusa authored
-
Marek Vavrusa authored
Threading model for TCP needs to be altered to prevent memory errors.
-
Marek Vavrusa authored
-
Marek Vavrusa authored
-
Marek Vavrusa authored
Fixed sm_create_socket() for TCP.
-
Marek Vavrusa authored
-
Marek Vavrusa authored
Refactored UDP handler and created stub TCP handler.
-
Marek Vavrusa authored
-
- Aug 09, 2010
-
-
Lubos Slovak authored
Removed 3rd parameter of zdb_insert_name() - not used. Removed all usage of dns-simple from zone parser. Last usage of dns-simple remains in cuckoo-test (TODO: remove).
-
Lubos Slovak authored
-
Lubos Slovak authored
ns_create_response() divided into ns_create_empty_response() (empty response may be used as an error response) and ns_fill_response(). Added another sample zone as ldns had problems parsing the bogus25 zone.
-
Lubos Slovak authored
Now properly deleting the structures when adding fails. Changed return value of zdb_insert_name() when the zone was not found (from 1 to -2).
-
- Aug 06, 2010
-
-
Lubos Slovak authored
Added function zp_parse_zonefile_bind(). Changed the sample file to provide owner name for the SOA as no origin is given.
-
Lubos Slovak authored
Each zone now holds a linked list of all its nodes while these are at the same time in the main zone data structure. => added pointer to the zone apex to zdb_zone => added function zdb_add_zone() to add a zone in ldns_zone format to the database. Note: zdb_insert() does nothing with the given node, so it should be used only with nodes already in the list. TODO: Some way to add a new node to the zone should be provided. Added owner name and pointers to next and previous item in list to the zone node structure + added function zn_owner() for getting the node's owner. Changed API of zone-data-structure: zds_insert() now has only 2 arguments - the owner is in the node.
-
Lubos Slovak authored
Added function for checking skip list emptiness. Checking ldns_status returned from ldns_pkt2wire() in ns_answer_request(). Casting buffers to unsigned char * in call to ns_answer_request().
-
Lubos Slovak authored
Changed nameserver's API - function ns_answer_request() to conform the ldns type usage.
-
- Aug 05, 2010
-
-
Lubos Slovak authored
Zone data structure module now uses ldns structures in the API. Zone database module now uses ldns structures in the API and implementation. Zone parser and name server modules' iplementation slightly modified to be able to call zds and zdb functions. Minor fixes in dns-simple.
-
Lubos Slovak authored
Currently only a function for matching labels in two domain names is implemented. May need some revision and testing!
-
- Aug 04, 2010
-
-
Lubos Slovak authored
Some other functions had to be modified in order to be able to compile the program. However, it is not debugged, and currently does not work.
-
Lubos Slovak authored
Functions for merging values and printing items removed from the skip list structure. Now passed only to appropriate functions. Bugfix in skip_remove() - was not testing the node pointer for NULL.
-
Lubos Slovak authored
Added functions skip_delete_node for properly deleting skip_node skip_destroy_list for properly destroying whole skip list skip_print_list for printing the skip list. Changed return values of function skip_insert(). Renamed skip_delete() to skip_remove() and changed return value to int (successful / not found) Bugfix in skip_remove(). Added test of skip list.
-
- Aug 03, 2010
-
-
Lubos Slovak authored
Added 'key' parameter to skip_make_node function. Added checks for successful allocation. Added comments to all functions and structures.
-
Lubos Slovak authored
-
Lubos Slovak authored
-
Lubos Slovak authored
Skip list downloaded from http://en.literateprograms.org/Skip_list_(C)?oldid=12811 and modified to better suit our needs. Not tested nor compiled yet. Added sample zone for later testing.
-
Lubos Slovak authored
-
- Jul 28, 2010
-
-
Lubos Slovak authored
-
Lubos Slovak authored
Replacing int count = rand() % 10; with int count = rand() % 10 + 1; seems to do the trick, but really do not know why.
-
- Jul 27, 2010
-
-
Lubos Slovak authored
The da_resize() function sometimes crashes on either invalid pointer or double free error. TODO: FIX!
-
Lubos Slovak authored
ck_rehash() is not part of the API if CT_TEST_REHASH is not defined
-
Lubos Slovak authored
Fixed stash usage in ck_rehash() and ck_insert_item(): - cannot copy the pointer because the array may be reallocated - TODO: maybe use also rcu_dereference(). Changed way of working with dynamic array: - function da_reserve() only makes sure there is enough place in the array; added function da_occupy() to really increment the item count - fixed ck functions to use the array properly. Bugfix in ck_rehash(): - was not resizing the stash properly. Bugfixes in ck_dump_table(): - wrong accessing of items Bugfix in da_resize(): - was not copying the array contents!
-
Lubos Slovak authored
-
Lubos Slovak authored
RCU test threads must register to RCU. ck_remove_item() also deletes the value of the item.
-
Lubos Slovak authored
Implemented first test of the RCU mechanism - deleting item from table while holding a reference to it in another thread. Bugfix in ck_remove_item() - was dereferencing NULL pointer.
-