ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/src/negcache.h
Revision: 5321
Committed: Tue Jan 6 14:59:31 2015 UTC (9 years, 2 months ago) by michael
Content type: text/x-chdr
File size: 516 byte(s)
Log Message:
- Fixed coding convention issues

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 struct cnode *nc_head;
14 extern void nc_init(struct cnode **);
15 extern struct cnode *check_neg_cache(const unsigned long);
16 extern void negcache_insert(const char *);
17 extern void negcache_rebuild(void);
18 #endif

Properties

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