94 |
n->seen = time(NULL); |
n->seen = time(NULL); |
95 |
|
|
96 |
pnode->data = n; |
pnode->data = n; |
97 |
list_add(&negcache_list, &n->node); |
list_add(pnode, &n->node, &negcache_list); |
98 |
} |
} |
99 |
|
|
100 |
/* |
/* |
116 |
log_printf("NEGCACHE -> Deleting expired negcache node for %s added at %lu", |
log_printf("NEGCACHE -> Deleting expired negcache node for %s added at %lu", |
117 |
patricia_prefix_toa(pnode->prefix, 0), n->seen); |
patricia_prefix_toa(pnode->prefix, 0), n->seen); |
118 |
|
|
119 |
list_remove(&negcache_list, &n->node); |
list_remove(&n->node, &negcache_list); |
120 |
|
|
121 |
xfree(n); |
xfree(n); |
122 |
patricia_remove(negcache_trie, pnode); |
patricia_remove(negcache_trie, pnode); |