Annotation of embedaddon/coova-chilli/src/iphash.h, revision 1.1.1.1
1.1 misho 1: /*
2: *
3: * IP hash functions.
4: * Copyright (C) 2003, 2004, 2005 Mondru AB.
5: * Copyright (c) 2007 David Bird <david@coova.com>
6: *
7: * The contents of this file may be used under the terms of the GNU
8: * General Public License Version 2, provided that the above copyright
9: * notice and this permission notice is included in all copies or
10: * substantial portions of the software.
11: *
12: */
13:
14:
15: #ifndef _IPHASH_H
16: #define _IPHASH_H
17:
18: #include "ippool.h"
19:
20: /* IP hash functions are used to generate a hash table of IP addresses.
21: The functions build on ippool.c.
22: ippool_getip() is used to check if an address is in the hash table. */
23:
24: /* Create new address pool */
25: extern
26: int iphash_new(struct ippool_t **this, struct ippoolm_t *list, int listsize);
27:
28: /* Delete existing address pool */
29: extern int iphash_free(struct ippool_t *this);
30:
31:
32: #endif /* !_IPHASH_H */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>