ip_htable.h revision ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4
/*
* Copyright (C) 2003 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef __IP_HTABLE_H__
#define __IP_HTABLE_H__
#include "netinet/ip_lookup.h"
typedef struct iphtent_s {
void *ipe_ptr;
int ipe_ref;
union {
char ipeu_char[16];
}ipe_un;
} iphtent_t;
#define IPE_HASH_FN(a, m, s) (((a) * (m)) % (s))
typedef struct iphtable_s {
} iphtable_t;
/* iph_type */
#define IPHASH_LOOKUP 0
#define IPHASH_GROUPMAP 1
#define IPHASH_ANON 0x80000000
typedef struct iphtstat_s {
} iphtstat_t;
extern void fr_htable_unload __P((void));
extern void *fr_iphmfindgroup __P((void *, int, void *));
extern int fr_iphmfindip __P((void *, int, void *));
#endif /* __IP_HTABLE_H__ */