Major changes to zone database.
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.
Showing
- src/zone/zone-data-structure.c 5 additions, 4 deletionssrc/zone/zone-data-structure.c
- src/zone/zone-data-structure.h 1 addition, 6 deletionssrc/zone/zone-data-structure.h
- src/zone/zone-database.c 165 additions, 3 deletionssrc/zone/zone-database.c
- src/zone/zone-database.h 17 additions, 1 deletionsrc/zone/zone-database.h
- src/zone/zone-node.c 37 additions, 1 deletionsrc/zone/zone-node.c
- src/zone/zone-node.h 15 additions, 5 deletionssrc/zone/zone-node.h
Loading
Please register or sign in to comment