ip_htable.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
#ifndef __IP_HTABLE_H__
#define __IP_HTABLE_H__
#if SOLARIS2 >= 10
#include "ip_lookup.h"
#else
#include "netinet/ip_lookup.h"
#endif
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
extern void fr_htable_unload __P((void));
extern void *fr_iphmfindgroup __P((void *, void *));
extern int fr_iphmfindip __P((void *, int, void *));
#endif /* __IP_HTABLE_H__ */