ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/src/negcache.h
Revision: 5138
Committed: Thu Dec 25 19:44:15 2014 UTC (11 years, 7 months ago) by michael
Content type: text/x-chdr
File size: 486 byte(s)
Log Message:
- Create hopm 1.0.x branch

File Contents

# Content
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