1 /* 2 * Copyright (C) 1993-2001 by Darren Reed. 3 * 4 * See the IPFILTER.LICENCE file for details on licencing. 5 * 6 * $Id: ipt.h,v 2.6 2003/02/16 02:33:09 darrenr Exp $ 7 */ 8 9 #ifndef __IPT_H__ 10 #define __IPT_H__ 11 12 #ifndef __P 13 # define P_DEF 14 # ifdef __STDC__ 15 # define __P(x) x 16 # else 17 # define __P(x) () 18 # endif 19 #endif 20 21 #include <fcntl.h> 22 23 24 struct ipread { 25 int (*r_open) __P((char *)); 26 int (*r_close) __P((void)); 27 int (*r_readip) __P((char *, int, char **, int *)); 28 int r_flags; 29 }; 30 31 #define R_DO_CKSUM 0x01 32 33 extern void debug __P((char *, ...)); 34 extern void verbose __P((char *, ...)); 35 36 #ifdef P_DEF 37 # undef __P 38 # undef P_DEF 39 #endif 40 41 #endif /* __IPT_H__ */ 42