ip_pool.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (C) 1993-2001 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id: ip_pool.h,v 2.19 2003/11/08 23:01:26 darrenr Exp $
*/
#ifndef __IP_POOL_H__
#define __IP_POOL_H__
#if defined(_KERNEL) && \
#else
# include "radix.h"
#endif
#if SOLARIS2 >= 10
#include "ip_lookup.h"
#else
#include "netinet/ip_lookup.h"
#endif
#define IP_POOL_NOMATCH 0
#define IP_POOL_POSITIVE 1
typedef struct ip_pool_node {
int ipn_info;
char ipn_name[FR_GROUPLEN];
typedef struct ip_pool_s {
struct radix_node_head *ipo_head;
int ipo_unit;
int ipo_flags;
int ipo_ref;
char ipo_name[FR_GROUPLEN];
} ip_pool_t;
#define IPOOL_ANON 0x80000000
typedef struct ip_pool_stat {
extern ip_pool_stat_t ipoolstat;
extern int ip_pool_search __P((void *, int, void *));
extern int ip_pool_init __P((void));
extern void ip_pool_fini __P((void));
extern void *ip_pool_find __P((int, char *));
#endif /* __IP_POOL_H__ */