ip_lookup.h revision f4b3ec61df05330d25f55a36b975b4d7519fdeb1
/*
* Copyright (C) 1993-2005 by Darren Reed.
* See the IPFILTER.LICENCE file for details on licencing.
*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef __IP_LOOKUP_H__
#define __IP_LOOKUP_H__
#else
#endif
typedef struct iplookupop {
int iplo_type; /* IPLT_* */
int iplo_unit; /* IPL_LOG* */
char iplo_name[FR_GROUPLEN];
void *iplo_struct;
} iplookupop_t;
typedef struct iplookupflush {
int iplf_type; /* IPLT_* */
int iplf_unit; /* IPL_LOG* */
char iplf_name[FR_GROUPLEN];
typedef struct iplookuplink {
int ipll_type; /* IPLT_* */
int ipll_unit; /* IPL_LOG* */
char ipll_group[FR_GROUPLEN];
#define IPLT_ALL -1
#define IPLT_NONE 0
#define IPLT_POOL 1
#define IPLT_HASH 2
#define IPLT_ANON 0x80000000
typedef union {
struct iplookupiterkey {
char ilik_ival;
char ilik_unit; /* IPL_LOG* */
} ilik_unstr;
typedef struct ipflookupiter {
void *ili_data;
char ili_name[FR_GROUPLEN];
#define IPFLOOKUPITER_LIST 0
#define IPFLOOKUPITER_NODE 1
#endif /* __IP_LOOKUP_H__ */