/[svn]/hopm/trunk/src/negcache.c
ViewVC logotype

Diff of /hopm/trunk/src/negcache.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8581 by michael, Sun Oct 14 15:12:50 2018 UTC revision 8582 by michael, Sun Oct 14 16:59:59 2018 UTC
# Line 94  negcache_insert(const char *ipstr) Line 94  negcache_insert(const char *ipstr)
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  /*  /*
# Line 116  negcache_rebuild(void) Line 116  negcache_rebuild(void)
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);

Legend:
Removed from v.8581  
changed lines
  Added in v.8582

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28