ipf.h (6a634c9d) ipf.h (af5f29dd)
1/*
2 * Copyright (C) 1993-2001, 2003 by Darren Reed.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 *
6 * @(#)ipf.h 1.12 6/5/96
7 * $Id: ipf.h,v 2.71.2.7 2005/06/12 07:18:31 darrenr Exp $
8 *

--- 143 unchanged lines hidden (view full) ---

152 u_short fb_c;
153 u_char fb_t;
154 u_char fb_f;
155 u_32_t fb_k;
156} fakebpf_t;
157
158
159#if defined(__NetBSD__) || defined(__OpenBSD__) || \
1/*
2 * Copyright (C) 1993-2001, 2003 by Darren Reed.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 *
6 * @(#)ipf.h 1.12 6/5/96
7 * $Id: ipf.h,v 2.71.2.7 2005/06/12 07:18:31 darrenr Exp $
8 *

--- 143 unchanged lines hidden (view full) ---

152 u_short fb_c;
153 u_char fb_t;
154 u_char fb_f;
155 u_32_t fb_k;
156} fakebpf_t;
157
158
159#if defined(__NetBSD__) || defined(__OpenBSD__) || \
160 (_BSDI_VERSION >= 199701) || (__FreeBSD_version >= 300000) || \
161 SOLARIS || defined(__sgi) || defined(__osf__) || defined(linux)
160 (_BSDI_VERSION >= 199701) || (__FreeBSD_version >= 300000) || \
161 defined(SOLARIS) || defined(__sgi) || defined(__osf__) || \
162 defined(linux)
162# include <stdarg.h>
163typedef int (* ioctlfunc_t) __P((int, ioctlcmd_t, ...));
164#else
165typedef int (* ioctlfunc_t) __P((dev_t, ioctlcmd_t, void *));
166#endif
167typedef void (* addfunc_t) __P((int, ioctlfunc_t, void *));
168typedef int (* copyfunc_t) __P((void *, void *, size_t));
169

--- 130 unchanged lines hidden (view full) ---

300extern void printactivenat __P((struct nat *, int, int));
301extern void printhostmap __P((struct hostmap *, u_int));
302extern void printpacket __P((struct ip *));
303
304extern void set_variable __P((char *, char *));
305extern char *get_variable __P((char *, char **, int));
306extern void resetlexer __P((void));
307
163# include <stdarg.h>
164typedef int (* ioctlfunc_t) __P((int, ioctlcmd_t, ...));
165#else
166typedef int (* ioctlfunc_t) __P((dev_t, ioctlcmd_t, void *));
167#endif
168typedef void (* addfunc_t) __P((int, ioctlfunc_t, void *));
169typedef int (* copyfunc_t) __P((void *, void *, size_t));
170

--- 130 unchanged lines hidden (view full) ---

301extern void printactivenat __P((struct nat *, int, int));
302extern void printhostmap __P((struct hostmap *, u_int));
303extern void printpacket __P((struct ip *));
304
305extern void set_variable __P((char *, char *));
306extern char *get_variable __P((char *, char **, int));
307extern void resetlexer __P((void));
308
308#if SOLARIS
309#ifdef SOLARIS
309extern int gethostname __P((char *, int ));
310extern void sync __P((void));
311#endif
312
313#endif /* __IPF_H__ */
310extern int gethostname __P((char *, int ));
311extern void sync __P((void));
312#endif
313
314#endif /* __IPF_H__ */