No Default Nsec3 Tree
Two parts:
- Growable hash node size in trie
- NSEC3 tree created only if needed (NULL is treated as an empty tree)
- I'm not sure if I did the zone-diff stuff right? :suspect:
Merge request reports
Activity
241 241 * as well. Set to 0 otherwise. 242 242 */ 243 243 void knot_zone_tree_deep_free(knot_zone_tree_t **tree); 244 245 void hattrie_insert_dname(hattrie_t *tr, knot_dname_t *dname); 246 knot_dname_t *hattrie_get_dname(hattrie_t *tr, knot_dname_t *dname); 45 return NULL; 46 assert(!(len & (CPU_PAGE_SIZE-1))); 47 uint8_t *p = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); 48 if (p == (uint8_t*) MAP_FAILED) 49 return NULL; 50 return p; 51 } 52 53 static void 54 page_free(void *start, uint64_t len) 55 { 56 assert(!(len & (CPU_PAGE_SIZE-1))); 57 assert(!((uintptr_t) start & (CPU_PAGE_SIZE-1))); 58 munmap(start, len); 59 } 60 #endif
Please register or sign in to reply