/*
* Copyright (C) 1993-2001, 2003 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* @(#)ipf.h 1.12 6/5/96
* $Id: ipf.h,v 2.71.2.7 2005/06/12 07:18:31 darrenr Exp $
*
*/
#ifndef __IPF_H__
#define __IPF_H__
#if defined(__osf__)
#endif
/*
*/
#ifndef _KERNEL
# define ADD_KERNEL
# define _KERNEL
# define KERNEL
#endif
#ifdef __OpenBSD__
struct file;
#endif
#ifdef ADD_KERNEL
#endif
#if __FreeBSD_version >= 300000
#endif
#include <netinet/in_systm.h>
#ifndef TCP_PAWS_IDLE /* IRIX */
#endif
#include <errno.h>
#include <limits.h>
#include <netdb.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
# include <strings.h>
#endif
#include <string.h>
#include <unistd.h>
#include "netinet/ipf_stack.h"
#include "netinet/ip_compat.h"
#include "netinet/ip_state.h"
#include "netinet/ip_proxy.h"
#include "netinet/ip_lookup.h"
#ifdef IPFILTER_SCAN
#endif
#include "netinet/ip_htable.h"
#ifdef IPFILTER_SYNC
#endif
#include "opts.h"
#ifndef __P
# ifdef __STDC__
# define __P(x) x
# else
# define __P(x) ()
# endif
#endif
#ifndef __STDC__
# undef const
# define const
#endif
#ifndef U_32_T
defined(__sgi)
# else
typedef unsigned int u_32_t;
# else
# if SOLARIS2 >= 6
# else
typedef unsigned int u_32_t;
# endif
# endif
# endif /* __NetBSD__ || __OpenBSD__ || __FreeBSD__ || __sgi */
#endif /* U_32_T */
#ifndef MAXHOSTNAMELEN
#endif
struct ipopt_names {
int on_value;
int on_bit;
int on_siz;
char *on_name;
};
typedef struct alist_s {
int al_not;
} alist_t;
typedef struct {
} fakebpf_t;
#if defined(__NetBSD__) || defined(__OpenBSD__) || \
# include <stdarg.h>
#else
#endif
/*
* SunOS4
*/
#endif
extern char thishost[];
extern char flagset[];
extern struct ipopt_names ionames[];
extern struct ipopt_names secclass[];
extern int use_inet6;
extern int lineNum;
extern struct ipopt_names v6ionames[];
extern char *fac_toname __P((int));
extern int fac_findname __P((char *));
extern int getportproto __P((char *, int));
extern int ipmon_parsefile __P((char *));
ioctlfunc_t));
extern int pri_findname __P((char *));
extern char *pri_toname __P((int));
char *, int));
struct iphtent_s *,
copyfunc_t, int));
char *, int));
#ifdef USE_INET6
#endif
extern void printifname __P((char *, char *, void *));
extern void set_variable __P((char *, char *));
extern char *get_variable __P((char *, char **, int));
extern void resetlexer __P((void));
#if SOLARIS
extern int gethostname __P((char *, int ));
#endif
#endif /* __IPF_H__ */