- cp();
-
- p.request = request;
-
- if(avl_search(past_request_tree, &p)) {
- ifdebug(SCARY_THINGS) logger(LOG_DEBUG, _("Already seen request"));
- return true;
- } else {
- new = xmalloc(sizeof(*new));
- new->request = xstrdup(request);
- new->firstseen = time(NULL);
- avl_insert(past_request_tree, new);
- event_add(&past_request_event, &(struct timeval){10, 0});
- return false;
- }
-}
-
-void age_past_requests(int fd, short events, void *data)
-{
- avl_node_t *node, *next;
- past_request_t *p;