ip_pool.h revision f4b3ec61df05330d25f55a36b975b4d7519fdeb1
/*
* Copyright (C) 1993-2001, 2003 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id: ip_pool.h,v 2.26.2.3 2005/06/12 07:18:27 darrenr Exp $
*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef __IP_POOL_H__
#define __IP_POOL_H__
extern int max_keylen;
#else
# include "radix_ipf_local.h"
# define radix_mask ipf_radix_mask
# define radix_node ipf_radix_node
# define radix_node_head ipf_radix_node_head
# else
# include "radix_ipf.h"
# endif
#endif
#include "netinet/ip_lookup.h"
#define IP_POOL_NOMATCH 0
#define IP_POOL_POSITIVE 1
typedef struct ip_pool_node {
int ipn_info;
int ipn_ref;
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 {
addrfamily_t *, int, ipf_stack_t *));
ipf_stack_t *));
addrfamily_t *, addrfamily_t *));
#endif /* __IP_POOL_H__ */