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

Contents of /hopm/trunk/src/negcache.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5135 - (show annotations)
Thu Dec 25 18:51:51 2014 UTC (5 years, 5 months ago) by michael
File MIME type: text/x-csrc
File size: 486 byte(s)
- propset svn:eol-style native

1 #ifndef NEGCACHE_H
2 #define NEGCACHE_H
3
4 struct cnode
5 {
6 unsigned long ip; /* IP address, network byte order. */
7 time_t seen; /* When it was last seen. */
8 unsigned int b; /* Index of bit to be tested. */
9 struct cnode *l; /* Node to the left. */
10 struct cnode *r; /* Node to the right. */
11 };
12
13 extern void nc_init(struct cnode **);
14 extern struct cnode *check_neg_cache(const unsigned long);
15 extern void negcache_insert(const char *);
16 extern void negcache_rebuild(void);
17 #endif

Properties

Name Value
svn:eol-style native
svn:keywords Id

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