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