File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / coova-chilli / src / iphash.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 22:48:25 2012 UTC (12 years, 11 months ago) by misho
Branches: coova-chilli, MAIN
CVS tags: v1_0_12, HEAD
coova-chilli

/* 
 *
 * IP hash functions.
 * Copyright (C) 2003, 2004, 2005 Mondru AB.
 * Copyright (c) 2007 David Bird <david@coova.com>
 * 
 * The contents of this file may be used under the terms of the GNU
 * General Public License Version 2, provided that the above copyright
 * notice and this permission notice is included in all copies or
 * substantial portions of the software.
 * 
 */


#ifndef _IPHASH_H
#define _IPHASH_H

#include "ippool.h"

/* IP hash functions are used to generate a hash table of IP addresses.
   The functions build on ippool.c.
   ippool_getip() is used to check if an address is in the hash table. */

/* Create new address pool */
extern 
int iphash_new(struct ippool_t **this, struct ippoolm_t *list, int listsize);

/* Delete existing address pool */
extern int iphash_free(struct ippool_t *this);


#endif	/* !_IPHASH_H */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>